@addiscorp/kit 0.2.7 → 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.
package/LICENSE CHANGED
@@ -1,202 +1,21 @@
1
-
2
- Apache License
3
- Version 2.0, January 2004
4
- http://www.apache.org/licenses/
5
-
6
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
-
8
- 1. Definitions.
9
-
10
- "License" shall mean the terms and conditions for use, reproduction,
11
- and distribution as defined by Sections 1 through 9 of this document.
12
-
13
- "Licensor" shall mean the copyright owner or entity authorized by
14
- the copyright owner that is granting the License.
15
-
16
- "Legal Entity" shall mean the union of the acting entity and all
17
- other entities that control, are controlled by, or are under common
18
- control with that entity. For the purposes of this definition,
19
- "control" means (i) the power, direct or indirect, to cause the
20
- direction or management of such entity, whether by contract or
21
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
- outstanding shares, or (iii) beneficial ownership of such entity.
23
-
24
- "You" (or "Your") shall mean an individual or Legal Entity
25
- exercising permissions granted by this License.
26
-
27
- "Source" form shall mean the preferred form for making modifications,
28
- including but not limited to software source code, documentation
29
- source, and configuration files.
30
-
31
- "Object" form shall mean any form resulting from mechanical
32
- transformation or translation of a Source form, including but
33
- not limited to compiled object code, generated documentation,
34
- and conversions to other media types.
35
-
36
- "Work" shall mean the work of authorship, whether in Source or
37
- Object form, made available under the License, as indicated by a
38
- copyright notice that is included in or attached to the work
39
- (an example is provided in the Appendix below).
40
-
41
- "Derivative Works" shall mean any work, whether in Source or Object
42
- form, that is based on (or derived from) the Work and for which the
43
- editorial revisions, annotations, elaborations, or other modifications
44
- represent, as a whole, an original work of authorship. For the purposes
45
- of this License, Derivative Works shall not include works that remain
46
- separable from, or merely link (or bind by name) to the interfaces of,
47
- the Work and Derivative Works thereof.
48
-
49
- "Contribution" shall mean any work of authorship, including
50
- the original version of the Work and any modifications or additions
51
- to that Work or Derivative Works thereof, that is intentionally
52
- submitted to Licensor for inclusion in the Work by the copyright owner
53
- or by an individual or Legal Entity authorized to submit on behalf of
54
- the copyright owner. For the purposes of this definition, "submitted"
55
- means any form of electronic, verbal, or written communication sent
56
- to the Licensor or its representatives, including but not limited to
57
- communication on electronic mailing lists, source code control systems,
58
- and issue tracking systems that are managed by, or on behalf of, the
59
- Licensor for the purpose of discussing and improving the Work, but
60
- excluding communication that is conspicuously marked or otherwise
61
- designated in writing by the copyright owner as "Not a Contribution."
62
-
63
- "Contributor" shall mean Licensor and any individual or Legal Entity
64
- on behalf of whom a Contribution has been received by Licensor and
65
- subsequently incorporated within the Work.
66
-
67
- 2. Grant of Copyright License. Subject to the terms and conditions of
68
- this License, each Contributor hereby grants to You a perpetual,
69
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
- copyright license to reproduce, prepare Derivative Works of,
71
- publicly display, publicly perform, sublicense, and distribute the
72
- Work and such Derivative Works in Source or Object form.
73
-
74
- 3. Grant of Patent License. Subject to the terms and conditions of
75
- this License, each Contributor hereby grants to You a perpetual,
76
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
- (except as stated in this section) patent license to make, have made,
78
- use, offer to sell, sell, import, and otherwise transfer the Work,
79
- where such license applies only to those patent claims licensable
80
- by such Contributor that are necessarily infringed by their
81
- Contribution(s) alone or by combination of their Contribution(s)
82
- with the Work to which such Contribution(s) was submitted. If You
83
- institute patent litigation against any entity (including a
84
- cross-claim or counterclaim in a lawsuit) alleging that the Work
85
- or a Contribution incorporated within the Work constitutes direct
86
- or contributory patent infringement, then any patent licenses
87
- granted to You under this License for that Work shall terminate
88
- as of the date such litigation is filed.
89
-
90
- 4. Redistribution. You may reproduce and distribute copies of the
91
- Work or Derivative Works thereof in any medium, with or without
92
- modifications, and in Source or Object form, provided that You
93
- meet the following conditions:
94
-
95
- (a) You must give any other recipients of the Work or
96
- Derivative Works a copy of this License; and
97
-
98
- (b) You must cause any modified files to carry prominent notices
99
- stating that You changed the files; and
100
-
101
- (c) You must retain, in the Source form of any Derivative Works
102
- that You distribute, all copyright, patent, trademark, and
103
- attribution notices from the Source form of the Work,
104
- excluding those notices that do not pertain to any part of
105
- the Derivative Works; and
106
-
107
- (d) If the Work includes a "NOTICE" text file as part of its
108
- distribution, then any Derivative Works that You distribute must
109
- include a readable copy of the attribution notices contained
110
- within such NOTICE file, excluding those notices that do not
111
- pertain to any part of the Derivative Works, in at least one
112
- of the following places: within a NOTICE text file distributed
113
- as part of the Derivative Works; within the Source form or
114
- documentation, if provided along with the Derivative Works; or,
115
- within a display generated by the Derivative Works, if and
116
- wherever such third-party notices normally appear. The contents
117
- of the NOTICE file are for informational purposes only and
118
- do not modify the License. You may add Your own attribution
119
- notices within Derivative Works that You distribute, alongside
120
- or as an addendum to the NOTICE text from the Work, provided
121
- that such additional attribution notices cannot be construed
122
- as modifying the License.
123
-
124
- You may add Your own copyright statement to Your modifications and
125
- may provide additional or different license terms and conditions
126
- for use, reproduction, or distribution of Your modifications, or
127
- for any such Derivative Works as a whole, provided Your use,
128
- reproduction, and distribution of the Work otherwise complies with
129
- the conditions stated in this License.
130
-
131
- 5. Submission of Contributions. Unless You explicitly state otherwise,
132
- any Contribution intentionally submitted for inclusion in the Work
133
- by You to the Licensor shall be under the terms and conditions of
134
- this License, without any additional terms or conditions.
135
- Notwithstanding the above, nothing herein shall supersede or modify
136
- the terms of any separate license agreement you may have executed
137
- with Licensor regarding such Contributions.
138
-
139
- 6. Trademarks. This License does not grant permission to use the trade
140
- names, trademarks, service marks, or product names of the Licensor,
141
- except as required for reasonable and customary use in describing the
142
- origin of the Work and reproducing the content of the NOTICE file.
143
-
144
- 7. Disclaimer of Warranty. Unless required by applicable law or
145
- agreed to in writing, Licensor provides the Work (and each
146
- Contributor provides its Contributions) on an "AS IS" BASIS,
147
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
- implied, including, without limitation, any warranties or conditions
149
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
- PARTICULAR PURPOSE. You are solely responsible for determining the
151
- appropriateness of using or redistributing the Work and assume any
152
- risks associated with Your exercise of permissions under this License.
153
-
154
- 8. Limitation of Liability. In no event and under no legal theory,
155
- whether in tort (including negligence), contract, or otherwise,
156
- unless required by applicable law (such as deliberate and grossly
157
- negligent acts) or agreed to in writing, shall any Contributor be
158
- liable to You for damages, including any direct, indirect, special,
159
- incidental, or consequential damages of any character arising as a
160
- result of this License or out of the use or inability to use the
161
- Work (including but not limited to damages for loss of goodwill,
162
- work stoppage, computer failure or malfunction, or any and all
163
- other commercial damages or losses), even if such Contributor
164
- has been advised of the possibility of such damages.
165
-
166
- 9. Accepting Warranty or Additional Liability. While redistributing
167
- the Work or Derivative Works thereof, You may choose to offer,
168
- and charge a fee for, acceptance of support, warranty, indemnity,
169
- or other liability obligations and/or rights consistent with this
170
- License. However, in accepting such obligations, You may act only
171
- on Your own behalf and on Your sole responsibility, not on behalf
172
- of any other Contributor, and only if You agree to indemnify,
173
- defend, and hold each Contributor harmless for any liability
174
- incurred by, or claims asserted against, such Contributor by reason
175
- of your accepting any such warranty or additional liability.
176
-
177
- END OF TERMS AND CONDITIONS
178
-
179
- APPENDIX: How to apply the Apache License to your work.
180
-
181
- To apply the Apache License to your work, attach the following
182
- boilerplate notice, with the fields enclosed by brackets "[]"
183
- replaced with your own identifying information. (Don't include
184
- the brackets!) The text should be enclosed in the appropriate
185
- comment syntax for the file format. We also recommend that a
186
- file or class name and description of purpose be included on the
187
- same "printed page" as the copyright notice for easier
188
- identification within third-party archives.
189
-
190
- Copyright [yyyy] [name of copyright owner]
191
-
192
- Licensed under the Apache License, Version 2.0 (the "License");
193
- you may not use this file except in compliance with the License.
194
- You may obtain a copy of the License at
195
-
196
- http://www.apache.org/licenses/LICENSE-2.0
197
-
198
- Unless required by applicable law or agreed to in writing, software
199
- distributed under the License is distributed on an "AS IS" BASIS,
200
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
- See the License for the specific language governing permissions and
202
- limitations under the License.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sami Fouad
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -42,9 +42,39 @@ 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), the site's name, the light/dark switch.
45
+ - **`Footer`**: who makes the site (Addis Corp by default; `owner` changes it), the product's license when `license` is passed, the site's name, 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
+ ## The license
49
+
50
+ Addis products are MIT (APS 17). One `License` describes a product's license,
51
+ and the same value drives everything a site shows about it, so the footer, the
52
+ badge, the page and the LICENSE file can't disagree.
53
+
54
+ ```tsx
55
+ import { LicenseView, MIT_LICENSE, mitLicense, type License } from '@addiscorp/kit';
56
+
57
+ const license: License = {}; // MIT, Copyright (c) 2026 Sami Fouad
58
+ const harar: License = { source: 'https://github.com/addiscorp/harar' }; // public: the source is linked
59
+ const p8: License = { // a fork keeps its upstream notices, above ours
60
+ github: 'samifouad',
61
+ upstream: [{ year: 2025, holder: 'Di Wu', github: 'wudi' }],
62
+ preface: 'p8 began as a fork of php-rs by Di Wu.',
63
+ };
64
+
65
+ <ToolSite tool="harar" license={harar}>…</ToolSite> // footer: "MIT · © 2026 Sami Fouad" → /license/, then "source"
66
+ <Hero … status="alpha" license={harar} /> // ( Status: Alpha ) ( License: MIT ) above the buttons; License → /license/
67
+ <ProductPills status="beta" license={license} /> // the same pair on any other page
68
+ <DocsLayout … license={harar}>…</DocsLayout> // the same footer line
69
+ <Footer site="…" license={license} /> // any site's footer
70
+ <LicenseView product="harar" license={harar} note={…} /> // the page: summary line, note, source, the full text
71
+ ```
72
+
73
+ - **`mitLicense(license)`** is the LICENSE file's text, byte for byte (tested against harar's and p8's files); **`MIT_LICENSE`** is the default one.
74
+ - **`source`** is only for a public repository. Without it nothing links to a repository and nothing says "open source".
75
+ - **`note`** on the page is for what the product must add: a part that keeps an upstream license.
76
+ - **`href`** moves the page from `/license/`.
77
+
48
78
  ## Make it yours
49
79
 
50
80
  - **Colours and fonts** are variables. Set your brand's after importing `kit.css`:
@@ -86,6 +116,7 @@ import { ToolSite, Hero, Why, DocsLayout, Code, Step, Callout } from '@addiscorp
86
116
  </DocsLayout>
87
117
  ```
88
118
 
119
+ - **Status and license**: nothing is 1.0 yet, so every tool's hero says where it stands and how it's licensed, in two pills of one shape, side by side above the buttons: ( Status: Alpha | Beta ) ( License: MIT ). The pills carry only that; anything longer goes in the words. `ProductPills` is the pair for any other page; `StatusPill`, `LicensePill`, `statusText` and `LICENSE_PILL_TEXT` are its parts.
89
120
  - **The header** is the mark, the name and `docs`. A tool that has more to link adds it after docs with `links` (p8: `links={[{ label: 'test suite', href: 'https://p8-test-suite.addis.gg' }]}`).
90
121
  - **The reel** is CSS only: its scenes play in turn, 5 s each, and each scene's lines appear one after another. With reduced motion it shows the first scene, still.
91
122
  - **Colours**: `data-tool` picks the tool's palette (`src/tool/palettes.css`, generated from its colour layout): one pale ground in light mode, a ground tinted with the brand in dark. The kit's footer and theme switch take the same colours.
@@ -99,3 +130,7 @@ npm install
99
130
  npm run typecheck
100
131
  npm test # builds dist/, then drives the header and footer in a DOM (jsdom)
101
132
  ```
133
+
134
+ ## License
135
+
136
+ [MIT](LICENSE)
@@ -1,4 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
+ import type { LinkComponent } from '../header/index.js';
3
+ import { type License } from '../license/index.js';
2
4
  export type Owner = {
3
5
  name: string;
4
6
  href: string;
@@ -16,5 +18,8 @@ export type FooterProps = {
16
18
  children?: ReactNode;
17
19
  /** A small line under the footer row, e.g. trademark notices. */
18
20
  note?: ReactNode;
21
+ /** The product's license: `MIT · © 2026 Sami Fouad`, linking to the license page. */
22
+ license?: License;
23
+ Link?: LinkComponent;
19
24
  };
20
- export declare function Footer({ site, owner, year, children, note }: FooterProps): import("react/jsx-runtime").JSX.Element;
25
+ export declare function Footer({ site, owner, year, children, note, license, Link }: FooterProps): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,14 @@
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';
3
4
  /** Addis Corp, the default owner. */
4
5
  export const ADDIS = {
5
6
  name: 'Addis Corp',
6
7
  href: 'https://addis.gg',
7
8
  logo: _jsx(AddisMark, {}),
8
9
  };
9
- export function Footer({ site, owner = ADDIS, year = new Date().getFullYear(), children, note }) {
10
- return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("span", { className: "ak-foot-end", children: [children, _jsx("span", { children: site }), _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
10
+ export function Footer({ site, owner = ADDIS, year = new Date().getFullYear(), children, note, license, Link }) {
11
+ return (_jsxs("footer", { className: "ak-foot", children: [_jsxs("a", { className: "ak-credit", href: owner.href, children: [owner.logo, "\u00A9 ", year, " ", owner.name] }), _jsxs("span", { className: "ak-foot-end", children: [license && _jsx(LicenseLink, { license: license, Link: Link }), children, _jsx("span", { children: site }), _jsx(ThemeToggle, {})] }), note && _jsx("p", { className: "ak-foot-note", children: note })] }));
11
12
  }
12
13
  function AddisMark() {
13
14
  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/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './header/index.js';
2
2
  export * from './footer/index.js';
3
3
  export * from './theme/index.js';
4
+ export * from './license/index.js';
5
+ export * from './status/index.js';
4
6
  export * from './tool/index.js';
package/dist/index.js CHANGED
@@ -4,4 +4,6 @@
4
4
  export * from './header/index.js';
5
5
  export * from './footer/index.js';
6
6
  export * from './theme/index.js';
7
+ export * from './license/index.js';
8
+ export * from './status/index.js';
7
9
  export * from './tool/index.js';
package/dist/kit.css CHANGED
@@ -109,6 +109,39 @@
109
109
  .ak-credit img, .ak-owner-mark { width: 32px; height: 32px; border-radius: 50%; }
110
110
  .ak-foot-end { display: inline-flex; align-items: center; gap: 12px; }
111
111
  .ak-foot-note { flex-basis: 100%; margin: 0; font-size: 11px; line-height: 1.6; color: var(--ak-soft); opacity: .8; }
112
+ .ak-foot-end { flex-wrap: wrap; justify-content: flex-end; }
113
+
114
+ /* Status: where a product stands. Beta is a filled dot, alpha a hollow one. */
115
+ .ak-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
116
+ .ak-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border: 1px solid var(--ak-edge); border-radius: 999px; background: var(--ak-panel); color: var(--ak-soft); font: 12px/1 var(--ak-font); text-decoration: none; white-space: nowrap; }
117
+ .ak-pill b { color: var(--ak-ink); font-weight: 600; }
118
+ .ak-pill i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ak-accent); box-shadow: 0 0 0 1.5px var(--ak-accent) inset; }
119
+ .ak-status[data-status="alpha"] i { background: transparent; }
120
+ /* Stronger than a site's own `a { color }`, so the link pill reads exactly like the status pill. */
121
+ .ak-pills > .ak-pill { color: var(--ak-soft); }
122
+ .ak-pills > a.ak-pill:hover { border-color: var(--ak-accent); color: var(--ak-ink); }
123
+
124
+ /* 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
+ .ak-license-page { max-width: 760px; padding: 48px 0 72px; color: var(--ak-ink); }
128
+ .ak-license-eyebrow { font: 600 12px var(--ak-font); letter-spacing: .11em; text-transform: uppercase; color: var(--ak-soft); }
129
+ .ak-license-page h1 { font: 800 clamp(32px, 5vw, 46px)/1.1 var(--ak-display); letter-spacing: -0.03em; margin: 6px 0 16px; }
130
+ .ak-license-summary { font-size: 18px; line-height: 1.5; margin: 0 0 10px; max-width: 58ch; }
131
+ .ak-license-note, .ak-license-source { color: var(--ak-soft); margin: 8px 0; max-width: 64ch; line-height: 1.55; }
132
+ .ak-license-page .ak-license-note a, .ak-license-page .ak-license-source a { color: var(--ak-accent); text-underline-offset: 3px; }
133
+ .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
+ @media (max-width: 600px) {
139
+ .ak-license-page { padding: 32px 0 48px; }
140
+ /* The file's lines are wrapped for 80 columns: on a phone each paragraph reflows instead. */
141
+ .ak-license-text { padding: 16px; font-size: 12px; line-height: 1.65; white-space: normal; }
142
+ .ak-license-text span { display: block; }
143
+ .ak-license-text span + span { margin-top: 1em; }
144
+ }
112
145
 
113
146
  /* The theme switch */
114
147
  .ak-theme-toggle { box-sizing: border-box; border: 0; background: transparent; border-radius: 4px; color: inherit; cursor: pointer; display: inline-flex; height: 32px; width: 32px; align-items: center; justify-content: center; padding: 8px; }
@@ -0,0 +1,58 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { LinkComponent } from '../header/index.js';
3
+ /** A copyright line: `Copyright (c) 2025 Di Wu (GitHub: wudi)`. */
4
+ export type Notice = {
5
+ year: number;
6
+ holder: string;
7
+ github?: string;
8
+ };
9
+ export type License = {
10
+ /** The year in our copyright line. */
11
+ year?: number;
12
+ /** Who holds it; APS 17 makes it `Sami Fouad`. */
13
+ holder?: string;
14
+ /** A GitHub handle after our name, when the file has one: `(GitHub: samifouad)`. */
15
+ github?: string;
16
+ /** The notices a fork arrived with, kept above ours, in their order (APS 17: never dropped). */
17
+ upstream?: Notice[];
18
+ /** A line between the title and the notices, e.g. where a fork began. */
19
+ preface?: string;
20
+ /**
21
+ * The public source. Only a public repository passes it: without it the
22
+ * kit links to no repository and never says "open source".
23
+ */
24
+ source?: string;
25
+ /** Where the site serves the license page. */
26
+ href?: string;
27
+ };
28
+ export declare const LICENSE_YEAR = 2026;
29
+ export declare const LICENSE_HOLDER = "Sami Fouad";
30
+ export declare const LICENSE_HREF = "/license/";
31
+ /** The MIT permission notice and disclaimer, as every Addis LICENSE file has it. */
32
+ export declare const MIT_PERMISSION = "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n";
33
+ /** The LICENSE file's text, byte for byte: title, preface, every notice (upstream first, ours last), the permission. */
34
+ export declare function mitLicense(license?: License): string;
35
+ /** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
36
+ 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
+ /** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
45
+ export declare const licenseSummary: (product: string) => string;
46
+ /**
47
+ * The license page: a heading, the plain-language line, anything the product
48
+ * must add (a part under another license), the source when it's public, and
49
+ * the full text. Styled by the kit's `--ak-*` tokens, so it takes any site's colours.
50
+ */
51
+ export declare function LicenseView({ product, license, note, title }: {
52
+ /** The product's name as the site shows it: `harar`, `the p8 test suite`. */
53
+ product: string;
54
+ license?: License;
55
+ /** A line under the summary, e.g. a part that keeps an upstream license. */
56
+ note?: ReactNode;
57
+ title?: string;
58
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,61 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ // The license, once (APS 17: Addis products are MIT, `Copyright (c) <year> Sami Fouad`).
3
+ // One description of a product's license drives all four places a site shows
4
+ // it, so they can't disagree: the text (`mitLicense`), the footer line
5
+ // (`LicenseLink`), the hero pill (`LicensePill`, in ../status) and the page (`LicenseView`).
6
+ import { Fragment } from 'react';
7
+ export const LICENSE_YEAR = 2026;
8
+ export const LICENSE_HOLDER = 'Sami Fouad';
9
+ export const LICENSE_HREF = '/license/';
10
+ /** The MIT permission notice and disclaimer, as every Addis LICENSE file has it. */
11
+ export const MIT_PERMISSION = `Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+ `;
29
+ const ours = (license) => ({
30
+ year: license.year ?? LICENSE_YEAR,
31
+ holder: license.holder ?? LICENSE_HOLDER,
32
+ github: license.github,
33
+ });
34
+ const noticeLine = (n) => `Copyright (c) ${n.year} ${n.holder}${n.github ? ` (GitHub: ${n.github})` : ''}`;
35
+ /** The LICENSE file's text, byte for byte: title, preface, every notice (upstream first, ours last), the permission. */
36
+ export function mitLicense(license = {}) {
37
+ const notices = [...(license.upstream ?? []), ours(license)].map(noticeLine).join('\n');
38
+ return ['MIT License', ...(license.preface ? [license.preface] : []), notices, MIT_PERMISSION].join('\n\n');
39
+ }
40
+ /** The default: `MIT License`, `Copyright (c) 2026 Sami Fouad`, the permission. */
41
+ 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
+ /** What MIT lets you do, in a line: `harar is MIT licensed: use it, change it, ship it, …`. */
53
+ export const licenseSummary = (product) => `${product} is MIT licensed: use it, change it, ship it, commercially or not; keep the notice.`;
54
+ /**
55
+ * The license page: a heading, the plain-language line, anything the product
56
+ * must add (a part under another license), the source when it's public, and
57
+ * the full text. Styled by the kit's `--ak-*` tokens, so it takes any site's colours.
58
+ */
59
+ export function LicenseView({ product, license = {}, note, title = 'MIT License' }) {
60
+ return (_jsxs("section", { className: "ak-license-page", "aria-labelledby": "ak-license-title", children: [_jsx("div", { className: "ak-license-eyebrow", children: "License" }), _jsx("h1", { id: "ak-license-title", children: title }), _jsx("p", { className: "ak-license-summary", children: licenseSummary(product) }), note && _jsx("p", { className: "ak-license-note", children: note }), license.source && _jsxs("p", { className: "ak-license-source", children: ["The source: ", _jsx("a", { href: license.source, children: license.source.replace(/^https?:\/\//, '') })] }), _jsx("pre", { className: "ak-license-text", children: mitLicense(license).split('\n\n').map((paragraph, i) => (_jsxs(Fragment, { children: [i > 0 && '\n\n', _jsx("span", { children: paragraph })] }, i))) })] }));
61
+ }
@@ -0,0 +1,23 @@
1
+ import type { LinkComponent } from '../header/index.js';
2
+ import { type License } from '../license/index.js';
3
+ /** How far along a product is. Nothing here is 1.0 yet. */
4
+ export type Stage = 'alpha' | 'beta';
5
+ /** The status pill's words: `Status: Beta`. */
6
+ export declare const statusText: (status: Stage) => string;
7
+ /** The license pill's words. */
8
+ export declare const LICENSE_PILL_TEXT = "License: MIT";
9
+ /** The status pill. Beta has a filled dot, alpha a hollow one. */
10
+ export declare function StatusPill({ status }: {
11
+ status: Stage;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ /** The license pill, linking to the license page. */
14
+ export declare function LicensePill({ license, Link }: {
15
+ license?: License;
16
+ Link?: LinkComponent;
17
+ }): import("react/jsx-runtime").JSX.Element;
18
+ /** ( Status: Beta ) ( License: MIT ): the pair, side by side, either one alone when only it is given. */
19
+ export declare function ProductPills({ status, license, Link }: {
20
+ status?: Stage;
21
+ license?: License;
22
+ Link?: LinkComponent;
23
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { LICENSE_HREF } from '../license/index.js';
3
+ const STAGE_NAMES = { alpha: 'Alpha', beta: 'Beta' };
4
+ /** The status pill's words: `Status: Beta`. */
5
+ export const statusText = (status) => `Status: ${STAGE_NAMES[status]}`;
6
+ /** The license pill's words. */
7
+ export const LICENSE_PILL_TEXT = 'License: MIT';
8
+ const PlainLink = (props) => _jsx("a", { ...props });
9
+ /** The status pill. Beta has a filled dot, alpha a hollow one. */
10
+ export function StatusPill({ status }) {
11
+ return (_jsxs("span", { className: "ak-pill ak-status", "data-status": status, children: [_jsx("i", { "aria-hidden": "true" }), _jsxs("span", { children: ["Status: ", _jsx("b", { children: STAGE_NAMES[status] })] })] }));
12
+ }
13
+ /** The license pill, linking to the license page. */
14
+ export function LicensePill({ license = {}, Link = PlainLink }) {
15
+ return (_jsxs(Link, { className: "ak-pill ak-license-pill", href: license.href ?? LICENSE_HREF, children: [_jsx("i", { "aria-hidden": "true" }), _jsxs("span", { children: ["License: ", _jsx("b", { children: "MIT" })] })] }));
16
+ }
17
+ /** ( Status: Beta ) ( License: MIT ): the pair, side by side, either one alone when only it is given. */
18
+ export function ProductPills({ status, license, Link }) {
19
+ if (!status && !license)
20
+ return null;
21
+ return (_jsxs("div", { className: "ak-pills", children: [status && _jsx(StatusPill, { status: status }), license && _jsx(LicensePill, { license: license, Link: Link })] }));
22
+ }
@@ -1,5 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { LinkComponent } from '../header/index.js';
3
+ import type { License } from '../license/index.js';
4
+ import { type Stage } from '../status/index.js';
3
5
  import { type ToolId } from './tools.js';
4
6
  export { TOOLS, toolInfo, toolName, type ToolId, type ToolInfo } from './tools.js';
5
7
  export { MARKS } from './marks.js';
@@ -15,7 +17,7 @@ export type HeaderLink = {
15
17
  href: string;
16
18
  };
17
19
  /** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
18
- export declare function ToolSite({ tool, home, docs, links, footnote, Link, children }: {
20
+ export declare function ToolSite({ tool, home, docs, links, footnote, license, Link, children }: {
19
21
  tool: ToolId;
20
22
  home?: string;
21
23
  docs?: string;
@@ -23,6 +25,8 @@ export declare function ToolSite({ tool, home, docs, links, footnote, Link, chil
23
25
  links?: HeaderLink[];
24
26
  /** A small line under the footer, e.g. trademark notices. */
25
27
  footnote?: ReactNode;
28
+ /** The tool's license, in the footer: `MIT · © 2026 Sami Fouad`. */
29
+ license?: License;
26
30
  Link?: LinkComponent;
27
31
  children: ReactNode;
28
32
  }): import("react/jsx-runtime").JSX.Element;
@@ -69,15 +73,17 @@ export type Feature = {
69
73
  * beside them: the reel for a tool you run in a terminal, or, for an app, a
70
74
  * screenshot of it, under the words and as wide as the page.
71
75
  */
72
- export declare function Hero({ headline, sub, status, docs, github, installs, reel, shot, Link }: {
76
+ export declare function Hero({ headline, sub, status, docs, github, license, installs, reel, shot, Link }: {
73
77
  headline: Headline;
74
78
  sub: string;
75
- /** Where the tool stands, when a visitor should know before installing: "Early: not yet audited." */
76
- status?: string;
79
+ /** Where the tool stands, so nobody takes it for a 1.0: a "Status: Alpha" pill above the buttons. */
80
+ status?: Stage;
77
81
  docs?: string;
78
82
  /** The source, when it's public. */
79
83
  github?: string;
80
- /** Empty until the tool can be installed; say why in `status`. */
84
+ /** The tool's license: a "License: MIT" pill beside the status pill, linking to the license page. */
85
+ license?: License;
86
+ /** Empty until the tool can be installed; say why in `sub`. */
81
87
  installs: Install[];
82
88
  Link?: LinkComponent;
83
89
  } & ({
@@ -144,7 +150,7 @@ export type DocsPage = {
144
150
  title: string;
145
151
  };
146
152
  /** The docs, after rixse.dev: the pages down the side, the page on the right. */
147
- export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote, home, Link, children }: {
153
+ export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede, note, footnote, license, home, Link, children }: {
148
154
  tool: ToolId;
149
155
  pages: DocsPage[];
150
156
  pathname: string;
@@ -155,6 +161,8 @@ export declare function DocsLayout({ tool, pages, pathname, eyebrow, title, lede
155
161
  note?: string;
156
162
  /** A small line under the footer, e.g. trademark notices. */
157
163
  footnote?: ReactNode;
164
+ /** The tool's license, in the footer. */
165
+ license?: License;
158
166
  home?: string;
159
167
  Link?: LinkComponent;
160
168
  children: ReactNode;
@@ -1,5 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { Footer } from '../footer/index.js';
3
+ import { ProductPills } from '../status/index.js';
3
4
  import { CopyButton } from './copy.js';
4
5
  import { MARKS } from './marks.js';
5
6
  import { TOOLS, toolInfo, toolName } from './tools.js';
@@ -13,8 +14,8 @@ export function Mark({ tool, size = 26 }) {
13
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 } })] }));
14
15
  }
15
16
  /** Everything a tool site shows sits inside this: it sets the tool's colours, the header and the footer. */
16
- export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote, Link = PlainLink, children }) {
17
- 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, { site: toolInfo(tool).domain, note: footnote })] }));
17
+ export function ToolSite({ tool, home = '/', docs = '/docs/', links = [], footnote, license, 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, { site: toolInfo(tool).domain, note: footnote, license: license, Link: Link })] }));
18
19
  }
19
20
  const SCENE_SECONDS = 5;
20
21
  /**
@@ -22,8 +23,8 @@ const SCENE_SECONDS = 5;
22
23
  * beside them: the reel for a tool you run in a terminal, or, for an app, a
23
24
  * screenshot of it, under the words and as wide as the page.
24
25
  */
25
- export function Hero({ headline, sub, status, docs = '/docs/', github, installs, reel, shot, Link = PlainLink }) {
26
- return (_jsxs("section", { className: shot ? 'akt-hero akt-hero-app' : 'akt-hero', children: [_jsxs("div", { children: [_jsxs("h1", { children: [headline.before, _jsx("em", { children: headline.accent }), headline.after] }), _jsx("p", { className: "akt-sub", children: sub }), status && _jsx("p", { className: "akt-status", children: status }), _jsxs("div", { className: "akt-btns", children: [_jsx(Link, { className: "akt-btn akt-main-btn", href: docs, children: "docs" }), github && _jsx("a", { className: "akt-btn", href: github, children: "GitHub" })] }), installs.length > 0 && _jsx("div", { className: "akt-installs", children: installs.map((install) => (_jsxs("div", { children: [_jsx("div", { className: "akt-ilabel", children: install.label }), _jsxs("div", { className: "akt-cmd", children: [_jsxs("code", { children: [_jsx("b", { children: "$ " }), install.command] }), _jsx(CopyButton, { text: install.command })] })] }, install.command))) })] }), shot ? _jsx(Screen, { shot: shot, eager: true }) : _jsx(Reel, { scenes: reel ?? [] })] }));
26
+ export function Hero({ headline, sub, status, docs = '/docs/', github, license, installs, reel, shot, Link = PlainLink }) {
27
+ return (_jsxs("section", { className: shot ? 'akt-hero akt-hero-app' : 'akt-hero', children: [_jsxs("div", { children: [_jsxs("h1", { children: [headline.before, _jsx("em", { children: headline.accent }), headline.after] }), _jsx("p", { className: "akt-sub", children: sub }), _jsx(ProductPills, { status: status, license: license, Link: Link }), _jsxs("div", { className: "akt-btns", children: [_jsx(Link, { className: "akt-btn akt-main-btn", href: docs, children: "docs" }), github && _jsx("a", { className: "akt-btn", href: github, children: "GitHub" }), " "] }), installs.length > 0 && _jsx("div", { className: "akt-installs", children: installs.map((install) => (_jsxs("div", { children: [_jsx("div", { className: "akt-ilabel", children: install.label }), _jsxs("div", { className: "akt-cmd", children: [_jsxs("code", { children: [_jsx("b", { children: "$ " }), install.command] }), _jsx(CopyButton, { text: install.command })] })] }, install.command))) })] }), shot ? _jsx(Screen, { shot: shot, eager: true }) : _jsx(Reel, { scenes: reel ?? [] })] }));
27
28
  }
28
29
  /** A screenshot in a window frame, in the page's theme. */
29
30
  export function Screen({ shot, eager = false }) {
@@ -60,9 +61,9 @@ function Works({ works }) {
60
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))) })] }));
61
62
  }
62
63
  /** The docs, after rixse.dev: the pages down the side, the page on the right. */
63
- export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, home = '/', Link = PlainLink, children }) {
64
+ export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, license, home = '/', Link = PlainLink, children }) {
64
65
  const here = (href) => href.replace(/\/$/, '') === pathname.replace(/\/$/, '');
65
- 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, { site: toolInfo(tool).domain, note: footnote })] }));
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, { site: toolInfo(tool).domain, note: footnote, license: license, Link: Link })] }));
66
67
  }
67
68
  /** A boxed aside. */
68
69
  export function Callout({ children }) {
package/dist/tool.css CHANGED
@@ -33,8 +33,8 @@
33
33
  .akt-main { width: min(1180px, calc(100% - 56px)); margin: 0 auto; flex: 1; }
34
34
  .akt-header { display: flex; align-items: center; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--akt-faint); }
35
35
  .akt-brand { display: inline-flex; align-items: center; gap: 10px; font: var(--akt-wm-weight) 25px/1 var(--akt-display); letter-spacing: var(--akt-wm-spacing); text-decoration: none; }
36
- .akt-header nav { display: flex; gap: 22px; font: 14px var(--akt-mono); color: var(--akt-soft); }
37
- .akt-header nav a { text-decoration: none; }
36
+ .akt-header nav { display: flex; flex-wrap: wrap; gap: 6px 22px; min-width: 0; font: 14px var(--akt-mono); color: var(--akt-soft); }
37
+ .akt-header nav a { text-decoration: none; white-space: nowrap; }
38
38
  .akt-header nav a:hover { color: var(--akt-accent); }
39
39
 
40
40
  /* Hero */
@@ -43,8 +43,8 @@
43
43
  .akt-hero h1 { font: 800 clamp(34px, 4.4vw, 52px)/1.08 var(--akt-display); letter-spacing: -0.03em; margin: 0; }
44
44
  .akt-hero h1 em { font-style: normal; color: var(--akt-accent); }
45
45
  .akt-sub { margin: 16px 0 0; color: var(--akt-soft); font-size: 18px; max-width: 40ch; }
46
- .akt-status { display: inline-block; margin: 14px 0 0; padding: 3px 10px; border: 1px solid var(--akt-faint); border-radius: 999px; font: 12px var(--akt-mono); color: var(--akt-soft); }
47
- .akt-btns { display: flex; gap: 10px; margin-top: 28px; }
46
+ .akt-hero .ak-pills { margin-top: 16px; }
47
+ .akt-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
48
48
  .akt-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 8px; font: 500 14px var(--akt-mono); text-decoration: none; border: 1px solid var(--akt-faint); background: var(--akt-card); }
49
49
  .akt-btn.akt-main-btn { background: var(--akt-btn); border-color: var(--akt-btn); color: var(--akt-onbtn); }
50
50
  .akt-btn:hover { filter: brightness(1.06); }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@addiscorp/kit",
3
- "version": "0.2.7",
3
+ "version": "0.3.0",
4
4
  "description": "The header, footer, theme and tool-site layout every Addis site shares, in each project's own brand colours.",
5
- "license": "Apache-2.0",
5
+ "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
8
8
  "type": "git",