@addiscorp/kit 0.3.0 → 0.4.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/README.md +4 -4
- package/dist/footer/index.d.ts +4 -10
- package/dist/footer/index.js +5 -3
- package/dist/kit.css +7 -7
- package/dist/license/index.d.ts +0 -8
- package/dist/license/index.js +5 -14
- package/dist/tool/index.d.ts +2 -6
- package/dist/tool/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
34
34
|
placeholder="Search the docs"
|
|
35
35
|
/>
|
|
36
36
|
|
|
37
|
-
<Footer
|
|
37
|
+
<Footer />
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
## What the kit does, so no app has to
|
|
@@ -42,7 +42,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
|
|
|
42
42
|
- **The menu**: the brand button opens it; ⌘M / Ctrl+M opens and closes it; ⌘S, Ctrl+S or `/` opens it on search; typing anywhere searches; ↑ ↓ move, Enter opens, 1–9 open a numbered tile, Esc closes, `?` lists the shortcuts. A click outside or a navigation closes it.
|
|
43
43
|
- **Groups** are tiles (numbered 1–9 in order across groups) or rows (`layout: 'list'`); a `searchOnly` group appears only as search matches. An item has a `href` or an `onSelect`, an optional `icon`, `detail` and `keywords`.
|
|
44
44
|
- **`HeaderButton`**: a round button with a popover, one popover open at a time with the menu: account, notifications (`badge`), settings, or anything else.
|
|
45
|
-
- **`Footer`**: who makes the site (Addis Corp by default; `owner` changes it)
|
|
45
|
+
- **`Footer`**: who makes the site, the one copyright line (Addis Corp by default; `owner` changes it); the product's license (`MIT license`, to `/license/`) when `license` is passed; Terms and Privacy, which every Addis site links to the same pages on addis.gg (`TERMS_HREF`, `PRIVACY_HREF`); the light/dark switch.
|
|
46
46
|
- **Theme**: `themeBoot` sets light or dark before paint (a `theme` cookie wins, else the system); `ThemeToggle` switches and remembers.
|
|
47
47
|
|
|
48
48
|
## The license
|
|
@@ -62,11 +62,11 @@ const p8: License = { // a for
|
|
|
62
62
|
preface: 'p8 began as a fork of php-rs by Di Wu.',
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
<ToolSite tool="harar" license={harar}>…</ToolSite> // footer: "MIT
|
|
65
|
+
<ToolSite tool="harar" license={harar}>…</ToolSite> // footer: "MIT license" → /license/, then "source"
|
|
66
66
|
<Hero … status="alpha" license={harar} /> // ( Status: Alpha ) ( License: MIT ) above the buttons; License → /license/
|
|
67
67
|
<ProductPills status="beta" license={license} /> // the same pair on any other page
|
|
68
68
|
<DocsLayout … license={harar}>…</DocsLayout> // the same footer line
|
|
69
|
-
<Footer
|
|
69
|
+
<Footer license={license} /> // any site's footer
|
|
70
70
|
<LicenseView product="harar" license={harar} note={…} /> // the page: summary line, note, source, the full text
|
|
71
71
|
```
|
|
72
72
|
|
package/dist/footer/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { LinkComponent } from '../header/index.js';
|
|
3
|
-
import { type License } from '../license/index.js';
|
|
4
2
|
export type Owner = {
|
|
5
3
|
name: string;
|
|
6
4
|
href: string;
|
|
@@ -8,18 +6,14 @@ export type Owner = {
|
|
|
8
6
|
};
|
|
9
7
|
/** Addis Corp, the default owner. */
|
|
10
8
|
export declare const ADDIS: Owner;
|
|
9
|
+
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
|
+
export declare const TERMS_HREF = "https://addis.gg/terms/";
|
|
11
|
+
export declare const PRIVACY_HREF = "https://addis.gg/privacy/";
|
|
11
12
|
export type FooterProps = {
|
|
12
|
-
/** The site's name, shown at the end: `simien.dev`. */
|
|
13
|
-
site: string;
|
|
14
13
|
owner?: Owner;
|
|
15
14
|
/** The year in the copyright line; this year by default. */
|
|
16
15
|
year?: number;
|
|
17
|
-
/** Anything else for the end of the footer, before the theme switch. */
|
|
18
|
-
children?: ReactNode;
|
|
19
16
|
/** A small line under the footer row, e.g. trademark notices. */
|
|
20
17
|
note?: ReactNode;
|
|
21
|
-
/** The product's license: `MIT · © 2026 Sami Fouad`, linking to the license page. */
|
|
22
|
-
license?: License;
|
|
23
|
-
Link?: LinkComponent;
|
|
24
18
|
};
|
|
25
|
-
export declare function Footer({
|
|
19
|
+
export declare function Footer({ owner, year, note }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/footer/index.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ThemeToggle } from '../theme/index.js';
|
|
3
|
-
import { LicenseLink } from '../license/index.js';
|
|
4
3
|
/** Addis Corp, the default owner. */
|
|
5
4
|
export const ADDIS = {
|
|
6
5
|
name: 'Addis Corp',
|
|
7
6
|
href: 'https://addis.gg',
|
|
8
7
|
logo: _jsx(AddisMark, {}),
|
|
9
8
|
};
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
/** The terms and privacy pages: one place on addis.gg for every Addis site. */
|
|
10
|
+
export const TERMS_HREF = 'https://addis.gg/terms/';
|
|
11
|
+
export const PRIVACY_HREF = 'https://addis.gg/privacy/';
|
|
12
|
+
export function Footer({ owner = ADDIS, year = new Date().getFullYear(), note }) {
|
|
13
|
+
return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("nav", { className: "ak-foot-end", "aria-label": "Legal", children: [_jsx("a", { href: TERMS_HREF, children: "terms" }), _jsx("a", { href: PRIVACY_HREF, children: "privacy" }), _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
|
|
12
14
|
}
|
|
13
15
|
function AddisMark() {
|
|
14
16
|
return (_jsx("svg", { className: "ak-owner-mark", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64", width: 32, height: 32, "aria-hidden": "true", dangerouslySetInnerHTML: { __html: '<circle cx="32" cy="32" r="31" fill="#1b1914"/><path fill="#f3efe3" d="M28.48 41L23.89 41L29.63 28.07Q26.87 27.73 25.60 26.27Q24.33 24.82 24.33 22.28L24.33 22.28L24.33 18.87L28.73 18.87L28.73 21.44Q28.73 23.27 29.52 23.95Q30.31 24.63 32.11 24.63L32.11 24.63L35.70 24.63L28.48 41ZM40.17 41L35.55 41Q35.52 38.21 35.08 36.51Q34.65 34.80 33.81 33.85Q32.98 32.91 31.74 32.38L31.74 32.38L33.19 28.91Q35.39 29.69 36.93 31.11Q38.46 32.54 39.28 34.92Q40.11 37.31 40.17 41L40.17 41Z"/><rect x="20" y="47.5" width="8" height="3" fill="#078930"/><rect x="28" y="47.5" width="8" height="3" fill="#fcdd09"/><rect x="36" y="47.5" width="8" height="3" fill="#da121a"/>' } }));
|
package/dist/kit.css
CHANGED
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
.ak-top-center { position: relative; }
|
|
52
52
|
.ak-anchor { position: relative; }
|
|
53
53
|
.ak-topbar :focus-visible, .ak-help :focus-visible { outline: 2px solid var(--ak-accent); outline-offset: 3px; }
|
|
54
|
+
/* Text fields never draw a focus ring (Sami, 14 Nov): the caret shows where you are typing.
|
|
55
|
+
Zero specificity, so a site can still style its own fields on purpose. */
|
|
56
|
+
:where(input, textarea, select):focus, :where(input, textarea, select):focus-visible,
|
|
57
|
+
.ak-topbar :is(input, textarea, select):focus-visible, .ak-help :is(input, textarea, select):focus-visible { outline: none; box-shadow: none; }
|
|
54
58
|
|
|
55
59
|
.ak-profile-btn, .ak-icon-btn, .ak-launcher { border: 0; color: var(--ak-ink); cursor: pointer; background: transparent; font: inherit; }
|
|
56
60
|
.ak-profile-btn, .ak-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; padding: 0; }
|
|
@@ -77,7 +81,7 @@
|
|
|
77
81
|
.ak-popover.ak-end { left: auto; right: 0; }
|
|
78
82
|
.ak-popover p { margin: 0; }
|
|
79
83
|
|
|
80
|
-
.ak-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ak-
|
|
84
|
+
.ak-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ak-edge); border-radius: 10px; padding: 0 10px; background: var(--ak-ground); color: var(--ak-soft); }
|
|
81
85
|
.ak-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: none; background: transparent; color: var(--ak-ink); font: inherit; }
|
|
82
86
|
.ak-search input::placeholder { color: var(--ak-soft); }
|
|
83
87
|
.ak-group-label { margin: 14px 4px 8px; font-size: 11px; color: color-mix(in srgb, var(--ak-soft) 72%, var(--ak-ground)); }
|
|
@@ -110,6 +114,8 @@
|
|
|
110
114
|
.ak-foot-end { display: inline-flex; align-items: center; gap: 12px; }
|
|
111
115
|
.ak-foot-note { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.6; color: var(--ak-soft); opacity: .8; }
|
|
112
116
|
.ak-foot-end { flex-wrap: wrap; justify-content: flex-end; }
|
|
117
|
+
.ak-foot-end a { color: inherit; text-decoration: none; }
|
|
118
|
+
.ak-foot-end a:hover { color: var(--ak-ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
113
119
|
|
|
114
120
|
/* Status: where a product stands. Beta is a filled dot, alpha a hollow one. */
|
|
115
121
|
.ak-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
@@ -122,8 +128,6 @@
|
|
|
122
128
|
.ak-pills > a.ak-pill:hover { border-color: var(--ak-accent); color: var(--ak-ink); }
|
|
123
129
|
|
|
124
130
|
/* The license (APS 17): the footer line, the hero badge and the license page. */
|
|
125
|
-
.ak-license a { color: inherit; text-decoration: none; }
|
|
126
|
-
.ak-license a:hover { color: var(--ak-ink); text-decoration: underline; text-underline-offset: 3px; }
|
|
127
131
|
.ak-license-page { max-width: 760px; padding: 48px 0 72px; color: var(--ak-ink); }
|
|
128
132
|
.ak-license-eyebrow { font: 600 12px var(--ak-font); letter-spacing: .11em; text-transform: uppercase; color: var(--ak-soft); }
|
|
129
133
|
.ak-license-page h1 { font: 800 clamp(32px, 5vw, 46px)/1.1 var(--ak-display); letter-spacing: -0.03em; margin: 6px 0 16px; }
|
|
@@ -131,10 +135,6 @@
|
|
|
131
135
|
.ak-license-note, .ak-license-source { color: var(--ak-soft); margin: 8px 0; max-width: 64ch; line-height: 1.55; }
|
|
132
136
|
.ak-license-page .ak-license-note a, .ak-license-page .ak-license-source a { color: var(--ak-accent); text-underline-offset: 3px; }
|
|
133
137
|
.ak-license-text { margin: 28px 0 0; padding: 24px 28px; background: var(--ak-panel); border: 1px solid var(--ak-edge); border-radius: 12px; font: 13px/1.7 var(--ak-font); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
134
|
-
@media (min-width: 601px) {
|
|
135
|
-
/* The license block, then a rule, then the site's name. */
|
|
136
|
-
.ak-foot-end .ak-license { padding-right: 12px; border-right: 1px solid var(--ak-edge); }
|
|
137
|
-
}
|
|
138
138
|
@media (max-width: 600px) {
|
|
139
139
|
.ak-license-page { padding: 32px 0 48px; }
|
|
140
140
|
/* The file's lines are wrapped for 80 columns: on a phone each paragraph reflows instead. */
|
package/dist/license/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { LinkComponent } from '../header/index.js';
|
|
3
2
|
/** A copyright line: `Copyright (c) 2025 Di Wu (GitHub: wudi)`. */
|
|
4
3
|
export type Notice = {
|
|
5
4
|
year: number;
|
|
@@ -34,13 +33,6 @@ export declare const MIT_PERMISSION = "Permission is hereby granted, free of cha
|
|
|
34
33
|
export declare function mitLicense(license?: License): string;
|
|
35
34
|
/** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
|
|
36
35
|
export declare const MIT_LICENSE: string;
|
|
37
|
-
/** The short line a footer shows: `MIT · © 2026 Sami Fouad`. */
|
|
38
|
-
export declare function licenseLine(license?: License): string;
|
|
39
|
-
/** For the footer: the line, linking to the license page, and the source when it's public. */
|
|
40
|
-
export declare function LicenseLink({ license, Link }: {
|
|
41
|
-
license?: License;
|
|
42
|
-
Link?: LinkComponent;
|
|
43
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
44
36
|
/** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
|
|
45
37
|
export declare const licenseSummary: (product: string) => string;
|
|
46
38
|
/**
|
package/dist/license/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// The license, once (APS 17: Addis products are MIT, `Copyright (c) <year> Sami Fouad`).
|
|
3
|
-
// One description of a product's license drives
|
|
4
|
-
// it, so they can't disagree: the text (`mitLicense`), the
|
|
5
|
-
// (`
|
|
3
|
+
// One description of a product's license drives the three places a site shows
|
|
4
|
+
// it, so they can't disagree: the text (`mitLicense`), the hero pill
|
|
5
|
+
// (`LicensePill`, in ../status) and the page (`LicenseView`). The footer doesn't
|
|
6
|
+
// show it (Sami, 27 Nov): its one copyright line is the owner's.
|
|
6
7
|
import { Fragment } from 'react';
|
|
7
8
|
export const LICENSE_YEAR = 2026;
|
|
8
9
|
export const LICENSE_HOLDER = 'Sami Fouad';
|
|
@@ -39,16 +40,6 @@ export function mitLicense(license = {}) {
|
|
|
39
40
|
}
|
|
40
41
|
/** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
|
|
41
42
|
export const MIT_LICENSE = mitLicense();
|
|
42
|
-
/** The short line a footer shows: `MIT · © 2026 Sami Fouad`. */
|
|
43
|
-
export function licenseLine(license = {}) {
|
|
44
|
-
const { year, holder } = ours(license);
|
|
45
|
-
return `MIT · © ${year} ${holder}`;
|
|
46
|
-
}
|
|
47
|
-
const PlainLink = (props) => _jsx("a", { ...props });
|
|
48
|
-
/** For the footer: the line, linking to the license page, and the source when it's public. */
|
|
49
|
-
export function LicenseLink({ license = {}, Link = PlainLink }) {
|
|
50
|
-
return (_jsxs("span", { className: "ak-license", children: [_jsx(Link, { href: license.href ?? LICENSE_HREF, children: licenseLine(license) }), license.source && _jsxs(_Fragment, { children: [" \u00B7 ", _jsx("a", { href: license.source, children: "source" })] })] }));
|
|
51
|
-
}
|
|
52
43
|
/** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
|
|
53
44
|
export const licenseSummary = (product) => `${product} is MIT licensed: use it, change it, ship it, commercially or not; keep the notice.`;
|
|
54
45
|
/**
|
package/dist/tool/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type HeaderLink = {
|
|
|
17
17
|
href: string;
|
|
18
18
|
};
|
|
19
19
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
20
|
-
export declare function ToolSite({ tool, home, docs, links, footnote,
|
|
20
|
+
export declare function ToolSite({ tool, home, docs, links, footnote, Link, children }: {
|
|
21
21
|
tool: ToolId;
|
|
22
22
|
home?: string;
|
|
23
23
|
docs?: string;
|
|
@@ -25,8 +25,6 @@ export declare function ToolSite({ tool, home, docs, links, footnote, license, L
|
|
|
25
25
|
links?: HeaderLink[];
|
|
26
26
|
/** A small line under the footer, e.g. trademark notices. */
|
|
27
27
|
footnote?: ReactNode;
|
|
28
|
-
/** The tool's license, in the footer: `MIT · © 2026 Sami Fouad`. */
|
|
29
|
-
license?: License;
|
|
30
28
|
Link?: LinkComponent;
|
|
31
29
|
children: ReactNode;
|
|
32
30
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -150,7 +148,7 @@ export type DocsPage = {
|
|
|
150
148
|
title: string;
|
|
151
149
|
};
|
|
152
150
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
153
|
-
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote,
|
|
151
|
+
export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote, home, Link, children }: {
|
|
154
152
|
tool: ToolId;
|
|
155
153
|
pages: DocsPage[];
|
|
156
154
|
pathname: string;
|
|
@@ -161,8 +159,6 @@ export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede
|
|
|
161
159
|
note?: string;
|
|
162
160
|
/** A small line under the footer, e.g. trademark notices. */
|
|
163
161
|
footnote?: ReactNode;
|
|
164
|
-
/** The tool's license, in the footer. */
|
|
165
|
-
license?: License;
|
|
166
162
|
home?: string;
|
|
167
163
|
Link?: LinkComponent;
|
|
168
164
|
children: ReactNode;
|
package/dist/tool/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Footer } from '../footer/index.js';
|
|
|
3
3
|
import { ProductPills } from '../status/index.js';
|
|
4
4
|
import { CopyButton } from './copy.js';
|
|
5
5
|
import { MARKS } from './marks.js';
|
|
6
|
-
import { TOOLS,
|
|
6
|
+
import { TOOLS, toolName } from './tools.js';
|
|
7
7
|
export { TOOLS, toolInfo, toolName } from './tools.js';
|
|
8
8
|
export { MARKS } from './marks.js';
|
|
9
9
|
export { CopyButton } from './copy.js';
|
|
@@ -14,8 +14,8 @@ export function Mark({ tool, size = 26 }) {
|
|
|
14
14
|
return (_jsxs("span", { className: "akt-mark", style: { width: size, height: size }, "aria-hidden": "true", children: [_jsx("svg", { className: "akt-light", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.light } }), _jsx("svg", { className: "akt-dark", viewBox: "0 0 24 24", width: size, height: size, dangerouslySetInnerHTML: { __html: mark.dark } })] }));
|
|
15
15
|
}
|
|
16
16
|
/** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
|
|
17
|
-
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote,
|
|
18
|
-
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool)] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, {
|
|
17
|
+
export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote, Link = PlainLink, children }) {
|
|
18
|
+
return (_jsxs("div", { className: "akt", "data-tool": tool, children: [_jsxs("main", { className: "akt-main", children: [_jsxs("header", { className: "akt-header", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool)] }), _jsxs("nav", { "aria-label": "Main", children: [_jsx(Link, { href: docs, children: "docs" }), links.map((link) => _jsx(Link, { href: link.href, children: link.label }, link.href))] })] }), children] }), _jsx(Footer, { note: footnote })] }));
|
|
19
19
|
}
|
|
20
20
|
const SCENE_SECONDS = 5;
|
|
21
21
|
/**
|
|
@@ -61,9 +61,9 @@ function Works({ works }) {
|
|
|
61
61
|
: _jsx("span", { className: "akt-work-logo", children: _jsx("img", { src: item.logo.light, alt: "" }) })), _jsxs("div", { children: [_jsx("strong", { children: item.name }), item.note && _jsx("span", { children: item.note })] })] }, item.name))) })] }));
|
|
62
62
|
}
|
|
63
63
|
/** The docs, after rixse.dev: the pages down the side, the page on the right. */
|
|
64
|
-
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote,
|
|
64
|
+
export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, home = '/', Link = PlainLink, children }) {
|
|
65
65
|
const here = (href) => href.replace(/\/$/, '') === pathname.replace(/\/$/, '');
|
|
66
|
-
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool), _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, {
|
|
66
|
+
return (_jsxs("div", { className: "akt akt-docs", "data-tool": tool, children: [_jsxs("div", { className: "akt-docs-grid", children: [_jsxs("aside", { className: "akt-side", children: [_jsxs(Link, { className: "akt-brand", href: home, children: [_jsx(Mark, { tool: tool }), toolName(tool), _jsx("span", { className: "akt-brand-docs", children: "docs" })] }), _jsx("nav", { "aria-label": "Docs", children: pages.map((page) => (_jsx(Link, { href: page.href, "aria-current": here(page.href) ? 'page' : undefined, children: page.title }, page.href))) }), note && _jsx("p", { className: "akt-side-note", children: note })] }), _jsxs("article", { className: "akt-doc", children: [_jsx("div", { className: "akt-eyebrow", children: eyebrow }), _jsx("h1", { children: title }), lede && _jsx("p", { className: "akt-lede", children: lede }), _jsx("div", { className: "akt-prose", children: children })] })] }), _jsx(Footer, { note: footnote })] }));
|
|
67
67
|
}
|
|
68
68
|
/** A boxed aside. */
|
|
69
69
|
export function Callout({ children }) {
|
package/package.json
CHANGED