@xenosystem/elements 0.0.8 โ 0.0.10
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/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/box.d.ts +7 -1
- package/dist/elements/box.js +14 -4
- 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/cloud.d.ts +12 -0
- package/dist/elements/cloud.js +23 -0
- package/dist/elements/cpu.d.ts +13 -0
- package/dist/elements/cpu.js +29 -0
- package/dist/elements/cursor-click.d.ts +14 -0
- package/dist/elements/cursor-click.js +27 -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/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-branch.d.ts +12 -0
- package/dist/elements/git-branch.js +26 -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/inbox.d.ts +11 -0
- package/dist/elements/inbox.js +23 -0
- package/dist/elements/keyboard.d.ts +13 -0
- package/dist/elements/keyboard.js +28 -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/package.json +1 -1
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,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;
|
package/dist/elements/box.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
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;
|
package/dist/elements/box.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `xeno.box` โ Box. A degenerate element (pure geometry, no children).
|
|
3
|
-
*
|
|
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
|
|
12
|
-
{ kind: 'path', d: 'M4
|
|
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: ['
|
|
27
|
+
meta: { tags: ['box', 'sandbox', 'container', 'cube', 'isolated', 'package', 'component'], since: '0.1.0' },
|
|
18
28
|
};
|
|
19
29
|
export default Box;
|
|
@@ -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.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,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,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.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;
|