@boost33/ui 0.6.0 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -309,6 +309,85 @@ most consumers meet first.
309
309
  still gains no `aria-haspopup`, and it still opens nothing. Connecting the two is
310
310
  Stage B.
311
311
 
312
+ ## 0.7.0 — not yet published
313
+
314
+ **The redrawn marks' baselines were approved by Jamal on 29 October 2026**
315
+ (`tests/baselines/README.md`, "The 29 October redraw"), so nothing holds this
316
+ release on that account. Date the heading when it is published.
317
+
318
+ **Not breaking. Nothing to do on upgrade, and every product mark looks
319
+ different.** A minor: no export, prop or type changes. `ProductMark` draws new
320
+ artwork for the four slugs it drew before, draws a mark for six slugs it drew as
321
+ a bare tile before, and `hasProductMark` answers `true` for those six.
322
+
323
+ ### Changed — every product mark carries one orange accent, and all ten products have one (B33-1670)
324
+
325
+ **What you will see.** Every `ProductMark`, in the switcher and wherever else you
326
+ render one, is a new drawing: the near-black tile, a white glyph and **one
327
+ orange accent** (`--color-primary`) on one element of it. This reverses the
328
+ 9 September 2026 rule that product marks carry no orange at all (Jamal,
329
+ 29 October 2026, B33-1669). Products are still told apart by shape: the accent
330
+ is the same orange in every mark.
331
+
332
+ | Slug | Mark | Before |
333
+ | --- | --- | --- |
334
+ | `wallet` | a wallet, an orange clasp | a card with a stripe |
335
+ | `boostscore` | a target, an orange bull's-eye | a gauge |
336
+ | `boostvoice` | the Content pencil, an orange line under it | a soundwave |
337
+ | `boostoutbound` | a paper plane, its near wing orange | an arrow leaving top-right |
338
+ | `brokers` | two people, the one behind in orange | bare tile |
339
+ | `boosttrade` | a key, its bow orange | bare tile |
340
+ | `boostfunding` | a banknote and coin, an orange note behind | bare tile |
341
+ | `boostresults` | a pulse running into an orange dot | bare tile |
342
+ | `passport` | a passport, an orange globe | bare tile |
343
+ | `pipe` | a pipeline in three stages, the last orange | bare tile |
344
+
345
+ The glyphs are lifted verbatim from `boostledger` at `ad4146f`, the merge that
346
+ redrew them there, so the Wallet and this package draw the same marks.
347
+ `boostvoice` keeps its slug and draws the Content pencil, because the product is
348
+ being renamed Boost Content; the display name moves on Identity's side
349
+ (B33-1672), and nothing changes for you here when it does.
350
+
351
+ **A muted mark spends no orange.** `muted` (the switcher's unowned and unbuilt
352
+ rows) still greys the tile to `--color-neutral-300`, and now also turns the
353
+ accent white. Outbound gains a fold line between its wings and Passport's globe
354
+ turns grey with white lines, so both stay readable without the accent. Every ink
355
+ on a muted tile is still white, so ADR-0012's contrast reasoning, and its rule
356
+ against combining `muted` with `title`, is unchanged.
357
+
358
+ **A mark's orange is not your screen's orange moment.** The one-orange-moment
359
+ rule (`--color-primary`: the primary action or the threshold marker, never both)
360
+ is about emphasis. A product mark's accent is identity, as the Boost33
361
+ monogram's orange is, and does not count against it (Jamal, 29 October 2026;
362
+ ADR-0015). A switcher showing ten marks does not stop a screen having its primary
363
+ button.
364
+
365
+ **Passport drops two lines below 24px.** At the 20px default its globe's
366
+ meridian and equator would fill the globe in, so they are drawn from 24px up.
367
+ If you render Passport at 24px or larger you get them.
368
+
369
+ **`hasProductMark` answers `true` for all ten slugs Identity serves.** If a test
370
+ of yours asserted `hasProductMark('brokers') === false`, or that a Brokers row
371
+ draws a bare tile, it now fails, correctly. Nothing else in your code needs to
372
+ change: a slug you do not recognise still draws the bare tile, as ADR-0003
373
+ requires.
374
+
375
+ #### Not in `dist/`
376
+
377
+ The specimen's ProductMark route (ten marks per row, a stand-in slug for the
378
+ bare tile, Passport added to the sizes row), a new specimen route
379
+ `AppSwitcherRegistrySpecimen` showing the switcher with all ten products,
380
+ `tests/product-mark.test.tsx`'s new palette, muted and Passport cases and its
381
+ re-pinned Identity transcription (ten slugs, re-read 29 October 2026),
382
+ `tests/app-switcher.test.tsx`'s registry cases, ADR-0015, a note on ADR-0012, and
383
+ `tests/baselines/README.md`'s record of the redraw. **Thirteen baselines changed,
384
+ approved by Jamal**: seven replaced (`productmark-wallet`, `-boostscore`,
385
+ `-boostvoice`, `-boostoutbound`, `appswitcher-closed`, `-open`, `-rail`) and six
386
+ added (`productmark-brokers`, `-boosttrade`, `-boostfunding`, `-boostresults`,
387
+ `-passport`, `-pipe`), which joined `STATES` and the border census. Note for
388
+ anyone relying on the diff: a 20px mark is too small a share of its crop to reach
389
+ the 5% threshold, so the diff would pass a full redraw of any one mark.
390
+
312
391
  ## 0.6.0 — 2026-10-26
313
392
 
314
393
  **Not breaking. Nothing to do on upgrade unless you adopt the new component.**
@@ -6,95 +6,76 @@
6
6
  *
7
7
  * **Module-internal since B33-1269, and it has to stay that way.** `src/index.ts`
8
8
  * publishes `hasProductMark` below and neither this list nor `ProductSlug`. A
9
- * `const` assertion over four strings made an artwork inventory part of the
9
+ * `const` assertion over these strings made an artwork inventory part of the
10
10
  * published type contract: a consumer could write `Record<ProductSlug, ...>` or
11
- * switch exhaustively over it, and then artwork landing for a fifth product --
11
+ * switch exhaustively over it, and then artwork landing for another product --
12
12
  * the thing this package exists to ship -- would be a breaking change for them.
13
13
  * Nothing published is typed `ProductSlug` anyway; every slug prop is `string` on
14
14
  * purpose, so Identity's registry may run ahead of a mark release (ADR-0003, and
15
15
  * `slug` below). So the union's only real job was answering "which slugs have
16
16
  * artwork", and `hasProductMark` answers that without freezing the list.
17
+ * B33-1670 widening this from four slugs to ten is the proof: it adds drawings
18
+ * and flips six `hasProductMark` answers to true, and breaks nothing a consumer
19
+ * could have typed.
17
20
  *
18
21
  * The tests and the specimen read both names by deep import, which is how
19
22
  * everything in this repo reaches into `src/`. A consumer cannot: `package.json`
20
23
  * exports `.`, `./style.css` and `./theme.css`, and nothing else.
21
24
  *
22
- * **It is no longer the whole of Identity's registry, and the difference is
23
- * deliberate.** Identity serves five slugs: these four plus `brokers` (B33-1158,
24
- * "Boost Brokers"). This package has no `brokers` glyph, so that row draws the
25
- * bare tile through the safe degrade below -- see "The fifth slug" underneath.
26
- *
27
- * **Transcribed from `boost33-identity/src/lib/productRegistry.ts`** -- its
28
- * `REGISTRY_SLUGS`, which is `PRODUCTS` from `src/config/products.ts` plus
29
- * `WALLET_SLUG`. That file is the source of truth and this is a copy of it in
30
- * another repository, which is a thing that drifts. It already did: until
31
- * B33-1043 this list read `wallet | score | voice | outbound` while this comment
32
- * asserted it was Identity's, so three of the four rows of a switcher fed
33
- * straight from `GET /api/v1/products` drew the bare tile (see `slug` below) and
34
- * nothing anywhere failed.
25
+ * **It is the whole of Identity's registry: all ten slugs, every one with a
26
+ * mark.** Transcribed from `boost33-identity/src/lib/productRegistry.ts` -- its
27
+ * `REGISTRY_SLUGS`, which is `PRODUCTS` from `src/config/products.ts`
28
+ * (boostscore, boostvoice, boostoutbound, brokers, boosttrade, boostfunding)
29
+ * plus `RESULTS_SLUG`, `PASSPORT_SLUG`, `PIPE_SLUG` and `WALLET_SLUG`. That file
30
+ * is the source of truth and this is a copy of it in another repository, which
31
+ * is a thing that drifts. It already did: until B33-1043 this list read
32
+ * `wallet | score | voice | outbound` while its comment asserted it was
33
+ * Identity's, so three of the four rows of a switcher fed straight from
34
+ * `GET /api/v1/products` drew the bare tile (see `slug` below) and nothing
35
+ * anywhere failed.
35
36
  *
36
37
  * Identity is not the side that renames. ADR-0003 records the shorter slugs as
37
38
  * considered and rejected: these match the `?app=` keys live campaign URLs
38
39
  * already carry, so renaming them means those links grant nothing on sign-up.
40
+ * The same holds for `boostvoice`, whose mark is already the Content pencil:
41
+ * the product is being renamed Boost Content, and the display name moves on
42
+ * Identity's side (B33-1672) while the slug stays.
39
43
  *
40
44
  * `tests/product-mark.test.tsx` pins this list against a second transcription of
41
45
  * the same source, so the two repositories cannot part company in silence again.
42
- * That pin is what the old comment's assertion was standing in for, and it now
43
- * pins the gap as well as the overlap: it names `brokers` as the one served slug
44
- * with no glyph here, so a *sixth* product, or artwork landing for this one,
45
- * fails rather than passing quietly.
46
+ * The pin also keeps a list of served slugs this package deliberately draws
47
+ * nothing for. That list is empty since B33-1670, and it stays in the test so an
48
+ * eleventh product Identity serves before its mark lands is a recorded decision
49
+ * rather than a quiet pass.
46
50
  *
47
51
  * The *order* is this package's own and not Identity's -- `REGISTRY_SLUGS` ends
48
- * with `wallet` where this begins with it. Nothing reads a render order off this
49
- * list: a switcher draws the order its consumer was served (`AppSwitcher`), and
50
- * the only thing this order sets is the left-to-right run of frames in the
51
- * ProductMark specimen.
52
- *
53
- * ── The fifth slug ───────────────────────────────────────────────────────────
54
- *
55
- * **`brokers` is absent because no Brokers artwork exists to lift, not because
56
- * nobody got to it.** The four glyphs below were taken verbatim out of
57
- * `boostledger/src/ui/primitives/icons.tsx`, whose own `GLYPHS` is typed
58
- * `Record<ProductName, ReactNode>` over exactly four display names. There is no
59
- * Brokers mark in that file, none in `boost33-brand-hub`, and none in this
60
- * repository. The hub renders the product as a text quick-link and no mark at
61
- * all.
62
- *
63
- * So drawing one here would not be transcribing a mark, it would be inventing
64
- * one -- and the comment on GLYPHS below records what that costs: PR #4 redrew
65
- * all four from a written description, got all four wrong, and reintroduced the
66
- * retired one-orange-element construction. An invented fifth mark is worse than
67
- * that was, because it has nothing to be caught against. A human captures the
68
- * first baseline at the fidelity gate, which would make the invention the
69
- * referent, and it looks equally settled either way afterwards (CLAUDE.md, "an
70
- * agent that picks one and builds it has invented a referent").
71
- *
72
- * The degrade is also the mildest it will ever be. Identity serves `brokers` as
73
- * `live: false` -- the space is still being built -- so the switcher row carries
74
- * the "Soon" tag beside the bare tile, which reads as a product that has not
75
- * arrived rather than as a drawing that failed to load. That stops being true
76
- * the day Brokers ships.
77
- *
78
- * **To close it:** get the mark drawn where the other four live
79
- * (`boostledger/src/ui/primitives/icons.tsx`), lift it here verbatim, add
80
- * `brokers` to this list, and let a human approve `productmark-brokers.png` at a
81
- * gate. Not in that order optional: this list is what GLYPHS is typed against,
82
- * so adding the slug without the artwork stops the build, which is the one part
83
- * of this that cannot go wrong quietly.
84
- *
85
- * **And since B33-1269 that is an ordinary addition rather than a breaking
86
- * change.** This list is not published, so widening it widens nothing a consumer
87
- * has typed against: a fifth entry adds a drawing where there was a bare tile and
88
- * flips `hasProductMark('brokers')` from false to true. Until then it was a
89
- * major-bump-shaped change to ship a picture, which is the wrong price for the
90
- * thing this package is for.
52
+ * with `wallet` where this begins with it, then follows Identity's order for the
53
+ * other nine. Nothing reads a render order off this list: a switcher draws the
54
+ * order its consumer was served (`AppSwitcher`), and the only thing this order
55
+ * sets is the left-to-right run of frames in the ProductMark specimen, where the
56
+ * four slugs that have carried a mark since 0.1 keep the first four places.
57
+ *
58
+ * ── Brokers, and the six that arrived with it ────────────────────────────────
59
+ *
60
+ * From 0.4.0 to 0.6.0 Identity served `brokers` and this package drew it as the
61
+ * bare tile, deliberately: no Brokers artwork existed in any repository to lift,
62
+ * and drawing one here would have been inventing a referent rather than
63
+ * transcribing a mark (PR #4 redrew the first four from a written description
64
+ * and got all four wrong). Identity then grew `boosttrade`, `boostfunding`,
65
+ * `boostresults`, `passport` and `pipe`, all served with no mark here either.
66
+ *
67
+ * B33-1669 closed it the way the old comment said it had to be closed: the
68
+ * marks were drawn where the others live (`boostledger/src/ui/primitives/icons.tsx`),
69
+ * for all ten products at once, and B33-1670 lifted them here verbatim. The
70
+ * part a commit cannot do is still outstanding when this lands -- a human
71
+ * approves `productmark-<slug>.png` for each of the ten at the fidelity gate
72
+ * (tests/baselines/README.md).
91
73
  */
92
- export declare const PRODUCT_SLUGS: readonly ["wallet", "boostscore", "boostvoice", "boostoutbound"];
74
+ export declare const PRODUCT_SLUGS: readonly ["wallet", "boostscore", "boostvoice", "boostoutbound", "brokers", "boosttrade", "boostfunding", "boostresults", "passport", "pipe"];
93
75
  /**
94
- * One of the slugs this package draws a mark for. Not every slug Identity serves
95
- * -- see above -- and not published either, for the reason recorded there. What
96
- * this type is for is typing GLYPHS, so the list and the artwork cannot part
97
- * company.
76
+ * One of the slugs this package draws a mark for. Not published, for the reason
77
+ * recorded above. What this type is for is typing GLYPHS, so the list and the
78
+ * artwork cannot part company.
98
79
  */
99
80
  export type ProductSlug = (typeof PRODUCT_SLUGS)[number];
100
81
  /**
@@ -104,9 +85,9 @@ export type ProductSlug = (typeof PRODUCT_SLUGS)[number];
104
85
  * **Ask this rather than matching a slug against a union of known slugs.** The
105
86
  * set of slugs with artwork is this package's inventory, not a vocabulary:
106
87
  * Identity owns which products exist (ADR-0003) and this list grows whenever a
107
- * drawing lands. `brokers` is the one slug Identity serves today that there is no
108
- * glyph here for -- see "The fifth slug" above. A caller that pattern-matches a
109
- * union is pinned to whichever inventory it compiled against; a caller that asks
88
+ * drawing lands. Since B33-1670 every slug Identity serves has a mark, and the
89
+ * next product Identity adds will be served before its mark ships here. A
90
+ * caller that pattern-matches a union is pinned to whichever inventory it compiled against; a caller that asks
110
91
  * this gets the installed version's answer, and keeps working when the next mark
111
92
  * ships.
112
93
  *
@@ -135,9 +116,15 @@ export interface ProductMarkProps {
135
116
  size?: number;
136
117
  /**
137
118
  * Dims the tile for a product the account is not entitled to -- the switcher's
138
- * unowned rows need it. It swaps the **ground only**, to --color-neutral-300;
139
- * the glyph stays white. Fading the glyph too would cost the shape the one
140
- * thing telling the four marks apart, and it is a prop rather than a wrapper
119
+ * unowned and unbuilt rows need it. The tile ground greys to
120
+ * --color-neutral-300, and the cut-outs painted in the tile colour grey with
121
+ * it. The glyph stays white, and **the orange accent turns white too** (Jamal,
122
+ * 29 Oct 2026, B33-1669): a product the account does not own spends no
123
+ * orange. Two marks take the drawing from Paper's "Option: no orange" row to
124
+ * stay legible without the accent -- Outbound gains a fold line in the tile
125
+ * colour between its two wings, and Passport's globe flips to the tile colour
126
+ * with white lines. Fading the glyph instead would cost the shape the one
127
+ * thing telling the marks apart, and it is a prop rather than a wrapper
141
128
  * `opacity-40 grayscale` filter because that lands on a mid-grey visibly
142
129
  * darker than the grey Paper draws.
143
130
  *
@@ -151,6 +138,8 @@ export interface ProductMarkProps {
151
138
  * of those and makes the ratio bite. That combination is out of contract; no
152
139
  * call site in this package uses it. See ADR-0012, which also records why the
153
140
  * ground is not darkened and what to reach for if this is ever revisited.
141
+ * Since the accent turned white on a muted tile, every ink on that tile is the
142
+ * same white ADR-0012 measured, so its 1.41:1 is still the only ratio there is.
154
143
  */
155
144
  muted?: boolean;
156
145
  /**
@@ -170,8 +159,9 @@ export interface ProductMarkProps {
170
159
  }
171
160
  /**
172
161
  * The tile-and-glyph mark for one Boost33 product -- a rounded --color-neutral-950
173
- * square with the product's glyph in --color-primary-foreground. The four marks
174
- * share one palette and are told apart by shape alone; there is zero brand
175
- * orange in any of them.
162
+ * square with the product's glyph in --color-primary-foreground and one accent
163
+ * in --color-primary. The ten marks share one palette and are told apart by
164
+ * shape; the accent is the same orange in every one of them, so it identifies
165
+ * nothing.
176
166
  */
177
167
  export declare function ProductMark({ slug, size, muted, title, className }: ProductMarkProps): import("react").JSX.Element;
@@ -1,77 +1,231 @@
1
- import { jsxs as t, jsx as r, Fragment as n } from "react/jsx-runtime";
2
- import { useId as k } from "react";
3
- import i from "./ProductMark.module.css.js";
4
- const x = 20, f = ["wallet", "boostscore", "boostvoice", "boostoutbound"], y = {
5
- // A credit card with its magnetic stripe: an outline card (fill none, so the
6
- // tile shows through) plus a filled stripe across it.
7
- wallet: /* @__PURE__ */ t(n, { children: [
8
- /* @__PURE__ */ r("rect", { x: "5", y: "10", width: "30", height: "20", rx: "4", fill: "none", stroke: "currentColor", strokeWidth: "3" }),
9
- /* @__PURE__ */ r("rect", { x: "5", y: "16", width: "30", height: "5", fill: "currentColor" })
10
- ] }),
11
- // A gauge with the needle swung high: an arc, the needle, and the hub it
12
- // pivots on. Arc and needle stroke at width 4 with round caps.
13
- boostscore: /* @__PURE__ */ t(n, { children: [
14
- /* @__PURE__ */ r("path", { d: "M6 26 A14 14 0 0 1 34 26", fill: "none", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round" }),
15
- /* @__PURE__ */ r("line", { x1: "20", y1: "26", x2: "28", y2: "14", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round" }),
16
- /* @__PURE__ */ r("circle", { cx: "20", cy: "26", r: "3", fill: "currentColor" })
17
- ] }),
18
- // A soundwave, tall in the middle: three pill bars, all centred on y=20.
19
- boostvoice: /* @__PURE__ */ t(n, { children: [
20
- /* @__PURE__ */ r("rect", { x: "6", y: "14", width: "7", height: "12", rx: "3.5", fill: "currentColor" }),
21
- /* @__PURE__ */ r("rect", { x: "16.5", y: "4", width: "7", height: "32", rx: "3.5", fill: "currentColor" }),
22
- /* @__PURE__ */ r("rect", { x: "27", y: "14", width: "7", height: "12", rx: "3.5", fill: "currentColor" })
23
- ] }),
24
- // An arrow leaving through the top-right: the shaft and the elbow of its head,
25
- // both stroke width 4 with round caps and joins.
26
- boostoutbound: /* @__PURE__ */ t(n, { children: [
27
- /* @__PURE__ */ r("line", { x1: "8", y1: "32", x2: "32", y2: "8", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" }),
28
- /* @__PURE__ */ r("path", { d: "M16 8 H32 V24", fill: "none", stroke: "currentColor", strokeWidth: "4", strokeLinecap: "round", strokeLinejoin: "round" })
29
- ] })
1
+ import { jsxs as l, jsx as r, Fragment as e } from "react/jsx-runtime";
2
+ import { useId as L } from "react";
3
+ import a from "./ProductMark.module.css.js";
4
+ const w = 20, g = [
5
+ "wallet",
6
+ "boostscore",
7
+ "boostvoice",
8
+ "boostoutbound",
9
+ "brokers",
10
+ "boosttrade",
11
+ "boostfunding",
12
+ "boostresults",
13
+ "passport",
14
+ "pipe"
15
+ ], o = "var(--color-primary-foreground)", b = "var(--color-primary)", M = "var(--color-neutral-950)", m = "var(--color-neutral-300)", d = 40, v = 0.62, W = 24, E = {
16
+ // wallet (upstream "Wallet"). A wallet with a card tucked behind its flap and
17
+ // an orange clasp.
18
+ wallet: {
19
+ optical: 0.94,
20
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
21
+ /* @__PURE__ */ r(
22
+ "path",
23
+ {
24
+ d: "M5 7 L15.4 3.1 A1.2 1.2 0 0 1 17 4 L17.6 7 Z",
25
+ fill: o,
26
+ stroke: o,
27
+ strokeWidth: "1",
28
+ strokeLinejoin: "round"
29
+ }
30
+ ),
31
+ /* @__PURE__ */ r("rect", { x: "2.5", y: "6.5", width: "19", height: "15", rx: "3", fill: o }),
32
+ /* @__PURE__ */ r("rect", { x: "14.5", y: "10.75", width: "9", height: "6.5", rx: "2.5", fill: t }),
33
+ /* @__PURE__ */ r("circle", { cx: "17.75", cy: "14", r: "1.5", fill: i })
34
+ ] })
35
+ },
36
+ // boostscore (upstream "Boost Score"). A target: a white ring around an orange
37
+ // bull's-eye.
38
+ boostscore: {
39
+ optical: 1,
40
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
41
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "10", fill: o }),
42
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "7", fill: t }),
43
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "12", r: "4", fill: i })
44
+ ] })
45
+ },
46
+ // boostvoice (upstream "Boost Voice"). The CONTENT pencil: the product is being
47
+ // renamed Boost Content and the mark is already drawn for the new name. The
48
+ // slug stays `boostvoice`; the display rename is Identity's (B33-1672).
49
+ boostvoice: {
50
+ optical: 1,
51
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
52
+ /* @__PURE__ */ r(
53
+ "path",
54
+ {
55
+ d: "M15.8 3.6 A2 2 0 0 1 18.6 3.6 L20.4 5.4 A2 2 0 0 1 20.4 8.2 L9 19.6 L4 20.5 L4.4 15 Z",
56
+ fill: o,
57
+ stroke: o,
58
+ strokeWidth: "1",
59
+ strokeLinejoin: "round"
60
+ }
61
+ ),
62
+ /* @__PURE__ */ r("path", { d: "M13.4 6 L18 10.6", stroke: t, strokeWidth: "1.6", strokeLinecap: "round" }),
63
+ /* @__PURE__ */ r("rect", { x: "13", y: "18.25", width: "8.5", height: "2.75", rx: "1.375", fill: i })
64
+ ] })
65
+ },
66
+ // boostoutbound (upstream "Boost Outbound"). A paper plane, its near wing orange.
67
+ boostoutbound: {
68
+ optical: 1,
69
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
70
+ /* @__PURE__ */ r(
71
+ "path",
72
+ {
73
+ d: "M21 3 L3 10.4 L10.2 13.8 Z",
74
+ fill: o,
75
+ stroke: o,
76
+ strokeWidth: "1.5",
77
+ strokeLinejoin: "round"
78
+ }
79
+ ),
80
+ /* @__PURE__ */ r(
81
+ "path",
82
+ {
83
+ d: "M21 3 L10.2 13.8 L13.6 21 Z",
84
+ fill: i,
85
+ stroke: i,
86
+ strokeWidth: "1.5",
87
+ strokeLinejoin: "round"
88
+ }
89
+ ),
90
+ i === o && /* @__PURE__ */ r("path", { d: "M20 4 L10.2 13.8", stroke: t, strokeWidth: "1.4", strokeLinecap: "round" })
91
+ ] })
92
+ },
93
+ // brokers (upstream "Boost Brokers"). Two people, the one behind in orange; a
94
+ // tile-coloured outline separates the white figure in front from it.
95
+ brokers: {
96
+ optical: 1,
97
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
98
+ /* @__PURE__ */ r("circle", { cx: "16.5", cy: "7.5", r: "3.25", fill: i }),
99
+ /* @__PURE__ */ r("path", { d: "M11 20 A5.5 5.5 0 0 1 22 20 Z", fill: i }),
100
+ /* @__PURE__ */ r("circle", { cx: "9", cy: "7.5", r: "3.75", fill: o, stroke: t, strokeWidth: "1.5" }),
101
+ /* @__PURE__ */ r(
102
+ "path",
103
+ {
104
+ d: "M2 20.5 A7 7 0 0 1 16 20.5 Z",
105
+ fill: o,
106
+ stroke: t,
107
+ strokeWidth: "1.5",
108
+ strokeLinejoin: "round"
109
+ }
110
+ )
111
+ ] })
112
+ },
113
+ // boosttrade (upstream "Boost Off Market"). A key -- something not on the open
114
+ // market -- with an orange bow.
115
+ boosttrade: {
116
+ optical: 1,
117
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
118
+ /* @__PURE__ */ r("rect", { x: "11", y: "10.6", width: "11", height: "2.8", rx: "1.4", fill: o }),
119
+ /* @__PURE__ */ r("rect", { x: "15.6", y: "11", width: "2.8", height: "5", rx: "1.2", fill: o }),
120
+ /* @__PURE__ */ r("rect", { x: "19.2", y: "11", width: "2.8", height: "3.8", rx: "1.2", fill: o }),
121
+ /* @__PURE__ */ r("circle", { cx: "7.5", cy: "12", r: "5.5", fill: o }),
122
+ /* @__PURE__ */ r("circle", { cx: "7.5", cy: "12", r: "2.6", fill: t }),
123
+ /* @__PURE__ */ r("circle", { cx: "7.5", cy: "12", r: "1.6", fill: i })
124
+ ] })
125
+ },
126
+ // boostfunding (upstream "Boost Financing"). A banknote with its coin, an
127
+ // orange note stacked behind it.
128
+ boostfunding: {
129
+ optical: 1,
130
+ draw: ({ tile: t, accent: i }) => /* @__PURE__ */ l(e, { children: [
131
+ /* @__PURE__ */ r("rect", { x: "4.75", y: "4.5", width: "17", height: "11", rx: "2.5", fill: i }),
132
+ /* @__PURE__ */ r("rect", { x: "1", y: "8.25", width: "18.75", height: "12.5", rx: "3.25", fill: t }),
133
+ /* @__PURE__ */ r("rect", { x: "2.25", y: "9.5", width: "16.25", height: "10", rx: "2", fill: o }),
134
+ /* @__PURE__ */ r("circle", { cx: "10.375", cy: "14.5", r: "2.75", fill: t })
135
+ ] })
136
+ },
137
+ // boostresults (upstream "Boost Activity"). A pulse line running into an
138
+ // orange dot -- activity, now.
139
+ boostresults: {
140
+ optical: 1,
141
+ draw: ({ accent: t }) => /* @__PURE__ */ l(e, { children: [
142
+ /* @__PURE__ */ r(
143
+ "path",
144
+ {
145
+ d: "M2.5 12.5 H6 L9 5 L14 19 L16.6 12.5 H17",
146
+ fill: "none",
147
+ stroke: o,
148
+ strokeWidth: "2.5",
149
+ strokeLinecap: "round",
150
+ strokeLinejoin: "round"
151
+ }
152
+ ),
153
+ /* @__PURE__ */ r("circle", { cx: "20", cy: "12.5", r: "2.5", fill: t })
154
+ ] })
155
+ },
156
+ // passport (upstream "Boost Passport"). A passport booklet with an orange globe
157
+ // and a name bar. The globe's meridian and equator are dropped below 24px (see
158
+ // the constant above).
159
+ passport: {
160
+ optical: 0.94,
161
+ draw: ({ tile: t, accent: i, size: c }) => /* @__PURE__ */ l(e, { children: [
162
+ /* @__PURE__ */ r("rect", { x: "4.5", y: "2", width: "15", height: "20", rx: "2.5", fill: o }),
163
+ /* @__PURE__ */ r("circle", { cx: "12", cy: "10", r: "5.75", fill: i === o ? t : i }),
164
+ c >= W && /* @__PURE__ */ l(e, { children: [
165
+ /* @__PURE__ */ r(
166
+ "ellipse",
167
+ {
168
+ cx: "12",
169
+ cy: "10",
170
+ rx: "2.5",
171
+ ry: "5.1",
172
+ fill: "none",
173
+ stroke: i === o ? o : t,
174
+ strokeWidth: "1.3"
175
+ }
176
+ ),
177
+ /* @__PURE__ */ r("path", { d: "M6.25 10 H17.75", stroke: i === o ? o : t, strokeWidth: "1.3" })
178
+ ] }),
179
+ /* @__PURE__ */ r("rect", { x: "8.5", y: "17.75", width: "7", height: "1.8", rx: "0.9", fill: t })
180
+ ] })
181
+ },
182
+ // pipe (upstream "Boost Pipe"). A pipeline narrowing in three stages, the last
183
+ // -- the deal -- orange.
184
+ pipe: {
185
+ optical: 0.96,
186
+ draw: ({ accent: t }) => /* @__PURE__ */ l(e, { children: [
187
+ /* @__PURE__ */ r("rect", { x: "2.5", y: "4", width: "19", height: "4", rx: "2", fill: o }),
188
+ /* @__PURE__ */ r("rect", { x: "6", y: "10", width: "12", height: "4", rx: "2", fill: o }),
189
+ /* @__PURE__ */ r("rect", { x: "9.5", y: "16", width: "5", height: "4", rx: "2", fill: t })
190
+ ] })
191
+ }
30
192
  };
31
- function h(o) {
32
- return f.includes(o);
193
+ function k(t) {
194
+ return g.includes(t);
33
195
  }
34
- function v(o) {
35
- return h(o);
196
+ function _(t) {
197
+ return k(t);
36
198
  }
37
- function C({ slug: o, size: l = x, muted: a, title: c, className: d }) {
38
- const s = k(), e = c == null, u = h(o) ? y[o] : null;
39
- return /* @__PURE__ */ t(
199
+ function j({ slug: t, size: i = w, muted: c, title: n, className: f }) {
200
+ const x = L(), s = n == null, h = k(t) ? E[t] : null, p = c ? m : M, y = c ? o : b;
201
+ return /* @__PURE__ */ l(
40
202
  "svg",
41
203
  {
42
- className: d != null ? `${i.mark} ${d}` : i.mark,
43
- width: l,
44
- height: l,
45
- viewBox: "0 0 40 40",
46
- role: e ? void 0 : "img",
47
- "aria-hidden": e ? "true" : void 0,
48
- "aria-labelledby": e ? void 0 : s,
204
+ className: f != null ? `${a.mark} ${f}` : a.mark,
205
+ width: i,
206
+ height: i,
207
+ viewBox: `0 0 ${d} ${d}`,
208
+ role: s ? void 0 : "img",
209
+ "aria-hidden": s ? "true" : void 0,
210
+ "aria-labelledby": s ? void 0 : x,
49
211
  children: [
50
- !e && /* @__PURE__ */ r("title", { id: s, children: c }),
51
- /* @__PURE__ */ r(
52
- "rect",
53
- {
54
- className: i.ground,
55
- width: "40",
56
- height: "40",
57
- style: { fill: a ? "var(--color-neutral-300)" : "var(--color-neutral-950)" }
58
- }
59
- ),
60
- u && /* @__PURE__ */ r(
61
- "g",
62
- {
63
- transform: "translate(10 10) scale(0.5)",
64
- style: { color: "var(--color-primary-foreground)" },
65
- children: u
66
- }
67
- )
212
+ !s && /* @__PURE__ */ r("title", { id: x, children: n }),
213
+ /* @__PURE__ */ r("rect", { className: a.ground, width: d, height: d, style: { fill: p } }),
214
+ h && /* @__PURE__ */ r("g", { transform: I(h.optical), children: h.draw({ tile: p, accent: y, size: i }) })
68
215
  ]
69
216
  }
70
217
  );
71
218
  }
219
+ function I(t) {
220
+ const i = d * v * t, c = u((d - i) / 2), n = u(i / 24);
221
+ return `translate(${c} ${c}) scale(${n})`;
222
+ }
223
+ function u(t) {
224
+ return Math.round(t * 1e4) / 1e4;
225
+ }
72
226
  export {
73
- f as PRODUCT_SLUGS,
74
- C as ProductMark,
75
- v as hasProductMark
227
+ g as PRODUCT_SLUGS,
228
+ j as ProductMark,
229
+ _ as hasProductMark
76
230
  };
77
231
  //# sourceMappingURL=ProductMark.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProductMark.js","sources":["../../../src/components/ProductMark/ProductMark.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react'\nimport styles from './ProductMark.module.css'\n\n/**\n * The size the mark renders at unless a caller says otherwise. 20px is the\n * Wallet's own default at its call sites, and the size the four\n * tests/baselines/productmark-*.png were captured at: a 20px tile in the 24px\n * gutter the specimen crop uses either side -> 68px CSS -> 136 device px at\n * deviceScaleFactor 2. Changing it moves four apps.\n *\n * There is deliberately no minimum-legible floor here, unlike Boost33Mark. That\n * floor is the monogram's alone -- the bowls of the B close up below ~20px. The\n * product marks have the opposite property: each is one path on a 40-unit grid\n * with a quarter-side corner, chosen so it renders correctly from Paper's 96px\n * down to 20px. Do not generalise Boost33Mark's floor into a shared rule.\n */\nconst DEFAULT_SIZE = 20\n\n/**\n * The slugs this package draws a product mark for, as one list. Everything else\n * keys off it: ProductSlug is derived from it, and GLYPHS is typed against it so\n * adding a slug without artwork is a compile error rather than a mark that\n * silently draws nothing.\n *\n * **Module-internal since B33-1269, and it has to stay that way.** `src/index.ts`\n * publishes `hasProductMark` below and neither this list nor `ProductSlug`. A\n * `const` assertion over four strings made an artwork inventory part of the\n * published type contract: a consumer could write `Record<ProductSlug, ...>` or\n * switch exhaustively over it, and then artwork landing for a fifth product --\n * the thing this package exists to ship -- would be a breaking change for them.\n * Nothing published is typed `ProductSlug` anyway; every slug prop is `string` on\n * purpose, so Identity's registry may run ahead of a mark release (ADR-0003, and\n * `slug` below). So the union's only real job was answering \"which slugs have\n * artwork\", and `hasProductMark` answers that without freezing the list.\n *\n * The tests and the specimen read both names by deep import, which is how\n * everything in this repo reaches into `src/`. A consumer cannot: `package.json`\n * exports `.`, `./style.css` and `./theme.css`, and nothing else.\n *\n * **It is no longer the whole of Identity's registry, and the difference is\n * deliberate.** Identity serves five slugs: these four plus `brokers` (B33-1158,\n * \"Boost Brokers\"). This package has no `brokers` glyph, so that row draws the\n * bare tile through the safe degrade below -- see \"The fifth slug\" underneath.\n *\n * **Transcribed from `boost33-identity/src/lib/productRegistry.ts`** -- its\n * `REGISTRY_SLUGS`, which is `PRODUCTS` from `src/config/products.ts` plus\n * `WALLET_SLUG`. That file is the source of truth and this is a copy of it in\n * another repository, which is a thing that drifts. It already did: until\n * B33-1043 this list read `wallet | score | voice | outbound` while this comment\n * asserted it was Identity's, so three of the four rows of a switcher fed\n * straight from `GET /api/v1/products` drew the bare tile (see `slug` below) and\n * nothing anywhere failed.\n *\n * Identity is not the side that renames. ADR-0003 records the shorter slugs as\n * considered and rejected: these match the `?app=` keys live campaign URLs\n * already carry, so renaming them means those links grant nothing on sign-up.\n *\n * `tests/product-mark.test.tsx` pins this list against a second transcription of\n * the same source, so the two repositories cannot part company in silence again.\n * That pin is what the old comment's assertion was standing in for, and it now\n * pins the gap as well as the overlap: it names `brokers` as the one served slug\n * with no glyph here, so a *sixth* product, or artwork landing for this one,\n * fails rather than passing quietly.\n *\n * The *order* is this package's own and not Identity's -- `REGISTRY_SLUGS` ends\n * with `wallet` where this begins with it. Nothing reads a render order off this\n * list: a switcher draws the order its consumer was served (`AppSwitcher`), and\n * the only thing this order sets is the left-to-right run of frames in the\n * ProductMark specimen.\n *\n * ── The fifth slug ───────────────────────────────────────────────────────────\n *\n * **`brokers` is absent because no Brokers artwork exists to lift, not because\n * nobody got to it.** The four glyphs below were taken verbatim out of\n * `boostledger/src/ui/primitives/icons.tsx`, whose own `GLYPHS` is typed\n * `Record<ProductName, ReactNode>` over exactly four display names. There is no\n * Brokers mark in that file, none in `boost33-brand-hub`, and none in this\n * repository. The hub renders the product as a text quick-link and no mark at\n * all.\n *\n * So drawing one here would not be transcribing a mark, it would be inventing\n * one -- and the comment on GLYPHS below records what that costs: PR #4 redrew\n * all four from a written description, got all four wrong, and reintroduced the\n * retired one-orange-element construction. An invented fifth mark is worse than\n * that was, because it has nothing to be caught against. A human captures the\n * first baseline at the fidelity gate, which would make the invention the\n * referent, and it looks equally settled either way afterwards (CLAUDE.md, \"an\n * agent that picks one and builds it has invented a referent\").\n *\n * The degrade is also the mildest it will ever be. Identity serves `brokers` as\n * `live: false` -- the space is still being built -- so the switcher row carries\n * the \"Soon\" tag beside the bare tile, which reads as a product that has not\n * arrived rather than as a drawing that failed to load. That stops being true\n * the day Brokers ships.\n *\n * **To close it:** get the mark drawn where the other four live\n * (`boostledger/src/ui/primitives/icons.tsx`), lift it here verbatim, add\n * `brokers` to this list, and let a human approve `productmark-brokers.png` at a\n * gate. Not in that order optional: this list is what GLYPHS is typed against,\n * so adding the slug without the artwork stops the build, which is the one part\n * of this that cannot go wrong quietly.\n *\n * **And since B33-1269 that is an ordinary addition rather than a breaking\n * change.** This list is not published, so widening it widens nothing a consumer\n * has typed against: a fifth entry adds a drawing where there was a bare tile and\n * flips `hasProductMark('brokers')` from false to true. Until then it was a\n * major-bump-shaped change to ship a picture, which is the wrong price for the\n * thing this package is for.\n */\nexport const PRODUCT_SLUGS = ['wallet', 'boostscore', 'boostvoice', 'boostoutbound'] as const\n\n/**\n * One of the slugs this package draws a mark for. Not every slug Identity serves\n * -- see above -- and not published either, for the reason recorded there. What\n * this type is for is typing GLYPHS, so the list and the artwork cannot part\n * company.\n */\nexport type ProductSlug = (typeof PRODUCT_SLUGS)[number]\n\n/**\n * The four product glyphs, lifted verbatim from `boostledger`'s\n * `src/ui/primitives/icons.tsx` (the `GLYPHS` record, as of `837d85d`) rather\n * than redrawn from any written description. Redrawing them from\n * `docs/mintlify/system/product-marks.mdx` is how PR #4 got all four wrong and\n * reintroduced the retired one-orange-element construction; if any document\n * disagrees with that file, that file wins. See B33-562.\n *\n * Each glyph is drawn on its own full 40-unit grid and inset into the middle 20\n * of the tile by the `translate(10 10) scale(0.5)` group below. The stroke\n * widths are right on that grid -- do not \"correct\" them to compensate for the\n * scale, the scale is what puts the stroke at the weight Paper draws. Every\n * element paints in `currentColor` (the tile's white glyph ink) or `none`;\n * there is no colour of any kind in here, which is what tells the four marks\n * apart by shape and never by hue.\n *\n * Typing this `Record<ProductSlug, ReactNode>` is load-bearing: a fifth slug\n * added to PRODUCT_SLUGS without a glyph here stops the build. That is why the\n * list stays a `const` assertion with a union derived from it even though\n * B33-1269 stopped publishing both -- the union moved off the package surface,\n * it did not stop existing, and `tsc --noEmit` is the check that a slug and its\n * drawing arrive together.\n */\nconst GLYPHS: Record<ProductSlug, ReactNode> = {\n // A credit card with its magnetic stripe: an outline card (fill none, so the\n // tile shows through) plus a filled stripe across it.\n wallet: (\n <>\n <rect x=\"5\" y=\"10\" width=\"30\" height=\"20\" rx=\"4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"3\" />\n <rect x=\"5\" y=\"16\" width=\"30\" height=\"5\" fill=\"currentColor\" />\n </>\n ),\n // A gauge with the needle swung high: an arc, the needle, and the hub it\n // pivots on. Arc and needle stroke at width 4 with round caps.\n boostscore: (\n <>\n <path d=\"M6 26 A14 14 0 0 1 34 26\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" />\n <line x1=\"20\" y1=\"26\" x2=\"28\" y2=\"14\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" />\n <circle cx=\"20\" cy=\"26\" r=\"3\" fill=\"currentColor\" />\n </>\n ),\n // A soundwave, tall in the middle: three pill bars, all centred on y=20.\n boostvoice: (\n <>\n <rect x=\"6\" y=\"14\" width=\"7\" height=\"12\" rx=\"3.5\" fill=\"currentColor\" />\n <rect x=\"16.5\" y=\"4\" width=\"7\" height=\"32\" rx=\"3.5\" fill=\"currentColor\" />\n <rect x=\"27\" y=\"14\" width=\"7\" height=\"12\" rx=\"3.5\" fill=\"currentColor\" />\n </>\n ),\n // An arrow leaving through the top-right: the shaft and the elbow of its head,\n // both stroke width 4 with round caps and joins.\n boostoutbound: (\n <>\n <line x1=\"8\" y1=\"32\" x2=\"32\" y2=\"8\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <path d=\"M16 8 H32 V24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </>\n ),\n}\n\n/*\n * The narrowing half of the same question, deliberately separate from the\n * published `hasProductMark` below. A type predicate -- `slug is ProductSlug` --\n * is what lets `GLYPHS[slug]` index safely, and it is also a signature that\n * names `ProductSlug` in the emitted `.d.ts`. Publishing this one would put the\n * union back on the package surface through the back door, which is exactly what\n * B33-1269 took off it.\n */\nfunction isProductSlug(slug: string): slug is ProductSlug {\n return (PRODUCT_SLUGS as readonly string[]).includes(slug)\n}\n\n/**\n * Does this package draw a mark for `slug`? The supported way to ask, and the\n * only thing about the artwork inventory the package publishes (B33-1269).\n *\n * **Ask this rather than matching a slug against a union of known slugs.** The\n * set of slugs with artwork is this package's inventory, not a vocabulary:\n * Identity owns which products exist (ADR-0003) and this list grows whenever a\n * drawing lands. `brokers` is the one slug Identity serves today that there is no\n * glyph here for -- see \"The fifth slug\" above. A caller that pattern-matches a\n * union is pinned to whichever inventory it compiled against; a caller that asks\n * this gets the installed version's answer, and keeps working when the next mark\n * ships.\n *\n * **A `false` is not an error and needs no guard around it.** `ProductMark`\n * renders a slug it has no glyph for as the bare tile rather than throwing\n * (ADR-0003's safe degrade), and in a switcher that row is still named, still\n * linked and still clickable -- only the glyph is missing. So do not use this to\n * filter a served registry, to hide a product's row, or to decide to substitute a\n * drawing of your own: every one of those turns a missing glyph into a missing\n * product, and the registry running ahead of the artwork is the supported state.\n *\n * It is here for a caller that needs to *know* rather than to branch on\n * rendering -- a consumer test asserting its own hardcoded fixtures still draw\n * something, or a report of which served slugs have artwork yet.\n */\nexport function hasProductMark(slug: string): boolean {\n return isProductSlug(slug)\n}\n\nexport interface ProductMarkProps {\n /**\n * Identity's product slug. An unknown one -- a product the served registry\n * carries but this package has no artwork for yet -- draws the bare tile\n * rather than throwing (ADR-0003's safe degrade), so the registry can run\n * ahead of a mark release.\n */\n slug: string\n /** Rendered width and height in px. Defaults to 20, the Wallet's own default. */\n size?: number\n /**\n * Dims the tile for a product the account is not entitled to -- the switcher's\n * unowned rows need it. It swaps the **ground only**, to --color-neutral-300;\n * the glyph stays white. Fading the glyph too would cost the shape the one\n * thing telling the four marks apart, and it is a prop rather than a wrapper\n * `opacity-40 grayscale` filter because that lands on a mid-grey visibly\n * darker than the grey Paper draws.\n *\n * **Only use this where the mark is decorative.** White on --color-neutral-300\n * is 1.41:1, well under WCAG 1.4.11's 3:1, and the reason that is not a defect\n * is that the criterion covers graphics *required to understand the content* --\n * which this is not, while the mark is `aria-hidden`, the product's name sits\n * beside it as text, and entitlement is additionally stated in words (the\n * switcher's \"Not on plan\" tag). Combining `muted` with `title`, so the mark\n * stands alone as the sole carrier of a product's identity, removes every one\n * of those and makes the ratio bite. That combination is out of contract; no\n * call site in this package uses it. See ADR-0012, which also records why the\n * ground is not darkened and what to reach for if this is ever revisited.\n */\n muted?: boolean\n /**\n * An accessible name. Omit it -- the default -- and the mark is decorative:\n * `aria-hidden`, contributing nothing to the accessibility tree. That is the\n * right answer in the switcher, where the product's name sits beside it and a\n * name here would only make a screen reader say it twice. Pass one only where\n * the mark stands alone as the sole carrier of meaning.\n *\n * Passing this is what takes the mark out of `muted`'s contract -- see the\n * note there. A mark that carries meaning on its own has to be legible on its\n * own, and the muted ground is not.\n */\n title?: string\n /** Escape hatch for a consumer that needs to position the mark. */\n className?: string\n}\n\n/**\n * The tile-and-glyph mark for one Boost33 product -- a rounded --color-neutral-950\n * square with the product's glyph in --color-primary-foreground. The four marks\n * share one palette and are told apart by shape alone; there is zero brand\n * orange in any of them.\n */\nexport function ProductMark({ slug, size = DEFAULT_SIZE, muted, title, className }: ProductMarkProps) {\n const titleId = useId()\n const decorative = title == null\n const glyph = isProductSlug(slug) ? GLYPHS[slug] : null\n\n return (\n <svg\n className={className != null ? `${styles.mark} ${className}` : styles.mark}\n width={size}\n height={size}\n viewBox=\"0 0 40 40\"\n role={decorative ? undefined : 'img'}\n aria-hidden={decorative ? 'true' : undefined}\n aria-labelledby={decorative ? undefined : titleId}\n >\n {!decorative && <title id={titleId}>{title}</title>}\n {/* The tile. Fill set inline, next to the muted decision that chooses it;\n the corner radius comes from the class (see ProductMark.module.css). */}\n <rect\n className={styles.ground}\n width=\"40\"\n height=\"40\"\n style={{ fill: muted ? 'var(--color-neutral-300)' : 'var(--color-neutral-950)' }}\n />\n {glyph && (\n <g\n transform=\"translate(10 10) scale(0.5)\"\n style={{ color: 'var(--color-primary-foreground)' }}\n >\n {glyph}\n </g>\n )}\n </svg>\n )\n}\n"],"names":["DEFAULT_SIZE","PRODUCT_SLUGS","GLYPHS","jsxs","Fragment","jsx","isProductSlug","slug","hasProductMark","ProductMark","size","muted","title","className","titleId","useId","decorative","glyph","styles"],"mappings":";;;AAgBA,MAAMA,IAAe,IA6FRC,IAAgB,CAAC,UAAU,cAAc,cAAc,eAAe,GAiC7EC,IAAyC;AAAA;AAAA;AAAA,EAG7C,QACE,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAAC,UAAK,GAAE,KAAI,GAAE,MAAK,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI;AAAA,IACnG,gBAAAA,EAAC,QAAA,EAAK,GAAE,KAAI,GAAE,MAAK,OAAM,MAAK,QAAO,KAAI,MAAK,eAAA,CAAe;AAAA,EAAA,GAC/D;AAAA;AAAA;AAAA,EAIF,YACE,gBAAAF,EAAAC,GAAA,EACE,UAAA;AAAA,IAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,4BAA2B,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI,eAAc,QAAA,CAAQ;AAAA,IAC3G,gBAAAA,EAAC,QAAA,EAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,IAAG,MAAK,QAAO,gBAAe,aAAY,KAAI,eAAc,SAAQ;AAAA,IAClG,gBAAAA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C,WAAWU,KAAa,OAAO,GAAGK,EAAO,IAAI,IAAIL,CAAS,KAAKK,EAAO;AAAA,MACtE,OAAOR;AAAA,MACP,QAAQA;AAAA,MACR,SAAQ;AAAA,MACR,MAAMM,IAAa,SAAY;AAAA,MAC/B,eAAaA,IAAa,SAAS;AAAA,MACnC,mBAAiBA,IAAa,SAAYF;AAAA,MAEzC,UAAA;AAAA,QAAA,CAACE,KAAc,gBAAAX,EAAC,SAAA,EAAM,IAAIS,GAAU,UAAAF,GAAM;AAAA,QAG3C,gBAAAP;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWa,EAAO;AAAA,YAClB,OAAM;AAAA,YACN,QAAO;AAAA,YACP,OAAO,EAAE,MAAMP,IAAQ,6BAA6B,2BAAA;AAAA,UAA2B;AAAA,QAAA;AAAA,QAEhFM,KACC,gBAAAZ;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAU;AAAA,YACV,OAAO,EAAE,OAAO,kCAAA;AAAA,YAEf,UAAAY;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAIR;"}
1
+ {"version":3,"file":"ProductMark.js","sources":["../../../src/components/ProductMark/ProductMark.tsx"],"sourcesContent":["import { useId, type ReactNode } from 'react'\nimport styles from './ProductMark.module.css'\n\n/**\n * The size the mark renders at unless a caller says otherwise. 20px is the\n * Wallet's own default at its call sites, and the size every\n * tests/baselines/productmark-*.png is captured at: a 20px tile in the 24px\n * gutter the specimen crop uses either side -> 68px CSS -> 136 device px at\n * deviceScaleFactor 2. Changing it moves four apps.\n *\n * There is deliberately no minimum-legible floor here, unlike Boost33Mark. That\n * floor is the monogram's alone -- the bowls of the B close up below ~20px. The\n * product marks are drawn to hold from Paper's 96px down to 20px, and the one\n * glyph with detail that does not survive the small end handles it itself:\n * Passport drops its globe lines below 24px (PASSPORT_GLOBE_LINES_MIN_SIZE), as\n * Paper's \"Small sizes\" row draws it. Do not generalise Boost33Mark's floor into\n * a shared rule.\n */\nconst DEFAULT_SIZE = 20\n\n/**\n * The slugs this package draws a product mark for, as one list. Everything else\n * keys off it: ProductSlug is derived from it, and GLYPHS is typed against it so\n * adding a slug without artwork is a compile error rather than a mark that\n * silently draws nothing.\n *\n * **Module-internal since B33-1269, and it has to stay that way.** `src/index.ts`\n * publishes `hasProductMark` below and neither this list nor `ProductSlug`. A\n * `const` assertion over these strings made an artwork inventory part of the\n * published type contract: a consumer could write `Record<ProductSlug, ...>` or\n * switch exhaustively over it, and then artwork landing for another product --\n * the thing this package exists to ship -- would be a breaking change for them.\n * Nothing published is typed `ProductSlug` anyway; every slug prop is `string` on\n * purpose, so Identity's registry may run ahead of a mark release (ADR-0003, and\n * `slug` below). So the union's only real job was answering \"which slugs have\n * artwork\", and `hasProductMark` answers that without freezing the list.\n * B33-1670 widening this from four slugs to ten is the proof: it adds drawings\n * and flips six `hasProductMark` answers to true, and breaks nothing a consumer\n * could have typed.\n *\n * The tests and the specimen read both names by deep import, which is how\n * everything in this repo reaches into `src/`. A consumer cannot: `package.json`\n * exports `.`, `./style.css` and `./theme.css`, and nothing else.\n *\n * **It is the whole of Identity's registry: all ten slugs, every one with a\n * mark.** Transcribed from `boost33-identity/src/lib/productRegistry.ts` -- its\n * `REGISTRY_SLUGS`, which is `PRODUCTS` from `src/config/products.ts`\n * (boostscore, boostvoice, boostoutbound, brokers, boosttrade, boostfunding)\n * plus `RESULTS_SLUG`, `PASSPORT_SLUG`, `PIPE_SLUG` and `WALLET_SLUG`. That file\n * is the source of truth and this is a copy of it in another repository, which\n * is a thing that drifts. It already did: until B33-1043 this list read\n * `wallet | score | voice | outbound` while its comment asserted it was\n * Identity's, so three of the four rows of a switcher fed straight from\n * `GET /api/v1/products` drew the bare tile (see `slug` below) and nothing\n * anywhere failed.\n *\n * Identity is not the side that renames. ADR-0003 records the shorter slugs as\n * considered and rejected: these match the `?app=` keys live campaign URLs\n * already carry, so renaming them means those links grant nothing on sign-up.\n * The same holds for `boostvoice`, whose mark is already the Content pencil:\n * the product is being renamed Boost Content, and the display name moves on\n * Identity's side (B33-1672) while the slug stays.\n *\n * `tests/product-mark.test.tsx` pins this list against a second transcription of\n * the same source, so the two repositories cannot part company in silence again.\n * The pin also keeps a list of served slugs this package deliberately draws\n * nothing for. That list is empty since B33-1670, and it stays in the test so an\n * eleventh product Identity serves before its mark lands is a recorded decision\n * rather than a quiet pass.\n *\n * The *order* is this package's own and not Identity's -- `REGISTRY_SLUGS` ends\n * with `wallet` where this begins with it, then follows Identity's order for the\n * other nine. Nothing reads a render order off this list: a switcher draws the\n * order its consumer was served (`AppSwitcher`), and the only thing this order\n * sets is the left-to-right run of frames in the ProductMark specimen, where the\n * four slugs that have carried a mark since 0.1 keep the first four places.\n *\n * ── Brokers, and the six that arrived with it ────────────────────────────────\n *\n * From 0.4.0 to 0.6.0 Identity served `brokers` and this package drew it as the\n * bare tile, deliberately: no Brokers artwork existed in any repository to lift,\n * and drawing one here would have been inventing a referent rather than\n * transcribing a mark (PR #4 redrew the first four from a written description\n * and got all four wrong). Identity then grew `boosttrade`, `boostfunding`,\n * `boostresults`, `passport` and `pipe`, all served with no mark here either.\n *\n * B33-1669 closed it the way the old comment said it had to be closed: the\n * marks were drawn where the others live (`boostledger/src/ui/primitives/icons.tsx`),\n * for all ten products at once, and B33-1670 lifted them here verbatim. The\n * part a commit cannot do is still outstanding when this lands -- a human\n * approves `productmark-<slug>.png` for each of the ten at the fidelity gate\n * (tests/baselines/README.md).\n */\nexport const PRODUCT_SLUGS = [\n 'wallet',\n 'boostscore',\n 'boostvoice',\n 'boostoutbound',\n 'brokers',\n 'boosttrade',\n 'boostfunding',\n 'boostresults',\n 'passport',\n 'pipe',\n] as const\n\n/**\n * One of the slugs this package draws a mark for. Not published, for the reason\n * recorded above. What this type is for is typing GLYPHS, so the list and the\n * artwork cannot part company.\n */\nexport type ProductSlug = (typeof PRODUCT_SLUGS)[number]\n\n/*\n * The three paints a mark uses, all tokens. Named once so a glyph below cannot\n * reach for a literal. The tile ground is chosen per render (it greys when\n * muted) and handed to each glyph as `tile`; these two are fixed.\n */\nconst GLYPH = 'var(--color-primary-foreground)'\nconst ACCENT = 'var(--color-primary)'\nconst TILE = 'var(--color-neutral-950)'\nconst MUTED_TILE = 'var(--color-neutral-300)'\n\n/** The tile's own grid: a 40-unit square, cornered by --radius-product-tile. */\nconst TILE_GRID = 40\n\n/** The glyph box as a share of the tile side, before the optical factor. */\nconst GLYPH_BOX = 0.62\n\n/**\n * Below this rendered size Passport drops its two globe lines (the meridian\n * ellipse and the equator): at 20px they are under a pixel apart and fill the\n * globe in, which is what Paper's \"Small sizes\" row draws. A rendered size in\n * px compared against a number, not a px value painted into the mark, so it is\n * not a token. It is upstream's constant under upstream's name.\n */\nconst PASSPORT_GLOBE_LINES_MIN_SIZE = 24\n\ntype Glyph = {\n /** Optical size factor applied to the 62% glyph box. */\n optical: number\n /** The glyph on its 24-unit grid. `tile` is the ground colour in use, for cut-outs. */\n draw: (p: { tile: string; accent: string; size: number }) => ReactNode\n}\n\n/**\n * The ten product glyphs, lifted verbatim from `boostledger`'s\n * `src/ui/primitives/icons.tsx` (the `GLYPHS` record, as of the B33-1669 merge\n * `ad4146f31666db0cbab1f7ba3dcb248215cc8697`, which replaced the four lifted\n * from `837d85d`) rather than redrawn from any written description. Redrawing\n * from `docs/mintlify/system/product-marks.mdx` is how PR #4 got all four of the\n * first set wrong; if any document disagrees with that file, that file wins. See\n * B33-562. Upstream keys the record by display name; this one keys it by\n * Identity's slug, noted against each entry, and every path, number and paint\n * is upstream's unchanged.\n *\n * **Every mark carries exactly ONE orange accent, and that is a reversal.**\n * Decided by Jamal on 29 Oct 2026 (B33-1669; this package's half is B33-1670,\n * and ADR-0015 records it). From 9 Sep 2026 to 29 Oct 2026 the rule here was the\n * opposite: every element painted in `currentColor` or `none`, \"no colour of any\n * kind\", and a test failed any mark that reached for `--color-primary`. That\n * zero-orange rule is retired. If you find it quoted -- in an older copy of this\n * file, a cached doc, a consumer's fork -- it is the old construction.\n *\n * What survives the reversal, and is the rule the set exists to hold: **products\n * are told apart by SHAPE, never by hue.** The accent is the same\n * `--color-primary` in all ten, on one element of the drawing, so it cannot\n * identify anything; it ties the family back to the parent's orange letterform.\n * A mark that is only recognisable by where its orange sits is the wrong shape.\n * Brokers' accent is one element drawn as two shapes, a head and a body.\n *\n * **The accent is identity, not emphasis.** It does not count against a\n * screen's one orange moment (the `--color-primary` rule in tokens.css: the\n * primary action or the threshold marker, never both), any more than the\n * Boost33 monogram's orange letterform does. A switcher showing ten marks has\n * spent none of the screen's orange. Jamal, 29 Oct 2026.\n *\n * Construction. Each glyph is drawn on a 24-unit grid and sits in a box 62% of\n * the tile side, centred, times an optical factor: Passport and Wallet sit at\n * 0.94 and Pipe at 0.96 because their solid masses read larger than the open\n * shapes beside them. Scaling thins the strokes with it; do not \"fix\" the stroke\n * widths to compensate -- they are correct on their own grid.\n *\n * Three paints, all tokens:\n * - the tile: `--color-neutral-950`, or `--color-neutral-300` when muted;\n * - the glyph: `--color-primary-foreground`;\n * - the accent: `--color-primary`, or `--color-primary-foreground` (white)\n * when muted -- a product the account does not own spends no\n * orange.\n * Some glyphs are cut by shapes painted in the TILE colour (Score's ring gap,\n * the pencil's groove, Brokers' outline between the two people, Off Market's key\n * bow, Financing's note edge and coin, Passport's globe lines and name bar,\n * Wallet's clasp pocket). Those are cut-outs, so they take the tile colour\n * actually in use -- muted included -- or a muted mark would show black slivers\n * on its grey ground.\n *\n * Typing this `Record<ProductSlug, Glyph>` is load-bearing: a slug added to\n * PRODUCT_SLUGS without a glyph here stops the build. That is why the list stays\n * a `const` assertion with a union derived from it even though B33-1269 stopped\n * publishing both -- `tsc --noEmit` is the check that a slug and its drawing\n * arrive together.\n */\nconst GLYPHS: Record<ProductSlug, Glyph> = {\n // wallet (upstream \"Wallet\"). A wallet with a card tucked behind its flap and\n // an orange clasp.\n wallet: {\n optical: 0.94,\n draw: ({ tile, accent }) => (\n <>\n <path\n d=\"M5 7 L15.4 3.1 A1.2 1.2 0 0 1 17 4 L17.6 7 Z\"\n fill={GLYPH}\n stroke={GLYPH}\n strokeWidth=\"1\"\n strokeLinejoin=\"round\"\n />\n <rect x=\"2.5\" y=\"6.5\" width=\"19\" height=\"15\" rx=\"3\" fill={GLYPH} />\n <rect x=\"14.5\" y=\"10.75\" width=\"9\" height=\"6.5\" rx=\"2.5\" fill={tile} />\n <circle cx=\"17.75\" cy=\"14\" r=\"1.5\" fill={accent} />\n </>\n ),\n },\n // boostscore (upstream \"Boost Score\"). A target: a white ring around an orange\n // bull's-eye.\n boostscore: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <circle cx=\"12\" cy=\"12\" r=\"10\" fill={GLYPH} />\n <circle cx=\"12\" cy=\"12\" r=\"7\" fill={tile} />\n <circle cx=\"12\" cy=\"12\" r=\"4\" fill={accent} />\n </>\n ),\n },\n // boostvoice (upstream \"Boost Voice\"). The CONTENT pencil: the product is being\n // renamed Boost Content and the mark is already drawn for the new name. The\n // slug stays `boostvoice`; the display rename is Identity's (B33-1672).\n boostvoice: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <path\n d=\"M15.8 3.6 A2 2 0 0 1 18.6 3.6 L20.4 5.4 A2 2 0 0 1 20.4 8.2 L9 19.6 L4 20.5 L4.4 15 Z\"\n fill={GLYPH}\n stroke={GLYPH}\n strokeWidth=\"1\"\n strokeLinejoin=\"round\"\n />\n <path d=\"M13.4 6 L18 10.6\" stroke={tile} strokeWidth=\"1.6\" strokeLinecap=\"round\" />\n <rect x=\"13\" y=\"18.25\" width=\"8.5\" height=\"2.75\" rx=\"1.375\" fill={accent} />\n </>\n ),\n },\n // boostoutbound (upstream \"Boost Outbound\"). A paper plane, its near wing orange.\n boostoutbound: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <path\n d=\"M21 3 L3 10.4 L10.2 13.8 Z\"\n fill={GLYPH}\n stroke={GLYPH}\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n />\n <path\n d=\"M21 3 L10.2 13.8 L13.6 21 Z\"\n fill={accent}\n stroke={accent}\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n />\n {/* Muted, both wings are white and would merge into one triangle; a fold\n line in the tile colour keeps the plane. */}\n {accent === GLYPH && (\n <path d=\"M20 4 L10.2 13.8\" stroke={tile} strokeWidth=\"1.4\" strokeLinecap=\"round\" />\n )}\n </>\n ),\n },\n // brokers (upstream \"Boost Brokers\"). Two people, the one behind in orange; a\n // tile-coloured outline separates the white figure in front from it.\n brokers: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <circle cx=\"16.5\" cy=\"7.5\" r=\"3.25\" fill={accent} />\n <path d=\"M11 20 A5.5 5.5 0 0 1 22 20 Z\" fill={accent} />\n <circle cx=\"9\" cy=\"7.5\" r=\"3.75\" fill={GLYPH} stroke={tile} strokeWidth=\"1.5\" />\n <path\n d=\"M2 20.5 A7 7 0 0 1 16 20.5 Z\"\n fill={GLYPH}\n stroke={tile}\n strokeWidth=\"1.5\"\n strokeLinejoin=\"round\"\n />\n </>\n ),\n },\n // boosttrade (upstream \"Boost Off Market\"). A key -- something not on the open\n // market -- with an orange bow.\n boosttrade: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <rect x=\"11\" y=\"10.6\" width=\"11\" height=\"2.8\" rx=\"1.4\" fill={GLYPH} />\n <rect x=\"15.6\" y=\"11\" width=\"2.8\" height=\"5\" rx=\"1.2\" fill={GLYPH} />\n <rect x=\"19.2\" y=\"11\" width=\"2.8\" height=\"3.8\" rx=\"1.2\" fill={GLYPH} />\n <circle cx=\"7.5\" cy=\"12\" r=\"5.5\" fill={GLYPH} />\n <circle cx=\"7.5\" cy=\"12\" r=\"2.6\" fill={tile} />\n <circle cx=\"7.5\" cy=\"12\" r=\"1.6\" fill={accent} />\n </>\n ),\n },\n // boostfunding (upstream \"Boost Financing\"). A banknote with its coin, an\n // orange note stacked behind it.\n boostfunding: {\n optical: 1,\n draw: ({ tile, accent }) => (\n <>\n <rect x=\"4.75\" y=\"4.5\" width=\"17\" height=\"11\" rx=\"2.5\" fill={accent} />\n <rect x=\"1\" y=\"8.25\" width=\"18.75\" height=\"12.5\" rx=\"3.25\" fill={tile} />\n <rect x=\"2.25\" y=\"9.5\" width=\"16.25\" height=\"10\" rx=\"2\" fill={GLYPH} />\n <circle cx=\"10.375\" cy=\"14.5\" r=\"2.75\" fill={tile} />\n </>\n ),\n },\n // boostresults (upstream \"Boost Activity\"). A pulse line running into an\n // orange dot -- activity, now.\n boostresults: {\n optical: 1,\n draw: ({ accent }) => (\n <>\n <path\n d=\"M2.5 12.5 H6 L9 5 L14 19 L16.6 12.5 H17\"\n fill=\"none\"\n stroke={GLYPH}\n strokeWidth=\"2.5\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n <circle cx=\"20\" cy=\"12.5\" r=\"2.5\" fill={accent} />\n </>\n ),\n },\n // passport (upstream \"Boost Passport\"). A passport booklet with an orange globe\n // and a name bar. The globe's meridian and equator are dropped below 24px (see\n // the constant above).\n passport: {\n optical: 0.94,\n draw: ({ tile, accent, size }) => (\n <>\n <rect x=\"4.5\" y=\"2\" width=\"15\" height=\"20\" rx=\"2.5\" fill={GLYPH} />\n {/* Muted, a white globe would vanish into the white book, so it flips to\n the tile colour and its lines to white, as Paper's no-orange row draws. */}\n <circle cx=\"12\" cy=\"10\" r=\"5.75\" fill={accent === GLYPH ? tile : accent} />\n {size >= PASSPORT_GLOBE_LINES_MIN_SIZE && (\n <>\n <ellipse\n cx=\"12\"\n cy=\"10\"\n rx=\"2.5\"\n ry=\"5.1\"\n fill=\"none\"\n stroke={accent === GLYPH ? GLYPH : tile}\n strokeWidth=\"1.3\"\n />\n <path d=\"M6.25 10 H17.75\" stroke={accent === GLYPH ? GLYPH : tile} strokeWidth=\"1.3\" />\n </>\n )}\n <rect x=\"8.5\" y=\"17.75\" width=\"7\" height=\"1.8\" rx=\"0.9\" fill={tile} />\n </>\n ),\n },\n // pipe (upstream \"Boost Pipe\"). A pipeline narrowing in three stages, the last\n // -- the deal -- orange.\n pipe: {\n optical: 0.96,\n draw: ({ accent }) => (\n <>\n <rect x=\"2.5\" y=\"4\" width=\"19\" height=\"4\" rx=\"2\" fill={GLYPH} />\n <rect x=\"6\" y=\"10\" width=\"12\" height=\"4\" rx=\"2\" fill={GLYPH} />\n <rect x=\"9.5\" y=\"16\" width=\"5\" height=\"4\" rx=\"2\" fill={accent} />\n </>\n ),\n },\n}\n\n/*\n * The narrowing half of the same question, deliberately separate from the\n * published `hasProductMark` below. A type predicate -- `slug is ProductSlug` --\n * is what lets `GLYPHS[slug]` index safely, and it is also a signature that\n * names `ProductSlug` in the emitted `.d.ts`. Publishing this one would put the\n * union back on the package surface through the back door, which is exactly what\n * B33-1269 took off it.\n */\nfunction isProductSlug(slug: string): slug is ProductSlug {\n return (PRODUCT_SLUGS as readonly string[]).includes(slug)\n}\n\n/**\n * Does this package draw a mark for `slug`? The supported way to ask, and the\n * only thing about the artwork inventory the package publishes (B33-1269).\n *\n * **Ask this rather than matching a slug against a union of known slugs.** The\n * set of slugs with artwork is this package's inventory, not a vocabulary:\n * Identity owns which products exist (ADR-0003) and this list grows whenever a\n * drawing lands. Since B33-1670 every slug Identity serves has a mark, and the\n * next product Identity adds will be served before its mark ships here. A\n * caller that pattern-matches a union is pinned to whichever inventory it compiled against; a caller that asks\n * this gets the installed version's answer, and keeps working when the next mark\n * ships.\n *\n * **A `false` is not an error and needs no guard around it.** `ProductMark`\n * renders a slug it has no glyph for as the bare tile rather than throwing\n * (ADR-0003's safe degrade), and in a switcher that row is still named, still\n * linked and still clickable -- only the glyph is missing. So do not use this to\n * filter a served registry, to hide a product's row, or to decide to substitute a\n * drawing of your own: every one of those turns a missing glyph into a missing\n * product, and the registry running ahead of the artwork is the supported state.\n *\n * It is here for a caller that needs to *know* rather than to branch on\n * rendering -- a consumer test asserting its own hardcoded fixtures still draw\n * something, or a report of which served slugs have artwork yet.\n */\nexport function hasProductMark(slug: string): boolean {\n return isProductSlug(slug)\n}\n\nexport interface ProductMarkProps {\n /**\n * Identity's product slug. An unknown one -- a product the served registry\n * carries but this package has no artwork for yet -- draws the bare tile\n * rather than throwing (ADR-0003's safe degrade), so the registry can run\n * ahead of a mark release.\n */\n slug: string\n /** Rendered width and height in px. Defaults to 20, the Wallet's own default. */\n size?: number\n /**\n * Dims the tile for a product the account is not entitled to -- the switcher's\n * unowned and unbuilt rows need it. The tile ground greys to\n * --color-neutral-300, and the cut-outs painted in the tile colour grey with\n * it. The glyph stays white, and **the orange accent turns white too** (Jamal,\n * 29 Oct 2026, B33-1669): a product the account does not own spends no\n * orange. Two marks take the drawing from Paper's \"Option: no orange\" row to\n * stay legible without the accent -- Outbound gains a fold line in the tile\n * colour between its two wings, and Passport's globe flips to the tile colour\n * with white lines. Fading the glyph instead would cost the shape the one\n * thing telling the marks apart, and it is a prop rather than a wrapper\n * `opacity-40 grayscale` filter because that lands on a mid-grey visibly\n * darker than the grey Paper draws.\n *\n * **Only use this where the mark is decorative.** White on --color-neutral-300\n * is 1.41:1, well under WCAG 1.4.11's 3:1, and the reason that is not a defect\n * is that the criterion covers graphics *required to understand the content* --\n * which this is not, while the mark is `aria-hidden`, the product's name sits\n * beside it as text, and entitlement is additionally stated in words (the\n * switcher's \"Not on plan\" tag). Combining `muted` with `title`, so the mark\n * stands alone as the sole carrier of a product's identity, removes every one\n * of those and makes the ratio bite. That combination is out of contract; no\n * call site in this package uses it. See ADR-0012, which also records why the\n * ground is not darkened and what to reach for if this is ever revisited.\n * Since the accent turned white on a muted tile, every ink on that tile is the\n * same white ADR-0012 measured, so its 1.41:1 is still the only ratio there is.\n */\n muted?: boolean\n /**\n * An accessible name. Omit it -- the default -- and the mark is decorative:\n * `aria-hidden`, contributing nothing to the accessibility tree. That is the\n * right answer in the switcher, where the product's name sits beside it and a\n * name here would only make a screen reader say it twice. Pass one only where\n * the mark stands alone as the sole carrier of meaning.\n *\n * Passing this is what takes the mark out of `muted`'s contract -- see the\n * note there. A mark that carries meaning on its own has to be legible on its\n * own, and the muted ground is not.\n */\n title?: string\n /** Escape hatch for a consumer that needs to position the mark. */\n className?: string\n}\n\n/**\n * The tile-and-glyph mark for one Boost33 product -- a rounded --color-neutral-950\n * square with the product's glyph in --color-primary-foreground and one accent\n * in --color-primary. The ten marks share one palette and are told apart by\n * shape; the accent is the same orange in every one of them, so it identifies\n * nothing.\n */\nexport function ProductMark({ slug, size = DEFAULT_SIZE, muted, title, className }: ProductMarkProps) {\n const titleId = useId()\n const decorative = title == null\n const glyph = isProductSlug(slug) ? GLYPHS[slug] : null\n const tile = muted ? MUTED_TILE : TILE\n const accent = muted ? GLYPH : ACCENT\n\n return (\n <svg\n className={className != null ? `${styles.mark} ${className}` : styles.mark}\n width={size}\n height={size}\n viewBox={`0 0 ${TILE_GRID} ${TILE_GRID}`}\n role={decorative ? undefined : 'img'}\n aria-hidden={decorative ? 'true' : undefined}\n aria-labelledby={decorative ? undefined : titleId}\n >\n {!decorative && <title id={titleId}>{title}</title>}\n {/* The tile. Fill set inline, next to the muted decision that chooses it;\n the corner radius comes from the class (see ProductMark.module.css). */}\n <rect className={styles.ground} width={TILE_GRID} height={TILE_GRID} style={{ fill: tile }} />\n {glyph && <g transform={glyphTransform(glyph.optical)}>{glyph.draw({ tile, accent, size })}</g>}\n </svg>\n )\n}\n\n/**\n * The 24-unit glyph scaled into a box 62% of the tile side times its optical\n * factor, and centred -- upstream's arithmetic, so the transform strings match\n * boostledger's to the digit (`translate(7.6 7.6) scale(1.0333)` for a factor\n * of 1). This replaced the `translate(10 10) scale(0.5)` the 40-unit glyphs\n * before B33-1670 were inset with.\n */\nfunction glyphTransform(optical: number): string {\n const box = TILE_GRID * GLYPH_BOX * optical\n const offset = round((TILE_GRID - box) / 2)\n const scale = round(box / 24)\n return `translate(${offset} ${offset}) scale(${scale})`\n}\n\n/** Four decimals: enough for sub-pixel accuracy at any size, short in the DOM. */\nfunction round(n: number): number {\n return Math.round(n * 10000) / 10000\n}\n"],"names":["DEFAULT_SIZE","PRODUCT_SLUGS","GLYPH","ACCENT","TILE","MUTED_TILE","TILE_GRID","GLYPH_BOX","PASSPORT_GLOBE_LINES_MIN_SIZE","GLYPHS","tile","accent","jsxs","Fragment","jsx","size","isProductSlug","slug","hasProductMark","ProductMark","muted","title","className","titleId","useId","decorative","glyph","styles","glyphTransform","optical","box","offset","round","scale","n"],"mappings":";;;AAkBA,MAAMA,IAAe,IA2ERC,IAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAcMC,IAAQ,mCACRC,IAAS,wBACTC,IAAO,4BACPC,IAAa,4BAGbC,IAAY,IAGZC,IAAY,MASZC,IAAgC,IAkEhCC,IAAqC;AAAA;AAAA;AAAA,EAGzC,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,MAAM,CAAC,EAAE,MAAAC,GAAM,QAAAC,EAAA,MACb,gBAAAC,EAAAC,GAAA,EACE,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,GAAE;AAAA,UACF,MAAMZ;AAAA,UACN,QAAQA;AAAA,UACR,aAAY;AAAA,UACZ,gBAAe;AAAA,QAAA;AAAA,MAAA;AAAA,MAEjB,gBAAAY,EAAC,QAAA,EAAK,GAAE,OAAM,GAAE,OAAM,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI,MAAMZ,GAAO;AAAA,MACjE,gBAAAY,EAAC,QAAA,EAAK,GAAE,QAAO,GAAE,SAAQ,OAAM,KAAI,QAAO,OAAM,IAAG,OAAM,MAAMJ,GAAM;AAAA,MACrE,gBAAAI,EAAC,YAAO,IAAG,SAAQ,IAAG,MAAK,GAAE,OAAM,MAAMH,EAAA,CAAQ;AAAA,IAAA,EAAA,CACnD;AAAA,EAAA;AAAA;AAAA;AAAA,EAKJ,YAAY;AAAA,IACV,SAAS;AAAA,IACT,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AEzC,UAAA;AAAA,QAAA,CAACE,KAAc,gBAAAX,EAAC,SAAA,EAAM,IAAIS,GAAU,UAAAF,GAAM;AAAA,QAG3C,gBAAAP,EAAC,QAAA,EAAK,WAAWa,EAAO,QAAQ,OAAOrB,GAAW,QAAQA,GAAW,OAAO,EAAE,MAAMI,IAAK,CAAG;AAAA,QAC3FgB,KAAS,gBAAAZ,EAAC,KAAA,EAAE,WAAWc,EAAeF,EAAM,OAAO,GAAI,UAAAA,EAAM,KAAK,EAAE,MAAAhB,GAAM,QAAAC,GAAQ,MAAAI,EAAA,CAAM,EAAA,CAAE;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGjG;AASA,SAASa,EAAeC,GAAyB;AAC/C,QAAMC,IAAMxB,IAAYC,IAAYsB,GAC9BE,IAASC,GAAO1B,IAAYwB,KAAO,CAAC,GACpCG,IAAQD,EAAMF,IAAM,EAAE;AAC5B,SAAO,aAAaC,CAAM,IAAIA,CAAM,WAAWE,CAAK;AACtD;AAGA,SAASD,EAAME,GAAmB;AAChC,SAAO,KAAK,MAAMA,IAAI,GAAK,IAAI;AACjC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boost33/ui",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "The app shell every Boost33 product renders inside.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",