@vectoriox/iox-ui 5.85.0 → 5.86.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/actions-core/index.d.ts +30 -2
  2. package/design-core/index.d.ts +1488 -224
  3. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +136 -70
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +1751 -279
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +27 -4
  8. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +223 -12
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +3 -4
  12. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +1272 -69
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/forms-core/index.d.ts +23 -4
  16. package/generation-core/index.d.ts +5 -1
  17. package/index.d.ts +426 -22
  18. package/package.json +1 -1
  19. package/src/actions-core/action.model.ts +1 -1
  20. package/src/actions-core/dialog-opener.ts +9 -3
  21. package/src/actions-core/element-actions.ts +25 -1
  22. package/src/actions-core/popover-opener.ts +50 -0
  23. package/src/actions-core/public-api.ts +1 -0
  24. package/src/design-core/flavor-spec.generated.ts +1750 -277
  25. package/src/forms-core/submit-lifecycle.ts +30 -3
  26. package/src/generation-core/baseline-roles.ts +1 -0
  27. package/src/generation-core/node-baselines.generated.ts +214 -8
  28. package/src/generation-core/pictures.ts +8 -4
  29. package/src/scene-core/scroll-driver.ts +2 -1
  30. package/styles/iox-design.css +216 -14
  31. package/styles/iox-forms.css +24 -2
@@ -6104,7 +6104,9 @@ const NODE_BASELINES = {
6104
6104
  "pageRoute": "",
6105
6105
  "target": "_self",
6106
6106
  "type": "button",
6107
- "ariaLabel": ""
6107
+ "ariaLabel": "",
6108
+ "tooltip": "",
6109
+ "tooltipPlacement": "above"
6108
6110
  },
6109
6111
  "styleProps": {
6110
6112
  "position": "static",
@@ -6200,7 +6202,9 @@ const NODE_BASELINES = {
6200
6202
  "target",
6201
6203
  "type",
6202
6204
  "__accessibilityLabel",
6203
- "ariaLabel"
6205
+ "ariaLabel",
6206
+ "tooltip",
6207
+ "tooltipPlacement"
6204
6208
  ],
6205
6209
  "styleTraits": [
6206
6210
  "position",
@@ -7281,7 +7285,9 @@ const NODE_BASELINES = {
7281
7285
  "url": "https://",
7282
7286
  "pageRoute": "",
7283
7287
  "target": "_self",
7284
- "ariaLabel": ""
7288
+ "ariaLabel": "",
7289
+ "tooltip": "",
7290
+ "tooltipPlacement": "above"
7285
7291
  },
7286
7292
  "styleProps": {
7287
7293
  "position": "static",
@@ -7376,7 +7382,9 @@ const NODE_BASELINES = {
7376
7382
  "pageRoute",
7377
7383
  "target",
7378
7384
  "__accessibilityLabel",
7379
- "ariaLabel"
7385
+ "ariaLabel",
7386
+ "tooltip",
7387
+ "tooltipPlacement"
7380
7388
  ],
7381
7389
  "styleTraits": [
7382
7390
  "position",
@@ -7481,7 +7489,9 @@ const NODE_BASELINES = {
7481
7489
  "pageRoute": "",
7482
7490
  "target": "_self",
7483
7491
  "colorScheme": "default",
7484
- "ariaLabel": ""
7492
+ "ariaLabel": "",
7493
+ "tooltip": "",
7494
+ "tooltipPlacement": "above"
7485
7495
  },
7486
7496
  "styleProps": {
7487
7497
  "position": "static",
@@ -7576,7 +7586,9 @@ const NODE_BASELINES = {
7576
7586
  "target",
7577
7587
  "colorScheme",
7578
7588
  "__accessibilityLabel",
7579
- "ariaLabel"
7589
+ "ariaLabel",
7590
+ "tooltip",
7591
+ "tooltipPlacement"
7580
7592
  ],
7581
7593
  "styleTraits": [
7582
7594
  "position",
@@ -9547,7 +9559,7 @@ const NODE_BASELINES = {
9547
9559
  "name": "Contact form",
9548
9560
  "formId": "",
9549
9561
  "feedback": "smart",
9550
- "resetAfterSubmit": false,
9562
+ "afterSend": "message",
9551
9563
  "focusFirstProblem": true,
9552
9564
  "announceFailure": true,
9553
9565
  "honeypot": true,
@@ -9643,7 +9655,7 @@ const NODE_BASELINES = {
9643
9655
  "name",
9644
9656
  "formId",
9645
9657
  "feedback",
9646
- "resetAfterSubmit",
9658
+ "afterSend",
9647
9659
  "focusFirstProblem",
9648
9660
  "announceFailure",
9649
9661
  "__spamLabel",
@@ -10933,6 +10945,200 @@ const NODE_BASELINES = {
10933
10945
  ],
10934
10946
  "container": true
10935
10947
  },
10948
+ "Popover": {
10949
+ "props": {
10950
+ "placement": "below",
10951
+ "ariaLabel": "",
10952
+ "colorScheme": "default"
10953
+ },
10954
+ "styleProps": {
10955
+ "position": "static",
10956
+ "top": "auto",
10957
+ "right": "auto",
10958
+ "bottom": "auto",
10959
+ "left": "auto",
10960
+ "zIndex": "0",
10961
+ "display": "block",
10962
+ "flexDirection": "row",
10963
+ "flexWrap": "nowrap",
10964
+ "justifyContent": "flex-start",
10965
+ "alignItems": "stretch",
10966
+ "gap": "0px",
10967
+ "gridTemplateColumns": "1fr",
10968
+ "gridTemplateRows": "auto",
10969
+ "justifyItems": "stretch",
10970
+ "alignContent": "stretch",
10971
+ "alignSelf": "auto",
10972
+ "order": "0",
10973
+ "flexGrow": "0",
10974
+ "flexShrink": "1",
10975
+ "flexBasis": "auto",
10976
+ "justifySelf": "auto",
10977
+ "gridColumn": "auto",
10978
+ "gridRow": "auto",
10979
+ "width": "320px",
10980
+ "height": "auto",
10981
+ "minWidth": "auto",
10982
+ "minHeight": "auto",
10983
+ "maxWidth": "auto",
10984
+ "maxHeight": "auto",
10985
+ "aspectRatio": "auto",
10986
+ "objectFit": "cover",
10987
+ "overflow": "visible",
10988
+ "fontFamily": "Poppins, sans-serif",
10989
+ "fontSize": "16px",
10990
+ "fontWeight": "400",
10991
+ "color": "#000000",
10992
+ "lineHeight": "1.5",
10993
+ "letterSpacing": "0px",
10994
+ "textTransform": "none",
10995
+ "textAlign": "start",
10996
+ "fontStyle": "normal",
10997
+ "textDecoration": "none",
10998
+ "fontVariantNumeric": "normal",
10999
+ "WebkitTextStrokeWidth": "0px",
11000
+ "WebkitTextStrokeColor": "transparent",
11001
+ "margin": "0px 0px 0px 0px",
11002
+ "padding": "16px",
11003
+ "borderWidth": "0px",
11004
+ "borderStyle": "solid",
11005
+ "borderColor": "#CCCCCC",
11006
+ "borderRadius": "12px",
11007
+ "backgroundColor": "#ffffff",
11008
+ "opacity": "1",
11009
+ "mixBlendMode": "normal",
11010
+ "cursor": "auto",
11011
+ "boxShadow": "0 12px 32px rgba(0, 0, 0, 0.18)",
11012
+ "textShadow": "",
11013
+ "translateX": "0px",
11014
+ "translateY": "0px",
11015
+ "scaleX": "1",
11016
+ "scaleY": "1",
11017
+ "rotate": "0deg",
11018
+ "skewX": "0deg",
11019
+ "skewY": "0deg",
11020
+ "transformOrigin": "center",
11021
+ "filterBlur": "0px",
11022
+ "filterHueRotate": "0deg",
11023
+ "filterBrightness": "1",
11024
+ "filterContrast": "1",
11025
+ "filterSaturate": "1",
11026
+ "filterGrayscale": "0",
11027
+ "filterSepia": "0",
11028
+ "filterInvert": "0",
11029
+ "backdropFilter": "none",
11030
+ "backdropBlur": "0px",
11031
+ "backdropBrightness": "1",
11032
+ "backdropContrast": "1",
11033
+ "backdropSaturate": "1",
11034
+ "clipPath": "none",
11035
+ "transitionProperty": "",
11036
+ "transitionDuration": "0ms",
11037
+ "transitionDelay": "0ms",
11038
+ "transitionTimingFunction": "ease"
11039
+ },
11040
+ "traits": [
11041
+ "placement",
11042
+ "__accessibilityLabel",
11043
+ "ariaLabel",
11044
+ "colorScheme"
11045
+ ],
11046
+ "styleTraits": [
11047
+ "position",
11048
+ "top",
11049
+ "right",
11050
+ "bottom",
11051
+ "left",
11052
+ "zIndex",
11053
+ "display",
11054
+ "flexDirection",
11055
+ "flexWrap",
11056
+ "justifyContent",
11057
+ "alignItems",
11058
+ "gap",
11059
+ "gridTemplateColumns",
11060
+ "gridTemplateRows",
11061
+ "justifyItems",
11062
+ "alignContent",
11063
+ "textDirection",
11064
+ "alignSelf",
11065
+ "order",
11066
+ "flexGrow",
11067
+ "flexShrink",
11068
+ "flexBasis",
11069
+ "justifySelf",
11070
+ "gridColumn",
11071
+ "gridRow",
11072
+ "width",
11073
+ "height",
11074
+ "minWidth",
11075
+ "minHeight",
11076
+ "maxWidth",
11077
+ "maxHeight",
11078
+ "aspectRatio",
11079
+ "objectFit",
11080
+ "overflow",
11081
+ "fontFamily",
11082
+ "fontSize",
11083
+ "fontWeight",
11084
+ "color",
11085
+ "lineHeight",
11086
+ "letterSpacing",
11087
+ "textTransform",
11088
+ "textAlign",
11089
+ "fontStyle",
11090
+ "textDecoration",
11091
+ "fontVariantNumeric",
11092
+ "_sep_stroke",
11093
+ "WebkitTextStrokeWidth",
11094
+ "WebkitTextStrokeColor",
11095
+ "margin",
11096
+ "padding",
11097
+ "borderWidth",
11098
+ "borderStyle",
11099
+ "borderColor",
11100
+ "borderRadius",
11101
+ "backgroundColor",
11102
+ "opacity",
11103
+ "mixBlendMode",
11104
+ "cursor",
11105
+ "_sep_shadow",
11106
+ "boxShadow",
11107
+ "textShadow",
11108
+ "_sep_transform",
11109
+ "translateX",
11110
+ "translateY",
11111
+ "scaleX",
11112
+ "scaleY",
11113
+ "rotate",
11114
+ "skewX",
11115
+ "skewY",
11116
+ "transformOrigin",
11117
+ "_sep_filter",
11118
+ "filterBlur",
11119
+ "filterHueRotate",
11120
+ "filterBrightness",
11121
+ "filterContrast",
11122
+ "filterSaturate",
11123
+ "filterGrayscale",
11124
+ "filterSepia",
11125
+ "filterInvert",
11126
+ "_sep_backdrop",
11127
+ "backdropFilter",
11128
+ "backdropBlur",
11129
+ "backdropBrightness",
11130
+ "backdropContrast",
11131
+ "backdropSaturate",
11132
+ "_sep_clip",
11133
+ "clipPath",
11134
+ "_sep_transition",
11135
+ "transitionProperty",
11136
+ "transitionDuration",
11137
+ "transitionDelay",
11138
+ "transitionTimingFunction"
11139
+ ],
11140
+ "container": true
11141
+ },
10936
11142
  "Video": {
10937
11143
  "props": {
10938
11144
  "videoSource": "youtube",
@@ -11227,6 +11433,7 @@ const BASELINE_ROLES = {
11227
11433
  FormSuccess: { width: Behaviour, color: Look, padding: Look, borderRadius: Look, backgroundColor: Look },
11228
11434
  FormError: { width: Behaviour, color: Look, padding: Look, borderRadius: Look, backgroundColor: Look },
11229
11435
  Dialog: { width: Behaviour, padding: Look, borderRadius: Look, backgroundColor: Look, boxShadow: Look },
11436
+ Popover: { width: Behaviour, padding: Look, borderRadius: Look, backgroundColor: Look, boxShadow: Look },
11230
11437
  // CC3: a Video fills its column at 16 / 9 — the shape the poster and the player take.
11231
11438
  Video: { width: Behaviour, aspectRatio: Behaviour },
11232
11439
  };
@@ -17500,13 +17707,17 @@ const SCRIM_LEVELS = [ScrimLevel.Soft, ScrimLevel.Firm, ScrimLevel.Full];
17500
17707
  /** What each level writes on the scrim node (`backgroundColor`, token references only) — `null`: the style's own. */
17501
17708
  const SCRIM_BACKGROUND = {
17502
17709
  [ScrimLevel.Soft]: null,
17503
- [ScrimLevel.Firm]: 'linear-gradient(180deg, transparent 0%, var(--iox-media-scrim) 18%)',
17710
+ [ScrimLevel.Firm]: 'linear-gradient(180deg, color-mix(in srgb, var(--iox-media-scrim) 75%, transparent) 0%, var(--iox-media-scrim) 35%)',
17504
17711
  [ScrimLevel.Full]: 'var(--iox-media-scrim)',
17505
17712
  };
17506
- /** The least share of the scrim's own strength under the first line of words, at each level (the gradient's ramp). */
17713
+ /**
17714
+ * The least share of the scrim's own strength under the FIRST line of words, at each level — read from where the words
17715
+ * start in the box (its top padding) against the gradient's ramp, on a phone (the tallest box): the element style's own
17716
+ * ramp (`transparent 0%` → full at 45%) has only about a quarter of its strength there; Firm starts at three quarters.
17717
+ */
17507
17718
  const SCRIM_COVER = {
17508
- [ScrimLevel.Soft]: 0.5,
17509
- [ScrimLevel.Firm]: 0.85,
17719
+ [ScrimLevel.Soft]: 0.25,
17720
+ [ScrimLevel.Firm]: 0.75,
17510
17721
  [ScrimLevel.Full]: 1,
17511
17722
  };
17512
17723
  /** WCAG AA for body text — the words over a picture include a lead and a button label, never only a headline. */