@vectoriox/iox-ui 5.198.0 → 5.200.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 (71) hide show
  1. package/actions-core/index.d.ts +7 -1
  2. package/data-core/index.d.ts +11 -3
  3. package/design-core/index.d.ts +479 -52
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +6 -1
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-data-core.mjs +30 -4
  7. package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +704 -55
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +5 -2
  11. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +16659 -15146
  13. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +653 -70
  15. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs +5 -2
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/generation-core/index.d.ts +883 -235
  19. package/harness-core/index.d.ts +372 -9
  20. package/package.json +1 -1
  21. package/src/actions-core/element-actions.ts +6 -0
  22. package/src/data-core/placeholder-rows.ts +29 -4
  23. package/src/design-core/brand-neutrals.ts +125 -3
  24. package/src/design-core/colour-words.ts +48 -0
  25. package/src/design-core/design-settings.ts +24 -5
  26. package/src/design-core/design-token.model.ts +8 -0
  27. package/src/design-core/flavor-fixtures.generated.ts +272 -2
  28. package/src/design-core/flavor-spec.generated.ts +310 -40
  29. package/src/design-core/flavor-tokens.ts +5 -1
  30. package/src/design-core/menu-look.ts +23 -0
  31. package/src/design-core/node-classes.ts +39 -0
  32. package/src/design-core/public-api.ts +2 -0
  33. package/src/design-core/signature-move.ts +107 -0
  34. package/src/design-core/style-presets.ts +9 -3
  35. package/src/design-core/token-css.ts +59 -1
  36. package/src/forms-core/form-presets.ts +5 -2
  37. package/src/generation-core/body-mix.ts +41 -0
  38. package/src/generation-core/check-free.ts +17 -9
  39. package/src/generation-core/check-layout.ts +17 -7
  40. package/src/generation-core/colour-mix.ts +53 -3
  41. package/src/generation-core/compose-free.ts +7 -2
  42. package/src/generation-core/compose-site.ts +298 -78
  43. package/src/generation-core/composition.ts +320 -0
  44. package/src/generation-core/footer-mix.ts +202 -16
  45. package/src/generation-core/footer-sign-up.ts +51 -0
  46. package/src/generation-core/free-opening.ts +13 -2
  47. package/src/generation-core/free-wire.ts +8 -0
  48. package/src/generation-core/header-edit.ts +15 -0
  49. package/src/generation-core/header-mix.ts +31 -2
  50. package/src/generation-core/legal.ts +24 -0
  51. package/src/generation-core/menu-shelves.ts +138 -0
  52. package/src/generation-core/nav-shape.ts +138 -15
  53. package/src/generation-core/node-baselines.generated.ts +1 -0
  54. package/src/generation-core/opening-edit.ts +17 -3
  55. package/src/generation-core/opening-mix.ts +69 -5
  56. package/src/generation-core/patterns.ts +7 -0
  57. package/src/generation-core/plan-wire.ts +23 -5
  58. package/src/generation-core/public-api.ts +3 -0
  59. package/src/generation-core/site-build-run.ts +11 -0
  60. package/src/generation-core/site-plan.model.ts +6 -0
  61. package/src/generation-core/site-spec.generated.ts +472 -166
  62. package/src/generation-core/type-led.ts +4 -2
  63. package/src/generation-core/validate-site-plan.ts +4 -1
  64. package/src/harness-core/business-types.ts +31 -0
  65. package/src/harness-core/harness-spec.generated.ts +564 -56
  66. package/src/harness-core/motion.ts +19 -2
  67. package/src/harness-core/popup-stance.ts +56 -3
  68. package/src/harness-core/run-compose-context.ts +32 -6
  69. package/src/harness-core/starting-design.ts +15 -7
  70. package/styles/iox-design.css +35 -0
  71. package/styles/iox-forms.css +53 -0
@@ -1,6 +1,6 @@
1
- import { DesignMotion, MotionWordTier, motionWordTier, SPEC_AXES, STYLE_PRESETS, StylePreset } from '@vectoriox/iox-ui/design-core';
1
+ import { DesignMotion, MotionWordTier, motionWordTier, SignatureInput, SPEC_AXES, STYLE_PRESETS, StylePreset } from '@vectoriox/iox-ui/design-core';
2
2
 
3
- import { BUSINESS_TYPES, BusinessType } from './business-types';
3
+ import { BUSINESS_TYPES, BusinessType, businessTypeById } from './business-types';
4
4
  import { READ_ANIMATE, StyleRead } from './rank';
5
5
 
6
6
  /**
@@ -108,3 +108,20 @@ export function motionFor(
108
108
  }
109
109
  return { ...out, why, basis };
110
110
  }
111
+
112
+ /**
113
+ * Motion reach (MR-D1): what a kind of business says about its generated site's signature move — its moves (harness
114
+ * SIGNATURE_MOVES), the Still floor, its ceiling and the preloaders its art direction refuses (ART_NEVER) — for design-core
115
+ * `withSignatureMove`. ONE reading for the wizard's start (`presetDesign`) and every compose of a plan
116
+ * (`businessComposeContext`). An unknown type, or one the contract gives no move: no moves (the look stays as it starts).
117
+ */
118
+ export function signatureInputOf(type: Pick<BusinessType, 'ceiling' | 'art' | 'signature'> | string | null | undefined, littleMovement = false): SignatureInput {
119
+ const t = typeof type === 'string' ? businessTypeById(type) : type ?? undefined;
120
+ return {
121
+ moves: t?.signature?.moves ?? [],
122
+ floor: t?.signature?.floor ?? null,
123
+ ceiling: t?.ceiling ?? null,
124
+ preloaderNever: t?.art?.preloader ?? [],
125
+ ...(littleMovement ? { littleMovement } : {}),
126
+ };
127
+ }
@@ -1,3 +1,5 @@
1
+ import { POPUP_BODY_MAX_CHARS } from '@vectoriox/iox-ui/composite-core';
2
+
1
3
  import { BusinessType, businessTypeById } from './business-types';
2
4
  import { SPEC_POPUP_STANCES, SPEC_STATED_FACTS } from './harness-spec.generated';
3
5
  import { keywordsIn } from './intake';
@@ -10,7 +12,10 @@ import { keywordsIn } from './intake';
10
12
  * - the Plan step's two LINES — "Show your news in a popup" exists only when the owner STATED news (`news`, a stated fact:
11
13
  * never inferred, never a placeholder) and the stance is offer, and starts ticked; "Invite visitors to your newsletter
12
14
  * in a popup" is offered when the site has a newsletter form and the stance is not never, and is never ticked by itself.
13
- * A generated site gets a popup only from one of these two lines. Pure: no transport, no clock.
15
+ * - the Plan step's QUESTION (popup-ask, PA-D1…PA-D4) — "Any news or an offer to announce?" — asked whenever the stance is
16
+ * not never; it starts with the stated news when the news line would show. The owner's answer IS stated news (their
17
+ * own words are its value and its quote); an empty answer is no news, also over news the prompt stated.
18
+ * A generated site gets a popup only from one of these lines. Pure: no transport, no clock.
14
19
  */
15
20
 
16
21
  /** How a popup is suggested. */
@@ -89,8 +94,17 @@ export interface PopupLine {
89
94
  readonly ticked: boolean;
90
95
  }
91
96
 
97
+ /** The Plan step's question (popup-ask, PA-D1): "Any news or an offer to announce?" — optional, the owner's own words. */
98
+ export interface PopupAsk {
99
+ readonly shown: boolean;
100
+ /** What the answer starts as: the stated news when its line would show (offer stance), else empty. */
101
+ readonly starting: string;
102
+ }
103
+
92
104
  export interface PopupSuggestion {
93
105
  readonly stance: PopupStance;
106
+ /** "Any news or an offer to announce?" — asked whenever the stance is not never (PA-D2). */
107
+ readonly ask: PopupAsk;
94
108
  /** "Show your news in a popup — '<news>'". */
95
109
  readonly news: PopupLine;
96
110
  /** "Invite visitors to your newsletter in a popup" — never ticked by itself. */
@@ -100,12 +114,51 @@ export interface PopupSuggestion {
100
114
 
101
115
  const HIDDEN: PopupLine = { shown: false, ticked: false };
102
116
 
103
- /** The Plan step's popup lines for a site (PU-D12). */
117
+ /** The longest answer a popup holds (composite-core `POPUP_BODY_MAX_CHARS`): the Plan step's field stops there, and a
118
+ * longer one makes no popup (`checkPopup` refuses it, said) — the owner's words are never cut. */
119
+ export const POPUP_NEWS_MAX_CHARS = POPUP_BODY_MAX_CHARS;
120
+
121
+ /** A stated fact as the popup reads it: the value and the owner's words it came from. */
122
+ export interface PopupNews {
123
+ readonly value: string;
124
+ readonly quote: string;
125
+ }
126
+
127
+ /** The Plan step's popup lines and question for a site (PU-D12, PA-D1). */
104
128
  export function popupSuggestion(input: PopupSuggestionInput): PopupSuggestion {
105
129
  const words = popupWordsIn(input.prompt);
106
130
  const stance = popupStanceFor(businessTypeById(input.businessType), words);
107
131
  const stated = !!(input.news?.value?.trim() && input.news?.quote?.trim());
108
132
  const news: PopupLine = stated && stance === PopupStance.Offer ? { shown: true, ticked: true } : HIDDEN;
109
133
  const newsletter: PopupLine = input.newsletterForm && stance !== PopupStance.Never ? { shown: true, ticked: false } : HIDDEN;
110
- return { stance, news, newsletter, words };
134
+ const ask: PopupAsk = { shown: stance !== PopupStance.Never, starting: news.shown ? newsFromAnswer(input.news!.value)!.value : '' };
135
+ return { stance, ask, news, newsletter, words };
136
+ }
137
+
138
+ /** The owner's answer to "Any news or an offer to announce?" as stated news (PA-D3): their own words are its value AND
139
+ * its quote — so every figure in it is the owner's (`checkPopup`'s figure check holds by construction). White space is
140
+ * folded to single spaces (a line break in a one-line field); nothing else changes and nothing is cut. Null: no answer. */
141
+ export function newsFromAnswer(answer: string | null | undefined): PopupNews | null {
142
+ const value = typeof answer === 'string' ? answer.replace(/\s+/g, ' ').trim() : '';
143
+ return value ? { value, quote: value } : null;
144
+ }
145
+
146
+ /** What the owner left on the Plan step (or what "Build with these" starts with): the news line's tick, and the question's
147
+ * answer when they were asked — `undefined` = never asked, `''` = asked and left empty. */
148
+ export interface PopupNewsChoice {
149
+ readonly news?: boolean;
150
+ readonly answer?: string | null;
151
+ }
152
+
153
+ /**
154
+ * The news a build's popup is stamped from (PU-D11 / PU-D12 / PA-D3) — the ONE rule, judged by the same `popupSuggestion`
155
+ * the Plan step draws: an ANSWER counts when the question was shown (the stance is not never) and is the news, an empty
156
+ * one meaning none — also over news the prompt stated; without an answer, the reading's stated news counts when its line
157
+ * showed and is ticked. Null: no news popup. Never invented — every word is the owner's.
158
+ */
159
+ export function popupNewsOf(input: PopupSuggestionInput, choice: PopupNewsChoice | null | undefined): PopupNews | null {
160
+ const lines = popupSuggestion(input);
161
+ if (typeof choice?.answer === 'string') return lines.ask.shown ? newsFromAnswer(choice.answer) : null;
162
+ if (!choice?.news || !lines.news.shown || !input.news) return null;
163
+ return { value: input.news.value.trim(), quote: input.news.quote };
111
164
  }
@@ -1,7 +1,7 @@
1
- import { BuildComposeDecisions, ComposeContext, composeContextOf, GenerationTier, PictureSupply } from '@vectoriox/iox-ui/generation-core';
1
+ import { BuildComposeDecisions, ComposeContext, composeContextOf, GenerationTier, PictureSupply, PicturesRefused } from '@vectoriox/iox-ui/generation-core';
2
2
 
3
- import { businessTypeById } from './business-types';
4
- import { isCalmBusinessType } from './motion';
3
+ import { BusinessType, businessTypeById } from './business-types';
4
+ import { isCalmBusinessType, signatureInputOf } from './motion';
5
5
 
6
6
  /**
7
7
  * What a site build's run holds that its compose context reads — the server's run and the builder's copy of it
@@ -20,10 +20,16 @@ export interface ComposeRun {
20
20
  * - `footerNever` — what that kind of business's footer never wears (AW12-D10, harness FOOTER_NEVER), mended and said by
21
21
  * `checkFooter` (`type-never`);
22
22
  * - `headerNever` — what that kind of business's header never stands on (HI3-D12, harness HEADER_NEVER), mended to its
23
- * own ground and said by `checkHeader` (`type-never`).
23
+ * own ground and said by `checkHeader` (`type-never`);
24
+ * - `opening` — pictures first: the Home opening the kind of business takes when its plan names none (harness
25
+ * OPENING_PICTURE), given only when a picture can come (`pictureCanCome`).
26
+ * - `signature` — motion reach (MR-D1): the moves its site signs with (harness SIGNATURE_MOVES), the Still floor, its
27
+ * ceiling and the preloaders it refuses — design-core `withSignatureMove` signs the look (none under little movement).
24
28
  * An unknown or absent type gives nothing: the composer's defaults hold. (`calm` stays `composeContextOf`'s own argument.)
25
29
  */
26
- export function businessComposeContext(typeId: string | null | undefined): Pick<ComposeContext, 'businessType' | 'footerNever' | 'headerNever'> {
30
+ export function businessComposeContext(
31
+ typeId: string | null | undefined, decisions?: Pick<BuildComposeDecisions, 'picturesRefused' | 'ownPhotos' | 'layoutPhotos' | 'littleMovement'> | null,
32
+ ): Pick<ComposeContext, 'businessType' | 'footerNever' | 'headerNever' | 'opening' | 'signature' | 'footerSignUp'> {
27
33
  const type = typeId ? businessTypeById(typeId) : undefined;
28
34
  if (!type) return {};
29
35
  const never = type.footer;
@@ -32,9 +38,29 @@ export function businessComposeContext(typeId: string | null | undefined): Pick<
32
38
  return {
33
39
  businessType: type.id, ...(refuses ? { footerNever: never } : {}),
34
40
  ...(header && header.grounds.length > 0 ? { headerNever: header } : {}),
41
+ ...(type.opening?.length && pictureCanCome(type, decisions) ? { opening: [...type.opening] } : {}),
42
+ // Motion reach (MR-D1): the signature move its site signs with (none under little movement).
43
+ ...(type.signature?.moves.length ? { signature: signatureInputOf(type, !!decisions?.littleMovement) } : {}),
44
+ // AW12 newsletter: its references close with a sign-up (the composer still asks for a reason to write).
45
+ ...(type.signUp ? { footerSignUp: true } : {}),
35
46
  };
36
47
  }
37
48
 
49
+ /** The layout photo ids that are the owner's own (`own:<asset>`). */
50
+ const OWN_PHOTO = /^own:/;
51
+
52
+ /**
53
+ * Pictures first: can a picture come for the Home's opening? Never when the owner ruled pictures out; the owner's own photo
54
+ * always can; else stock, where the kind of business lets stock stand in (`BusinessType.stock` — never the work itself) and
55
+ * the owner did not refuse stock. Pure.
56
+ */
57
+ export function pictureCanCome(type: Pick<BusinessType, 'stock'>, decisions?: Pick<BuildComposeDecisions, 'picturesRefused' | 'ownPhotos' | 'layoutPhotos'> | null): boolean {
58
+ const refused = decisions?.picturesRefused;
59
+ if (refused === PicturesRefused.All) return false;
60
+ const own = (decisions?.ownPhotos?.length ?? 0) > 0 || Object.keys(decisions?.layoutPhotos ?? {}).some(id => OWN_PHOTO.test(id));
61
+ return own || (type.stock && refused !== PicturesRefused.Stock);
62
+ }
63
+
38
64
  /**
39
65
  * THE compose context of a build run (moved from iox-cms `site-builds.service`, iox-cms-client#111): its year, its
40
66
  * layouts' photos, its tier, the legal context its preflight read (AW1), whether its business is calm (AW6 — the body
@@ -47,7 +73,7 @@ export function runComposeContext(run: ComposeRun): ComposeContext {
47
73
  const decisions = run.decisions ?? undefined;
48
74
  const context: ComposeContext = {
49
75
  ...composeContextOf(run.year, decisions?.layoutPhotos, run.tier ?? undefined, decisions?.legal ?? null, isCalmBusinessType(decisions?.businessType)),
50
- ...businessComposeContext(decisions?.businessType),
76
+ ...businessComposeContext(decisions?.businessType, decisions),
51
77
  // HI3-D5: the preflight judged the words at rest once, on the pixels it held; every step composes with that answer.
52
78
  ...(typeof decisions?.headerReadable === 'boolean' ? { headerReadable: decisions.headerReadable } : {}),
53
79
  };
@@ -1,6 +1,7 @@
1
- import { DesignChoices, presetChoices, PRELOADER_LEVELS, SCRUB_LEVELS } from '@vectoriox/iox-ui/design-core';
1
+ import { DesignChoices, presetChoices, PRELOADER_LEVELS, SCRUB_LEVELS, withSignatureMove } from '@vectoriox/iox-ui/design-core';
2
2
 
3
- import { motionFor, MotionInput } from './motion';
3
+ import { businessTypeById } from './business-types';
4
+ import { motionFor, MotionInput, signatureInputOf } from './motion';
4
5
  import { PresetFit, RankedPreset, RankInput, rankWithReferences, StyleRead } from './rank';
5
6
  import { referenceSeed } from './reference-colour';
6
7
 
@@ -16,8 +17,10 @@ import { referenceSeed } from './reference-colour';
16
17
  * A preset for this business: its choices, Motion from the business (`motionFor`), the references' colour as its seed
17
18
  * when that colour passes AA in every mode the preset offers (`referenceSeed` — judged as used), and what the owner
18
19
  * already set kept. The ONE rule for a Look pick and for Build with these. The style's first-visit preloader (AW5) is kept
19
- * only while the start is Lively or Expressive (PL-D6) — a calm business (its ceiling below Standard) or "little
20
- * movement" never opens with one. Its By the scroll (AW10) likewise, only on a Lively or Expressive start (AW10-D7).
20
+ * on a start that moves (MR-D2 — `PRELOADER_LEVELS`) unless the kind of business's art direction refuses it (ART_NEVER: a
21
+ * calm business never opens with one) or the owner asked for little movement (PL-D6); its By the scroll (AW10) on a start
22
+ * that moves (MR-D3 — `SCRUB_LEVELS`), never under little movement. Then the kind of business signs it (MR-D1,
23
+ * `withSignatureMove`) — the same rule every compose of the plan applies — and what the owner set is kept over all of it.
21
24
  */
22
25
  export function presetDesign(
23
26
  presetId: string,
@@ -31,9 +34,14 @@ export function presetDesign(
31
34
  const start = motionFor(motionInput, presetId, read);
32
35
  const seed = referenceSeed(read, presetId);
33
36
  const { preloader, scrub, ...rest } = base;
34
- const opens = preloader && PRELOADER_LEVELS.includes(start.animate) ? { preloader } : {};
35
- const scrubs = scrub && SCRUB_LEVELS.includes(start.animate) ? { scrub } : {};
36
- return { ...rest, ...opens, ...scrubs, ...(seed?.used ? { seed: seed.seed } : {}), scroll: start.scroll, animate: start.animate, between: start.between, ...kept };
37
+ const little = start.basis.littleMovement;
38
+ const refused = businessTypeById(motionInput.businessType)?.art?.preloader ?? [];
39
+ const opens = preloader && !little && !refused.includes(preloader) && PRELOADER_LEVELS.includes(start.animate) ? { preloader } : {};
40
+ const scrubs = scrub && !little && SCRUB_LEVELS.includes(start.animate) ? { scrub } : {};
41
+ const started: DesignChoices = { ...rest, ...opens, ...scrubs, ...(seed?.used ? { seed: seed.seed } : {}), scroll: start.scroll, animate: start.animate, between: start.between };
42
+ // The owner's own choices are signed WITH the start (a move they turned off, `none` / `never`, stays off — D12) and
43
+ // kept over it (their How animated is never lifted).
44
+ return { ...withSignatureMove({ ...started, ...kept }, signatureInputOf(motionInput.businessType, little)).design, ...kept };
37
45
  }
38
46
 
39
47
  export interface StartingDesign {
@@ -128,6 +128,16 @@ iox-gallery.iox-es-media[data-iox-empty] > .iox-gallery {
128
128
  z-index: 1;
129
129
  }
130
130
 
131
+ /* A row's card with no picture (vectoriox/iox-ui#191, the #129 rule decided per item): a card repeated from content keeps
132
+ its picture part, bound, and draws without it wherever its OWN item has none — so the owner's product photos, saved after
133
+ the build, show the moment the page renders, and an item with none is the type-led card, never an empty box. A row is
134
+ whatever carries `data-iox-row-idx` (a Repeater's or a bound Slider's, in the builder and both engine paths); the empty
135
+ picture is the marked Image's `data-iox-empty` (DS3). Only the FIRST image counts: a swap's second picture may be
136
+ missing while the first shows. A card that is not a row keeps its empty box — the author fills it. */
137
+ [data-iox-row-idx] .iox-role-card-media:has(> img[data-iox-empty]:first-child) {
138
+ display: none;
139
+ }
140
+
131
141
  /* LI1 (list-ingredients-plan.md): a card's Quote is someone's words — in the page language's own marks (`quotes`
132
142
  follows `lang`: “…” in English, „…“ in German), never marks typed into the words a list field holds. */
133
143
  .iox-role-card-quote::before { content: open-quote; }
@@ -535,6 +545,7 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
535
545
  .iox-role-nav-links,
536
546
  .iox-role-nav-pinned,
537
547
  .iox-role-nav-actions,
548
+ .iox-role-nav-drawer-more-links,
538
549
  .iox-role-nav-drawer-links,
539
550
  .iox-role-footer-links {
540
551
  --iox-link-weight: var(--iox-weight-body);
@@ -749,6 +760,30 @@ dialog[data-iox-dialog].iox-es[data-iox-menu='full'] {
749
760
  .dialog-surface[data-iox-menu='mega'] .iox-role-nav-drawer-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; }
750
761
  }
751
762
 
763
+ /* SHELVES (HI2, header-builder board v2 "menu contents"). A menu that shows its page names LARGE (`big`, and the first
764
+ names of a `words-card`) sets them in the look's display link (`link-display`: its face, weight, leading and tracking)
765
+ at the size of the menu they stand in — board v2's 34px in a drawer, 40–44px in a card, a top panel, a mega panel or
766
+ the full screen: the look's h2 and h1 (fluid). The size is the menu's, so no Link holds a literal; the names arrive
767
+ WITH the menu (D1 — one entrance per container, Emil 64/65/110), so nothing here moves. A card, a panel and a mega
768
+ panel are the drawer on a phone (R-H10), so their h1 waits for the width that shows them; the live page sizes by the
769
+ window, the canvas by its frame (never @media). */
770
+ :is(dialog, .dialog-surface):is([data-iox-menu-shows='big'], [data-iox-menu-shows='words-card']) .iox-role-nav-drawer-links .iox-role-nav-drawer-link {
771
+ font-size: var(--iox-size-h2);
772
+ }
773
+ :is(dialog, .dialog-surface):is([data-iox-menu-shows='big'], [data-iox-menu-shows='words-card'])[data-iox-menu='full'] .iox-role-nav-drawer-links .iox-role-nav-drawer-link {
774
+ font-size: var(--iox-size-h1);
775
+ }
776
+ @media (min-width: 768px) {
777
+ body:not(.builder-active) dialog:is([data-iox-menu-shows='big'], [data-iox-menu-shows='words-card']):is([data-iox-menu='panel'], [data-iox-menu='card'], [data-iox-menu='mega']) .iox-role-nav-drawer-links .iox-role-nav-drawer-link {
778
+ font-size: var(--iox-size-h1);
779
+ }
780
+ }
781
+ @container iox-canvas (min-width: 768px) {
782
+ .dialog-surface:is([data-iox-menu-shows='big'], [data-iox-menu-shows='words-card']):is([data-iox-menu='panel'], [data-iox-menu='card'], [data-iox-menu='mega']) .iox-role-nav-drawer-links .iox-role-nav-drawer-link {
783
+ font-size: var(--iox-size-h1);
784
+ }
785
+ }
786
+
752
787
  /* REVEALS. Fade: in place. Zoom: from 0.88 at the opener. Circle: clip-path circle() from the opener. Torn: our own ragged
753
788
  edge (HB-D7 — a 48-point polygon, never another site's asset) grown from the opener, the menu a twin 6% larger in the
754
789
  look's menu-edge while it moves: the sheet's own ground is its ::before, cut by the smaller edge. (Slide is the form's own:
@@ -69,6 +69,59 @@
69
69
  .iox-field__error { margin: 4px 0 0; }
70
70
  .iox-submit { font: inherit; border: none; cursor: pointer; }
71
71
 
72
+ /* ── The sign-up row (AW12 follow-up): a newsletter form — the forms-core `newsletter` preset, whose form id both stampers
73
+ write as `newsletter-<…>` (the composer's `stampPresetForm`, the tray's `buildFormPreset`) — lays its email box and its
74
+ button side by side on a laptop, the way 8pm / Vonder / Atticus Finch sign up. The preset puts the consent tick FIRST,
75
+ so every part is drawn in the DOM's order and the keyboard meets them as the eye does (WCAG 2.4.3): the tick, then the
76
+ row, then the legal line and the answer blocks. Nothing here sets `order`.
77
+ It STACKS on a phone, and in any column narrower than about 28ch: the email box and the button share the "albatross"
78
+ basis `(28ch - 100%) * 999` — negative (so 0, and they share the row) when the form is wider than 28ch, enormous (so
79
+ each takes a whole row) when it is narrower. No query on the form's own width is needed, so the footer column, the
80
+ popup and the builder's frame all get it from the one rule. Only an email box straight before the button makes the
81
+ row — a form saved in another order simply stacks.
82
+ The row is aligned to its TOP and the button drops by the email label's line (the label's size × 1.5, the line height
83
+ the label is given here), so its top meets the email box's and an error under the box never moves it.
84
+ The drop is the same albatross in reverse: the full line on the row, 0 when stacked; a hidden label drops nothing. A
85
+ Field wearing the look reads its label size from the spec (`field-label-size`, under the `.iox-es-field` marker); a
86
+ legacy Field's label inherits the form's size, as the button does (`1.5em`) — no unmarked rule reads a token (D5).
87
+ Flex follows the writing direction, so a Hebrew form mirrors with no rule of its own. Out-specifies `.iox-node-{id}`
88
+ (0,2,0 vs 0,1,0) — the row is the preset's, its gap stays the node's own. */
89
+ .iox-form[data-iox-form^="newsletter-"] {
90
+ flex-flow: row wrap;
91
+ align-items: flex-start;
92
+ }
93
+ .iox-form[data-iox-form^="newsletter-"] > * {
94
+ flex: 1 1 100%;
95
+ min-inline-size: 0;
96
+ }
97
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(+ .iox-submit) {
98
+ flex: 1 1 calc((28ch - 100%) * 999);
99
+ }
100
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) > .iox-field__label {
101
+ line-height: 1.5;
102
+ }
103
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) + .iox-submit {
104
+ flex: 0 1 calc((28ch - 100%) * 999);
105
+ min-inline-size: auto;
106
+ white-space: nowrap;
107
+ margin-block-start: clamp(0px, (100% - 28ch) * 999, 1.5em);
108
+ }
109
+ .iox-form[data-iox-form^="newsletter-"] > .iox-es-field:has(input[type="email"]) + .iox-submit {
110
+ margin-block-start: clamp(0px, (100% - 28ch) * 999, var(--iox-field-label-size) * 1.5);
111
+ }
112
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(> .iox-field__label--hidden) + .iox-submit {
113
+ margin-block-start: 0;
114
+ }
115
+ /* On a phone, every part is a row of its own (the engine by the screen, the builder's frame by the canvas). */
116
+ @media (max-width: 767px) {
117
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(+ .iox-submit),
118
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) + .iox-submit { flex: 1 1 100%; margin-block-start: 0; }
119
+ }
120
+ @container iox-canvas (max-width: 767px) {
121
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(+ .iox-submit),
122
+ .iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) + .iox-submit { flex: 1 1 100%; margin-block-start: 0; }
123
+ }
124
+
72
125
  /* ── Choices (premium N1): a fieldset whose legend is the label; chips or the look's radio / checkbox rows ── */
73
126
  .iox-field__choices { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
74
127
  .iox-field__choices > legend { padding: 0; }