@xenosystem/elements 0.0.9 โ 0.0.11
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 +65 -65
- package/dist/elements/activity.d.ts +11 -0
- package/dist/elements/activity.js +22 -0
- package/dist/elements/alert-octagon.d.ts +13 -0
- package/dist/elements/alert-octagon.js +26 -0
- package/dist/elements/arrow-down.d.ts +10 -0
- package/dist/elements/arrow-down.js +21 -0
- package/dist/elements/arrow-left.d.ts +11 -0
- package/dist/elements/arrow-left.js +22 -0
- package/dist/elements/chevron-left.d.ts +10 -0
- package/dist/elements/chevron-left.js +21 -0
- package/dist/elements/chevrons-up-down.d.ts +11 -0
- package/dist/elements/chevrons-up-down.js +23 -0
- package/dist/elements/cloud-off.d.ts +12 -0
- package/dist/elements/cloud-off.js +24 -0
- package/dist/elements/contact.d.ts +12 -0
- package/dist/elements/contact.js +26 -0
- package/dist/elements/cpu.d.ts +13 -0
- package/dist/elements/cpu.js +29 -0
- package/dist/elements/external-link.d.ts +12 -0
- package/dist/elements/external-link.js +25 -0
- package/dist/elements/file-code.d.ts +11 -0
- package/dist/elements/file-code.js +25 -0
- package/dist/elements/file-pen.d.ts +11 -0
- package/dist/elements/file-pen.js +25 -0
- package/dist/elements/film.d.ts +11 -0
- package/dist/elements/film.js +25 -0
- package/dist/elements/flask.d.ts +12 -0
- package/dist/elements/flask.js +25 -0
- package/dist/elements/folder-plus.d.ts +11 -0
- package/dist/elements/folder-plus.js +23 -0
- package/dist/elements/git-compare.d.ts +12 -0
- package/dist/elements/git-compare.js +26 -0
- package/dist/elements/git-merge.d.ts +11 -0
- package/dist/elements/git-merge.js +25 -0
- package/dist/elements/hard-drive.d.ts +12 -0
- package/dist/elements/hard-drive.js +26 -0
- package/dist/elements/hash.d.ts +10 -0
- package/dist/elements/hash.js +22 -0
- package/dist/elements/inbox.d.ts +11 -0
- package/dist/elements/inbox.js +23 -0
- package/dist/elements/mail.d.ts +11 -0
- package/dist/elements/mail.js +23 -0
- package/dist/elements/move-to.d.ts +12 -0
- package/dist/elements/move-to.js +25 -0
- package/dist/elements/pin.d.ts +16 -0
- package/dist/elements/pin.js +42 -0
- package/dist/elements/repeat.d.ts +12 -0
- package/dist/elements/repeat.js +26 -0
- package/dist/elements/rocket.d.ts +12 -0
- package/dist/elements/rocket.js +27 -0
- package/dist/elements/server.d.ts +11 -0
- package/dist/elements/server.js +25 -0
- package/dist/elements/shield-x.d.ts +11 -0
- package/dist/elements/shield-x.js +24 -0
- package/dist/elements/shield.d.ts +11 -0
- package/dist/elements/shield.js +22 -0
- package/dist/elements/users.d.ts +12 -0
- package/dist/elements/users.js +26 -0
- package/dist/elements/webhook.d.ts +12 -0
- package/dist/elements/webhook.js +27 -0
- package/dist/tokens/dtcg.d.ts +74 -0
- package/dist/tokens/dtcg.js +136 -0
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/index.js +3 -0
- package/dist/tokens/oklch.d.ts +73 -0
- package/dist/tokens/oklch.js +206 -0
- package/dist/tokens/platform-theme.d.ts +71 -0
- package/dist/tokens/platform-theme.js +164 -0
- package/dist/tokens.dtcg.json +393 -0
- package/package.json +4 -2
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,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.activity` โ Activity. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A pulse line: flat, one sharp rise and fall, flat. What changed and when โ a feed of events, not a
|
|
6
|
+
* metric (that is `trending-up`).
|
|
7
|
+
*
|
|
8
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Activity: ElementDeclaration;
|
|
11
|
+
export default Activity;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.activity` โ Activity. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* A pulse line: flat, one sharp rise and fall, flat. What changed and when โ a feed of events, not a
|
|
5
|
+
* metric (that is `trending-up`).
|
|
6
|
+
*
|
|
7
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
8
|
+
*/
|
|
9
|
+
export const Activity = {
|
|
10
|
+
id: 'xeno.activity',
|
|
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: 'M2.5 12h4.2l2.6-6.5 5.4 13 2.6-6.5h4.2' },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
bindings: [],
|
|
19
|
+
a11y: { role: 'img', label: 'Activity' },
|
|
20
|
+
meta: { tags: ['activity', 'pulse', 'feed', 'events', 'history', 'changes'], since: '0.0.11' },
|
|
21
|
+
};
|
|
22
|
+
export default Activity;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.alert-octagon` - Error. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* An octagon โ the stop-sign outline โ with the same bar-and-dot as `xeno.alert`. It is the ERROR mark:
|
|
6
|
+
* `xeno.alert` (a square) is a warning and `xeno.info` (a square, dot above) is information, so a
|
|
7
|
+
* notification rail that shows all three can tell them apart by OUTLINE, not only by colour. The usual mark
|
|
8
|
+
* is a circle, which DESIGN_SYSTEM ยง3 forbids; the octagon keeps "stop" without it.
|
|
9
|
+
*
|
|
10
|
+
* part[0] = outline, part[1] = bar, part[2] = dot.
|
|
11
|
+
*/
|
|
12
|
+
export declare const AlertOctagon: ElementDeclaration;
|
|
13
|
+
export default AlertOctagon;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.alert-octagon` - Error. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* An octagon โ the stop-sign outline โ with the same bar-and-dot as `xeno.alert`. It is the ERROR mark:
|
|
5
|
+
* `xeno.alert` (a square) is a warning and `xeno.info` (a square, dot above) is information, so a
|
|
6
|
+
* notification rail that shows all three can tell them apart by OUTLINE, not only by colour. The usual mark
|
|
7
|
+
* is a circle, which DESIGN_SYSTEM ยง3 forbids; the octagon keeps "stop" without it.
|
|
8
|
+
*
|
|
9
|
+
* part[0] = outline, part[1] = bar, part[2] = dot.
|
|
10
|
+
*/
|
|
11
|
+
export const AlertOctagon = {
|
|
12
|
+
id: 'xeno.alert-octagon',
|
|
13
|
+
kind: 'icon',
|
|
14
|
+
contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
|
|
15
|
+
geometry: {
|
|
16
|
+
base: [
|
|
17
|
+
{ kind: 'path', d: 'M8.4 3.5h7.2l4.9 4.9v7.2l-4.9 4.9H8.4l-4.9-4.9V8.4z' },
|
|
18
|
+
{ kind: 'rect', x: 11.1, y: 7, w: 1.8, h: 6, rx: 0.4, fill: 'foreground' },
|
|
19
|
+
{ kind: 'rect', x: 11.2, y: 15.3, w: 1.6, h: 1.6, rx: 0.3, fill: 'foreground' },
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
bindings: [],
|
|
23
|
+
a11y: { role: 'img', label: 'Error' },
|
|
24
|
+
meta: { tags: ['error', 'failure', 'stop', 'danger', 'alert-circle'], since: '0.0.10' },
|
|
25
|
+
};
|
|
26
|
+
export default AlertOctagon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.arrow-down` - Arrow down. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.arrow-up` stroke turned through a half-turn: a shaft and a chevron head, same lengths.
|
|
6
|
+
*
|
|
7
|
+
* part[0] = shaft and head.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ArrowDown: ElementDeclaration;
|
|
10
|
+
export default ArrowDown;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.arrow-down` - Arrow down. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.arrow-up` stroke turned through a half-turn: a shaft and a chevron head, same lengths.
|
|
5
|
+
*
|
|
6
|
+
* part[0] = shaft and head.
|
|
7
|
+
*/
|
|
8
|
+
export const ArrowDown = {
|
|
9
|
+
id: 'xeno.arrow-down',
|
|
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: 'M12 4v15M6 13l6 6 6-6' },
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
bindings: [],
|
|
18
|
+
a11y: { role: 'img', label: 'Arrow down' },
|
|
19
|
+
meta: { tags: ['down', 'south', 'scroll-down', 'bottom'], since: '0.0.10' },
|
|
20
|
+
};
|
|
21
|
+
export default ArrowDown;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.arrow-left` - Back. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.arrow-right` stroke mirrored. Labelled "Back" because that is what every call site uses it
|
|
6
|
+
* for โ browser history, onboarding's previous step.
|
|
7
|
+
*
|
|
8
|
+
* part[0] = shaft and head.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ArrowLeft: ElementDeclaration;
|
|
11
|
+
export default ArrowLeft;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.arrow-left` - Back. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.arrow-right` stroke mirrored. Labelled "Back" because that is what every call site uses it
|
|
5
|
+
* for โ browser history, onboarding's previous step.
|
|
6
|
+
*
|
|
7
|
+
* part[0] = shaft and head.
|
|
8
|
+
*/
|
|
9
|
+
export const ArrowLeft = {
|
|
10
|
+
id: 'xeno.arrow-left',
|
|
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: 'M20 12H5M11 6l-6 6 6 6' },
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
bindings: [],
|
|
19
|
+
a11y: { role: 'img', label: 'Back' },
|
|
20
|
+
meta: { tags: ['back', 'previous', 'left', 'west'], since: '0.0.10' },
|
|
21
|
+
};
|
|
22
|
+
export default ArrowLeft;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.chevron-left` - Chevron left. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.chevron-right` stroke mirrored.
|
|
6
|
+
*
|
|
7
|
+
* part[0] = the chevron.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ChevronLeft: ElementDeclaration;
|
|
10
|
+
export default ChevronLeft;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.chevron-left` - Chevron left. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.chevron-right` stroke mirrored.
|
|
5
|
+
*
|
|
6
|
+
* part[0] = the chevron.
|
|
7
|
+
*/
|
|
8
|
+
export const ChevronLeft = {
|
|
9
|
+
id: 'xeno.chevron-left',
|
|
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: 'M15 6l-6 6 6 6' },
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
bindings: [],
|
|
18
|
+
a11y: { role: 'img', label: 'Chevron left' },
|
|
19
|
+
meta: { tags: ['previous', 'back', 'collapse'], since: '0.0.10' },
|
|
20
|
+
};
|
|
21
|
+
export default ChevronLeft;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.chevrons-up-down` - Switch. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* Two chevrons back to back โ the "this opens a list of alternatives" mark on a picker trigger, which is not
|
|
6
|
+
* the same claim as `xeno.chevron-down` (this one opens). Labelled for the action, not the shape.
|
|
7
|
+
*
|
|
8
|
+
* part[0] = upper chevron, part[1] = lower chevron.
|
|
9
|
+
*/
|
|
10
|
+
export declare const ChevronsUpDown: ElementDeclaration;
|
|
11
|
+
export default ChevronsUpDown;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.chevrons-up-down` - Switch. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* Two chevrons back to back โ the "this opens a list of alternatives" mark on a picker trigger, which is not
|
|
5
|
+
* the same claim as `xeno.chevron-down` (this one opens). Labelled for the action, not the shape.
|
|
6
|
+
*
|
|
7
|
+
* part[0] = upper chevron, part[1] = lower chevron.
|
|
8
|
+
*/
|
|
9
|
+
export const ChevronsUpDown = {
|
|
10
|
+
id: 'xeno.chevrons-up-down',
|
|
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: 'M8 9l4-4 4 4' },
|
|
16
|
+
{ kind: 'path', d: 'M8 15l4 4 4-4' },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
bindings: [],
|
|
20
|
+
a11y: { role: 'img', label: 'Switch' },
|
|
21
|
+
meta: { tags: ['select', 'switch', 'picker', 'expand', 'sort'], since: '0.0.10' },
|
|
22
|
+
};
|
|
23
|
+
export default ChevronsUpDown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.cloud-off` - Offline. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.cloud` outline with a stroke through it: the hosted connection is DOWN. It pairs with
|
|
6
|
+
* `xeno.cloud` (connected) and `xeno.cpu` (running locally) in the status indicator โ offline is the
|
|
7
|
+
* absence of the cloud, not a weak signal, which is why this is not a Wi-Fi mark.
|
|
8
|
+
*
|
|
9
|
+
* part[0] = the cloud outline, part[1] = the strike.
|
|
10
|
+
*/
|
|
11
|
+
export declare const CloudOff: ElementDeclaration;
|
|
12
|
+
export default CloudOff;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.cloud-off` - Offline. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.cloud` outline with a stroke through it: the hosted connection is DOWN. It pairs with
|
|
5
|
+
* `xeno.cloud` (connected) and `xeno.cpu` (running locally) in the status indicator โ offline is the
|
|
6
|
+
* absence of the cloud, not a weak signal, which is why this is not a Wi-Fi mark.
|
|
7
|
+
*
|
|
8
|
+
* part[0] = the cloud outline, part[1] = the strike.
|
|
9
|
+
*/
|
|
10
|
+
export const CloudOff = {
|
|
11
|
+
id: 'xeno.cloud-off',
|
|
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
|
+
{ kind: 'path', d: 'M4 4l16 16' },
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
bindings: [],
|
|
21
|
+
a11y: { role: 'img', label: 'Offline' },
|
|
22
|
+
meta: { tags: ['offline', 'disconnected', 'no-connection', 'cloud', 'unavailable'], since: '0.0.10' },
|
|
23
|
+
};
|
|
24
|
+
export default CloudOff;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.contact` โ Contact. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A contact card: the card, a person on the left (`user` at card scale) and three lines of detail. A
|
|
6
|
+
* customer, a lead, an address-book entry โ a person you hold a record of, against `user` for a member.
|
|
7
|
+
* part[0] = card, part[1..2] = person, part[3] = details.
|
|
8
|
+
*
|
|
9
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Contact: ElementDeclaration;
|
|
12
|
+
export default Contact;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.contact` โ Contact. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* A contact card: the card, a person on the left (`user` at card scale) and three lines of detail. A
|
|
5
|
+
* customer, a lead, an address-book entry โ a person you hold a record of, against `user` for a member.
|
|
6
|
+
* part[0] = card, part[1..2] = person, part[3] = details.
|
|
7
|
+
*
|
|
8
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
9
|
+
*/
|
|
10
|
+
export const Contact = {
|
|
11
|
+
id: 'xeno.contact',
|
|
12
|
+
kind: 'icon',
|
|
13
|
+
contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
|
|
14
|
+
geometry: {
|
|
15
|
+
base: [
|
|
16
|
+
{ kind: 'rect', x: 3, y: 5, w: 18, h: 14, rx: 2 },
|
|
17
|
+
{ kind: 'rect', x: 6.2, y: 8.4, w: 4.4, h: 4.4, rx: 1 },
|
|
18
|
+
{ kind: 'path', d: 'M5.8 16.4a2.4 2.4 0 0 1 2.4-2h0.8a2.4 2.4 0 0 1 2.4 2' },
|
|
19
|
+
{ kind: 'path', d: 'M13.6 9.5h4.4M13.6 12.5h4.4M13.6 15.5h2.8' },
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
bindings: [],
|
|
23
|
+
a11y: { role: 'img', label: 'Contact' },
|
|
24
|
+
meta: { tags: ['contact', 'customer', 'card', 'crm', 'person', 'lead'], since: '0.0.11' },
|
|
25
|
+
};
|
|
26
|
+
export default Contact;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.cpu` - Processor. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A chip: a rounded package, a SOLID die inside it, and two pins on each side. It marks local compute and
|
|
6
|
+
* a model โ `xeno.monitor` is a screen and `xeno.bot` is the agent itself. Two pins per side, not three:
|
|
7
|
+
* the Agent UI draws this at 12px, where three pins sit 1.5px apart and the chip closes into a blob โ and
|
|
8
|
+
* the die is solid for the same reason: an outlined die leaves a 1px ring that fills in at small sizes.
|
|
9
|
+
*
|
|
10
|
+
* part[0] = package, part[1] = die, part[2..5] = pins (top, bottom, left, right).
|
|
11
|
+
*/
|
|
12
|
+
export declare const Cpu: ElementDeclaration;
|
|
13
|
+
export default Cpu;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.cpu` - Processor. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* A chip: a rounded package, a SOLID die inside it, and two pins on each side. It marks local compute and
|
|
5
|
+
* a model โ `xeno.monitor` is a screen and `xeno.bot` is the agent itself. Two pins per side, not three:
|
|
6
|
+
* the Agent UI draws this at 12px, where three pins sit 1.5px apart and the chip closes into a blob โ and
|
|
7
|
+
* the die is solid for the same reason: an outlined die leaves a 1px ring that fills in at small sizes.
|
|
8
|
+
*
|
|
9
|
+
* part[0] = package, part[1] = die, part[2..5] = pins (top, bottom, left, right).
|
|
10
|
+
*/
|
|
11
|
+
export const Cpu = {
|
|
12
|
+
id: 'xeno.cpu',
|
|
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: 6, y: 6, w: 12, h: 12, rx: 1.6 },
|
|
18
|
+
{ kind: 'rect', x: 10, y: 10, w: 4, h: 4, rx: 0.6, fill: 'foreground' },
|
|
19
|
+
{ kind: 'path', d: 'M9.5 3v3M14.5 3v3' },
|
|
20
|
+
{ kind: 'path', d: 'M9.5 18v3M14.5 18v3' },
|
|
21
|
+
{ kind: 'path', d: 'M3 9.5h3M3 14.5h3' },
|
|
22
|
+
{ kind: 'path', d: 'M18 9.5h3M18 14.5h3' },
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
bindings: [],
|
|
26
|
+
a11y: { role: 'img', label: 'Processor' },
|
|
27
|
+
meta: { tags: ['cpu', 'chip', 'processor', 'model', 'compute', 'local'], since: '0.0.10' },
|
|
28
|
+
};
|
|
29
|
+
export default Cpu;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.external-link` - Open externally. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A frame open at its top-right corner with an arrow leaving through the gap: this opens OUTSIDE the product โ
|
|
6
|
+
* a browser, the file explorer. `xeno.arrow-up-right` (an arrow alone) is "open" in place; the frame is
|
|
7
|
+
* the difference, so both can sit in one toolbar without reading the same.
|
|
8
|
+
*
|
|
9
|
+
* part[0] = the open frame, part[1] = arrow head, part[2] = arrow shaft.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ExternalLink: ElementDeclaration;
|
|
12
|
+
export default ExternalLink;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.external-link` - Open externally. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* A frame open at its top-right corner with an arrow leaving through the gap: this opens OUTSIDE the product โ
|
|
5
|
+
* a browser, the file explorer. `xeno.arrow-up-right` (an arrow alone) is "open" in place; the frame is
|
|
6
|
+
* the difference, so both can sit in one toolbar without reading the same.
|
|
7
|
+
*
|
|
8
|
+
* part[0] = the open frame, part[1] = arrow head, part[2] = arrow shaft.
|
|
9
|
+
*/
|
|
10
|
+
export const ExternalLink = {
|
|
11
|
+
id: 'xeno.external-link',
|
|
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: 'M11 5H6.5A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19h11a1.5 1.5 0 0 0 1.5-1.5V13' },
|
|
17
|
+
{ kind: 'path', d: 'M14 4h6v6' },
|
|
18
|
+
{ kind: 'path', d: 'M20 4l-9 9' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
bindings: [],
|
|
22
|
+
a11y: { role: 'img', label: 'Open externally' },
|
|
23
|
+
meta: { tags: ['external', 'open', 'new-window', 'link-out'], since: '0.0.10' },
|
|
24
|
+
};
|
|
25
|
+
export default ExternalLink;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.file-code` - Source file. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.file-text` sheet and fold carrying a pair of code brackets instead of lines of text: a SOURCE
|
|
6
|
+
* file, which the editor tab and the file tree need to tell apart from a document.
|
|
7
|
+
*
|
|
8
|
+
* part[0] = sheet, part[1] = fold, part[2] = left bracket, part[3] = right bracket.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FileCode: ElementDeclaration;
|
|
11
|
+
export default FileCode;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.file-code` - Source file. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.file-text` sheet and fold carrying a pair of code brackets instead of lines of text: a SOURCE
|
|
5
|
+
* file, which the editor tab and the file tree need to tell apart from a document.
|
|
6
|
+
*
|
|
7
|
+
* part[0] = sheet, part[1] = fold, part[2] = left bracket, part[3] = right bracket.
|
|
8
|
+
*/
|
|
9
|
+
export const FileCode = {
|
|
10
|
+
id: 'xeno.file-code',
|
|
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 3h8l4 4v14H6z' },
|
|
16
|
+
{ kind: 'path', d: 'M14 3v4h4' },
|
|
17
|
+
{ kind: 'path', d: 'M10.5 11.5 8.5 14l2 2.5' },
|
|
18
|
+
{ kind: 'path', d: 'M13.5 11.5l2 2.5-2 2.5' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
bindings: [],
|
|
22
|
+
a11y: { role: 'img', label: 'Source file' },
|
|
23
|
+
meta: { tags: ['file', 'code', 'source', 'script', 'editor'], since: '0.0.10' },
|
|
24
|
+
};
|
|
25
|
+
export default FileCode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.file-pen` - Edit file. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* The `xeno.file` sheet with a pen crossing its lower corner: the permission to WRITE a file, which sits in
|
|
6
|
+
* one list beside `xeno.file-text` ("read"). `xeno.edit` alone is "edit this", not "edit files".
|
|
7
|
+
*
|
|
8
|
+
* part[0] = sheet, part[1] = fold, part[2] = pen body, part[3] = pen nib.
|
|
9
|
+
*/
|
|
10
|
+
export declare const FilePen: ElementDeclaration;
|
|
11
|
+
export default FilePen;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.file-pen` - Edit file. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* The `xeno.file` sheet with a pen crossing its lower corner: the permission to WRITE a file, which sits in
|
|
5
|
+
* one list beside `xeno.file-text` ("read"). `xeno.edit` alone is "edit this", not "edit files".
|
|
6
|
+
*
|
|
7
|
+
* part[0] = sheet, part[1] = fold, part[2] = pen body, part[3] = pen nib.
|
|
8
|
+
*/
|
|
9
|
+
export const FilePen = {
|
|
10
|
+
id: 'xeno.file-pen',
|
|
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: 'M13 21H6V3h8l4 4v4' },
|
|
16
|
+
{ kind: 'path', d: 'M14 3v4h4' },
|
|
17
|
+
{ kind: 'path', d: 'M20.5 14.5l-5.5 5.5' },
|
|
18
|
+
{ kind: 'path', d: 'M15 20l-2.5.5.5-2.5 5.5-5.5 2 2' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
bindings: [],
|
|
22
|
+
a11y: { role: 'img', label: 'Edit file' },
|
|
23
|
+
meta: { tags: ['file', 'write', 'edit', 'modify', 'file-write'], since: '0.0.10' },
|
|
24
|
+
};
|
|
25
|
+
export default FilePen;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.film` โ Film. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A strip of film: the frame, the two rails, and the perforations as short bars on each rail (not holes โ
|
|
6
|
+
* a hole is a circle). Stands for a render or a clip. part[0] = frame, part[1..2] = rails, part[3] = perforations.
|
|
7
|
+
*
|
|
8
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
9
|
+
*/
|
|
10
|
+
export declare const Film: ElementDeclaration;
|
|
11
|
+
export default Film;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `xeno.film` โ Film. A degenerate element (pure geometry, no children).
|
|
3
|
+
*
|
|
4
|
+
* A strip of film: the frame, the two rails, and the perforations as short bars on each rail (not holes โ
|
|
5
|
+
* a hole is a circle). Stands for a render or a clip. part[0] = frame, part[1..2] = rails, part[3] = perforations.
|
|
6
|
+
*
|
|
7
|
+
* Drawn for the XENO Workspace sidebar (2026-10-03), from scratch to DESIGN_SYSTEM.md ยง3 โ no circles.
|
|
8
|
+
*/
|
|
9
|
+
export const Film = {
|
|
10
|
+
id: 'xeno.film',
|
|
11
|
+
kind: 'icon',
|
|
12
|
+
contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
|
|
13
|
+
geometry: {
|
|
14
|
+
base: [
|
|
15
|
+
{ kind: 'rect', x: 3.5, y: 4.5, w: 17, h: 15, rx: 2.2 },
|
|
16
|
+
{ kind: 'path', d: 'M7.5 4.5v15' },
|
|
17
|
+
{ kind: 'path', d: 'M16.5 4.5v15' },
|
|
18
|
+
{ kind: 'path', d: 'M3.5 9.5h4M3.5 14.5h4M16.5 9.5h4M16.5 14.5h4' },
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
bindings: [],
|
|
22
|
+
a11y: { role: 'img', label: 'Film' },
|
|
23
|
+
meta: { tags: ['film', 'video', 'render', 'movie', 'clip'], since: '0.0.11' },
|
|
24
|
+
};
|
|
25
|
+
export default Film;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ElementDeclaration } from '../schema';
|
|
2
|
+
/**
|
|
3
|
+
* `xeno.flask` - Test. A degenerate element (pure geometry, no children).
|
|
4
|
+
*
|
|
5
|
+
* A lab flask: a straight neck, a lip, and a body that widens to a flat base, with a fill line. It marks
|
|
6
|
+
* "run a test" โ not `xeno.play` (run for real). The sides are straight and the only curves are the two
|
|
7
|
+
* base corners, each a quarter-turn, so no part of it reads as round.
|
|
8
|
+
*
|
|
9
|
+
* part[0] = neck and body, part[1] = lip, part[2] = fill line.
|
|
10
|
+
*/
|
|
11
|
+
export declare const Flask: ElementDeclaration;
|
|
12
|
+
export default Flask;
|