@iyulab/house-style 0.8.0 → 0.9.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
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.0] - 2026-10-17
4
+
5
+ ### Added
6
+
7
+ - The reference app's sidebar foot is an account menu — the signed-in user's name, a role line and initials, with the theme
8
+ toggle and Sign out inside (`type: 'menu'` with `avatar` and `description`). The route guard that loads the session keeps the
9
+ user, and the shell reads it when the layout route renders (again after every sign-in), so the config needs no reactive
10
+ session.
11
+ - `.hs-note` — a collapsible explanation (`<details class="hs-note">`): an accent summary line, the body one step quieter,
12
+ 760px at most. The guide also says that a section heading (`u-group-box` `meta` + `actions`) and a record heading
13
+ (`u-page-header` `eyebrow` + `status`) are components already — no pattern for them.
14
+
15
+ ### Removed
16
+
17
+ - `--hs-control-sm` · `--hs-control-md` · `--hs-control-lg` — declared as «read by components.css», read by nothing.
18
+ Control heights follow from the density (`--u-density`) through the padding formula (32 / 36 / 40 at 14px), so the
19
+ literals would also have been wrong at any other density. A host control that wants the ladder measures a
20
+ `u-button` or sets its own height.
21
+
22
+ ## [0.8.1] - 2026-10-17
23
+
24
+ ### Fixed
25
+
26
+ - A KPI figure (`u-info-field size="xl"`) is the house hero step (`--hs-text-hero-size`, 28px at the 24px display) —
27
+ 0.8.0 defined the step but nothing read it. Needs `@iyulab/modern-app` 0.56 or later (the optional peer floor moves
28
+ from 0.54 to 0.56).
29
+
30
+ ### Documentation
31
+
32
+ - The guide's KPI section shows the tile grid (`appearance="tile"`, `size="xl"`, a toned tile with a status icon, a
33
+ blank figure with its reason) next to the strip, and when to use which.
34
+
3
35
  ## [0.8.0] - 2026-10-17
4
36
 
5
37
  The palette moves to the application and the house gains presets; controls, rows and the type ladder grow a step.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/house-style",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "The iyulab house theme: a CSS-only theme for @iyulab components — tokens, component recipes, line-of-business layout patterns and a Tailwind CSS v4 preset — plus the guide site that documents it.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -60,7 +60,7 @@
60
60
  "peerDependencies": {
61
61
  "@iyulab/components": "^2.29.0",
62
62
  "@iyulab/flex-table": ">=0.41.0",
63
- "@iyulab/modern-app": ">=0.54.0"
63
+ "@iyulab/modern-app": ">=0.56.0"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@iyulab/flex-table": {
@@ -74,8 +74,8 @@
74
74
  "@iyulab/components": "^2.29.0",
75
75
  "@iyulab/data-components": "^0.51.0",
76
76
  "@iyulab/enterprise": "^0.35.0",
77
- "@iyulab/flex-table": "^0.68.0",
78
- "@iyulab/modern-app": "^0.55.0",
77
+ "@iyulab/flex-table": "^0.70.0",
78
+ "@iyulab/modern-app": "^0.56.0",
79
79
  "@iyulab/router": "^0.24.0",
80
80
  "@iyulab/u-widgets": "^0.35.0",
81
81
  "@lit/react": "^1.0.8",
@@ -325,6 +325,12 @@ u-page-header::part(subtitle) {
325
325
  color: var(--u-txt-color-weak);
326
326
  }
327
327
 
328
+ /* ── Info field (`@iyulab/modern-app`) — a KPI figure (`size="xl"`) is the house hero step, 28 at the 24 display.
329
+ * A tile (`appearance="tile"`) is already a card surface — border, card corner, surface — from the shared tokens. ── */
330
+ u-info-field {
331
+ --info-field-xl-size: var(--hs-text-hero-size);
332
+ }
333
+
328
334
  /* ── Sidebar layout — the sidebar is a surface separated from the canvas by a hairline.
329
335
  * (The page already sits on `--u-canvas-bg-color`; padding is `--app-main-padding`.) ── */
330
336
  u-sidebar-layout::part(sidebar) {
@@ -160,6 +160,30 @@ tr[aria-selected='true'] .hs-row-actions {
160
160
  align-items: start;
161
161
  }
162
162
 
163
+ /* ── Collapsible note — `<details class="hs-note">`: an accent summary line, the body one step quieter. For the
164
+ * explanation a screen can do without; the conclusion still goes in the title (callouts), not in here. ── */
165
+ .hs-note {
166
+ max-inline-size: 760px;
167
+ font-size: var(--u-text-label-size);
168
+ line-height: 1.55;
169
+ color: var(--u-txt-color-weak);
170
+ }
171
+ .hs-note > summary {
172
+ cursor: pointer;
173
+ width: fit-content;
174
+ font-size: var(--u-text-body-size);
175
+ font-weight: 600;
176
+ color: var(--u-primary-color);
177
+ }
178
+ .hs-note > summary:focus-visible {
179
+ outline: 2px solid var(--u-focus-ring-color, var(--u-primary-color));
180
+ outline-offset: 2px;
181
+ border-radius: var(--u-radius-sm);
182
+ }
183
+ .hs-note > :not(summary) {
184
+ margin: var(--u-space-sm, 8px) 0 0;
185
+ }
186
+
163
187
  /* ── Form — label above, help below; sections instead of one long grid ── */
164
188
  .hs-fieldset {
165
189
  margin: 0;
package/styles/tokens.css CHANGED
@@ -530,10 +530,8 @@
530
530
  --u-text-overline-leading: 1.273;
531
531
  --u-text-overline-tracking: 0.04em;
532
532
 
533
- /* House-only scale — control heights and table rows (read by components.css · patterns.css) */
534
- --hs-control-sm: 32px;
535
- --hs-control-md: 36px;
536
- --hs-control-lg: 40px;
533
+ /* House-only scale — table rows (read by components.css · patterns.css). Control heights are not tokens: they
534
+ follow from the density (`--u-density`) through the padding formula in components.css, 32 / 36 / 40 at 14px. */
537
535
  --hs-row: 44px;
538
536
  --hs-row-compact: 36px;
539
537
  --hs-page-padding: 20px 32px 48px;