@xenosystem/elements 0.0.2 → 0.0.4

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.
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.blocks` — Blocks. A degenerate element (pure geometry, no children).
4
+ * Three of four cells filled — a set with room for one more, which is what a library of parts is. Rung 3 of the front ladder; the harness's Blocks rail. Squares only (DESIGN_SYSTEM §3).
5
+ */
6
+ export declare const Blocks: ElementDeclaration;
7
+ export default Blocks;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.blocks` — Blocks. A degenerate element (pure geometry, no children).
3
+ * Three of four cells filled — a set with room for one more, which is what a library of parts is. Rung 3 of the front ladder; the harness's Blocks rail. Squares only (DESIGN_SYSTEM §3).
4
+ */
5
+ export const Blocks = {
6
+ id: 'xeno.blocks',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'rect', x: 4, y: 13, w: 7, h: 7, rx: 1 },
12
+ { kind: 'rect', x: 13, y: 13, w: 7, h: 7, rx: 1 },
13
+ { kind: 'rect', x: 4, y: 4, w: 7, h: 7, rx: 1 },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Blocks' },
18
+ meta: { tags: ['library', 'parts', 'panels', 'compose'], since: '0.1.0' },
19
+ };
20
+ export default Blocks;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.cable` — Cable. A degenerate element (pure geometry, no children).
4
+ * Two plugs and the lead between them, with one bend so it reads as a cable and not a rule. The harness's Wiring rail.
5
+ */
6
+ export declare const Cable: ElementDeclaration;
7
+ export default Cable;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.cable` — Cable. A degenerate element (pure geometry, no children).
3
+ * Two plugs and the lead between them, with one bend so it reads as a cable and not a rule. The harness's Wiring rail.
4
+ */
5
+ export const Cable = {
6
+ id: 'xeno.cable',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'rect', x: 3, y: 9, w: 4, h: 6, rx: 1 },
12
+ { kind: 'rect', x: 17, y: 9, w: 4, h: 6, rx: 1 },
13
+ { kind: 'path', d: 'M7 12h3c2 0 2-3 4-3s2 3 4 3' },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Cable' },
18
+ meta: { tags: ['wire', 'wiring', 'connect', 'link'], since: '0.1.0' },
19
+ };
20
+ export default Cable;
@@ -0,0 +1,9 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.chart-gantt` — Gantt chart. A degenerate element (pure geometry, no children).
4
+ * Three task bars of different length and start offset, stacked on a baseline — a schedule, not
5
+ * a bar chart (contrast `xeno.chart-column`, whose bars share one baseline x and vary only in
6
+ * height).
7
+ */
8
+ export declare const ChartGantt: ElementDeclaration;
9
+ export default ChartGantt;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.chart-gantt` — Gantt chart. A degenerate element (pure geometry, no children).
3
+ * Three task bars of different length and start offset, stacked on a baseline — a schedule, not
4
+ * a bar chart (contrast `xeno.chart-column`, whose bars share one baseline x and vary only in
5
+ * height).
6
+ */
7
+ export const ChartGantt = {
8
+ id: 'xeno.chart-gantt',
9
+ kind: 'icon',
10
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
11
+ geometry: {
12
+ base: [
13
+ { kind: 'path', d: 'M3 20h18' },
14
+ { kind: 'rect', x: 6, y: 4, w: 11, h: 3, rx: 1 },
15
+ { kind: 'rect', x: 9, y: 9.5, w: 9, h: 3, rx: 1 },
16
+ { kind: 'rect', x: 4, y: 15, w: 7, h: 3, rx: 1 },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Gantt chart' },
21
+ meta: { tags: ['gantt', 'timeline', 'schedule', 'tasks', 'chart'], since: '0.1.0' },
22
+ };
23
+ export default ChartGantt;
@@ -0,0 +1,8 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.spline` — Spline. A degenerate element (pure geometry, no children).
4
+ * Two anchor squares joined by one S-curve, vertical at each end — a curve with handles, not a
5
+ * straight edge. DESIGN_SYSTEM §3 forbids circles; the anchors are rounded squares, not points.
6
+ */
7
+ export declare const Spline: ElementDeclaration;
8
+ export default Spline;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.spline` — Spline. A degenerate element (pure geometry, no children).
3
+ * Two anchor squares joined by one S-curve, vertical at each end — a curve with handles, not a
4
+ * straight edge. DESIGN_SYSTEM §3 forbids circles; the anchors are rounded squares, not points.
5
+ */
6
+ export const Spline = {
7
+ id: 'xeno.spline',
8
+ kind: 'icon',
9
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
10
+ geometry: {
11
+ base: [
12
+ { kind: 'rect', x: 3, y: 15, w: 4, h: 4, rx: 1 },
13
+ { kind: 'rect', x: 17, y: 5, w: 4, h: 4, rx: 1 },
14
+ { kind: 'path', d: 'M7 17C7 12 17 12 17 7' },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Spline' },
19
+ meta: { tags: ['curve', 'bezier', 'path', 'anchor', 'vector'], since: '0.1.0' },
20
+ };
21
+ export default Spline;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.square` — Square. A degenerate element (pure geometry, no children).
4
+ * The plain frame: the default glyph for a thing that has no icon of its own, and the transport's stop.
5
+ */
6
+ export declare const Square: ElementDeclaration;
7
+ export default Square;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `xeno.square` — Square. A degenerate element (pure geometry, no children).
3
+ * The plain frame: the default glyph for a thing that has no icon of its own, and the transport's stop.
4
+ */
5
+ export const Square = {
6
+ id: 'xeno.square',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'rect', x: 4, y: 4, w: 16, h: 16, rx: 2 },
12
+ ],
13
+ },
14
+ bindings: [],
15
+ a11y: { role: 'img', label: 'Square' },
16
+ meta: { tags: ['stop', 'shape', 'frame', 'placeholder'], since: '0.1.0' },
17
+ };
18
+ export default Square;
@@ -0,0 +1,8 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.waypoints` — Waypoints. A degenerate element (pure geometry, no children).
4
+ * Three stop markers on a winding route, low to high. DESIGN_SYSTEM §3 forbids circles — each
5
+ * stop is a rounded square, not a pin.
6
+ */
7
+ export declare const Waypoints: ElementDeclaration;
8
+ export default Waypoints;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.waypoints` — Waypoints. A degenerate element (pure geometry, no children).
3
+ * Three stop markers on a winding route, low to high. DESIGN_SYSTEM §3 forbids circles — each
4
+ * stop is a rounded square, not a pin.
5
+ */
6
+ export const Waypoints = {
7
+ id: 'xeno.waypoints',
8
+ kind: 'icon',
9
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
10
+ geometry: {
11
+ base: [
12
+ { kind: 'rect', x: 3, y: 17, w: 4, h: 4, rx: 1 },
13
+ { kind: 'rect', x: 10, y: 9, w: 4, h: 4, rx: 1 },
14
+ { kind: 'rect', x: 17, y: 3, w: 4, h: 4, rx: 1 },
15
+ { kind: 'path', d: 'M5 17C6 14 8 12 10 11' },
16
+ { kind: 'path', d: 'M14 11C16 9 17 8 19 7' },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Waypoints' },
21
+ meta: { tags: ['route', 'stops', 'markers', 'navigation', 'path'], since: '0.1.0' },
22
+ };
23
+ export default Waypoints;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.workflow` — Workflow. A degenerate element (pure geometry, no children).
4
+ * Two nodes and the edge that joins them, stepping down and across — a graph, not a list. The harness's BACK view.
5
+ */
6
+ export declare const Workflow: ElementDeclaration;
7
+ export default Workflow;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.workflow` — Workflow. A degenerate element (pure geometry, no children).
3
+ * Two nodes and the edge that joins them, stepping down and across — a graph, not a list. The harness's BACK view.
4
+ */
5
+ export const Workflow = {
6
+ id: 'xeno.workflow',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'rect', x: 3, y: 3, w: 7, h: 7, rx: 1 },
12
+ { kind: 'rect', x: 14, y: 14, w: 7, h: 7, rx: 1 },
13
+ { kind: 'path', d: 'M10 6.5h4.5a2 2 0 0 1 2 2V14' },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Workflow' },
18
+ meta: { tags: ['automation', 'flow', 'graph', 'nodes', 'back'], since: '0.1.0' },
19
+ };
20
+ export default Workflow;
@@ -15,3 +15,4 @@ export * from './radius.js';
15
15
  export * from './size.js';
16
16
  export * from './status.js';
17
17
  export * from './motion.js';
18
+ export * from './panel.js';
@@ -15,3 +15,4 @@ export * from './radius.js';
15
15
  export * from './size.js';
16
16
  export * from './status.js';
17
17
  export * from './motion.js';
18
+ export * from './panel.js';
@@ -18,6 +18,14 @@ export declare const text: {
18
18
  readonly hover: "#d8d8de";
19
19
  readonly active: "#acacb4";
20
20
  readonly hoverBg: "rgba(169, 169, 177, 0.08)";
21
+ /**
22
+ * Secondary READING text — hints, meta, captions, empty-state copy. Distinct from `idle`, which is
23
+ * the resting state of an INTERACTIVE label (a menu item waits to be hovered; a hint is only read).
24
+ * Chosen for WCAG AA (≥ 4.5:1) on every panel surface, including the control well and the badge
25
+ * chip (`#2d2d2f`: 4.92); `idle` is 3.46 there, which is why the chrome family's 69 contrast
26
+ * findings had one cause. Measured 2026-09-18, xeno-workshop `scripts/measure-contrast.mjs`.
27
+ */
28
+ readonly secondary: "#9a9aa1";
21
29
  };
22
30
  /** Glassmorphism surfaces (§2). */
23
31
  export declare const glass: {
@@ -18,6 +18,14 @@ export const text = {
18
18
  hover: '#d8d8de',
19
19
  active: '#acacb4',
20
20
  hoverBg: 'rgba(169, 169, 177, 0.08)',
21
+ /**
22
+ * Secondary READING text — hints, meta, captions, empty-state copy. Distinct from `idle`, which is
23
+ * the resting state of an INTERACTIVE label (a menu item waits to be hovered; a hint is only read).
24
+ * Chosen for WCAG AA (≥ 4.5:1) on every panel surface, including the control well and the badge
25
+ * chip (`#2d2d2f`: 4.92); `idle` is 3.46 there, which is why the chrome family's 69 contrast
26
+ * findings had one cause. Measured 2026-09-18, xeno-workshop `scripts/measure-contrast.mjs`.
27
+ */
28
+ secondary: '#9a9aa1',
21
29
  };
22
30
  /** Glassmorphism surfaces (§2). */
23
31
  export const glass = {
@@ -0,0 +1,31 @@
1
+ /** Legacy panel palette, retained at rung 1 for API compatibility. New UI uses semantic CSS tokens. */
2
+ export declare const PANEL_COLORS: Readonly<{
3
+ /** Row hover fill. DESIGN_SYSTEM §2 `rowHover`. **No shipped panel has a hover state at all.** */
4
+ readonly rowHover: "rgba(255,255,255,0.05)";
5
+ /** Row selected fill. Census: byte-identical in layers + history. */
6
+ readonly rowSelected: "rgba(255,255,255,0.10)";
7
+ /** Active/focus ring. Census: byte-identical `inset 0 0 0 1px` in layers + history. */
8
+ readonly ring: "rgba(255,255,255,0.15)";
9
+ /** Keyboard focus outline. DESIGN_SYSTEM §11. **No shipped panel has one.** */
10
+ readonly focus: "rgba(255,255,255,0.25)";
11
+ /** Recessed well fill for inputs. Census: 4/5 packages. */
12
+ readonly well: "rgba(0,0,0,0.3)";
13
+ /** Hairline border. */
14
+ readonly border: "rgba(255,255,255,0.08)";
15
+ /** Soft raised fill — chips, ghost buttons. Census: 5/5 packages. */
16
+ readonly soft: "rgba(255,255,255,0.06)";
17
+ /** Section-header wash. Census: inspector. */
18
+ readonly wash: "rgba(255,255,255,0.03)";
19
+ /** Solid status red (indicators). DESIGN_SYSTEM §2 `error`. */
20
+ readonly error: "#ef4444";
21
+ /** Status red for TEXT. DESIGN_SYSTEM §2 `error.text`. */
22
+ readonly errorText: "rgba(239,68,68,0.65)";
23
+ /** Status amber for text. */
24
+ readonly warningText: "rgba(245,158,11,0.65)";
25
+ /** Status green for text. */
26
+ readonly successText: "#5a9a6a";
27
+ /** Info blue-gray for text (the dimmest permitted chroma). */
28
+ readonly infoText: "#7aa2c4";
29
+ }>;
30
+ /** The type of {@link PANEL_COLORS}. */
31
+ export type PanelColors = typeof PANEL_COLORS;
@@ -0,0 +1,29 @@
1
+ /** Legacy panel palette, retained at rung 1 for API compatibility. New UI uses semantic CSS tokens. */
2
+ export const PANEL_COLORS = Object.freeze({
3
+ /** Row hover fill. DESIGN_SYSTEM §2 `rowHover`. **No shipped panel has a hover state at all.** */
4
+ rowHover: 'rgba(255,255,255,0.05)',
5
+ /** Row selected fill. Census: byte-identical in layers + history. */
6
+ rowSelected: 'rgba(255,255,255,0.10)',
7
+ /** Active/focus ring. Census: byte-identical `inset 0 0 0 1px` in layers + history. */
8
+ ring: 'rgba(255,255,255,0.15)',
9
+ /** Keyboard focus outline. DESIGN_SYSTEM §11. **No shipped panel has one.** */
10
+ focus: 'rgba(255,255,255,0.25)',
11
+ /** Recessed well fill for inputs. Census: 4/5 packages. */
12
+ well: 'rgba(0,0,0,0.3)',
13
+ /** Hairline border. */
14
+ border: 'rgba(255,255,255,0.08)',
15
+ /** Soft raised fill — chips, ghost buttons. Census: 5/5 packages. */
16
+ soft: 'rgba(255,255,255,0.06)',
17
+ /** Section-header wash. Census: inspector. */
18
+ wash: 'rgba(255,255,255,0.03)',
19
+ /** Solid status red (indicators). DESIGN_SYSTEM §2 `error`. */
20
+ error: '#ef4444',
21
+ /** Status red for TEXT. DESIGN_SYSTEM §2 `error.text`. */
22
+ errorText: 'rgba(239,68,68,0.65)',
23
+ /** Status amber for text. */
24
+ warningText: 'rgba(245,158,11,0.65)',
25
+ /** Status green for text. */
26
+ successText: '#5a9a6a',
27
+ /** Info blue-gray for text (the dimmest permitted chroma). */
28
+ infoText: '#7aa2c4',
29
+ });
@@ -10,5 +10,15 @@ export declare const status: {
10
10
  readonly dangerHover: "#dc2626";
11
11
  readonly success: "#3fb950";
12
12
  readonly warning: "#d29922";
13
+ /**
14
+ * The same four meanings as TEXT (a badge label, a status line, an error message): the fill hues
15
+ * above fail AA as small text on the panel surfaces (danger `#ef4444` is 3.65:1 on a `#2d2d2f`
16
+ * chip), so text gets its own, lighter tone per meaning — every one ≥ 4.5:1 on every surface down
17
+ * to `#2d2d2f`. Distinguish a status by TONE, not by hue alone (`DESIGN_SYSTEM.md` §a11y).
18
+ */
19
+ readonly dangerText: "#f27a7a";
20
+ readonly successText: "#6fae7f";
21
+ readonly warningText: "#c98d2a";
22
+ readonly infoText: "#7aa2c4";
13
23
  };
14
24
  export type StatusToken = keyof typeof status;
@@ -10,4 +10,14 @@ export const status = {
10
10
  dangerHover: '#dc2626',
11
11
  success: '#3fb950',
12
12
  warning: '#d29922',
13
+ /**
14
+ * The same four meanings as TEXT (a badge label, a status line, an error message): the fill hues
15
+ * above fail AA as small text on the panel surfaces (danger `#ef4444` is 3.65:1 on a `#2d2d2f`
16
+ * chip), so text gets its own, lighter tone per meaning — every one ≥ 4.5:1 on every surface down
17
+ * to `#2d2d2f`. Distinguish a status by TONE, not by hue alone (`DESIGN_SYSTEM.md` §a11y).
18
+ */
19
+ dangerText: '#f27a7a',
20
+ successText: '#6fae7f',
21
+ warningText: '#c98d2a',
22
+ infoText: '#7aa2c4',
13
23
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/elements",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
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>",