@vectoriox/iox-ui 5.86.4 → 5.88.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 +17 -3
- package/composite-core/index.d.ts +208 -2
- package/design-core/index.d.ts +373 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +30 -4
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +656 -116
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +444 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +28 -8
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +231 -7
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +603 -20
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +26 -2
- package/index.d.ts +196 -2
- package/package.json +1 -1
- package/scene-core/index.d.ts +158 -2
- package/src/actions-core/action.model.ts +3 -0
- package/src/actions-core/element-actions.ts +32 -3
- package/src/composite-core/marquee-runtime.ts +255 -0
- package/src/composite-core/marquee.ts +267 -0
- package/src/composite-core/public-api.ts +3 -0
- package/src/composite-core/scroll-recipes.ts +74 -0
- package/src/composite-core/structure.ts +7 -0
- package/src/design-core/contrast-audit.ts +6 -1
- package/src/design-core/flavor-spec.generated.ts +435 -1
- package/src/generation-core/ai-run.ts +9 -6
- package/src/generation-core/node-baselines.generated.ts +5 -1
- package/src/generation-core/pictures.ts +32 -0
- package/src/scene-core/public-api.ts +1 -0
- package/src/scene-core/scroll-driver.ts +98 -0
- package/src/scene-core/scroll-range.ts +195 -0
- package/styles/iox-design.css +49 -1
|
@@ -1442,6 +1442,46 @@ export const SPEC_TIERS = {
|
|
|
1442
1442
|
"name": "slider-ease",
|
|
1443
1443
|
"type": "easing",
|
|
1444
1444
|
"default": "var(--iox-ease-standard)"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"name": "marquee-speed",
|
|
1448
|
+
"type": "number",
|
|
1449
|
+
"default": "40"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "marquee-gap",
|
|
1453
|
+
"type": "spacing",
|
|
1454
|
+
"default": "var(--iox-space-gap)"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"name": "marquee-fade",
|
|
1458
|
+
"type": "size",
|
|
1459
|
+
"default": "48px"
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"name": "marquee-control-bg",
|
|
1463
|
+
"type": "color",
|
|
1464
|
+
"default": "var(--iox-surface)"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "marquee-control-ink",
|
|
1468
|
+
"type": "color",
|
|
1469
|
+
"default": "var(--iox-text)"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "marquee-control-border",
|
|
1473
|
+
"type": "color",
|
|
1474
|
+
"default": "var(--iox-line-strong)"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "progress-height",
|
|
1478
|
+
"type": "size",
|
|
1479
|
+
"default": "3px"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"name": "progress-fill",
|
|
1483
|
+
"type": "color",
|
|
1484
|
+
"default": "var(--iox-text)"
|
|
1445
1485
|
}
|
|
1446
1486
|
]
|
|
1447
1487
|
} as const;
|
|
@@ -1542,6 +1582,7 @@ export const SPEC_AXES = {
|
|
|
1542
1582
|
"dur-hover": "0ms",
|
|
1543
1583
|
"dur-press": "0ms",
|
|
1544
1584
|
"dur-ui": "0ms",
|
|
1585
|
+
"marquee-speed": "0",
|
|
1545
1586
|
"tooltip-dur-in": "0ms",
|
|
1546
1587
|
"tooltip-dur-out": "0ms",
|
|
1547
1588
|
"popover-dur-in": "0ms",
|
|
@@ -1564,6 +1605,7 @@ export const SPEC_AXES = {
|
|
|
1564
1605
|
"dur-hover": "80ms",
|
|
1565
1606
|
"dur-press": "60ms",
|
|
1566
1607
|
"dur-ui": "140ms",
|
|
1608
|
+
"marquee-speed": "52",
|
|
1567
1609
|
"tooltip-dur-in": "100ms",
|
|
1568
1610
|
"tooltip-dur-out": "70ms",
|
|
1569
1611
|
"popover-dur-in": "160ms",
|
|
@@ -1586,6 +1628,7 @@ export const SPEC_AXES = {
|
|
|
1586
1628
|
"dur-hover": "120ms",
|
|
1587
1629
|
"dur-press": "90ms",
|
|
1588
1630
|
"dur-ui": "200ms",
|
|
1631
|
+
"marquee-speed": "40",
|
|
1589
1632
|
"tooltip-dur-in": "125ms",
|
|
1590
1633
|
"tooltip-dur-out": "80ms",
|
|
1591
1634
|
"popover-dur-in": "200ms",
|
|
@@ -1608,6 +1651,7 @@ export const SPEC_AXES = {
|
|
|
1608
1651
|
"dur-hover": "150ms",
|
|
1609
1652
|
"dur-press": "120ms",
|
|
1610
1653
|
"dur-ui": "300ms",
|
|
1654
|
+
"marquee-speed": "28",
|
|
1611
1655
|
"tooltip-dur-in": "160ms",
|
|
1612
1656
|
"tooltip-dur-out": "110ms",
|
|
1613
1657
|
"popover-dur-in": "260ms",
|
|
@@ -1630,6 +1674,7 @@ export const SPEC_AXES = {
|
|
|
1630
1674
|
"dur-hover": "150ms",
|
|
1631
1675
|
"dur-press": "100ms",
|
|
1632
1676
|
"dur-ui": "280ms",
|
|
1677
|
+
"marquee-speed": "56",
|
|
1633
1678
|
"tooltip-dur-in": "140ms",
|
|
1634
1679
|
"tooltip-dur-out": "90ms",
|
|
1635
1680
|
"popover-dur-in": "220ms",
|
|
@@ -2879,7 +2924,8 @@ export const SPEC_A11Y = {
|
|
|
2879
2924
|
"button-press-x": "0px",
|
|
2880
2925
|
"button-press-y": "0px",
|
|
2881
2926
|
"button-press-scale": "1",
|
|
2882
|
-
"image-hover-scale": "1"
|
|
2927
|
+
"image-hover-scale": "1",
|
|
2928
|
+
"marquee-speed": "0"
|
|
2883
2929
|
},
|
|
2884
2930
|
"reducedTransparency": {
|
|
2885
2931
|
"surface-glass": "var(--iox-surface)",
|
|
@@ -3814,6 +3860,58 @@ export const SPEC_ELEMENT_STYLES = [
|
|
|
3814
3860
|
"opacity": "0.4"
|
|
3815
3861
|
}
|
|
3816
3862
|
},
|
|
3863
|
+
{
|
|
3864
|
+
"id": "marquee",
|
|
3865
|
+
"label": "Marquee",
|
|
3866
|
+
"group": "Layout",
|
|
3867
|
+
"appliesTo": [
|
|
3868
|
+
"Container"
|
|
3869
|
+
],
|
|
3870
|
+
"base": {
|
|
3871
|
+
"gap": "var(--iox-marquee-gap)",
|
|
3872
|
+
"color": "inherit"
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"id": "marquee-control",
|
|
3877
|
+
"label": "Marquee pause",
|
|
3878
|
+
"group": "Buttons",
|
|
3879
|
+
"appliesTo": [
|
|
3880
|
+
"ButtonBlock"
|
|
3881
|
+
],
|
|
3882
|
+
"base": {
|
|
3883
|
+
"backgroundColor": "var(--iox-marquee-control-bg)",
|
|
3884
|
+
"color": "var(--iox-marquee-control-ink)",
|
|
3885
|
+
"borderStyle": "solid",
|
|
3886
|
+
"borderWidth": "var(--iox-border-width)",
|
|
3887
|
+
"borderColor": "var(--iox-marquee-control-border)",
|
|
3888
|
+
"borderRadius": "var(--iox-radius-pill)",
|
|
3889
|
+
"transitionDuration": "var(--iox-dur-hover)",
|
|
3890
|
+
"transitionTimingFunction": "var(--iox-ease-hover)"
|
|
3891
|
+
},
|
|
3892
|
+
"hover": {
|
|
3893
|
+
"backgroundColor": "var(--iox-surface-2)"
|
|
3894
|
+
},
|
|
3895
|
+
"active": {
|
|
3896
|
+
"scaleX": "var(--iox-press-scale)",
|
|
3897
|
+
"scaleY": "var(--iox-press-scale)"
|
|
3898
|
+
},
|
|
3899
|
+
"focus": {
|
|
3900
|
+
"boxShadow": "var(--iox-focus-ring)"
|
|
3901
|
+
}
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"id": "progress-bar",
|
|
3905
|
+
"label": "Progress bar",
|
|
3906
|
+
"group": "Media",
|
|
3907
|
+
"appliesTo": [
|
|
3908
|
+
"Container"
|
|
3909
|
+
],
|
|
3910
|
+
"base": {
|
|
3911
|
+
"backgroundColor": "var(--iox-progress-fill)",
|
|
3912
|
+
"height": "var(--iox-progress-height)"
|
|
3913
|
+
}
|
|
3914
|
+
},
|
|
3817
3915
|
{
|
|
3818
3916
|
"id": "notice-success",
|
|
3819
3917
|
"label": "Success message",
|
|
@@ -6605,6 +6703,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
6605
6703
|
"type": "easing",
|
|
6606
6704
|
"group": "components",
|
|
6607
6705
|
"value": "var(--iox-ease-standard)"
|
|
6706
|
+
},
|
|
6707
|
+
{
|
|
6708
|
+
"name": "marquee-speed",
|
|
6709
|
+
"tier": "component",
|
|
6710
|
+
"type": "number",
|
|
6711
|
+
"group": "components",
|
|
6712
|
+
"value": "40"
|
|
6713
|
+
},
|
|
6714
|
+
{
|
|
6715
|
+
"name": "marquee-gap",
|
|
6716
|
+
"tier": "component",
|
|
6717
|
+
"type": "spacing",
|
|
6718
|
+
"group": "components",
|
|
6719
|
+
"value": "var(--iox-space-gap)"
|
|
6720
|
+
},
|
|
6721
|
+
{
|
|
6722
|
+
"name": "marquee-fade",
|
|
6723
|
+
"tier": "component",
|
|
6724
|
+
"type": "size",
|
|
6725
|
+
"group": "components",
|
|
6726
|
+
"value": "48px"
|
|
6727
|
+
},
|
|
6728
|
+
{
|
|
6729
|
+
"name": "marquee-control-bg",
|
|
6730
|
+
"tier": "component",
|
|
6731
|
+
"type": "color",
|
|
6732
|
+
"group": "components",
|
|
6733
|
+
"value": "var(--iox-surface)"
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
"name": "marquee-control-ink",
|
|
6737
|
+
"tier": "component",
|
|
6738
|
+
"type": "color",
|
|
6739
|
+
"group": "components",
|
|
6740
|
+
"value": "var(--iox-text)"
|
|
6741
|
+
},
|
|
6742
|
+
{
|
|
6743
|
+
"name": "marquee-control-border",
|
|
6744
|
+
"tier": "component",
|
|
6745
|
+
"type": "color",
|
|
6746
|
+
"group": "components",
|
|
6747
|
+
"value": "var(--iox-line-strong)"
|
|
6748
|
+
},
|
|
6749
|
+
{
|
|
6750
|
+
"name": "progress-height",
|
|
6751
|
+
"tier": "component",
|
|
6752
|
+
"type": "size",
|
|
6753
|
+
"group": "components",
|
|
6754
|
+
"value": "3px"
|
|
6755
|
+
},
|
|
6756
|
+
{
|
|
6757
|
+
"name": "progress-fill",
|
|
6758
|
+
"tier": "component",
|
|
6759
|
+
"type": "color",
|
|
6760
|
+
"group": "components",
|
|
6761
|
+
"value": "var(--iox-text)"
|
|
6608
6762
|
}
|
|
6609
6763
|
]
|
|
6610
6764
|
},
|
|
@@ -8706,6 +8860,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
8706
8860
|
"type": "easing",
|
|
8707
8861
|
"group": "components",
|
|
8708
8862
|
"value": "var(--iox-ease-standard)"
|
|
8863
|
+
},
|
|
8864
|
+
{
|
|
8865
|
+
"name": "marquee-speed",
|
|
8866
|
+
"tier": "component",
|
|
8867
|
+
"type": "number",
|
|
8868
|
+
"group": "components",
|
|
8869
|
+
"value": "28"
|
|
8870
|
+
},
|
|
8871
|
+
{
|
|
8872
|
+
"name": "marquee-gap",
|
|
8873
|
+
"tier": "component",
|
|
8874
|
+
"type": "spacing",
|
|
8875
|
+
"group": "components",
|
|
8876
|
+
"value": "var(--iox-space-gap)"
|
|
8877
|
+
},
|
|
8878
|
+
{
|
|
8879
|
+
"name": "marquee-fade",
|
|
8880
|
+
"tier": "component",
|
|
8881
|
+
"type": "size",
|
|
8882
|
+
"group": "components",
|
|
8883
|
+
"value": "48px"
|
|
8884
|
+
},
|
|
8885
|
+
{
|
|
8886
|
+
"name": "marquee-control-bg",
|
|
8887
|
+
"tier": "component",
|
|
8888
|
+
"type": "color",
|
|
8889
|
+
"group": "components",
|
|
8890
|
+
"value": "var(--iox-surface)"
|
|
8891
|
+
},
|
|
8892
|
+
{
|
|
8893
|
+
"name": "marquee-control-ink",
|
|
8894
|
+
"tier": "component",
|
|
8895
|
+
"type": "color",
|
|
8896
|
+
"group": "components",
|
|
8897
|
+
"value": "var(--iox-text)"
|
|
8898
|
+
},
|
|
8899
|
+
{
|
|
8900
|
+
"name": "marquee-control-border",
|
|
8901
|
+
"tier": "component",
|
|
8902
|
+
"type": "color",
|
|
8903
|
+
"group": "components",
|
|
8904
|
+
"value": "var(--iox-line-strong)"
|
|
8905
|
+
},
|
|
8906
|
+
{
|
|
8907
|
+
"name": "progress-height",
|
|
8908
|
+
"tier": "component",
|
|
8909
|
+
"type": "size",
|
|
8910
|
+
"group": "components",
|
|
8911
|
+
"value": "3px"
|
|
8912
|
+
},
|
|
8913
|
+
{
|
|
8914
|
+
"name": "progress-fill",
|
|
8915
|
+
"tier": "component",
|
|
8916
|
+
"type": "color",
|
|
8917
|
+
"group": "components",
|
|
8918
|
+
"value": "var(--iox-text)"
|
|
8709
8919
|
}
|
|
8710
8920
|
]
|
|
8711
8921
|
},
|
|
@@ -10795,6 +11005,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
10795
11005
|
"type": "easing",
|
|
10796
11006
|
"group": "components",
|
|
10797
11007
|
"value": "var(--iox-ease-standard)"
|
|
11008
|
+
},
|
|
11009
|
+
{
|
|
11010
|
+
"name": "marquee-speed",
|
|
11011
|
+
"tier": "component",
|
|
11012
|
+
"type": "number",
|
|
11013
|
+
"group": "components",
|
|
11014
|
+
"value": "40"
|
|
11015
|
+
},
|
|
11016
|
+
{
|
|
11017
|
+
"name": "marquee-gap",
|
|
11018
|
+
"tier": "component",
|
|
11019
|
+
"type": "spacing",
|
|
11020
|
+
"group": "components",
|
|
11021
|
+
"value": "var(--iox-space-gap)"
|
|
11022
|
+
},
|
|
11023
|
+
{
|
|
11024
|
+
"name": "marquee-fade",
|
|
11025
|
+
"tier": "component",
|
|
11026
|
+
"type": "size",
|
|
11027
|
+
"group": "components",
|
|
11028
|
+
"value": "48px"
|
|
11029
|
+
},
|
|
11030
|
+
{
|
|
11031
|
+
"name": "marquee-control-bg",
|
|
11032
|
+
"tier": "component",
|
|
11033
|
+
"type": "color",
|
|
11034
|
+
"group": "components",
|
|
11035
|
+
"value": "var(--iox-surface)"
|
|
11036
|
+
},
|
|
11037
|
+
{
|
|
11038
|
+
"name": "marquee-control-ink",
|
|
11039
|
+
"tier": "component",
|
|
11040
|
+
"type": "color",
|
|
11041
|
+
"group": "components",
|
|
11042
|
+
"value": "var(--iox-text)"
|
|
11043
|
+
},
|
|
11044
|
+
{
|
|
11045
|
+
"name": "marquee-control-border",
|
|
11046
|
+
"tier": "component",
|
|
11047
|
+
"type": "color",
|
|
11048
|
+
"group": "components",
|
|
11049
|
+
"value": "var(--iox-line-strong)"
|
|
11050
|
+
},
|
|
11051
|
+
{
|
|
11052
|
+
"name": "progress-height",
|
|
11053
|
+
"tier": "component",
|
|
11054
|
+
"type": "size",
|
|
11055
|
+
"group": "components",
|
|
11056
|
+
"value": "3px"
|
|
11057
|
+
},
|
|
11058
|
+
{
|
|
11059
|
+
"name": "progress-fill",
|
|
11060
|
+
"tier": "component",
|
|
11061
|
+
"type": "color",
|
|
11062
|
+
"group": "components",
|
|
11063
|
+
"value": "var(--iox-text)"
|
|
10798
11064
|
}
|
|
10799
11065
|
]
|
|
10800
11066
|
},
|
|
@@ -12928,6 +13194,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
12928
13194
|
"type": "easing",
|
|
12929
13195
|
"group": "components",
|
|
12930
13196
|
"value": "var(--iox-ease-standard)"
|
|
13197
|
+
},
|
|
13198
|
+
{
|
|
13199
|
+
"name": "marquee-speed",
|
|
13200
|
+
"tier": "component",
|
|
13201
|
+
"type": "number",
|
|
13202
|
+
"group": "components",
|
|
13203
|
+
"value": "56"
|
|
13204
|
+
},
|
|
13205
|
+
{
|
|
13206
|
+
"name": "marquee-gap",
|
|
13207
|
+
"tier": "component",
|
|
13208
|
+
"type": "spacing",
|
|
13209
|
+
"group": "components",
|
|
13210
|
+
"value": "var(--iox-space-gap)"
|
|
13211
|
+
},
|
|
13212
|
+
{
|
|
13213
|
+
"name": "marquee-fade",
|
|
13214
|
+
"tier": "component",
|
|
13215
|
+
"type": "size",
|
|
13216
|
+
"group": "components",
|
|
13217
|
+
"value": "48px"
|
|
13218
|
+
},
|
|
13219
|
+
{
|
|
13220
|
+
"name": "marquee-control-bg",
|
|
13221
|
+
"tier": "component",
|
|
13222
|
+
"type": "color",
|
|
13223
|
+
"group": "components",
|
|
13224
|
+
"value": "var(--iox-surface)"
|
|
13225
|
+
},
|
|
13226
|
+
{
|
|
13227
|
+
"name": "marquee-control-ink",
|
|
13228
|
+
"tier": "component",
|
|
13229
|
+
"type": "color",
|
|
13230
|
+
"group": "components",
|
|
13231
|
+
"value": "var(--iox-text)"
|
|
13232
|
+
},
|
|
13233
|
+
{
|
|
13234
|
+
"name": "marquee-control-border",
|
|
13235
|
+
"tier": "component",
|
|
13236
|
+
"type": "color",
|
|
13237
|
+
"group": "components",
|
|
13238
|
+
"value": "var(--iox-line-strong)"
|
|
13239
|
+
},
|
|
13240
|
+
{
|
|
13241
|
+
"name": "progress-height",
|
|
13242
|
+
"tier": "component",
|
|
13243
|
+
"type": "size",
|
|
13244
|
+
"group": "components",
|
|
13245
|
+
"value": "3px"
|
|
13246
|
+
},
|
|
13247
|
+
{
|
|
13248
|
+
"name": "progress-fill",
|
|
13249
|
+
"tier": "component",
|
|
13250
|
+
"type": "color",
|
|
13251
|
+
"group": "components",
|
|
13252
|
+
"value": "var(--iox-text)"
|
|
12931
13253
|
}
|
|
12932
13254
|
]
|
|
12933
13255
|
},
|
|
@@ -15023,6 +15345,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
15023
15345
|
"type": "easing",
|
|
15024
15346
|
"group": "components",
|
|
15025
15347
|
"value": "var(--iox-ease-standard)"
|
|
15348
|
+
},
|
|
15349
|
+
{
|
|
15350
|
+
"name": "marquee-speed",
|
|
15351
|
+
"tier": "component",
|
|
15352
|
+
"type": "number",
|
|
15353
|
+
"group": "components",
|
|
15354
|
+
"value": "56"
|
|
15355
|
+
},
|
|
15356
|
+
{
|
|
15357
|
+
"name": "marquee-gap",
|
|
15358
|
+
"tier": "component",
|
|
15359
|
+
"type": "spacing",
|
|
15360
|
+
"group": "components",
|
|
15361
|
+
"value": "var(--iox-space-gap)"
|
|
15362
|
+
},
|
|
15363
|
+
{
|
|
15364
|
+
"name": "marquee-fade",
|
|
15365
|
+
"tier": "component",
|
|
15366
|
+
"type": "size",
|
|
15367
|
+
"group": "components",
|
|
15368
|
+
"value": "48px"
|
|
15369
|
+
},
|
|
15370
|
+
{
|
|
15371
|
+
"name": "marquee-control-bg",
|
|
15372
|
+
"tier": "component",
|
|
15373
|
+
"type": "color",
|
|
15374
|
+
"group": "components",
|
|
15375
|
+
"value": "var(--iox-surface)"
|
|
15376
|
+
},
|
|
15377
|
+
{
|
|
15378
|
+
"name": "marquee-control-ink",
|
|
15379
|
+
"tier": "component",
|
|
15380
|
+
"type": "color",
|
|
15381
|
+
"group": "components",
|
|
15382
|
+
"value": "var(--iox-text)"
|
|
15383
|
+
},
|
|
15384
|
+
{
|
|
15385
|
+
"name": "marquee-control-border",
|
|
15386
|
+
"tier": "component",
|
|
15387
|
+
"type": "color",
|
|
15388
|
+
"group": "components",
|
|
15389
|
+
"value": "var(--iox-line-strong)"
|
|
15390
|
+
},
|
|
15391
|
+
{
|
|
15392
|
+
"name": "progress-height",
|
|
15393
|
+
"tier": "component",
|
|
15394
|
+
"type": "size",
|
|
15395
|
+
"group": "components",
|
|
15396
|
+
"value": "3px"
|
|
15397
|
+
},
|
|
15398
|
+
{
|
|
15399
|
+
"name": "progress-fill",
|
|
15400
|
+
"tier": "component",
|
|
15401
|
+
"type": "color",
|
|
15402
|
+
"group": "components",
|
|
15403
|
+
"value": "var(--iox-text)"
|
|
15026
15404
|
}
|
|
15027
15405
|
]
|
|
15028
15406
|
},
|
|
@@ -17127,6 +17505,62 @@ export const SPEC_FLAVOR_PACKS = [
|
|
|
17127
17505
|
"type": "easing",
|
|
17128
17506
|
"group": "components",
|
|
17129
17507
|
"value": "var(--iox-ease-standard)"
|
|
17508
|
+
},
|
|
17509
|
+
{
|
|
17510
|
+
"name": "marquee-speed",
|
|
17511
|
+
"tier": "component",
|
|
17512
|
+
"type": "number",
|
|
17513
|
+
"group": "components",
|
|
17514
|
+
"value": "52"
|
|
17515
|
+
},
|
|
17516
|
+
{
|
|
17517
|
+
"name": "marquee-gap",
|
|
17518
|
+
"tier": "component",
|
|
17519
|
+
"type": "spacing",
|
|
17520
|
+
"group": "components",
|
|
17521
|
+
"value": "var(--iox-space-gap)"
|
|
17522
|
+
},
|
|
17523
|
+
{
|
|
17524
|
+
"name": "marquee-fade",
|
|
17525
|
+
"tier": "component",
|
|
17526
|
+
"type": "size",
|
|
17527
|
+
"group": "components",
|
|
17528
|
+
"value": "48px"
|
|
17529
|
+
},
|
|
17530
|
+
{
|
|
17531
|
+
"name": "marquee-control-bg",
|
|
17532
|
+
"tier": "component",
|
|
17533
|
+
"type": "color",
|
|
17534
|
+
"group": "components",
|
|
17535
|
+
"value": "var(--iox-surface)"
|
|
17536
|
+
},
|
|
17537
|
+
{
|
|
17538
|
+
"name": "marquee-control-ink",
|
|
17539
|
+
"tier": "component",
|
|
17540
|
+
"type": "color",
|
|
17541
|
+
"group": "components",
|
|
17542
|
+
"value": "var(--iox-text)"
|
|
17543
|
+
},
|
|
17544
|
+
{
|
|
17545
|
+
"name": "marquee-control-border",
|
|
17546
|
+
"tier": "component",
|
|
17547
|
+
"type": "color",
|
|
17548
|
+
"group": "components",
|
|
17549
|
+
"value": "var(--iox-line-strong)"
|
|
17550
|
+
},
|
|
17551
|
+
{
|
|
17552
|
+
"name": "progress-height",
|
|
17553
|
+
"tier": "component",
|
|
17554
|
+
"type": "size",
|
|
17555
|
+
"group": "components",
|
|
17556
|
+
"value": "3px"
|
|
17557
|
+
},
|
|
17558
|
+
{
|
|
17559
|
+
"name": "progress-fill",
|
|
17560
|
+
"tier": "component",
|
|
17561
|
+
"type": "color",
|
|
17562
|
+
"group": "components",
|
|
17563
|
+
"value": "var(--iox-text)"
|
|
17130
17564
|
}
|
|
17131
17565
|
]
|
|
17132
17566
|
}
|
|
@@ -95,12 +95,15 @@ export const AI_STEP_TYPICAL_TOKENS: Readonly<Record<AiStep, AiTokenCounts>> = {
|
|
|
95
95
|
[AiStep.ReadMessage]: { input: 8_800, output: 1_500, cacheWrite: 0, cacheRead: 0 },
|
|
96
96
|
[AiStep.PlanSite]: partsTotal(AiStep.PlanSite),
|
|
97
97
|
[AiStep.ChangePlan]: partsTotal(AiStep.ChangePlan),
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
// A 1 K picture is 1,120 image tokens (Google's figure for Nano Banana 2) — I-D4. In: the prompt, at most 700 tokens
|
|
99
|
+
// (the longest any site asks, its words in Hebrew — pictures.spec holds it). Out: the model's own text and thinking
|
|
100
|
+
// beside the picture — the live run of 2026-11-07 paid $0.0366–$0.0369 a picture at OpenRouter's $1.50 / $7.50 /
|
|
101
|
+
// $30 per million, ≈ 300 tokens of it; 600 are counted so the cost shown stays above what is charged.
|
|
102
|
+
[AiStep.MakePictures]: { input: 700, output: 600, cacheWrite: 0, cacheRead: 0, imageOutput: 1_120 },
|
|
103
|
+
// M7: one picture downscaled to 512 px, the instructions, the slot's whole prompt and the format, and a short
|
|
104
|
+
// structured answer — the live run paid $0.00025–$0.0004 a review on Haiku 5.5 ($0.10 / $0.50): 3,600 in, 300 out
|
|
105
|
+
// keep the estimate above it.
|
|
106
|
+
[AiStep.CheckPictures]: { input: 3_600, output: 300, cacheWrite: 0, cacheRead: 0 },
|
|
104
107
|
[AiStep.NameStructures]: { input: 80_000, output: 10_000, cacheWrite: 0, cacheRead: 0 },
|
|
105
108
|
};
|
|
106
109
|
|
|
@@ -697,7 +697,11 @@ export const NODE_BASELINES: Readonly<Record<string, NodeBaseline>> = {
|
|
|
697
697
|
"orientation",
|
|
698
698
|
"ariaLabel",
|
|
699
699
|
"headerBehaviour",
|
|
700
|
-
"headerEdge"
|
|
700
|
+
"headerEdge",
|
|
701
|
+
"marqueeSpeed",
|
|
702
|
+
"marqueeDirection",
|
|
703
|
+
"marqueeFade",
|
|
704
|
+
"marqueePauseOnHover"
|
|
701
705
|
],
|
|
702
706
|
"styleTraits": [
|
|
703
707
|
"position",
|
|
@@ -261,6 +261,38 @@ export function pictureRerolls(count: number): number {
|
|
|
261
261
|
return count > 0 ? Math.ceil(count / PICTURE_REROLL_EVERY) : 0;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
+
const CREDIT_SLACK = 1e-6;
|
|
265
|
+
|
|
266
|
+
/** Where a run stands when it is about to ask one picture (the try's own estimate is `each`: a picture and its review). */
|
|
267
|
+
export interface PictureTryBudget {
|
|
268
|
+
/** The cost shown — the most the run may spend. */
|
|
269
|
+
shown: number;
|
|
270
|
+
/** One try's estimate: a picture and its review. */
|
|
271
|
+
each: number;
|
|
272
|
+
/** What the run has spent so far (every try, every review). */
|
|
273
|
+
spent: number;
|
|
274
|
+
/** This try is a slot's second (its review said no to the first). */
|
|
275
|
+
secondTry: boolean;
|
|
276
|
+
/** First tries still to come after this slot. */
|
|
277
|
+
waiting: number;
|
|
278
|
+
/** Second tries paid for up front (`pictureRerolls`). */
|
|
279
|
+
rerolls: number;
|
|
280
|
+
/** Second tries already made. */
|
|
281
|
+
rerollsUsed: number;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* May this try be asked? A second try needs one of the second tries paid for up front to be left; and any try must
|
|
286
|
+
* leave, within the cost shown, room for every first try still to come AND every second try still unused — so a
|
|
287
|
+
* made picture never eats the second try the owner paid for (the estimate is above what a try is charged, so every
|
|
288
|
+
* try counted in the cost shown fits).
|
|
289
|
+
*/
|
|
290
|
+
export function pictureTryFits(budget: PictureTryBudget): boolean {
|
|
291
|
+
if (budget.secondTry && budget.rerollsUsed >= budget.rerolls) return false;
|
|
292
|
+
const unusedAfter = Math.max(0, budget.rerolls - budget.rerollsUsed - (budget.secondTry ? 1 : 0));
|
|
293
|
+
return budget.spent + budget.each * (1 + budget.waiting + unusedAfter) <= budget.shown + CREDIT_SLACK;
|
|
294
|
+
}
|
|
295
|
+
|
|
264
296
|
export interface PicturesEstimate {
|
|
265
297
|
count: number;
|
|
266
298
|
/** Second tries included in the total. */
|