@vectoriox/iox-ui 5.99.0 → 5.100.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 (39) hide show
  1. package/actions-core/index.d.ts +7 -4
  2. package/composite-core/index.d.ts +222 -2
  3. package/design-core/index.d.ts +334 -1
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +16 -7
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +948 -256
  7. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +416 -1
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +3 -24
  11. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +23 -13
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-identity-core.mjs +99 -1
  15. package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs +2 -59
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/forms-core/index.d.ts +2 -23
  19. package/generation-core/index.d.ts +3 -1
  20. package/identity-core/index.d.ts +64 -2
  21. package/index.d.ts +0 -1
  22. package/package.json +1 -1
  23. package/src/actions-core/action.model.ts +1 -1
  24. package/src/actions-core/element-actions.ts +16 -6
  25. package/src/composite-core/account-runtime.ts +428 -0
  26. package/src/composite-core/account.ts +281 -0
  27. package/src/composite-core/public-api.ts +2 -0
  28. package/src/composite-core/recipe-parts.ts +48 -0
  29. package/src/composite-core/shop.ts +6 -26
  30. package/src/design-core/field-classes.ts +65 -0
  31. package/src/design-core/flavor-spec.generated.ts +346 -0
  32. package/src/design-core/public-api.ts +1 -0
  33. package/src/forms-core/field-markup.ts +2 -22
  34. package/src/generation-core/compose-site.ts +19 -9
  35. package/src/generation-core/nav-shape.ts +4 -4
  36. package/src/identity-core/public-api.ts +1 -0
  37. package/src/identity-core/site-auth-transport.ts +134 -0
  38. package/src/identity-core/site-auth.ts +10 -0
  39. package/styles/iox-design.css +38 -0
@@ -170,3 +170,13 @@ export function emailCodeExpired(sentAt: number | Date, now: number | Date): boo
170
170
  export function emailCodeTriesLeft(wrongTries: number): number {
171
171
  return Math.max(0, EMAIL_CODE_MAX_TRIES - Math.max(0, Math.floor(wrongTries || 0)));
172
172
  }
173
+
174
+ // ── the fixed account page (C-D3: fixed like checkout, the look's dress) ────────────────────────
175
+
176
+ export const ACCOUNT_PATH = 'account';
177
+
178
+ /** The buyer's account page — their orders: `/<orgLabel>/account` (the engine answers it on every studio). */
179
+ export function accountHref(orgLabel?: string | null): string {
180
+ const label = String(orgLabel ?? '').replace(/^\/+|\/+$/g, '');
181
+ return label ? `/${encodeURIComponent(label)}/${ACCOUNT_PATH}` : `/${ACCOUNT_PATH}`;
182
+ }
@@ -1081,3 +1081,41 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
1081
1081
  }
1082
1082
  dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing], :not([open])) { transition-duration: 150ms; }
1083
1083
  }
1084
+
1085
+ /* ── Commerce E3a: the account parts (commerce board 12, C-D6; composite-core account.ts / account-runtime.ts) ─────── */
1086
+ [data-iox-account-hidden] { display: none !important; }
1087
+
1088
+ /* The entry's two faces share ONE grid cell, so it never changes size as the buyer signs in (Emil: in place); the face
1089
+ that is not the buyer's state is hidden from sight and from assistive technology (the entry carries its own name).
1090
+ A transition of opacity only, so a sign-in mid-swap reverses from where it is and reduced motion needs nothing else. */
1091
+ .iox-role-account-entry > * { transition: opacity var(--iox-dur-fast) var(--iox-ease-standard), visibility var(--iox-dur-fast); }
1092
+ .iox-role-account-entry:not([data-iox-signed-in]) > :has(.iox-role-account-avatar),
1093
+ .iox-role-account-entry[data-iox-signed-in] > :has(.iox-role-account-sign-in-label) { opacity: 0; visibility: hidden; }
1094
+ .iox-role-account-entry[aria-busy='true'] { cursor: progress; }
1095
+ .iox-role-account-avatar { pointer-events: none; }
1096
+ .iox-role-account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1097
+ /* On a phone the entry is its icon or the initial alone — the header keeps it beside the bag (its name stays the
1098
+ entry's aria-label). The canvas sizes by the frame (`@container iox-canvas`). */
1099
+ @media (max-width: 479px) {
1100
+ .iox-role-account-entry :is(.iox-role-account-sign-in-label, .iox-role-account-name) { display: none !important; }
1101
+ }
1102
+ @container iox-canvas (max-width: 479px) {
1103
+ .iox-role-account-entry :is(.iox-role-account-sign-in-label, .iox-role-account-name) { display: none !important; }
1104
+ }
1105
+
1106
+ /* The dialog asks one thing at a time: the email (Google beside it), then the code just sent. */
1107
+ .iox-role-account-sign-in:not([data-iox-sign-in-step='code']) .iox-role-account-code-step { display: none !important; }
1108
+ .iox-role-account-sign-in[data-iox-sign-in-step='code'] :is(.iox-role-account-email-step, .iox-role-account-google,
1109
+ .iox-role-account-or, .iox-role-account-provider-error, .iox-role-account-why) { display: none !important; }
1110
+ .iox-role-account-sign-in[aria-busy='true'] :is(.iox-role-account-google, .iox-role-account-send-code, .iox-role-account-verify,
1111
+ .iox-role-account-send-again)[aria-busy='true'] { cursor: progress; }
1112
+ .iox-role-account-sign-in :is(.iox-role-account-google, .iox-role-account-send-code, .iox-role-account-verify,
1113
+ .iox-role-account-send-again)[aria-disabled='true'] { pointer-events: none; }
1114
+ /* The code reads as a code: digits spaced, the same left-to-right in a Hebrew site. */
1115
+ .iox-role-account-code .iox-field__control { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; direction: ltr; }
1116
+
1117
+ /* The live region the account speaks in ("You are signed in."): read, never seen. */
1118
+ .iox-account-live {
1119
+ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
1120
+ clip-path: inset(50%); white-space: nowrap; border: 0;
1121
+ }