@xenosystem/elements 0.0.8 → 0.0.9

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.
@@ -1,7 +1,13 @@
1
1
  import type { ElementDeclaration } from '../schema';
2
2
  /**
3
3
  * `xeno.box` — Box. A degenerate element (pure geometry, no children).
4
- * An isometric cube drawn as one closed outline and two inner edges — a container, the generic thing.
4
+ *
5
+ * An isometric cube: the outline, the two visible top edges, and the front vertical. It stands for a
6
+ * contained thing — a hosted sandbox, a container, an isolated run, a component instance — as opposed
7
+ * to `monitor`, which is this machine. The cube is the one solid in the set drawn in three dimensions, so it should stay the
8
+ * only one.
9
+ *
10
+ * part[0] = outline, part[1] = the top face's near edges, part[2] = the front edge.
5
11
  */
6
12
  export declare const Box: ElementDeclaration;
7
13
  export default Box;
@@ -1,6 +1,12 @@
1
1
  /**
2
2
  * `xeno.box` — Box. A degenerate element (pure geometry, no children).
3
- * An isometric cube drawn as one closed outline and two inner edges — a container, the generic thing.
3
+ *
4
+ * An isometric cube: the outline, the two visible top edges, and the front vertical. It stands for a
5
+ * contained thing — a hosted sandbox, a container, an isolated run, a component instance — as opposed
6
+ * to `monitor`, which is this machine. The cube is the one solid in the set drawn in three dimensions, so it should stay the
7
+ * only one.
8
+ *
9
+ * part[0] = outline, part[1] = the top face's near edges, part[2] = the front edge.
4
10
  */
5
11
  export const Box = {
6
12
  id: 'xeno.box',
@@ -8,12 +14,16 @@ export const Box = {
8
14
  contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
15
  geometry: {
10
16
  base: [
11
- { kind: 'path', d: 'M4 8l8-4 8 4v8l-8 4-8-4z' },
12
- { kind: 'path', d: 'M4 8l8 4 8-4M12 12v8' },
17
+ { kind: 'path', d: 'M4 7.2l8-4 8 4v9.6l-8 4-8-4z' },
18
+ { kind: 'path', d: 'M4 7.2l8 4 8-4' },
19
+ { kind: 'path', d: 'M12 11.2v9.6' },
13
20
  ],
14
21
  },
15
22
  bindings: [],
23
+ // The label stays the NEUTRAL 'Box' shipped since 0.1.0: consumers mean different containers by it
24
+ // (the agent's sandbox, Canvas's "Insert component"), and each names its own button. PR #14 proposed
25
+ // 'Sandbox', which would announce the wrong thing on every non-sandbox button.
16
26
  a11y: { role: 'img', label: 'Box' },
17
- meta: { tags: ['package', 'container', 'component', 'cube'], since: '0.1.0' },
27
+ meta: { tags: ['box', 'sandbox', 'container', 'cube', 'isolated', 'package', 'component'], since: '0.1.0' },
18
28
  };
19
29
  export default Box;
@@ -0,0 +1,12 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.cloud` - Cloud. A degenerate element (pure geometry, no children).
4
+ *
5
+ * One closed outline: a flat base, a small lobe and a large one. Two lobes, not three — at 12px, where
6
+ * the agent composer draws it as the lane's mark, a third lobe closes into a scallop. The arcs are
7
+ * arcs of a cloud, not a circle standing alone, which is the line the design system draws.
8
+ *
9
+ * part[0] = the outline.
10
+ */
11
+ export declare const Cloud: ElementDeclaration;
12
+ export default Cloud;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.cloud` - Cloud. A degenerate element (pure geometry, no children).
3
+ *
4
+ * One closed outline: a flat base, a small lobe and a large one. Two lobes, not three — at 12px, where
5
+ * the agent composer draws it as the lane's mark, a third lobe closes into a scallop. The arcs are
6
+ * arcs of a cloud, not a circle standing alone, which is the line the design system draws.
7
+ *
8
+ * part[0] = the outline.
9
+ */
10
+ export const Cloud = {
11
+ id: 'xeno.cloud',
12
+ kind: 'icon',
13
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
14
+ geometry: {
15
+ base: [
16
+ { kind: 'path', d: 'M6.2 17.4h11a4 4 0 0 0 0-8 6 6 0 0 0-11.3-1.5A4.7 4.7 0 0 0 6.2 17.4z' },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Cloud' },
21
+ meta: { tags: ['cloud', 'hosted', 'remote', 'api', 'server'], since: '0.0.9' },
22
+ };
23
+ export default Cloud;
@@ -0,0 +1,14 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.cursor-click` - Click. A degenerate element (pure geometry, no children).
4
+ *
5
+ * The arrow pointer, seated low and right so its tip sits where the click lands, with three ticks flaring
6
+ * from that point up and to the left — the burst a pointer makes in every cursor set, drawn as straight
7
+ * strokes because a starburst is circles pretending. `navigation` is the near neighbour: that one is a
8
+ * needle with its point UP and a notch in its base; this is a pointer with its point at the top-LEFT, its
9
+ * tail swept to the lower right, and no notch — an arrow that lands, not a marker that points the way.
10
+ *
11
+ * part[0] = the pointer, part[1] = the diagonal tick, part[2] = the two axis ticks.
12
+ */
13
+ export declare const CursorClick: ElementDeclaration;
14
+ export default CursorClick;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * `xeno.cursor-click` - Click. A degenerate element (pure geometry, no children).
3
+ *
4
+ * The arrow pointer, seated low and right so its tip sits where the click lands, with three ticks flaring
5
+ * from that point up and to the left — the burst a pointer makes in every cursor set, drawn as straight
6
+ * strokes because a starburst is circles pretending. `navigation` is the near neighbour: that one is a
7
+ * needle with its point UP and a notch in its base; this is a pointer with its point at the top-LEFT, its
8
+ * tail swept to the lower right, and no notch — an arrow that lands, not a marker that points the way.
9
+ *
10
+ * part[0] = the pointer, part[1] = the diagonal tick, part[2] = the two axis ticks.
11
+ */
12
+ export const CursorClick = {
13
+ id: 'xeno.cursor-click',
14
+ kind: 'icon',
15
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
16
+ geometry: {
17
+ base: [
18
+ { kind: 'path', d: 'M8.4 8.4 13.2 20.2 14.9 14.9 20.2 13.2z' },
19
+ { kind: 'path', d: 'M4.2 4.2 6.6 6.6' },
20
+ { kind: 'path', d: 'M4.2 10.6h2.6M10.6 4.2v2.6' },
21
+ ],
22
+ },
23
+ bindings: [],
24
+ a11y: { role: 'img', label: 'Click' },
25
+ meta: { tags: ['click', 'cursor', 'pointer', 'press', 'tap'], since: '0.0.9' },
26
+ };
27
+ export default CursorClick;
@@ -0,0 +1,12 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.git-branch` - Branch. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A trunk with a limb joining it from the right, and a small square at each end where a circle would
6
+ * usually sit: the commit marks are the rounded-square the whole set is built from. The limb's curve is
7
+ * one quarter-arc so it reads as "joins" rather than "crosses".
8
+ *
9
+ * part[0] = trunk, part[1] = limb, part[2] = the trunk's foot, part[3] = the limb's head.
10
+ */
11
+ export declare const GitBranch: ElementDeclaration;
12
+ export default GitBranch;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `xeno.git-branch` - Branch. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A trunk with a limb joining it from the right, and a small square at each end where a circle would
5
+ * usually sit: the commit marks are the rounded-square the whole set is built from. The limb's curve is
6
+ * one quarter-arc so it reads as "joins" rather than "crosses".
7
+ *
8
+ * part[0] = trunk, part[1] = limb, part[2] = the trunk's foot, part[3] = the limb's head.
9
+ */
10
+ export const GitBranch = {
11
+ id: 'xeno.git-branch',
12
+ kind: 'icon',
13
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
14
+ geometry: {
15
+ base: [
16
+ { kind: 'path', d: 'M6 8v9' },
17
+ { kind: 'path', d: 'M18 8v2.6a3.4 3.4 0 0 1-3.4 3.4H6' },
18
+ { kind: 'rect', x: 4, y: 17, w: 4, h: 4, rx: 0.8 },
19
+ { kind: 'rect', x: 16, y: 3, w: 4, h: 4, rx: 0.8 },
20
+ ],
21
+ },
22
+ bindings: [],
23
+ a11y: { role: 'img', label: 'Branch' },
24
+ meta: { tags: ['git', 'branch', 'version', 'ref', 'checkout'], since: '0.0.9' },
25
+ };
26
+ export default GitBranch;
@@ -0,0 +1,13 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.keyboard` - Keyboard. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A frame with three keys and a space bar. The keys are SHORT BARS, not dots: the set draws with butt caps,
6
+ * so a dot would have to be a circle, and a circle is the one shape the design system forbids. Three keys
7
+ * rather than a full row because at 12px — where the agent transcript draws it as a step's marker — a row
8
+ * of six closes into a dashed line. The space bar is what says "keyboard" rather than "calculator".
9
+ *
10
+ * part[0] = frame, part[1..3] = keys (left to right), part[4] = space bar.
11
+ */
12
+ export declare const Keyboard: ElementDeclaration;
13
+ export default Keyboard;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * `xeno.keyboard` - Keyboard. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A frame with three keys and a space bar. The keys are SHORT BARS, not dots: the set draws with butt caps,
5
+ * so a dot would have to be a circle, and a circle is the one shape the design system forbids. Three keys
6
+ * rather than a full row because at 12px — where the agent transcript draws it as a step's marker — a row
7
+ * of six closes into a dashed line. The space bar is what says "keyboard" rather than "calculator".
8
+ *
9
+ * part[0] = frame, part[1..3] = keys (left to right), part[4] = space bar.
10
+ */
11
+ export const Keyboard = {
12
+ id: 'xeno.keyboard',
13
+ kind: 'icon',
14
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
15
+ geometry: {
16
+ base: [
17
+ { kind: 'rect', x: 2.6, y: 5.8, w: 18.8, h: 12.4, rx: 2 },
18
+ { kind: 'path', d: 'M6.4 10h2.4' },
19
+ { kind: 'path', d: 'M10.8 10h2.4' },
20
+ { kind: 'path', d: 'M15.2 10h2.4' },
21
+ { kind: 'path', d: 'M7.6 14.2h8.8' },
22
+ ],
23
+ },
24
+ bindings: [],
25
+ a11y: { role: 'img', label: 'Keyboard' },
26
+ meta: { tags: ['keyboard', 'type', 'keys', 'input', 'press'], since: '0.0.9' },
27
+ };
28
+ export default Keyboard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/elements",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
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>",