@usableapp/cardds 0.7.171 → 0.7.172
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 +13 -0
- package/css/numbers.css +3 -2
- package/dist/cardds.css +3 -2
- package/dist/catalog.json +1 -1
- package/dist/numbers/NumberBand.d.ts +1 -1
- package/dist/numbers/NumberBand.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export interface NumberBandProps extends ComponentProps<'article'> {
|
|
|
10
10
|
/** the paper — see `Tone` */
|
|
11
11
|
tone?: Tone;
|
|
12
12
|
}
|
|
13
|
-
/** NumberBand — a data card: 2-line label ·
|
|
13
|
+
/** NumberBand — a data card: 2-line label (the label type) · the one number on a sheet (the stat type at the hero size, knobs `--band-num-font` · `--band-num-font-size`) · footnote. Stack several in a NumberBandStack for one boundary with hairlines. */
|
|
14
14
|
export declare function NumberBand({ label, num, foot, tone, className, ...rest }: NumberBandProps): import("react").JSX.Element;
|
|
15
15
|
export interface NumberBandStackProps extends ComponentProps<'div'> {
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cx } from '../cx.js';
|
|
3
|
-
/** NumberBand — a data card: 2-line label ·
|
|
3
|
+
/** NumberBand — a data card: 2-line label (the label type) · the one number on a sheet (the stat type at the hero size, knobs `--band-num-font` · `--band-num-font-size`) · footnote. Stack several in a NumberBandStack for one boundary with hairlines. */
|
|
4
4
|
export function NumberBand({ label, num, foot, tone, className, ...rest }) {
|
|
5
5
|
return (_jsxs("article", { className: cx('card card--band', tone && tone !== 1 && `card--${tone}`, className), ...rest, children: [_jsx("span", { className: "band__label", children: label }), _jsx("span", { className: "band__num", children: num }), foot != null && _jsx("span", { className: "band__foot", children: foot })] }));
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usableapp/cardds",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.172",
|
|
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).",
|