@hanzo/ui 8.22.0 → 8.23.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/styles.css CHANGED
@@ -2270,12 +2270,36 @@ body {
2270
2270
  a 52px display line and a 17px sub-head: 8px under the display line read as
2271
2271
  the byline touching it. `em` here is the heading's own size, so the ratio
2272
2272
  holds at every rung. A caller setting its own margin still wins. */
2273
- .hz-prose > h1 { margin-block-end: .34em }
2274
- .hz-prose > h2 { margin-block-end: .38em }
2275
- .hz-prose > h3 { margin-block-end: .42em }
2273
+ .hz-prose > h1 { margin-block-end: .5em }
2274
+ .hz-prose > h2 { margin-block-end: .55em }
2275
+ .hz-prose > h3 { margin-block-end: .6em }
2276
2276
  .hz-prose > h4,
2277
2277
  .hz-prose > h5,
2278
- .hz-prose > h6 { margin-block-end: .5em }
2278
+ .hz-prose > h6 { margin-block-end: .75em }
2279
+
2280
+ /* Space ABOVE a heading is larger than the space below it — that asymmetry is
2281
+ what groups a heading with the text it introduces rather than the text it
2282
+ follows. Not applied to the first child, which has nothing to separate from. */
2283
+ .hz-prose > h1:not(:first-child) { margin-block-start: 1.1em }
2284
+ .hz-prose > h2:not(:first-child) { margin-block-start: 1.2em }
2285
+ .hz-prose > h3:not(:first-child),
2286
+ .hz-prose > h4:not(:first-child),
2287
+ .hz-prose > h5:not(:first-child),
2288
+ .hz-prose > h6:not(:first-child) { margin-block-start: 1.4em }
2289
+
2290
+ /* ── The line-height a converted box inherits ─────────────────────────────
2291
+ gui's Stack stamps its own leading, which is right for a native view and
2292
+ wrong for a div: a div takes its line-height from the cascade, and a box
2293
+ converted from one used to grow a few pixels per line of text.
2294
+
2295
+ Stated HERE rather than as an inline style on the element. Inline beats every
2296
+ selector, so the previous form silently defeated the app's own vocabulary — a
2297
+ `.display` class asking for 1.15 lost to it and its headings overlapped. As a
2298
+ rule it is a default: gui's own leading classes come later and win, and an
2299
+ app's sheet comes later still and wins over both, which is the right order. */
2300
+ :root .is_View {
2301
+ line-height: inherit;
2302
+ }
2279
2303
 
2280
2304
  /* @hanzo/ui motion primitives — the calm, restrained animation vocabulary the
2281
2305
  Hanzo surfaces share. One place defines the easing; components apply the class.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "8.22.0",
3
+ "version": "8.23.0",
4
4
  "type": "module",
5
5
  "description": "Hanzo UI — the one canonical Hanzo component library, on @hanzo/gui + @hanzo/design. ONE substrate: every component renders through @hanzo/gui primitives, so the same import works on web, native (expo) and desktop (Tauri). Self-contained (theme.css), presentational, host-agnostic, clean-room.",
6
6
  "exports": {