@xenosystem/elements 0.0.1 โ†’ 0.0.2

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.
Files changed (43) hide show
  1. package/LICENSE +18 -18
  2. package/README.md +65 -65
  3. package/dist/elements/box.d.ts +7 -0
  4. package/dist/elements/box.js +19 -0
  5. package/dist/elements/chart-column.d.ts +7 -0
  6. package/dist/elements/chart-column.js +21 -0
  7. package/dist/elements/chevron-up.d.ts +8 -0
  8. package/dist/elements/chevron-up.js +19 -0
  9. package/dist/elements/dot-square.d.ts +7 -0
  10. package/dist/elements/dot-square.js +19 -0
  11. package/dist/elements/file-diff.d.ts +7 -0
  12. package/dist/elements/file-diff.js +21 -0
  13. package/dist/elements/file-text.d.ts +7 -0
  14. package/dist/elements/file-text.js +20 -0
  15. package/dist/elements/folder-tree.d.ts +7 -0
  16. package/dist/elements/folder-tree.js +21 -0
  17. package/dist/elements/gauge.d.ts +7 -0
  18. package/dist/elements/gauge.js +21 -0
  19. package/dist/elements/heading.d.ts +7 -0
  20. package/dist/elements/heading.js +18 -0
  21. package/dist/elements/key.d.ts +7 -0
  22. package/dist/elements/key.js +20 -0
  23. package/dist/elements/link-off.d.ts +7 -0
  24. package/dist/elements/link-off.js +20 -0
  25. package/dist/elements/palette.d.ts +7 -0
  26. package/dist/elements/palette.js +22 -0
  27. package/dist/elements/play-square.d.ts +7 -0
  28. package/dist/elements/play-square.js +19 -0
  29. package/dist/elements/plug.d.ts +7 -0
  30. package/dist/elements/plug.js +21 -0
  31. package/dist/elements/puzzle.d.ts +7 -0
  32. package/dist/elements/puzzle.js +18 -0
  33. package/dist/elements/rotate-back.d.ts +7 -0
  34. package/dist/elements/rotate-back.js +19 -0
  35. package/dist/elements/shield-alert.d.ts +7 -0
  36. package/dist/elements/shield-alert.js +20 -0
  37. package/dist/elements/shield-check.d.ts +7 -0
  38. package/dist/elements/shield-check.js +19 -0
  39. package/dist/elements/type.d.ts +10 -0
  40. package/dist/elements/type.js +21 -0
  41. package/dist/elements/unlock.d.ts +10 -0
  42. package/dist/elements/unlock.js +24 -0
  43. package/package.json +46 -46
package/LICENSE CHANGED
@@ -1,18 +1,18 @@
1
- Copyright (c) 2026 XENO Corporation. All rights reserved.
2
-
3
- PROPRIETARY AND CONFIDENTIAL.
4
-
5
- This software and its source code are the confidential and proprietary property
6
- of XENO Corporation. No licence, express or implied, is granted to any person to
7
- use, copy, modify, merge, publish, distribute, sublicense, or sell copies of this
8
- software, in whole or in part, without the prior written permission of XENO
9
- Corporation.
10
-
11
- Unauthorised copying of this file, via any medium, is strictly prohibited.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17
- AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1
+ Copyright (c) 2026 XENO Corporation. All rights reserved.
2
+
3
+ PROPRIETARY AND CONFIDENTIAL.
4
+
5
+ This software and its source code are the confidential and proprietary property
6
+ of XENO Corporation. No licence, express or implied, is granted to any person to
7
+ use, copy, modify, merge, publish, distribute, sublicense, or sell copies of this
8
+ software, in whole or in part, without the prior written permission of XENO
9
+ Corporation.
10
+
11
+ Unauthorised copying of this file, via any medium, is strictly prohibited.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
18
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,65 +1,65 @@
1
- # @xenosystem/elements
2
-
3
- **The XENO element contract โ€” the source of truth.**
4
-
5
- > Status: ๐ŸŸก **Phase 1** โ€” schema written, declarations not yet drawn. Not published.
6
-
7
- Framework-free, platform-free, zero dependencies. This package is a **contract**, not a component
8
- library โ€” it contains no React, no rendering, and nothing platform-specific. Every renderer on
9
- every platform is an interpretation of what is declared here.
10
-
11
- ## What lives here
12
-
13
- | | |
14
- |---|---|
15
- | `src/schema.ts` | The contract: state axes, signals, transitions, bindings, compatibility |
16
- | `src/elements/` | Element declarations โ€” the glyphs and composites *(Phase 1, in progress)* |
17
- | `src/tokens/` | Design tokens, resolved from `DESIGN_SYSTEM.md` *(Phase 1)* |
18
-
19
- ## The two properties to preserve
20
-
21
- **1. There is no "icon" type.** An icon is the degenerate `ElementDeclaration` โ€” no children,
22
- pure geometry. A button is the compound one. They share one schema and one release path, which is
23
- what makes *"edit one icon"* and *"edit one button"* the identical operation. A refactor that
24
- gives icons their own type has thrown away the reason this repo exists.
25
-
26
- **2. A declaration contains data, never code.** No functions, no expressions, no executable
27
- animation. `Binding` is a *description* a renderer interprets. This is an architectural boundary
28
- with a legal edge โ€” see `docs/STATE-MODEL.md` ยง4.1.
29
-
30
- ## The state model, briefly
31
-
32
- Three orthogonal axes, because a single enum cannot express a disabled toggle that is *on*:
33
-
34
- ```ts
35
- { availability: 'enabled' | 'disabled' | 'busy'
36
- selection: 'off' | 'on' | 'mixed' // semantic, persists
37
- interaction: 'idle' | 'engaged' | 'pressed' } // transient
38
- ```
39
-
40
- Plus continuous **signals** (`progress` 0โ€ฆ1, `activity`) and momentary **transitions**
41
- (`commit`, `reject`, `toggle`).
42
-
43
- `engaged` = hover on pointer devices, **nothing on touch**. Full model:
44
- [`docs/STATE-MODEL.md`](../../docs/STATE-MODEL.md).
45
-
46
- ## Contract compatibility
47
-
48
- `checkCompatibility()` answers the question behind automatic propagation: *may this change reach
49
- a shipped product without that product rebuilding?*
50
-
51
- Refinements pass โ€” redrawn geometry, retuned timings, added variants, new elements. Breaks are
52
- refused โ€” a dropped axis, a changed viewBox, a removed element, a renamed id.
53
-
54
- It **fails closed**: anything it does not positively understand is a break. A permissive contract
55
- checker is worse than none, because it produces evidence of safety it has not established.
56
-
57
- ## Never barrel the declarations
58
-
59
- `src/index.ts` re-exports the schema โ€” small, tree-shakes cleanly. **Element declarations get
60
- per-element entry points.** A single index importing every element is exactly why `lucide-react`
61
- weighs 2.4 MB, and `lucide-react/dynamic` collapses to an empty chunk in production.
62
-
63
- ---
64
- Part of [`xeno-elements`](../../README.md). Visual authority:
65
- [`DESIGN_SYSTEM.md`](../../DESIGN_SYSTEM.md) โ€” LOCKED.
1
+ # @xenosystem/elements
2
+
3
+ **The XENO element contract โ€” the source of truth.**
4
+
5
+ > Status: ๐ŸŸก **Phase 1** โ€” schema written, declarations not yet drawn. Not published.
6
+
7
+ Framework-free, platform-free, zero dependencies. This package is a **contract**, not a component
8
+ library โ€” it contains no React, no rendering, and nothing platform-specific. Every renderer on
9
+ every platform is an interpretation of what is declared here.
10
+
11
+ ## What lives here
12
+
13
+ | | |
14
+ |---|---|
15
+ | `src/schema.ts` | The contract: state axes, signals, transitions, bindings, compatibility |
16
+ | `src/elements/` | Element declarations โ€” the glyphs and composites *(Phase 1, in progress)* |
17
+ | `src/tokens/` | Design tokens, resolved from `DESIGN_SYSTEM.md` *(Phase 1)* |
18
+
19
+ ## The two properties to preserve
20
+
21
+ **1. There is no "icon" type.** An icon is the degenerate `ElementDeclaration` โ€” no children,
22
+ pure geometry. A button is the compound one. They share one schema and one release path, which is
23
+ what makes *"edit one icon"* and *"edit one button"* the identical operation. A refactor that
24
+ gives icons their own type has thrown away the reason this repo exists.
25
+
26
+ **2. A declaration contains data, never code.** No functions, no expressions, no executable
27
+ animation. `Binding` is a *description* a renderer interprets. This is an architectural boundary
28
+ with a legal edge โ€” see `docs/STATE-MODEL.md` ยง4.1.
29
+
30
+ ## The state model, briefly
31
+
32
+ Three orthogonal axes, because a single enum cannot express a disabled toggle that is *on*:
33
+
34
+ ```ts
35
+ { availability: 'enabled' | 'disabled' | 'busy'
36
+ selection: 'off' | 'on' | 'mixed' // semantic, persists
37
+ interaction: 'idle' | 'engaged' | 'pressed' } // transient
38
+ ```
39
+
40
+ Plus continuous **signals** (`progress` 0โ€ฆ1, `activity`) and momentary **transitions**
41
+ (`commit`, `reject`, `toggle`).
42
+
43
+ `engaged` = hover on pointer devices, **nothing on touch**. Full model:
44
+ [`docs/STATE-MODEL.md`](../../docs/STATE-MODEL.md).
45
+
46
+ ## Contract compatibility
47
+
48
+ `checkCompatibility()` answers the question behind automatic propagation: *may this change reach
49
+ a shipped product without that product rebuilding?*
50
+
51
+ Refinements pass โ€” redrawn geometry, retuned timings, added variants, new elements. Breaks are
52
+ refused โ€” a dropped axis, a changed viewBox, a removed element, a renamed id.
53
+
54
+ It **fails closed**: anything it does not positively understand is a break. A permissive contract
55
+ checker is worse than none, because it produces evidence of safety it has not established.
56
+
57
+ ## Never barrel the declarations
58
+
59
+ `src/index.ts` re-exports the schema โ€” small, tree-shakes cleanly. **Element declarations get
60
+ per-element entry points.** A single index importing every element is exactly why `lucide-react`
61
+ weighs 2.4 MB, and `lucide-react/dynamic` collapses to an empty chunk in production.
62
+
63
+ ---
64
+ Part of [`xeno-elements`](../../README.md). Visual authority:
65
+ [`DESIGN_SYSTEM.md`](../../DESIGN_SYSTEM.md) โ€” LOCKED.
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
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.
5
+ */
6
+ export declare const Box: ElementDeclaration;
7
+ export default Box;
@@ -0,0 +1,19 @@
1
+ /**
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.
4
+ */
5
+ export const Box = {
6
+ id: 'xeno.box',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M4 8l8-4 8 4v8l-8 4-8-4z' },
12
+ { kind: 'path', d: 'M4 8l8 4 8-4M12 12v8' },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Box' },
17
+ meta: { tags: ['package', 'container', 'component', 'cube'], since: '0.1.0' },
18
+ };
19
+ export default Box;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.chart-column` โ€” Chart. A degenerate element (pure geometry, no children).
4
+ * Three columns of different height on a baseline. Rects, no gradient, no hue โ€” a chart reads by weight.
5
+ */
6
+ export declare const ChartColumn: ElementDeclaration;
7
+ export default ChartColumn;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.chart-column` โ€” Chart. A degenerate element (pure geometry, no children).
3
+ * Three columns of different height on a baseline. Rects, no gradient, no hue โ€” a chart reads by weight.
4
+ */
5
+ export const ChartColumn = {
6
+ id: 'xeno.chart-column',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M3 20h18' },
12
+ { kind: 'rect', x: 6, y: 10, w: 3, h: 7, rx: 1 },
13
+ { kind: 'rect', x: 11, y: 5, w: 3, h: 12, rx: 1 },
14
+ { kind: 'rect', x: 16, y: 13, w: 3, h: 4, rx: 1 },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Chart' },
19
+ meta: { tags: ['bar', 'graph', 'data', 'metrics'], since: '0.1.0' },
20
+ };
21
+ export default ChartColumn;
@@ -0,0 +1,8 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.chevron-up` โ€” Chevron up. A degenerate element (pure geometry, no children).
4
+ * The down chevron mirrored: same shaft length, same head angle, pointing up.
5
+ * Needed so the Apps harness can drop lucide's circled-family ChevronUp.
6
+ */
7
+ export declare const ChevronUp: ElementDeclaration;
8
+ export default ChevronUp;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `xeno.chevron-up` โ€” Chevron up. A degenerate element (pure geometry, no children).
3
+ * The down chevron mirrored: same shaft length, same head angle, pointing up.
4
+ * Needed so the Apps harness can drop lucide's circled-family ChevronUp.
5
+ */
6
+ export const ChevronUp = {
7
+ id: 'xeno.chevron-up',
8
+ kind: 'icon',
9
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
10
+ geometry: {
11
+ base: [
12
+ { kind: 'path', d: 'M6 15l6-6 6 6' },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Chevron up' },
17
+ meta: { tags: ['collapse', 'close'], since: '0.2.0' },
18
+ };
19
+ export default ChevronUp;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.dot-square` โ€” Marker. A degenerate element (pure geometry, no children).
4
+ * A small square in a frame โ€” where lucide draws `circle-dot`. DESIGN_SYSTEM ยง3 forbids circles anywhere; the marker is a rounded square.
5
+ */
6
+ export declare const DotSquare: ElementDeclaration;
7
+ export default DotSquare;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `xeno.dot-square` โ€” Marker. A degenerate element (pure geometry, no children).
3
+ * A small square in a frame โ€” where lucide draws `circle-dot`. DESIGN_SYSTEM ยง3 forbids circles anywhere; the marker is a rounded square.
4
+ */
5
+ export const DotSquare = {
6
+ id: 'xeno.dot-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
+ { kind: 'rect', x: 10, y: 10, w: 4, h: 4, rx: 1 },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Marker' },
17
+ meta: { tags: ['dot', 'point', 'marker', 'active', 'record'], since: '0.1.0' },
18
+ };
19
+ export default DotSquare;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.file-diff` โ€” File diff. A degenerate element (pure geometry, no children).
4
+ * A file with a plus and a minus in it โ€” additions and removals, the two marks a diff has.
5
+ */
6
+ export declare const FileDiff: ElementDeclaration;
7
+ export default FileDiff;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.file-diff` โ€” File diff. A degenerate element (pure geometry, no children).
3
+ * A file with a plus and a minus in it โ€” additions and removals, the two marks a diff has.
4
+ */
5
+ export const FileDiff = {
6
+ id: 'xeno.file-diff',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M6 3h8l4 4v14H6z' },
12
+ { kind: 'path', d: 'M14 3v4h4' },
13
+ { kind: 'path', d: 'M12 10v6M9 13h6' },
14
+ { kind: 'path', d: 'M9 18h6' },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'File diff' },
19
+ meta: { tags: ['diff', 'changes', 'compare', 'patch'], since: '0.1.0' },
20
+ };
21
+ export default FileDiff;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.file-text` โ€” Document. A degenerate element (pure geometry, no children).
4
+ * A file with three lines of text. The generic document.
5
+ */
6
+ export declare const FileText: ElementDeclaration;
7
+ export default FileText;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.file-text` โ€” Document. A degenerate element (pure geometry, no children).
3
+ * A file with three lines of text. The generic document.
4
+ */
5
+ export const FileText = {
6
+ id: 'xeno.file-text',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M6 3h8l4 4v14H6z' },
12
+ { kind: 'path', d: 'M14 3v4h4' },
13
+ { kind: 'path', d: 'M9 12h6M9 15h6M9 18h4' },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Document' },
18
+ meta: { tags: ['text', 'document', 'notes', 'lines'], since: '0.1.0' },
19
+ };
20
+ export default FileText;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.folder-tree` โ€” Folder tree. A degenerate element (pure geometry, no children).
4
+ * Two folders hung off one trunk โ€” the explorer, the hierarchy.
5
+ */
6
+ export declare const FolderTree: ElementDeclaration;
7
+ export default FolderTree;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.folder-tree` โ€” Folder tree. A degenerate element (pure geometry, no children).
3
+ * Two folders hung off one trunk โ€” the explorer, the hierarchy.
4
+ */
5
+ export const FolderTree = {
6
+ id: 'xeno.folder-tree',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M4 3v15h4' },
12
+ { kind: 'path', d: 'M4 10h4' },
13
+ { kind: 'rect', x: 9, y: 4, w: 11, h: 5, rx: 1 },
14
+ { kind: 'rect', x: 9, y: 13, w: 11, h: 5, rx: 1 },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Folder tree' },
19
+ meta: { tags: ['tree', 'folders', 'hierarchy', 'explorer'], since: '0.1.0' },
20
+ };
21
+ export default FolderTree;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.gauge` โ€” Gauge. A degenerate element (pure geometry, no children).
4
+ * A half-arc on a base with the needle raised โ€” level, not a clock. The arc is a dial, not a circle: it is open.
5
+ */
6
+ export declare const Gauge: ElementDeclaration;
7
+ export default Gauge;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.gauge` โ€” Gauge. A degenerate element (pure geometry, no children).
3
+ * A half-arc on a base with the needle raised โ€” level, not a clock. The arc is a dial, not a circle: it is open.
4
+ */
5
+ export const Gauge = {
6
+ id: 'xeno.gauge',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M4 16a8 8 0 0 1 16 0' },
12
+ { kind: 'path', d: 'M4 16h16' },
13
+ { kind: 'path', d: 'M12 16l5-6' },
14
+ { kind: 'rect', x: 11, y: 15, w: 2, h: 2, rx: 0.5 },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Gauge' },
19
+ meta: { tags: ['meter', 'speed', 'level', 'performance'], since: '0.1.0' },
20
+ };
21
+ export default Gauge;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.heading` โ€” Heading. A degenerate element (pure geometry, no children).
4
+ * An H drawn as two posts and a bar โ€” the heading level in an editor.
5
+ */
6
+ export declare const Heading: ElementDeclaration;
7
+ export default Heading;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `xeno.heading` โ€” Heading. A degenerate element (pure geometry, no children).
3
+ * An H drawn as two posts and a bar โ€” the heading level in an editor.
4
+ */
5
+ export const Heading = {
6
+ id: 'xeno.heading',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M6 4v16M18 4v16M6 12h12' },
12
+ ],
13
+ },
14
+ bindings: [],
15
+ a11y: { role: 'img', label: 'Heading' },
16
+ meta: { tags: ['text', 'title', 'h1', 'typography'], since: '0.1.0' },
17
+ };
18
+ export default Heading;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.key` โ€” Key. A degenerate element (pure geometry, no children).
4
+ * A key drawn with a rounded-square bow, not a ring โ€” DESIGN_SYSTEM ยง3: no circles. The bit has two teeth.
5
+ */
6
+ export declare const Key: ElementDeclaration;
7
+ export default Key;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.key` โ€” Key. A degenerate element (pure geometry, no children).
3
+ * A key drawn with a rounded-square bow, not a ring โ€” DESIGN_SYSTEM ยง3: no circles. The bit has two teeth.
4
+ */
5
+ export const Key = {
6
+ id: 'xeno.key',
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: 10, w: 8, h: 5, rx: 2.5 },
12
+ { kind: 'path', d: 'M11 12.5h10' },
13
+ { kind: 'path', d: 'M18 12.5v3M21 12.5v2' },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Key' },
18
+ meta: { tags: ['auth', 'secret', 'credential', 'token', 'unlock'], since: '0.1.0' },
19
+ };
20
+ export default Key;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.link-off` โ€” Link broken. A degenerate element (pure geometry, no children).
4
+ * Two chain ends that no longer meet, struck through โ€” the pair to `xeno.link`.
5
+ */
6
+ export declare const LinkOff: ElementDeclaration;
7
+ export default LinkOff;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.link-off` โ€” Link broken. A degenerate element (pure geometry, no children).
3
+ * Two chain ends that no longer meet, struck through โ€” the pair to `xeno.link`.
4
+ */
5
+ export const LinkOff = {
6
+ id: 'xeno.link-off',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M9 15l-2 2a3.5 3.5 0 0 1-5-5l3-3a3.5 3.5 0 0 1 4-.5' },
12
+ { kind: 'path', d: 'M15 9l2-2a3.5 3.5 0 0 1 5 5l-3 3a3.5 3.5 0 0 1-4 .5' },
13
+ { kind: 'path', d: 'M4 4l16 16' },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Link broken' },
18
+ meta: { tags: ['unlink', 'disconnect', 'broken'], since: '0.1.0' },
19
+ };
20
+ export default LinkOff;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.palette` โ€” Colour. A degenerate element (pure geometry, no children).
4
+ * Four swatches in a grid, three marked โ€” the colour panel. A painter's palette is a blob with holes (circles); ours is swatches.
5
+ */
6
+ export declare const Palette: ElementDeclaration;
7
+ export default Palette;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * `xeno.palette` โ€” Colour. A degenerate element (pure geometry, no children).
3
+ * Four swatches in a grid, three marked โ€” the colour panel. A painter's palette is a blob with holes (circles); ours is swatches.
4
+ */
5
+ export const Palette = {
6
+ id: 'xeno.palette',
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: 8, h: 8, rx: 1.5 },
12
+ { kind: 'rect', x: 13, y: 3, w: 8, h: 8, rx: 1.5 },
13
+ { kind: 'rect', x: 3, y: 13, w: 8, h: 8, rx: 1.5 },
14
+ { kind: 'rect', x: 13, y: 13, w: 8, h: 8, rx: 1.5 },
15
+ { kind: 'path', d: 'M6 6h2M16 6h2M6 16h2' },
16
+ ],
17
+ },
18
+ bindings: [],
19
+ a11y: { role: 'img', label: 'Colour' },
20
+ meta: { tags: ['color', 'colour', 'swatches', 'theme', 'design'], since: '0.1.0' },
21
+ };
22
+ export default Palette;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.play-square` โ€” Run. A degenerate element (pure geometry, no children).
4
+ * The play glyph in a frame โ€” a run, as opposed to bare transport play. Where lucide draws `play-circle`.
5
+ */
6
+ export declare const PlaySquare: ElementDeclaration;
7
+ export default PlaySquare;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `xeno.play-square` โ€” Run. A degenerate element (pure geometry, no children).
3
+ * The play glyph in a frame โ€” a run, as opposed to bare transport play. Where lucide draws `play-circle`.
4
+ */
5
+ export const PlaySquare = {
6
+ id: 'xeno.play-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
+ { kind: 'path', d: 'M10 8.5v7l6-3.5z' },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Run' },
17
+ meta: { tags: ['play', 'run', 'execute', 'start'], since: '0.1.0' },
18
+ };
19
+ export default PlaySquare;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.plug` โ€” Plug. A degenerate element (pure geometry, no children).
4
+ * Two pins into a block, a lead out of it โ€” a connector, a source.
5
+ */
6
+ export declare const Plug: ElementDeclaration;
7
+ export default Plug;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.plug` โ€” Plug. A degenerate element (pure geometry, no children).
3
+ * Two pins into a block, a lead out of it โ€” a connector, a source.
4
+ */
5
+ export const Plug = {
6
+ id: 'xeno.plug',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M9 3v5M15 3v5' },
12
+ { kind: 'rect', x: 6, y: 8, w: 12, h: 7, rx: 2 },
13
+ { kind: 'path', d: 'M10 15v2a2 2 0 0 0 4 0v-2' },
14
+ { kind: 'path', d: 'M12 19v2' },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Plug' },
19
+ meta: { tags: ['connector', 'source', 'integration', 'attach'], since: '0.1.0' },
20
+ };
21
+ export default Plug;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.puzzle` โ€” Plugin. A degenerate element (pure geometry, no children).
4
+ * One puzzle piece โ€” a plugin, and the fallback glyph for an icon nobody drew. Two tabs out (top, right), two notches in (bottom, left); the tabs are arcs on a square body โ€” no circle in it.
5
+ */
6
+ export declare const Puzzle: ElementDeclaration;
7
+ export default Puzzle;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `xeno.puzzle` โ€” Plugin. A degenerate element (pure geometry, no children).
3
+ * One puzzle piece โ€” a plugin, and the fallback glyph for an icon nobody drew. Two tabs out (top, right), two notches in (bottom, left); the tabs are arcs on a square body โ€” no circle in it.
4
+ */
5
+ export const Puzzle = {
6
+ id: 'xeno.puzzle',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M5 8h3a2 2 0 1 1 4 0h3v4a2 2 0 1 1 0 4v3h-3a2 2 0 1 0-4 0H5v-3a2 2 0 1 0 0-4z' },
12
+ ],
13
+ },
14
+ bindings: [],
15
+ a11y: { role: 'img', label: 'Plugin' },
16
+ meta: { tags: ['plugin', 'extension', 'part', 'missing'], since: '0.1.0' },
17
+ };
18
+ export default Puzzle;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.rotate-back` โ€” Undo. A degenerate element (pure geometry, no children).
4
+ * An open arc turning back on itself with an arrow at its tail โ€” undo. Open, so it is an arrow, not a ring.
5
+ */
6
+ export declare const RotateBack: ElementDeclaration;
7
+ export default RotateBack;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `xeno.rotate-back` โ€” Undo. A degenerate element (pure geometry, no children).
3
+ * An open arc turning back on itself with an arrow at its tail โ€” undo. Open, so it is an arrow, not a ring.
4
+ */
5
+ export const RotateBack = {
6
+ id: 'xeno.rotate-back',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M4 8a8 8 0 1 1 2 8' },
12
+ { kind: 'path', d: 'M4 3v5h5' },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Undo' },
17
+ meta: { tags: ['undo', 'revert', 'back', 'reset', 'history'], since: '0.1.0' },
18
+ };
19
+ export default RotateBack;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.shield-alert` โ€” Security warning. A degenerate element (pure geometry, no children).
4
+ * The shield with an exclamation in it โ€” a trust decision that went wrong.
5
+ */
6
+ export declare const ShieldAlert: ElementDeclaration;
7
+ export default ShieldAlert;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `xeno.shield-alert` โ€” Security warning. A degenerate element (pure geometry, no children).
3
+ * The shield with an exclamation in it โ€” a trust decision that went wrong.
4
+ */
5
+ export const ShieldAlert = {
6
+ id: 'xeno.shield-alert',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M12 3l8 3v6c0 4.5-3.5 8-8 9-4.5-1-8-4.5-8-9V6z' },
12
+ { kind: 'path', d: 'M12 8v5' },
13
+ { kind: 'rect', x: 11, y: 15, w: 2, h: 2, rx: 0.5 },
14
+ ],
15
+ },
16
+ bindings: [],
17
+ a11y: { role: 'img', label: 'Security warning' },
18
+ meta: { tags: ['security', 'warning', 'risk', 'trust'], since: '0.1.0' },
19
+ };
20
+ export default ShieldAlert;
@@ -0,0 +1,7 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.shield-check` โ€” Verified. A degenerate element (pure geometry, no children).
4
+ * The shield with a check in it โ€” signed, verified, trusted.
5
+ */
6
+ export declare const ShieldCheck: ElementDeclaration;
7
+ export default ShieldCheck;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `xeno.shield-check` โ€” Verified. A degenerate element (pure geometry, no children).
3
+ * The shield with a check in it โ€” signed, verified, trusted.
4
+ */
5
+ export const ShieldCheck = {
6
+ id: 'xeno.shield-check',
7
+ kind: 'icon',
8
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
9
+ geometry: {
10
+ base: [
11
+ { kind: 'path', d: 'M12 3l8 3v6c0 4.5-3.5 8-8 9-4.5-1-8-4.5-8-9V6z' },
12
+ { kind: 'path', d: 'M8.5 12l2.5 2.5 4.5-5' },
13
+ ],
14
+ },
15
+ bindings: [],
16
+ a11y: { role: 'img', label: 'Verified' },
17
+ meta: { tags: ['security', 'verified', 'signed', 'trust', 'ok'], since: '0.1.0' },
18
+ };
19
+ export default ShieldCheck;
@@ -0,0 +1,10 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.type` โ€” Type. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A capital T: one crossbar, one stem. The text tool in an editor โ€” not
6
+ * `heading` (an H, a heading *level*) and not `wrap-text` (lines wrapping).
7
+ * Lucide's Type is a T; this is that T in the XENO stroke family, no circle.
8
+ */
9
+ export declare const Type: ElementDeclaration;
10
+ export default Type;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.type` โ€” Type. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A capital T: one crossbar, one stem. The text tool in an editor โ€” not
5
+ * `heading` (an H, a heading *level*) and not `wrap-text` (lines wrapping).
6
+ * Lucide's Type is a T; this is that T in the XENO stroke family, no circle.
7
+ */
8
+ export const Type = {
9
+ id: 'xeno.type',
10
+ kind: 'icon',
11
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
12
+ geometry: {
13
+ base: [
14
+ { kind: 'path', d: 'M5 6h14M12 6v14' },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Type' },
19
+ meta: { tags: ['text', 'typography', 'font'], since: '0.2.0' },
20
+ };
21
+ export default Type;
@@ -0,0 +1,10 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.unlock` โ€” Unlock. The twin of {@link Lock}: same body and keyhole, shackle open.
4
+ *
5
+ * The locked shackle is a closed U (`M8 10.5V6H16V10.5`). Open, the right post lifts off the
6
+ * body โ€” `V6H16V8` stops short of the body so the gap is the whole claim. If the two glyphs
7
+ * differ by anything except that gap, the pair stops being a pair.
8
+ */
9
+ export declare const Unlock: ElementDeclaration;
10
+ export default Unlock;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * `xeno.unlock` โ€” Unlock. The twin of {@link Lock}: same body and keyhole, shackle open.
3
+ *
4
+ * The locked shackle is a closed U (`M8 10.5V6H16V10.5`). Open, the right post lifts off the
5
+ * body โ€” `V6H16V8` stops short of the body so the gap is the whole claim. If the two glyphs
6
+ * differ by anything except that gap, the pair stops being a pair.
7
+ */
8
+ export const Unlock = {
9
+ id: 'xeno.unlock',
10
+ kind: 'icon',
11
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
12
+ geometry: {
13
+ base: [
14
+ { kind: 'rect', x: 3.5, y: 10.5, w: 17, h: 9.5, rx: 1 },
15
+ { kind: 'path', d: 'M8 10.5V6H16V8' },
16
+ { kind: 'rect', x: 10.9, y: 13, w: 2.2, h: 2.2, rx: 0.3, fill: 'foreground' },
17
+ { kind: 'rect', x: 11.4, y: 14.7, w: 1.2, h: 2.3, rx: 0.2, fill: 'foreground' },
18
+ ],
19
+ },
20
+ bindings: [],
21
+ a11y: { role: 'img', label: 'Unlock' },
22
+ meta: { tags: ['open', 'padlock', 'public'], since: '0.2.0' },
23
+ };
24
+ export default Unlock;
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@xenosystem/elements",
3
- "version": "0.0.1",
4
- "license": "UNLICENSED",
5
- "description": "The XENO element contract \u2014 declarations, schema, state model. Framework-free, platform-free.",
6
- "author": "XENO Corporation <emilian@bnkrsys.com>",
7
- "type": "module",
8
- "main": "./dist/index.js",
9
- "types": "./dist/index.d.ts",
10
- "sideEffects": false,
11
- "exports": {
12
- ".": {
13
- "types": "./dist/index.d.ts",
14
- "default": "./dist/index.js"
15
- },
16
- "./schema": {
17
- "types": "./dist/schema.d.ts",
18
- "default": "./dist/schema.js"
19
- },
20
- "./tokens": {
21
- "types": "./dist/tokens/index.d.ts",
22
- "default": "./dist/tokens/index.js"
23
- },
24
- "./elements/*": {
25
- "types": "./dist/elements/*.d.ts",
26
- "default": "./dist/elements/*.js"
27
- }
28
- },
29
- "files": [
30
- "dist",
31
- "LICENSE"
32
- ],
33
- "scripts": {
34
- "build": "tsc -p tsconfig.json",
35
- "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
36
- "test": "vitest run",
37
- "import-glyphs": "node --no-warnings scripts/import-glyphs.mjs"
38
- },
39
- "devDependencies": {
40
- "svgpath": "^2.6.0",
41
- "typescript": "^5.4.0"
42
- },
43
- "publishConfig": {
44
- "access": "public"
45
- }
46
- }
1
+ {
2
+ "name": "@xenosystem/elements",
3
+ "version": "0.0.2",
4
+ "license": "UNLICENSED",
5
+ "description": "The XENO element contract โ€” declarations, schema, state model. Framework-free, platform-free.",
6
+ "author": "XENO Corporation <emilian@bnkrsys.com>",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "sideEffects": false,
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "default": "./dist/index.js"
15
+ },
16
+ "./schema": {
17
+ "types": "./dist/schema.d.ts",
18
+ "default": "./dist/schema.js"
19
+ },
20
+ "./tokens": {
21
+ "types": "./dist/tokens/index.d.ts",
22
+ "default": "./dist/tokens/index.js"
23
+ },
24
+ "./elements/*": {
25
+ "types": "./dist/elements/*.d.ts",
26
+ "default": "./dist/elements/*.js"
27
+ }
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "LICENSE"
32
+ ],
33
+ "scripts": {
34
+ "build": "tsc -p tsconfig.json",
35
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
36
+ "test": "vitest run",
37
+ "import-glyphs": "node --no-warnings scripts/import-glyphs.mjs"
38
+ },
39
+ "devDependencies": {
40
+ "svgpath": "^2.6.0",
41
+ "typescript": "^5.4.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ }
46
+ }