@vectoriox/iox-ui 5.94.0 → 5.96.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.
Files changed (33) hide show
  1. package/actions-core/index.d.ts +7 -2
  2. package/commerce-core/index.d.ts +312 -2
  3. package/composite-core/index.d.ts +306 -2
  4. package/design-core/index.d.ts +1049 -105
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +15 -4
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +527 -6
  8. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +1193 -177
  10. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs +1147 -43
  12. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +2 -2
  14. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  15. package/fesm2022/vectoriox-iox-ui.mjs +8 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  17. package/generation-core/index.d.ts +2 -2
  18. package/index.d.ts +2 -0
  19. package/package.json +1 -1
  20. package/src/actions-core/action.model.ts +1 -1
  21. package/src/actions-core/element-actions.ts +17 -3
  22. package/src/commerce-core/cart-transport.ts +211 -0
  23. package/src/commerce-core/public-api.ts +4 -0
  24. package/src/commerce-core/quantity.ts +56 -0
  25. package/src/commerce-core/shop-display.ts +117 -0
  26. package/src/commerce-core/variants.ts +296 -0
  27. package/src/composite-core/exclusive-runtime.ts +20 -7
  28. package/src/composite-core/public-api.ts +2 -0
  29. package/src/composite-core/shop-runtime.ts +626 -0
  30. package/src/composite-core/shop.ts +458 -0
  31. package/src/design-core/flavor-spec.generated.ts +1147 -43
  32. package/src/generation-core/site-spec.generated.ts +2 -2
  33. package/styles/iox-design.css +95 -0
@@ -6227,7 +6227,7 @@ export const SPEC_SITE_LAYOUT = {
6227
6227
  {
6228
6228
  "id": "words-lit",
6229
6229
  "label": "words lit one by one",
6230
- "how": "a kinetic word or heading of at most seven words in a held section"
6230
+ "how": "a kinetic word, heading or line of at most seven words in a held section"
6231
6231
  },
6232
6232
  {
6233
6233
  "id": "photo-unveiled",
@@ -6267,7 +6267,7 @@ export const SPEC_SITE_LAYOUT = {
6267
6267
  {
6268
6268
  "id": "held-screen",
6269
6269
  "label": "a held screen",
6270
- "how": "a held section with none of the above (a fallback, never the aim)"
6270
+ "how": "a held section whose layers only fade or push by the scroll — something still moves (a fallback, never the aim)"
6271
6271
  }
6272
6272
  ],
6273
6273
  "daringLevels": [
@@ -983,3 +983,98 @@ html:has(.iox-bar-reserve) .iox-toasts[data-iox-edge='bottom'] { bottom: calc(16
983
983
  [data-iox-marquee] .iox-role-marquee-rail { mask-image: none; }
984
984
  [data-iox-marquee]:not(#canvas-preview *, .global-elements-overlay *) .iox-role-marquee-pause { display: none; }
985
985
  }
986
+
987
+ /* ── Commerce E1c: the shop parts (commerce board 10, C-D16; composite-core shop.ts / shop-runtime.ts) ──────────── */
988
+
989
+ /* A template the product does not use (a word option's swatch template) and a part with no words right now. */
990
+ [data-iox-shop-unused],
991
+ [data-iox-shop-hidden] { display: none !important; }
992
+ /* The earlier price shows only when there is one: `$variant.compareAt | money` reads '' otherwise. */
993
+ .iox-role-shop-price-compare:empty { display: none !important; }
994
+ /* An empty bag: no count on the bag button; the drawer shows its "empty" words and nothing else of the bag. */
995
+ .iox-role-shop-cart-button[data-iox-cart-empty] .iox-role-shop-cart-count { display: none !important; }
996
+ .iox-role-shop-cart-drawer[data-iox-cart-empty] :is(.iox-role-shop-cart-lines, .iox-role-shop-cart-summary, .iox-role-shop-cart-vat-note,
997
+ .iox-role-shop-checkout, .iox-role-shop-cart-shipping-note) { display: none !important; }
998
+ .iox-role-shop-cart-drawer:not([data-iox-cart-empty]) .iox-role-shop-cart-empty { display: none !important; }
999
+ /* The bag button anchors its count to its corner (the count is positioned by its own node). */
1000
+ .iox-role-shop-cart-count { pointer-events: none; }
1001
+ /* The drawer's lines may be many: they scroll, its head and its Check out stay. */
1002
+ .iox-role-shop-cart-lines { overflow-y: auto; min-height: 0; }
1003
+
1004
+ /* Add to cart settles into "Added ✓" IN PLACE (Emil: the result where the press was; both words share one grid cell, so
1005
+ the button never changes width): the words swap by a short rise, on the look's fast timing — a transition, so a
1006
+ second add mid-swap reverses from where it is. Reduced motion: the same swap as a plain fade. */
1007
+ .iox-role-shop-add :is(.iox-role-shop-add-label, .iox-role-shop-added-label) {
1008
+ transition: opacity var(--iox-dur-fast) var(--iox-ease-standard), translate var(--iox-dur-fast) var(--iox-ease-standard);
1009
+ }
1010
+ .iox-role-shop-add .iox-role-shop-added-label { opacity: 0; translate: 0 6px; }
1011
+ .iox-role-shop-add[data-iox-added] .iox-role-shop-add-label { opacity: 0; translate: 0 -6px; }
1012
+ .iox-role-shop-add[data-iox-added] .iox-role-shop-added-label { opacity: 1; translate: 0 0; }
1013
+ .iox-role-shop-add[aria-busy='true'] { cursor: progress; }
1014
+ @media (prefers-reduced-motion: reduce) {
1015
+ .iox-role-shop-add :is(.iox-role-shop-add-label, .iox-role-shop-added-label) { translate: none !important; transition: opacity 150ms ease-out; }
1016
+ }
1017
+
1018
+ /* A long option list (T26) is the platform's field: a native select in the field tokens. */
1019
+ select.iox-shop-select {
1020
+ appearance: auto;
1021
+ min-height: 44px;
1022
+ max-width: 100%;
1023
+ background: var(--iox-field-bg);
1024
+ color: var(--iox-field-ink);
1025
+ border: var(--iox-field-border-width) solid var(--iox-field-border);
1026
+ border-radius: var(--iox-field-radius);
1027
+ padding: var(--iox-field-pad);
1028
+ font: inherit;
1029
+ font-family: var(--iox-font-body);
1030
+ font-size: var(--iox-size-body);
1031
+ }
1032
+ select.iox-shop-select:focus-visible { box-shadow: var(--iox-field-focus); outline: 2px solid transparent; outline-offset: 2px; }
1033
+
1034
+ /* The live region the shop speaks in ("Added ✓", a refusal): read, never seen. */
1035
+ .iox-shop-live {
1036
+ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
1037
+ clip-path: inset(50%); white-space: nowrap; border: 0;
1038
+ }
1039
+
1040
+ /* The CART DRAWER leaves faster than it came (Emil: exits shorter than entrances) — the end-edge drawer's own timing. */
1041
+ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing], :not([open])),
1042
+ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing], :not([open]))::backdrop {
1043
+ transition-duration: var(--iox-dur-fast);
1044
+ }
1045
+ /* On a phone it is a BOTTOM SHEET (board 10): full width, its own height up to most of the screen, the radius on its top
1046
+ edge only, the home indicator's room below its last button; it rises from the bottom edge. */
1047
+ @media (max-width: 479px) {
1048
+ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer[data-iox-dialog-placement] {
1049
+ margin: auto 0 0 0;
1050
+ width: 100%;
1051
+ max-width: 100%;
1052
+ height: auto;
1053
+ max-height: 88dvh;
1054
+ border-radius: var(--iox-dialog-radius) var(--iox-dialog-radius) 0 0;
1055
+ padding-bottom: calc(var(--iox-dialog-pad) + env(safe-area-inset-bottom, 0px));
1056
+ --dialog-exit-x: 0px;
1057
+ --dialog-exit-y: 100%;
1058
+ }
1059
+ }
1060
+ /* The canvas draws the drawer in its twin's stage, sized by the frame (`@container iox-canvas`, never `@media`). */
1061
+ @container iox-canvas (max-width: 479px) {
1062
+ .iox-es.iox-role-shop-cart-drawer .dialog-stage[data-placement] {
1063
+ align-items: end !important; justify-items: stretch !important; padding: 0 !important;
1064
+ }
1065
+ .iox-es.iox-role-shop-cart-drawer .dialog-stage[data-placement] .dialog-surface {
1066
+ width: 100% !important; max-width: 100% !important; height: auto !important; max-height: 88% !important;
1067
+ border-radius: var(--iox-dialog-radius) var(--iox-dialog-radius) 0 0 !important;
1068
+ --dialog-exit-x: 0px; --dialog-exit-y: 100%;
1069
+ }
1070
+ }
1071
+ /* Reduced motion: the drawer FADES (board 10) — gentler, not gone. */
1072
+ @media (prefers-reduced-motion: reduce) {
1073
+ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer[data-iox-dialog-placement] {
1074
+ --dialog-exit-x: 0px;
1075
+ --dialog-exit-y: 0px;
1076
+ --dialog-exit-opacity: 0;
1077
+ transition-duration: 200ms;
1078
+ }
1079
+ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing], :not([open])) { transition-duration: 150ms; }
1080
+ }