haus-tokens 4.2.0 → 5.0.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/dist/brand.css CHANGED
@@ -191,11 +191,11 @@
191
191
  were 180px, 260px and 340px hardcoded in Popover.module.css, read by
192
192
  nothing that could theme them. A brand entry for the same reason, since a
193
193
  panel width is a proportion of the product's layout, and four steps because
194
- the Listbox popup a two-line option row needs is wider than a form panel. */
194
+ the Select popup a two-line option row needs is wider than a form panel. */
195
195
  --haus-brand-popover-width-sm: var(--haus-panel-width-sm); /* 180px: a short action menu */
196
196
  --haus-brand-popover-width-md: var(--haus-panel-width-md); /* 260px: the default */
197
197
  --haus-brand-popover-width-lg: var(--haus-panel-width-lg); /* 340px: a panel holding a form */
198
- --haus-brand-popover-width-xl: var(--haus-panel-width-xl); /* 420px: Listbox two-line rows */
198
+ --haus-brand-popover-width-xl: var(--haus-panel-width-xl); /* 420px: Select two-line rows */
199
199
 
200
200
  /* ── Typeface ────────────────────────────────────────────────────────── */
201
201
  /* haus#54. Until now `--haus-font-sans` and `--haus-font-mono` were
@@ -171,11 +171,11 @@
171
171
  --haus-overlay-width-xl: 56rem; /* 896px, Modal xl. Wide dashboards and side-by-side previews. Added when a second consumer's four-step scale met haus's three: the fourth is haus's now rather than the consumer's. */
172
172
 
173
173
  /* ── Panel widths ────────────────────────────────────────────────────────── */
174
- /* The popover-scale sibling of overlay widths: Popover and the Listbox popup. A brand entry too, for the same reason, read through --haus-popover-width-*. */
174
+ /* The popover-scale sibling of overlay widths: Popover and the Select popup. A brand entry too, for the same reason, read through --haus-popover-width-*. */
175
175
  --haus-panel-width-sm: 11.25rem; /* 180px, Popover sm. A short action menu. */
176
176
  --haus-panel-width-md: 16.25rem; /* 260px, Popover md, the default. */
177
177
  --haus-panel-width-lg: 21.25rem; /* 340px, Popover lg. A panel holding a form. */
178
- --haus-panel-width-xl: 26.25rem; /* 420px, Popover xl. The two-line option rows a Listbox draws. */
178
+ --haus-panel-width-xl: 26.25rem; /* 420px, Popover xl. The two-line option rows a Select draws. */
179
179
 
180
180
  /* ── Component geometry ──────────────────────────────────────────────────── */
181
181
  /* On no ladder and not spacing. Literals inside components until haus#53 put width and height into the hardcoded-value rule. */
@@ -6,28 +6,30 @@
6
6
  radius, elevation and motion. Two kinds of primitive read remain in the
7
7
  components, both deliberate:
8
8
 
9
- · 29 declarations take a size off the space ladder, on height, width,
9
+ · 28 declarations take a size off the space ladder, on height, width,
10
10
  min/max and transform offsets: the avatar sizes and its status dot, the
11
11
  checkbox and radio boxes, the toggle track and thumb and the thumb's
12
- travel, the modal's max height, the toast and modal entry offsets, the
13
- textarea's minimum height and the select chevron's offset. A size is a
12
+ travel, the modal's max height, the toast and modal entry offsets, and the
13
+ textarea's minimum height. A size is a
14
14
  value, not a role, and calling a 16px checkbox --haus-space-inset-md
15
15
  would say something untrue.
16
- · 22 read a primitive that has no alias here because its own name already
17
- is the role: five control heights and seventeen icon sizes (five
18
- --haus-icon-sm, six --haus-icon-lg, six --haus-icon-xs). Button used to
16
+ · 28 read a primitive that has no alias here because its own name already
17
+ is the role: eleven control heights and seventeen icon sizes (six
18
+ --haus-icon-sm, six --haus-icon-lg, five --haus-icon-xs). Button used to
19
19
  read --haus-tracking-normal here too; haus#37 moved it onto
20
- --haus-type-label-tracking, so tracking is a role everywhere and no
21
- component reads the tracking ladder. haus#43 added the icon reads: the
20
+ --haus-type-label-md-tracking, so tracking is a role everywhere and no
21
+ component reads the tracking ladder. haus#43 added the first icon reads: the
22
22
  chevron and the two close buttons bind their box and glyph to the icon
23
23
  scale rather than a raw size.
24
24
 
25
25
  This was 54 until haus#54, which took the 32 --haus-font-sans reads out of
26
26
  this count: typeface became brandable, so the font role now lives in this
27
27
  file (reading --haus-brand-font-sans) rather than being a primitive the
28
- components reach for, and a role read is not a primitive read. (The header
29
- read 50 here until haus#54, stale since haus#55's Spinner took the icon
30
- reads from thirteen to seventeen; corrected in the same pass.)
28
+ components reach for, and a role read is not a primitive read. haus#55's
29
+ Spinner took the icon reads from thirteen to seventeen; haus#58 and haus#61
30
+ added IconButton's and Select's control heights and boxes, to 31; and
31
+ decision 0025 retired the native select, whose four reads left with it, to
32
+ 28. tokens.test.ts holds the ledger.
31
33
 
32
34
  This was 71 before haus#27. Stacking, border width and opacity used to be
33
35
  primitives wearing role names, so a product that wanted the stacking order
@@ -169,10 +171,10 @@
169
171
  of. Caption is the role they were reaching for: 11px, regular, normal
170
172
  tracking, the voice a control explains itself in. The colour is not part
171
173
  of it, so a hint stays ink-secondary and an error message error. */
172
- --haus-type-caption-size: var(--haus-text-11);
173
- --haus-type-caption-weight: var(--haus-weight-regular);
174
- --haus-type-caption-leading: var(--haus-leading-normal);
175
- --haus-type-caption-tracking: var(--haus-tracking-normal);
174
+ --haus-type-label-caption-size: var(--haus-text-11);
175
+ --haus-type-label-caption-weight: var(--haus-weight-regular);
176
+ --haus-type-label-caption-leading: var(--haus-leading-normal);
177
+ --haus-type-label-caption-tracking: var(--haus-tracking-normal);
176
178
 
177
179
  --haus-type-label-sm-size: var(--haus-text-12);
178
180
  --haus-type-label-sm-weight: var(--haus-weight-medium);
@@ -214,15 +216,15 @@
214
216
  The text above a form control is its own typographic role, and it sets
215
217
  all four properties, so it is a role of the ordinary shape rather than
216
218
  another exception. */
217
- --haus-type-field-label-size: var(--haus-text-12);
218
- --haus-type-field-label-weight: var(--haus-weight-semibold);
219
- --haus-type-field-label-leading: var(--haus-leading-normal);
220
- --haus-type-field-label-tracking: var(--haus-tracking-wide);
219
+ --haus-type-label-field-size: var(--haus-text-12);
220
+ --haus-type-label-field-weight: var(--haus-weight-semibold);
221
+ --haus-type-label-field-leading: var(--haus-leading-normal);
222
+ --haus-type-label-field-tracking: var(--haus-tracking-wide);
221
223
 
222
- --haus-type-label-size: var(--haus-text-13);
223
- --haus-type-label-weight: var(--haus-weight-medium);
224
- --haus-type-label-leading: var(--haus-leading-normal);
225
- --haus-type-label-tracking: var(--haus-tracking-normal);
224
+ --haus-type-label-md-size: var(--haus-text-13);
225
+ --haus-type-label-md-weight: var(--haus-weight-medium);
226
+ --haus-type-label-md-leading: var(--haus-leading-normal);
227
+ --haus-type-label-md-tracking: var(--haus-tracking-normal);
226
228
 
227
229
  --haus-type-body-sm-size: var(--haus-text-13);
228
230
  --haus-type-body-sm-weight: var(--haus-weight-regular);
@@ -376,7 +378,7 @@
376
378
  --haus-modal-width-xl: var(--haus-brand-modal-width-xl);
377
379
 
378
380
  /* Popover width, the popover-scale sibling of modal width. Read by Popover
379
- and by the Listbox popup; themeable through the brand entry above. */
381
+ and by the Select popup; themeable through the brand entry above. */
380
382
  --haus-popover-width-sm: var(--haus-brand-popover-width-sm);
381
383
  --haus-popover-width-md: var(--haus-brand-popover-width-md);
382
384
  --haus-popover-width-lg: var(--haus-brand-popover-width-lg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haus-tokens",
3
- "version": "4.2.0",
3
+ "version": "5.0.0",
4
4
  "description": "haus design tokens: OKLCH colour, type, spacing, radius, shadow and motion, as W3C-DTCG JSON, CSS custom properties, and typed JS constants.",
5
5
  "license": "MIT",
6
6
  "engines": {