@fungi.computer/caps 0.2.0 → 0.3.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.
|
@@ -10,11 +10,13 @@ export type ReleaseTagProps = Omit<HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
10
10
|
title: readonly string[];
|
|
11
11
|
/** A small accent strip under the title, such as "Update". */
|
|
12
12
|
label?: ReactNode;
|
|
13
|
-
|
|
13
|
+
/** Names and versions ruled under the page; omit for a tag with none. */
|
|
14
|
+
entries?: readonly ReleaseTagEntry[];
|
|
14
15
|
};
|
|
15
16
|
/**
|
|
16
17
|
* A release badge: a torn-off calendar page with binder rings, a stacked
|
|
17
|
-
* title, one accent strip and
|
|
18
|
+
* title, one accent strip and an optional ruled list of names and versions
|
|
19
|
+
* below.
|
|
18
20
|
* Presentation only; the caller supplies every word.
|
|
19
21
|
*/
|
|
20
22
|
export declare function ReleaseTag({ className, entries, label, title, ...props }: ReleaseTagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,9 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { cn } from "../lib/cn.js";
|
|
3
3
|
/**
|
|
4
4
|
* A release badge: a torn-off calendar page with binder rings, a stacked
|
|
5
|
-
* title, one accent strip and
|
|
5
|
+
* title, one accent strip and an optional ruled list of names and versions
|
|
6
|
+
* below.
|
|
6
7
|
* Presentation only; the caller supplies every word.
|
|
7
8
|
*/
|
|
8
|
-
export function ReleaseTag({ className, entries, label, title, ...props }) {
|
|
9
|
-
return (_jsxs("aside", { ...props, className: cn("caps-release-tag", className), children: [_jsxs("div", { className: "caps-release-tag-page", children: [_jsxs("span", { "aria-hidden": "true", className: "caps-release-tag-rings", children: [_jsx("span", {}), _jsx("span", {})] }), _jsx("p", { className: "caps-release-tag-title", children: title.map((line) => (_jsx("span", { children: line }, line))) }), label ? _jsx("p", { className: "caps-release-tag-label", children: label }) : null] }), _jsx("dl", { className: "caps-release-tag-entries", children: entries.map((entry) => (_jsxs("div", { children: [_jsx("dt", { children: entry.name }), _jsx("dd", { children: entry.version })] }, entry.name))) })] }));
|
|
9
|
+
export function ReleaseTag({ className, entries = [], label, title, ...props }) {
|
|
10
|
+
return (_jsxs("aside", { ...props, className: cn("caps-release-tag", className), children: [_jsxs("div", { className: "caps-release-tag-page", children: [_jsxs("span", { "aria-hidden": "true", className: "caps-release-tag-rings", children: [_jsx("span", {}), _jsx("span", {})] }), _jsx("p", { className: "caps-release-tag-title", children: title.map((line) => (_jsx("span", { children: line }, line))) }), label ? _jsx("p", { className: "caps-release-tag-label", children: label }) : null] }), entries.length > 0 ? (_jsx("dl", { className: "caps-release-tag-entries", children: entries.map((entry) => (_jsxs("div", { children: [_jsx("dt", { children: entry.name }), _jsx("dd", { children: entry.version })] }, entry.name))) })) : null] }));
|
|
10
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/caps",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Product-neutral React primitives and blocks for Fungi interfaces",
|
|
6
6
|
"type": "module",
|
|
@@ -372,6 +372,8 @@
|
|
|
372
372
|
},
|
|
373
373
|
"./fonts.css": "./src/fonts.css",
|
|
374
374
|
"./fonts-sans.css": "./src/fonts-sans.css",
|
|
375
|
+
"./fonts-display.css": "./src/fonts-display.css",
|
|
376
|
+
"./fonts-mono.css": "./src/fonts-mono.css",
|
|
375
377
|
"./blocks/section-heading": {
|
|
376
378
|
"types": "./dist/blocks/section-heading.d.ts",
|
|
377
379
|
"import": "./dist/blocks/section-heading.js"
|
|
@@ -460,6 +462,8 @@
|
|
|
460
462
|
"README.md",
|
|
461
463
|
"src/fonts.css",
|
|
462
464
|
"src/fonts-sans.css",
|
|
465
|
+
"src/fonts-display.css",
|
|
466
|
+
"src/fonts-mono.css",
|
|
463
467
|
"src/status-tray.css",
|
|
464
468
|
"src/app-status-bar.css"
|
|
465
469
|
],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@fungi.computer/stipe/fonts-display.css";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "@fungi.computer/stipe/fonts-mono.css";
|