@xenosystem/elements 0.0.7 → 0.0.8
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/package.json +2 -2
- package/dist/elements/cloud.d.ts +0 -11
- package/dist/elements/cloud.js +0 -22
- package/dist/elements/keyboard.d.ts +0 -9
- package/dist/elements/keyboard.js +0 -28
- package/dist/tokens/chart.d.ts +0 -13
- package/dist/tokens/chart.js +0 -15
- package/dist/tokens/terminal.d.ts +0 -36
- package/dist/tokens/terminal.js +0 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xenosystem/elements",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "The XENO element contract — declarations, schema, state model. Framework-free, platform-free.",
|
|
6
6
|
"author": "XENO Corporation <emilian@bnkrsys.com>",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"LICENSE"
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
|
-
"build": "tsc -p tsconfig.json",
|
|
38
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.json",
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
|
|
40
40
|
"test": "vitest run",
|
|
41
41
|
"import-glyphs": "node --no-warnings scripts/import-glyphs.mjs",
|
package/dist/elements/cloud.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ElementDeclaration } from '../schema';
|
|
2
|
-
/**
|
|
3
|
-
* `xeno.cloud` — Cloud. A degenerate element (pure geometry, no children).
|
|
4
|
-
*
|
|
5
|
-
* The XENO cloud, built from the shape language rather than from bubbles: a flat, rounded base with
|
|
6
|
-
* a taller rounded-square billow standing on it. Every curve is a rounded CORNER — there is no arc of
|
|
7
|
-
* a full circle — so it sits beside `xeno.globe` and `xeno.waves` without breaking DESIGN_SYSTEM §3.
|
|
8
|
-
* `xeno.waves` means water or signal and is not a stand-in.
|
|
9
|
-
*/
|
|
10
|
-
export declare const Cloud: ElementDeclaration;
|
|
11
|
-
export default Cloud;
|
package/dist/elements/cloud.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `xeno.cloud` — Cloud. A degenerate element (pure geometry, no children).
|
|
3
|
-
*
|
|
4
|
-
* The XENO cloud, built from the shape language rather than from bubbles: a flat, rounded base with
|
|
5
|
-
* a taller rounded-square billow standing on it. Every curve is a rounded CORNER — there is no arc of
|
|
6
|
-
* a full circle — so it sits beside `xeno.globe` and `xeno.waves` without breaking DESIGN_SYSTEM §3.
|
|
7
|
-
* `xeno.waves` means water or signal and is not a stand-in.
|
|
8
|
-
*/
|
|
9
|
-
export const Cloud = {
|
|
10
|
-
id: 'xeno.cloud',
|
|
11
|
-
kind: 'icon',
|
|
12
|
-
contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
|
|
13
|
-
geometry: {
|
|
14
|
-
base: [
|
|
15
|
-
{ kind: 'path', d: 'M6.5 19H17.5A3.5 3.5 0 0 0 21 15.5V14.5A3.5 3.5 0 0 0 17.5 11H17V9A4 4 0 0 0 13 5H11.5A4 4 0 0 0 7.5 9V11H6.5A3.5 3.5 0 0 0 3 14.5V15.5A3.5 3.5 0 0 0 6.5 19Z' },
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
bindings: [],
|
|
19
|
-
a11y: { role: 'img', label: 'Cloud' },
|
|
20
|
-
meta: { tags: ['cloud', 'hosted', 'remote', 'online'], since: '0.0.7' },
|
|
21
|
-
};
|
|
22
|
-
export default Cloud;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ElementDeclaration } from '../schema';
|
|
2
|
-
/**
|
|
3
|
-
* `xeno.keyboard` — Keyboard. A degenerate element (pure geometry, no children).
|
|
4
|
-
*
|
|
5
|
-
* A keyboard body with two rows of square keys and a wide space bar. The keys are SOLID squares; the
|
|
6
|
-
* common rendering draws them as zero-length round-cap dots, which are circles by another name.
|
|
7
|
-
*/
|
|
8
|
-
export declare const Keyboard: ElementDeclaration;
|
|
9
|
-
export default Keyboard;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `xeno.keyboard` — Keyboard. A degenerate element (pure geometry, no children).
|
|
3
|
-
*
|
|
4
|
-
* A keyboard body with two rows of square keys and a wide space bar. The keys are SOLID squares; the
|
|
5
|
-
* common rendering draws them as zero-length round-cap dots, which are circles by another name.
|
|
6
|
-
*/
|
|
7
|
-
export const Keyboard = {
|
|
8
|
-
id: 'xeno.keyboard',
|
|
9
|
-
kind: 'icon',
|
|
10
|
-
contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
|
|
11
|
-
geometry: {
|
|
12
|
-
base: [
|
|
13
|
-
{ kind: 'rect', x: 2.5, y: 5, w: 19, h: 14, rx: 2 },
|
|
14
|
-
{ kind: 'rect', x: 5.5, y: 8, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
15
|
-
{ kind: 'rect', x: 9, y: 8, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
16
|
-
{ kind: 'rect', x: 12.5, y: 8, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
17
|
-
{ kind: 'rect', x: 16, y: 8, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
18
|
-
{ kind: 'rect', x: 7, y: 11.5, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
19
|
-
{ kind: 'rect', x: 10.5, y: 11.5, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
20
|
-
{ kind: 'rect', x: 14, y: 11.5, w: 2, h: 2, rx: 0.4, fill: 'foreground' },
|
|
21
|
-
{ kind: 'rect', x: 7, y: 15, w: 10, h: 1.6, rx: 0.4, fill: 'foreground' },
|
|
22
|
-
],
|
|
23
|
-
},
|
|
24
|
-
bindings: [],
|
|
25
|
-
a11y: { role: 'img', label: 'Keyboard' },
|
|
26
|
-
meta: { tags: ['keyboard', 'keys', 'shortcuts', 'typing'], since: '0.0.7' },
|
|
27
|
-
};
|
|
28
|
-
export default Keyboard;
|
package/dist/tokens/chart.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CHART palette — the monochrome SERIES ramp (six steps of white at falling opacity) and the FILL ramp that
|
|
3
|
-
* pairs with it. Lifted 2026-09-18 from `@xenosystem/blocks/data` (the chart block), where they were twelve
|
|
4
|
-
* white-alpha literals lifted in turn from sheets' `ChartModel`. A block may carry no colour literal, so the
|
|
5
|
-
* ramp moved DOWN a rung; the block assigns `var(--xeno-chart-series-<n>)` and a renderer resolves it where
|
|
6
|
-
* a canvas exists. Monochrome by design (`DESIGN_SYSTEM.md`): a series is told apart by weight, not hue.
|
|
7
|
-
*/
|
|
8
|
-
export declare const chart: {
|
|
9
|
-
readonly series: readonly ["rgba(255, 255, 255, 0.9)", "rgba(255, 255, 255, 0.65)", "rgba(255, 255, 255, 0.45)", "rgba(255, 255, 255, 0.3)", "rgba(255, 255, 255, 0.18)", "rgba(255, 255, 255, 0.1)"];
|
|
10
|
-
readonly fill: readonly ["rgba(255, 255, 255, 0.15)", "rgba(255, 255, 255, 0.1)", "rgba(255, 255, 255, 0.07)", "rgba(255, 255, 255, 0.05)", "rgba(255, 255, 255, 0.035)", "rgba(255, 255, 255, 0.02)"];
|
|
11
|
-
};
|
|
12
|
-
/** `--xeno-chart-series-1` … `-6`, `--xeno-chart-fill-1` … `-6`. */
|
|
13
|
-
export declare function chartVar(ramp: keyof typeof chart, step: number): string;
|
package/dist/tokens/chart.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CHART palette — the monochrome SERIES ramp (six steps of white at falling opacity) and the FILL ramp that
|
|
3
|
-
* pairs with it. Lifted 2026-09-18 from `@xenosystem/blocks/data` (the chart block), where they were twelve
|
|
4
|
-
* white-alpha literals lifted in turn from sheets' `ChartModel`. A block may carry no colour literal, so the
|
|
5
|
-
* ramp moved DOWN a rung; the block assigns `var(--xeno-chart-series-<n>)` and a renderer resolves it where
|
|
6
|
-
* a canvas exists. Monochrome by design (`DESIGN_SYSTEM.md`): a series is told apart by weight, not hue.
|
|
7
|
-
*/
|
|
8
|
-
export const chart = {
|
|
9
|
-
series: ['rgba(255, 255, 255, 0.9)', 'rgba(255, 255, 255, 0.65)', 'rgba(255, 255, 255, 0.45)', 'rgba(255, 255, 255, 0.3)', 'rgba(255, 255, 255, 0.18)', 'rgba(255, 255, 255, 0.1)'],
|
|
10
|
-
fill: ['rgba(255, 255, 255, 0.15)', 'rgba(255, 255, 255, 0.1)', 'rgba(255, 255, 255, 0.07)', 'rgba(255, 255, 255, 0.05)', 'rgba(255, 255, 255, 0.035)', 'rgba(255, 255, 255, 0.02)'],
|
|
11
|
-
};
|
|
12
|
-
/** `--xeno-chart-series-1` … `-6`, `--xeno-chart-fill-1` … `-6`. */
|
|
13
|
-
export function chartVar(ramp, step) {
|
|
14
|
-
return `--xeno-chart-${ramp}-${step}`;
|
|
15
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TERMINAL palette — the sixteen ANSI colours plus the surface a terminal sits on.
|
|
3
|
-
*
|
|
4
|
-
* The one place in the design system where hue is CONTENT, not chrome: a program that prints red means
|
|
5
|
-
* red, and a monochrome terminal would destroy information the user's own tools are trying to convey.
|
|
6
|
-
* A complete sixteen, never a partial one — a partial theme lets `ls --color` fall back to xterm's own
|
|
7
|
-
* blues and greens rather than these. Neutrals follow the dark surface tokens. Lifted 2026-09-18 from
|
|
8
|
-
* `@xenosystem/blocks/ops` (the terminal block), where they were hex in a block — a block may carry no
|
|
9
|
-
* literal, so the palette moved DOWN a rung. Emitted as `--xeno-terminal-*` by elements-react's theme.
|
|
10
|
-
*/
|
|
11
|
-
export declare const terminal: {
|
|
12
|
-
readonly background: "#0a0a0b";
|
|
13
|
-
readonly foreground: "#e4e4e4";
|
|
14
|
-
readonly cursor: "#e4e4e4";
|
|
15
|
-
readonly cursorAccent: "#0a0a0b";
|
|
16
|
-
readonly selectionBackground: "#33333a";
|
|
17
|
-
readonly black: "#0a0a0b";
|
|
18
|
-
readonly red: "#cd3131";
|
|
19
|
-
readonly green: "#0dbc79";
|
|
20
|
-
readonly yellow: "#e5e510";
|
|
21
|
-
readonly blue: "#2472c8";
|
|
22
|
-
readonly magenta: "#bc3fbc";
|
|
23
|
-
readonly cyan: "#11a8cd";
|
|
24
|
-
readonly white: "#d4d4d4";
|
|
25
|
-
readonly brightBlack: "#5a5a5f";
|
|
26
|
-
readonly brightRed: "#f14c4c";
|
|
27
|
-
readonly brightGreen: "#23d18b";
|
|
28
|
-
readonly brightYellow: "#f5f543";
|
|
29
|
-
readonly brightBlue: "#3b8eea";
|
|
30
|
-
readonly brightMagenta: "#d670d6";
|
|
31
|
-
readonly brightCyan: "#29b8db";
|
|
32
|
-
readonly brightWhite: "#ffffff";
|
|
33
|
-
};
|
|
34
|
-
export type TerminalToken = keyof typeof terminal;
|
|
35
|
-
/** The `--xeno-terminal-<kebab>` custom property for a token — one derivation, used by the theme and its test. */
|
|
36
|
-
export declare function terminalVar(token: TerminalToken): string;
|
package/dist/tokens/terminal.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TERMINAL palette — the sixteen ANSI colours plus the surface a terminal sits on.
|
|
3
|
-
*
|
|
4
|
-
* The one place in the design system where hue is CONTENT, not chrome: a program that prints red means
|
|
5
|
-
* red, and a monochrome terminal would destroy information the user's own tools are trying to convey.
|
|
6
|
-
* A complete sixteen, never a partial one — a partial theme lets `ls --color` fall back to xterm's own
|
|
7
|
-
* blues and greens rather than these. Neutrals follow the dark surface tokens. Lifted 2026-09-18 from
|
|
8
|
-
* `@xenosystem/blocks/ops` (the terminal block), where they were hex in a block — a block may carry no
|
|
9
|
-
* literal, so the palette moved DOWN a rung. Emitted as `--xeno-terminal-*` by elements-react's theme.
|
|
10
|
-
*/
|
|
11
|
-
export const terminal = {
|
|
12
|
-
background: '#0a0a0b',
|
|
13
|
-
foreground: '#e4e4e4',
|
|
14
|
-
cursor: '#e4e4e4',
|
|
15
|
-
cursorAccent: '#0a0a0b',
|
|
16
|
-
selectionBackground: '#33333a',
|
|
17
|
-
black: '#0a0a0b',
|
|
18
|
-
red: '#cd3131',
|
|
19
|
-
green: '#0dbc79',
|
|
20
|
-
yellow: '#e5e510',
|
|
21
|
-
blue: '#2472c8',
|
|
22
|
-
magenta: '#bc3fbc',
|
|
23
|
-
cyan: '#11a8cd',
|
|
24
|
-
white: '#d4d4d4',
|
|
25
|
-
brightBlack: '#5a5a5f',
|
|
26
|
-
brightRed: '#f14c4c',
|
|
27
|
-
brightGreen: '#23d18b',
|
|
28
|
-
brightYellow: '#f5f543',
|
|
29
|
-
brightBlue: '#3b8eea',
|
|
30
|
-
brightMagenta: '#d670d6',
|
|
31
|
-
brightCyan: '#29b8db',
|
|
32
|
-
brightWhite: '#ffffff',
|
|
33
|
-
};
|
|
34
|
-
/** The `--xeno-terminal-<kebab>` custom property for a token — one derivation, used by the theme and its test. */
|
|
35
|
-
export function terminalVar(token) {
|
|
36
|
-
return `--xeno-terminal-${token.replace(/[A-Z]/g, (c) => '-' + c.toLowerCase())}`;
|
|
37
|
-
}
|