@addiscorp/kit 0.2.4 → 0.2.6

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 CHANGED
@@ -58,7 +58,7 @@ import { Header, Footer, HeaderButton, PersonIcon, themeBoot } from '@addiscorp/
58
58
 
59
59
  ## A tool's site
60
60
 
61
- Every Addis tool (rixse, mirab, woreda, kebele, gelada, harar, p8, securecore) gets the
61
+ Every Addis tool (rixse, mirab, woreda, kebele, gelada, harar, p8, securecore, gild) gets the
62
62
  same site, after zega.dev: a hero with the install commands under the
63
63
  headline and a demo reel beside it, three benefits, the other Addis tools; and
64
64
  docs after rixse.dev. **Structure = kit, content = per site**: a site passes
@@ -72,11 +72,36 @@ export type Benefit = {
72
72
  title: string;
73
73
  text: string;
74
74
  };
75
- /** "Why <tool> · the short version": three benefits, and the other Addis tools. */
76
- export declare function Why({ tool, benefits }: {
75
+ /**
76
+ * Something the tool works with: a name, and its logo when the owner allows reference use
77
+ * (an image the site serves itself; `dark` when it needs another one on a dark ground).
78
+ */
79
+ export type WorksItem = {
80
+ name: string;
81
+ logo?: {
82
+ light: string;
83
+ dark?: string;
84
+ };
85
+ note?: string;
86
+ };
87
+ export type WorksWith = {
88
+ title: string;
89
+ note?: string;
90
+ items: WorksItem[];
91
+ };
92
+ /**
93
+ * "Why <tool> · the short version": three benefits, and the other Addis tools. A tool can put a
94
+ * "Works with" card in the third benefit's place instead.
95
+ */
96
+ export declare function Why({ tool, benefits, works }: {
77
97
  tool: ToolId;
98
+ } & ({
78
99
  benefits: [Benefit, Benefit, Benefit];
79
- }): import("react/jsx-runtime").JSX.Element;
100
+ works?: never;
101
+ } | {
102
+ benefits: [Benefit, Benefit];
103
+ works: WorksWith;
104
+ })): import("react/jsx-runtime").JSX.Element;
80
105
  export type DocsPage = {
81
106
  href: string;
82
107
  title: string;
@@ -34,9 +34,17 @@ export function Reel({ scenes }) {
34
34
  + `@keyframes akt-dot-${scenes.length}{0%,${(share - 0.01).toFixed(2)}%{background:var(--akt-accent);width:28px}${share.toFixed(2)}%,100%{background:var(--akt-dotoff);width:14px}}`;
35
35
  return (_jsxs("div", { children: [_jsx("style", { children: css }), _jsx("div", { className: "akt-reel", children: _jsx("div", { className: "akt-stage", children: scenes.map((scene, i) => (_jsxs("div", { className: "akt-scene", style: { animation: `akt-scene-${scenes.length} ${cycle}s ${i * SCENE_SECONDS}s infinite both` }, children: [_jsxs("div", { className: "akt-tab", children: [_jsx("i", {}), scene.title] }), _jsx("div", { className: "akt-term", children: scene.lines.map((line, j) => (_jsxs("div", { className: `akt-ln akt-${line.kind ?? 'output'}`, style: { animation: `akt-line ${cycle}s ${(i * SCENE_SECONDS + 0.3 + j * 0.45).toFixed(2)}s infinite both` }, children: [_jsx("span", { className: "akt-no", children: j + 1 }), _jsx("span", { className: "akt-tx", children: line.text })] }, j))) }), _jsx("div", { className: "akt-cap", children: scene.caption })] }, i))) }) }), _jsx("div", { className: "akt-dots", "aria-hidden": "true", children: scenes.map((_, i) => _jsx("i", { style: { animation: `akt-dot-${scenes.length} ${cycle}s ${i * SCENE_SECONDS}s infinite` } }, i)) })] }));
36
36
  }
37
- /** "Why <tool> · the short version": three benefits, and the other Addis tools. */
38
- export function Why({ tool, benefits }) {
39
- return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", toolName(tool), _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), _jsxs("div", { className: "akt-card", children: [_jsxs("h3", { children: ["Addis tools", _jsx("small", { children: "they work together" })] }), _jsx("div", { className: "akt-family", children: TOOLS.filter((t) => t.id !== tool).map((t) => (_jsxs("a", { className: "akt-row", href: `https://${t.domain}`, children: [_jsxs("strong", { children: [_jsx(Mark, { tool: t.id, size: 18 }), t.name ?? t.id] }), _jsx("span", { children: t.short })] }, t.id))) })] })] })] }));
37
+ /**
38
+ * "Why <tool> · the short version": three benefits, and the other Addis tools. A tool can put a
39
+ * "Works with" card in the third benefit's place instead.
40
+ */
41
+ export function Why({ tool, benefits, works }) {
42
+ return (_jsxs("section", { className: "akt-why", children: [_jsxs("h2", { children: ["Why ", toolName(tool), _jsx("small", { children: "the short version" })] }), _jsxs("div", { className: "akt-cards", children: [benefits.map((benefit) => (_jsxs("div", { className: "akt-card", children: [_jsx("div", { className: "akt-dash" }), _jsx("h3", { children: benefit.title }), _jsx("p", { children: benefit.text })] }, benefit.title))), works && _jsx(Works, { works: works }), _jsxs("div", { className: "akt-card", children: [_jsxs("h3", { children: ["Addis tools", _jsx("small", { children: "they work together" })] }), _jsx("div", { className: "akt-family", children: TOOLS.filter((t) => t.id !== tool).map((t) => (_jsxs("a", { className: "akt-row", href: `https://${t.domain}`, children: [_jsxs("strong", { children: [_jsx(Mark, { tool: t.id, size: 18 }), t.name ?? t.id] }), _jsx("span", { children: t.short })] }, t.id))) })] })] })] }));
43
+ }
44
+ function Works({ works }) {
45
+ return (_jsxs("div", { className: "akt-card akt-works", children: [_jsxs("h3", { children: [works.title, works.note && _jsx("small", { children: works.note })] }), _jsx("div", { className: "akt-family", children: works.items.map((item) => (_jsxs("div", { className: "akt-work", children: [item.logo && (item.logo.dark
46
+ ? _jsxs("span", { className: "akt-mark akt-work-logo", children: [_jsx("img", { className: "akt-light", src: item.logo.light, alt: "" }), _jsx("img", { className: "akt-dark", src: item.logo.dark, alt: "" })] })
47
+ : _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))) })] }));
40
48
  }
41
49
  /** The docs, after rixse.dev: the pages down the side, the page on the right. */
42
50
  export function DocsLayout({ tool, pages, pathname, eyebrow = 'Documentation', title, lede, note, footnote, home = '/', Link = PlainLink, children }) {
@@ -32,4 +32,9 @@ export const MARKS = {
32
32
  light: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
33
33
  dark: "<rect width=\"24\" height=\"24\" rx=\"5.3\" fill=\"#11161D\"/><g transform=\"translate(2.16 2.16) scale(0.82)\"><path d=\"M7.6 11V7.6a4.4 4.4 0 0 1 8.8 0V11\" fill=\"none\" stroke=\"#E8ECEF\" stroke-width=\"2.9\"/><rect x=\"4\" y=\"10\" width=\"16\" height=\"12.2\" rx=\"2.6\" fill=\"#E8ECEF\"/><path d=\"M12 12.4a2.3 2.3 0 0 1 1.25 4.23L14 19.6h-4l0.75-2.97A2.3 2.3 0 0 1 12 12.4Z\" fill=\"#2DD4BF\"/></g>",
34
34
  },
35
+ // gild's mark: the orange robot from the gild app's favicon, the same in both themes.
36
+ gild: {
37
+ light: "<g transform=\"translate(12 12) scale(0.0825) translate(0 44)\"><g fill=\"#F38020\"><rect x=\"-134\" y=\"-36\" width=\"40\" height=\"78\" rx=\"15\"/><rect x=\"94\" y=\"-36\" width=\"40\" height=\"78\" rx=\"15\"/><rect x=\"-110\" y=\"-82\" width=\"220\" height=\"172\" rx=\"78\"/><rect x=\"-40\" y=\"-106\" width=\"80\" height=\"34\" rx=\"11\"/><circle cx=\"0\" cy=\"-162\" r=\"20\"/><circle cx=\"40\" cy=\"-150\" r=\"18\"/></g><path d=\"M0-104V-162M0-122L40-150\" stroke=\"#F38020\" stroke-width=\"18\" stroke-linecap=\"round\" fill=\"none\"/><rect x=\"-78\" y=\"-50\" width=\"156\" height=\"108\" rx=\"50\" fill=\"#EFECE4\"/><g fill=\"#0B0A08\"><ellipse cx=\"-33\" cy=\"5\" rx=\"14\" ry=\"21\"/><ellipse cx=\"33\" cy=\"5\" rx=\"14\" ry=\"21\"/></g></g>",
38
+ dark: "<g transform=\"translate(12 12) scale(0.0825) translate(0 44)\"><g fill=\"#F38020\"><rect x=\"-134\" y=\"-36\" width=\"40\" height=\"78\" rx=\"15\"/><rect x=\"94\" y=\"-36\" width=\"40\" height=\"78\" rx=\"15\"/><rect x=\"-110\" y=\"-82\" width=\"220\" height=\"172\" rx=\"78\"/><rect x=\"-40\" y=\"-106\" width=\"80\" height=\"34\" rx=\"11\"/><circle cx=\"0\" cy=\"-162\" r=\"20\"/><circle cx=\"40\" cy=\"-150\" r=\"18\"/></g><path d=\"M0-104V-162M0-122L40-150\" stroke=\"#F38020\" stroke-width=\"18\" stroke-linecap=\"round\" fill=\"none\"/><rect x=\"-78\" y=\"-50\" width=\"156\" height=\"108\" rx=\"50\" fill=\"#EFECE4\"/><g fill=\"#0B0A08\"><ellipse cx=\"-33\" cy=\"5\" rx=\"14\" ry=\"21\"/><ellipse cx=\"33\" cy=\"5\" rx=\"14\" ry=\"21\"/></g></g>",
39
+ },
35
40
  };
@@ -1,4 +1,4 @@
1
- export type ToolId = 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8' | 'securecore';
1
+ export type ToolId = 'rixse' | 'mirab' | 'woreda' | 'kebele' | 'gelada' | 'harar' | 'p8' | 'securecore' | 'gild';
2
2
  export type ToolInfo = {
3
3
  id: ToolId;
4
4
  /** Its site, without the scheme: `mirab.addis.gg`. */
@@ -7,6 +7,7 @@ export const TOOLS = [
7
7
  { id: 'harar', domain: 'harar.addis.gg', short: 'A simple vault for your keys.' },
8
8
  { id: 'p8', domain: 'p8.addis.gg', short: 'PHP in pure Rust. Memory-safe.' },
9
9
  { id: 'securecore', name: 'SecureCore', domain: 'securecore.addis.gg', short: 'Every WordPress plugin in its own sandbox.' },
10
+ { id: 'gild', domain: 'gild.addis.gg', short: 'Channels where people and agents work together.' },
10
11
  ];
11
12
  export function toolInfo(id) {
12
13
  const info = TOOLS.find((t) => t.id === id);
package/dist/tool.css CHANGED
@@ -98,6 +98,14 @@
98
98
  .akt-row strong { display: flex; align-items: center; gap: 8px; font: var(--akt-wm-weight) 16px/1 var(--akt-display); letter-spacing: var(--akt-wm-spacing); }
99
99
  .akt-row span { color: var(--akt-soft); }
100
100
  .akt-row:hover span { color: var(--akt-ink); }
101
+ /* "Works with": a logo (or nothing, where the owner allows the name only), the name, a note under it. */
102
+ .akt-work { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--akt-faint); }
103
+ .akt-work:last-child { border-bottom: 0; }
104
+ .akt-work > div { grid-column: 2; display: flex; flex-direction: column; gap: 3px; }
105
+ .akt-work strong { font: var(--akt-wm-weight) 16px/1.2 var(--akt-display); letter-spacing: var(--akt-wm-spacing); }
106
+ .akt-work span:not(.akt-work-logo) { font: 12px/1.5 var(--akt-mono); color: var(--akt-soft); }
107
+ .akt-work-logo { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }
108
+ .akt-work-logo img { width: 28px; height: 28px; object-fit: contain; }
101
109
 
102
110
  /* Docs, after rixse.dev: the pages down the side, the page on the right. */
103
111
  .akt-docs { background-image: none; }
@@ -175,3 +183,6 @@
175
183
  .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-accent: #0F766E; --akt-btn: #0F766E; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
176
184
  :root[data-theme="dark"] .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; }
177
185
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="securecore"] { --akt-reel: #0E1514; --akt-reelline: #262D2C; --akt-reelhl: #15302C; --akt-reelacc: #2DD4BF; --akt-ground: #0F1918; --akt-card: #0A1110; --akt-faint: #2B3433; --akt-dots: #222B2A; --akt-accent: #2DD4BF; --akt-btn: #2DD4BF; --akt-onbtn: #11161D; --akt-dotoff: #414C4B; } }
186
+ .akt[data-tool="gild"] { --akt-reel: #17140F; --akt-reelline: #2E2A22; --akt-reelhl: #3A2A12; --akt-reelacc: #F38020; --akt-accent: #8A5F08; --akt-btn: #8A5F08; --akt-onbtn: #FFFFFF; --akt-dotoff: #BBBFC4; }
187
+ :root[data-theme="dark"] .akt[data-tool="gild"] { --akt-reel: #17140F; --akt-reelline: #2E2A22; --akt-reelhl: #3A2A12; --akt-reelacc: #F38020; --akt-ground: #1A1712; --akt-card: #12100C; --akt-faint: #322D25; --akt-dots: #29251E; --akt-accent: #E2B54A; --akt-btn: #E2B54A; --akt-onbtn: #17181B; --akt-dotoff: #4A443A; }
188
+ @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .akt[data-tool="gild"] { --akt-reel: #17140F; --akt-reelline: #2E2A22; --akt-reelhl: #3A2A12; --akt-reelacc: #F38020; --akt-ground: #1A1712; --akt-card: #12100C; --akt-faint: #322D25; --akt-dots: #29251E; --akt-accent: #E2B54A; --akt-btn: #E2B54A; --akt-onbtn: #17181B; --akt-dotoff: #4A443A; } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@addiscorp/kit",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "The header, footer, theme and tool-site layout every Addis site shares, in each project's own brand colours.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",