@usableapp/cardds 0.7.130 → 0.7.131
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 +9 -0
- package/css/base.css +0 -28
- package/css/tokens.css +0 -1
- package/dist/cardds.css +0 -29
- package/dist/catalog.json +1 -1
- package/dist/scaffold/Screen.js +1 -7
- package/docs/reference.md +1 -5
- package/package.json +1 -1
package/dist/scaffold/Screen.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createElement, useEffect, useRef } from 'react';
|
|
2
|
-
import { createPortal } from 'react-dom';
|
|
3
2
|
import { setRefs, warnOnce, watchSize } from '../state.js';
|
|
4
3
|
import { cx } from '../cx.js';
|
|
5
4
|
/**
|
|
@@ -40,10 +39,5 @@ export function Screen({ fill, palette, as = 'div', top, bottom, ready = true, c
|
|
|
40
39
|
}
|
|
41
40
|
return watchSize([lead], () => el.style.setProperty('--top-h', `${lead.offsetHeight}px`));
|
|
42
41
|
}, [top, ready]);
|
|
43
|
-
|
|
44
|
-
container-type would hold the fixed strip and its z-index to the screen. Shown only on iOS from the home screen, by css */
|
|
45
|
-
const strip = fill && typeof document !== 'undefined'
|
|
46
|
-
? createPortal(createElement('div', { className: 'safe-top', 'aria-hidden': true, 'data-palette': palette }), document.body)
|
|
47
|
-
: null;
|
|
48
|
-
return createElement(as, { className: cx('screen', fill && 'screen--fill', top === 'lead' && 'screen--lead', className), 'data-palette': palette, 'data-pending': ready ? undefined : '', 'aria-busy': ready ? undefined : true, ref: setRefs(own, ref), ...rest }, ready && top !== 'lead' ? top : null, ready ? children : null, ready ? bottom : null, strip);
|
|
42
|
+
return createElement(as, { className: cx('screen', fill && 'screen--fill', top === 'lead' && 'screen--lead', className), 'data-palette': palette, 'data-pending': ready ? undefined : '', 'aria-busy': ready ? undefined : true, ref: setRefs(own, ref), ...rest }, ready && top !== 'lead' ? top : null, ready ? children : null, ready ? bottom : null);
|
|
49
43
|
}
|
package/docs/reference.md
CHANGED
|
@@ -55,11 +55,7 @@ import './theme.css'; // the project's own look, after the system's — see "A
|
|
|
55
55
|
`viewport-fit=cover` = the app runs edge to edge under the phone's own bars; cardds publishes their room as
|
|
56
56
|
`--safe-top` / `--safe-bottom` (from `env(safe-area-inset-*)`, 0 without cover) and keeps what the member reads or taps
|
|
57
57
|
clear of them — the bottom bar's buttons, a sheet's peeked head, its foot and the end of its body, the float bar, the FAB,
|
|
58
|
-
a stage's foot; a fill `Screen` starts under the status bar — while every ground still runs to the edge. A
|
|
59
|
-
`Screen` also renders a `.safe-top` strip into `<body>`, over every layer (`--z-ceiling`), shown only on iOS run from the home
|
|
60
|
-
screen: iOS 26 blurs the top of a home-screen web app with Liquid Glass, and an opaque fixed box topmost there turns the blur
|
|
61
|
-
off, so a sheet's grab handle stays in sight. What shows is the `--safe-top` room in the screen's ground (`--safe-top-bg`,
|
|
62
|
-
default `--surface`; set it in `:root`, the strip is outside the screen); where `--safe-top` is 0 nothing shows. Nothing to add. A
|
|
58
|
+
a stage's foot; a fill `Screen` starts under the status bar — while every ground still runs to the edge. A
|
|
63
59
|
component of the app's own pinned to an edge reads the same two tokens. `interactive-widget=resizes-content` =
|
|
64
60
|
Android shrinks the page for the keyboard (`--kb` stays 0 there; iOS publishes it).
|
|
65
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.131",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "card-first mobile design system, React-first: the components in src/ are thin wrappers over the CSS contract (css/*.css stays the only truth); gallery/ shows every story live (npm run dev), tests/ measures the geometry.",
|