Commit e222427
fix(box): flatten fontSize/fontWeight/lineHeight token groups; add changeset
The editorial typography tokens nest an `editorial.*` sub-namespace under
fontSize, fontWeight, and lineHeight. Box's rainbow-sprinkles passed these
groups straight into defineProperties, which expects a flat
Record<string, string>, so the nested objects broke its overload typing —
cascading into BoxProps and every <Box> consumer (preview, stories, specs)
failing Type Check.
Flatten those three groups via `flat` (the same treatment the `font`
typography group already gets), so editorial.* tokens become flat keys and
defineProperties typing holds. Also adds the missing changeset for the
@launchpad-ui/tokens + @launchpad-ui/box changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 8ced93a commit e222427
2 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
0 commit comments