@vectoriox/iox-ui 5.40.0 → 5.41.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 (32) hide show
  1. package/composite-core/index.d.ts +212 -12
  2. package/design-core/index.d.ts +694 -17
  3. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +4 -3
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +540 -124
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-design-core.mjs +843 -45
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +846 -17
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui.mjs +3945 -3914
  12. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  13. package/generation-core/index.d.ts +608 -4
  14. package/index.d.ts +22 -1
  15. package/package.json +1 -1
  16. package/src/actions-core/element-actions.ts +4 -3
  17. package/src/composite-core/accordion.ts +1 -0
  18. package/src/composite-core/card.ts +6 -4
  19. package/src/composite-core/composite-kinds.ts +42 -6
  20. package/src/composite-core/exclusive-runtime.ts +60 -10
  21. package/src/composite-core/exclusive.ts +64 -0
  22. package/src/composite-core/public-api.ts +5 -2
  23. package/src/composite-core/segmented.ts +351 -0
  24. package/src/composite-core/structure.ts +6 -1
  25. package/src/composite-core/tabs.ts +6 -3
  26. package/src/design-core/contrast-audit.ts +8 -3
  27. package/src/design-core/flavor-spec.generated.ts +832 -41
  28. package/src/generation-core/compose-site.ts +170 -12
  29. package/src/generation-core/node-baselines.generated.ts +49 -0
  30. package/src/generation-core/patterns.ts +21 -0
  31. package/src/generation-core/site-spec.generated.ts +639 -0
  32. package/styles/iox-design.css +19 -0
@@ -254,6 +254,25 @@ dialog[data-iox-dialog]:not([open]) {
254
254
  /* A panel is a Tab stop of its own (APG): its focus ring is the look's. */
255
255
  .iox-role-tabs-panel:focus-visible { outline: none; box-shadow: var(--iox-focus-ring); }
256
256
 
257
+ /* ── CC4b: the Segmented control (complex-components board 10; composite T32) ──────────────────────────
258
+ The renderers write ONE markup (composite-core segmented.ts): the root is role=radiogroup, each option a <button
259
+ role=radio aria-checked>. Structural only — the look is the parts' element styles (segmented, segmented-option). */
260
+
261
+ /* An option is a real button: its UA look is reset at zero specificity, so the node's own rule (the style) wins. Its
262
+ words keep to one line (board 10: a 5th option does not fit a phone row — the Options list refuses it). */
263
+ :where(.iox-role-segmented-option) {
264
+ appearance: none; -webkit-appearance: none; background: none; border: 0 solid transparent; margin: 0;
265
+ font: inherit; color: inherit; cursor: pointer; box-sizing: border-box; white-space: nowrap;
266
+ }
267
+ :where(.iox-role-segmented-option):focus-visible { outline: none; }
268
+ /* Q39 (WCAG 2.4.11): on a phone the pricing pattern keeps the control sticky at the top of its section; a focused card
269
+ must never scroll in under it. */
270
+ @media (max-width: 767px) {
271
+ html:has(.iox-role-segmented) {
272
+ scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 28px + var(--iox-segmented-option-min-height, 44px) + 2 * var(--iox-segmented-pad, 4px));
273
+ }
274
+ }
275
+
257
276
  /* ── CC3: Video (complex-components plan §7b, board 5) ────────────────────────────────────────────────
258
277
  One markup from media-core `videoInnerHtml` (both engine paths, the canvas). The frame is the node (it wears
259
278
  `media`: radius, fit); the poster, the play button, the provider badge and the consent prompt are drawn by the