@xenosystem/elements 0.0.4 โ†’ 0.0.6

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/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,10 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-bottom` โ€” Align bottom. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A HORIZONTAL guide rail across the bottom with two objects whose BOTTOM edges meet it โ€” the
6
+ * mirror of `xeno.align-top`. lucide's name for this shape is `align-end-horizontal`; see
7
+ * `meta.tags`.
8
+ */
9
+ export declare const AlignBottom: ElementDeclaration;
10
+ export default AlignBottom;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.align-bottom` โ€” Align bottom. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A HORIZONTAL guide rail across the bottom with two objects whose BOTTOM edges meet it โ€” the
5
+ * mirror of `xeno.align-top`. lucide's name for this shape is `align-end-horizontal`; see
6
+ * `meta.tags`.
7
+ */
8
+ export const AlignBottom = {
9
+ id: 'xeno.align-bottom',
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: 4, y: 18.2, w: 16, h: 1.8, rx: 0.4, fill: 'foreground' },
15
+ { kind: 'rect', x: 6, y: 4, w: 4, h: 12.5, rx: 1 },
16
+ { kind: 'rect', x: 14, y: 8.5, w: 4, h: 8, rx: 1 },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Align bottom' },
21
+ meta: { tags: ['align', 'bottom', 'align-end-horizontal', 'arrange'], since: '0.0.6' },
22
+ };
23
+ export default AlignBottom;
@@ -0,0 +1,11 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-horizontal-centers` โ€” Align horizontal centers. A degenerate element.
4
+ *
5
+ * A VERTICAL guide rail down the middle, BISECTING two objects of different widths: both are
6
+ * centred on it. Centring is what distinguishes this from `xeno.align-left` / `xeno.align-right`,
7
+ * where the rail sits at an edge and the objects butt against it. lucide's name for this shape is
8
+ * `align-center-vertical`; see `meta.tags`.
9
+ */
10
+ export declare const AlignHorizontalCenters: ElementDeclaration;
11
+ export default AlignHorizontalCenters;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * `xeno.align-horizontal-centers` โ€” Align horizontal centers. A degenerate element.
3
+ *
4
+ * A VERTICAL guide rail down the middle, BISECTING two objects of different widths: both are
5
+ * centred on it. Centring is what distinguishes this from `xeno.align-left` / `xeno.align-right`,
6
+ * where the rail sits at an edge and the objects butt against it. lucide's name for this shape is
7
+ * `align-center-vertical`; see `meta.tags`.
8
+ */
9
+ export const AlignHorizontalCenters = {
10
+ id: 'xeno.align-horizontal-centers',
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: 11.1, y: 3, w: 1.8, h: 18, rx: 0.4, fill: 'foreground' },
16
+ { kind: 'rect', x: 5.75, y: 6, w: 12.5, h: 4, rx: 1 },
17
+ { kind: 'rect', x: 8, y: 14, w: 8, h: 4, rx: 1 },
18
+ ],
19
+ },
20
+ bindings: [],
21
+ a11y: { role: 'img', label: 'Align horizontal centers' },
22
+ meta: {
23
+ tags: ['align', 'center', 'centre', 'align-center-vertical', 'arrange'],
24
+ since: '0.0.6',
25
+ },
26
+ };
27
+ export default AlignHorizontalCenters;
@@ -0,0 +1,12 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-left` โ€” Align left. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A VERTICAL guide rail on the left with two objects whose LEFT edges meet it. The rail runs
6
+ * perpendicular to the direction the objects move, which is why lucide calls this shape
7
+ * `align-start-vertical` while the ACTION is "align left". The id names the action, because that
8
+ * is what a product's button does; the lucide name is carried in `meta.tags` so a search for
9
+ * either finds it.
10
+ */
11
+ export declare const AlignLeft: ElementDeclaration;
12
+ export default AlignLeft;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * `xeno.align-left` โ€” Align left. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A VERTICAL guide rail on the left with two objects whose LEFT edges meet it. The rail runs
5
+ * perpendicular to the direction the objects move, which is why lucide calls this shape
6
+ * `align-start-vertical` while the ACTION is "align left". The id names the action, because that
7
+ * is what a product's button does; the lucide name is carried in `meta.tags` so a search for
8
+ * either finds it.
9
+ */
10
+ export const AlignLeft = {
11
+ id: 'xeno.align-left',
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: 4, y: 4, w: 1.8, h: 16, rx: 0.4, fill: 'foreground' },
17
+ { kind: 'rect', x: 7.5, y: 6, w: 12.5, h: 4, rx: 1 },
18
+ { kind: 'rect', x: 7.5, y: 14, w: 8, h: 4, rx: 1 },
19
+ ],
20
+ },
21
+ bindings: [],
22
+ a11y: { role: 'img', label: 'Align left' },
23
+ meta: { tags: ['align', 'left', 'align-start-vertical', 'arrange'], since: '0.0.6' },
24
+ };
25
+ export default AlignLeft;
@@ -0,0 +1,9 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-right` โ€” Align right. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A VERTICAL guide rail on the right with two objects whose RIGHT edges meet it โ€” the mirror of
6
+ * `xeno.align-left`. lucide's name for this shape is `align-end-vertical`; see `meta.tags`.
7
+ */
8
+ export declare const AlignRight: ElementDeclaration;
9
+ export default AlignRight;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * `xeno.align-right` โ€” Align right. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A VERTICAL guide rail on the right with two objects whose RIGHT edges meet it โ€” the mirror of
5
+ * `xeno.align-left`. lucide's name for this shape is `align-end-vertical`; see `meta.tags`.
6
+ */
7
+ export const AlignRight = {
8
+ id: 'xeno.align-right',
9
+ kind: 'icon',
10
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
11
+ geometry: {
12
+ base: [
13
+ { kind: 'rect', x: 18.2, y: 4, w: 1.8, h: 16, rx: 0.4, fill: 'foreground' },
14
+ { kind: 'rect', x: 4, y: 6, w: 12.5, h: 4, rx: 1 },
15
+ { kind: 'rect', x: 8.5, y: 14, w: 8, h: 4, rx: 1 },
16
+ ],
17
+ },
18
+ bindings: [],
19
+ a11y: { role: 'img', label: 'Align right' },
20
+ meta: { tags: ['align', 'right', 'align-end-vertical', 'arrange'], since: '0.0.6' },
21
+ };
22
+ export default AlignRight;
@@ -0,0 +1,9 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-top` โ€” Align top. A degenerate element (pure geometry, no children).
4
+ *
5
+ * A HORIZONTAL guide rail across the top with two objects whose TOP edges meet it โ€” the transpose
6
+ * of `xeno.align-left`. lucide's name for this shape is `align-start-horizontal`; see `meta.tags`.
7
+ */
8
+ export declare const AlignTop: ElementDeclaration;
9
+ export default AlignTop;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * `xeno.align-top` โ€” Align top. A degenerate element (pure geometry, no children).
3
+ *
4
+ * A HORIZONTAL guide rail across the top with two objects whose TOP edges meet it โ€” the transpose
5
+ * of `xeno.align-left`. lucide's name for this shape is `align-start-horizontal`; see `meta.tags`.
6
+ */
7
+ export const AlignTop = {
8
+ id: 'xeno.align-top',
9
+ kind: 'icon',
10
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
11
+ geometry: {
12
+ base: [
13
+ { kind: 'rect', x: 4, y: 4, w: 16, h: 1.8, rx: 0.4, fill: 'foreground' },
14
+ { kind: 'rect', x: 6, y: 7.5, w: 4, h: 12.5, rx: 1 },
15
+ { kind: 'rect', x: 14, y: 7.5, w: 4, h: 8, rx: 1 },
16
+ ],
17
+ },
18
+ bindings: [],
19
+ a11y: { role: 'img', label: 'Align top' },
20
+ meta: { tags: ['align', 'top', 'align-start-horizontal', 'arrange'], since: '0.0.6' },
21
+ };
22
+ export default AlignTop;
@@ -0,0 +1,10 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.align-vertical-centers` โ€” Align vertical centers. A degenerate element.
4
+ *
5
+ * A HORIZONTAL guide rail across the middle, BISECTING two objects of different heights: both are
6
+ * centred on it. The transpose of `xeno.align-horizontal-centers`. lucide's name for this shape is
7
+ * `align-center-horizontal`; see `meta.tags`.
8
+ */
9
+ export declare const AlignVerticalCenters: ElementDeclaration;
10
+ export default AlignVerticalCenters;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `xeno.align-vertical-centers` โ€” Align vertical centers. A degenerate element.
3
+ *
4
+ * A HORIZONTAL guide rail across the middle, BISECTING two objects of different heights: both are
5
+ * centred on it. The transpose of `xeno.align-horizontal-centers`. lucide's name for this shape is
6
+ * `align-center-horizontal`; see `meta.tags`.
7
+ */
8
+ export const AlignVerticalCenters = {
9
+ id: 'xeno.align-vertical-centers',
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, y: 11.1, w: 18, h: 1.8, rx: 0.4, fill: 'foreground' },
15
+ { kind: 'rect', x: 6, y: 5.75, w: 4, h: 12.5, rx: 1 },
16
+ { kind: 'rect', x: 14, y: 8, w: 4, h: 8, rx: 1 },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Align vertical centers' },
21
+ meta: {
22
+ tags: ['align', 'center', 'centre', 'align-center-horizontal', 'arrange'],
23
+ since: '0.0.6',
24
+ },
25
+ };
26
+ export default AlignVerticalCenters;
@@ -0,0 +1,12 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.distribute-horizontal` โ€” Distribute horizontally. A degenerate element.
4
+ *
5
+ * TWO vertical guide rails, at the left and right extents, with two equal objects between them
6
+ * spaced so the three horizontal gaps are equal (3.2 units each). The PAIR of
7
+ * rails is the whole distinction from the align glyphs, which have one: alignment collapses
8
+ * objects onto a single edge, distribution spreads them BETWEEN two. lucide's name for this shape
9
+ * is `align-horizontal-space-around`; see `meta.tags`.
10
+ */
11
+ export declare const DistributeHorizontal: ElementDeclaration;
12
+ export default DistributeHorizontal;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * `xeno.distribute-horizontal` โ€” Distribute horizontally. A degenerate element.
3
+ *
4
+ * TWO vertical guide rails, at the left and right extents, with two equal objects between them
5
+ * spaced so the three horizontal gaps are equal (3.2 units each). The PAIR of
6
+ * rails is the whole distinction from the align glyphs, which have one: alignment collapses
7
+ * objects onto a single edge, distribution spreads them BETWEEN two. lucide's name for this shape
8
+ * is `align-horizontal-space-around`; see `meta.tags`.
9
+ */
10
+ export const DistributeHorizontal = {
11
+ id: 'xeno.distribute-horizontal',
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: 2.2, y: 4, w: 1.8, h: 16, rx: 0.4, fill: 'foreground' },
17
+ { kind: 'rect', x: 20, y: 4, w: 1.8, h: 16, rx: 0.4, fill: 'foreground' },
18
+ { kind: 'rect', x: 7.2, y: 7, w: 3.2, h: 10, rx: 1 },
19
+ { kind: 'rect', x: 13.6, y: 7, w: 3.2, h: 10, rx: 1 },
20
+ ],
21
+ },
22
+ bindings: [],
23
+ a11y: { role: 'img', label: 'Distribute horizontally' },
24
+ meta: {
25
+ tags: ['distribute', 'horizontal', 'space', 'align-horizontal-space-around', 'arrange'],
26
+ since: '0.0.6',
27
+ },
28
+ };
29
+ export default DistributeHorizontal;
@@ -0,0 +1,10 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.distribute-vertical` โ€” Distribute vertically. A degenerate element.
4
+ *
5
+ * TWO horizontal guide rails, at the top and bottom extents, with two equal objects between them
6
+ * spaced so the three vertical gaps are equal. The transpose of `xeno.distribute-horizontal`.
7
+ * lucide's name for this shape is `align-vertical-space-around`; see `meta.tags`.
8
+ */
9
+ export declare const DistributeVertical: ElementDeclaration;
10
+ export default DistributeVertical;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * `xeno.distribute-vertical` โ€” Distribute vertically. A degenerate element.
3
+ *
4
+ * TWO horizontal guide rails, at the top and bottom extents, with two equal objects between them
5
+ * spaced so the three vertical gaps are equal. The transpose of `xeno.distribute-horizontal`.
6
+ * lucide's name for this shape is `align-vertical-space-around`; see `meta.tags`.
7
+ */
8
+ export const DistributeVertical = {
9
+ id: 'xeno.distribute-vertical',
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: 4, y: 2.2, w: 16, h: 1.8, rx: 0.4, fill: 'foreground' },
15
+ { kind: 'rect', x: 4, y: 20, w: 16, h: 1.8, rx: 0.4, fill: 'foreground' },
16
+ { kind: 'rect', x: 7, y: 7.2, w: 10, h: 3.2, rx: 1 },
17
+ { kind: 'rect', x: 7, y: 13.6, w: 10, h: 3.2, rx: 1 },
18
+ ],
19
+ },
20
+ bindings: [],
21
+ a11y: { role: 'img', label: 'Distribute vertically' },
22
+ meta: {
23
+ tags: ['distribute', 'vertical', 'space', 'align-vertical-space-around', 'arrange'],
24
+ since: '0.0.6',
25
+ },
26
+ };
27
+ export default DistributeVertical;
package/dist/index.d.ts CHANGED
@@ -12,3 +12,4 @@
12
12
  * @module
13
13
  */
14
14
  export * from './schema.js';
15
+ export * from './states.js';
package/dist/index.js CHANGED
@@ -12,3 +12,6 @@
12
12
  * @module
13
13
  */
14
14
  export * from './schema.js';
15
+ // Which states a declaration HAS, derived from the axes and signals it declares. A pure function
16
+ // over declarations โ€” not something a declaration carries โ€” so the "data, never code" line holds.
17
+ export * from './states.js';
@@ -0,0 +1,75 @@
1
+ /**
2
+ * State ENUMERATION โ€” what a declaration's axes and signals imply, computed once, here.
3
+ *
4
+ * ## Why this belongs in the contract package
5
+ *
6
+ * `schema.ts` says what a state IS. This says which states an element HAS. Every tool that shows an
7
+ * element in all its states needs that answer โ€” the workshop, `xeno-apps`' Library, an agent asking
8
+ * "show me the bookmark selected", a future screenshot gate on another platform โ€” and if each works
9
+ * it out for itself they drift, silently, because nothing compares two tools' idea of a list. That
10
+ * drift is the Storybook failure (state coverage is whatever someone remembered to write) arriving
11
+ * by a different road: not hand-written stories, but hand-rolled enumerations.
12
+ *
13
+ * So the derivation lives beside the contract it derives from, and a consumer imports it. This is
14
+ * the same rule the components rung already follows, where a family exports its own `STATES`.
15
+ *
16
+ * ## It is DATA about data โ€” still no code in a declaration
17
+ *
18
+ * This is a pure function over declarations, not something a declaration carries. Absolute rule 4
19
+ * ("declarations are DATA, never code") is untouched: nothing here is stored in, referenced by, or
20
+ * executed on behalf of an element. It reads `contract.axes` and `contract.signals` and returns a
21
+ * list. Zero dependencies, zero framework, zero platform โ€” like everything else in this package.
22
+ *
23
+ * ## The two decisions worth knowing
24
+ *
25
+ * **Axes cross-multiply.** They co-occur: a disabled toggle that is `on`, a selected row being
26
+ * pressed. That is the schema's own argument against a single enum, and it means an element's
27
+ * discrete states are the cartesian product of the axes it DECLARES โ€” not a flat list of axis
28
+ * values, which would be the same mistake one level up.
29
+ *
30
+ * **Signals do not.** A signal is a continuous VALUE, not a member of a set. Crossing it with the
31
+ * axes is unbounded in principle and uninformative in practice, so each declared signal contributes
32
+ * one sampled cell over the default axis state โ€” the one a reviewer means when they ask what
33
+ * mid-gesture looks like.
34
+ *
35
+ * **An element declaring neither has exactly one state, and it is real.** A static glyph still
36
+ * renders; `default` is the thing a gate screenshots. Returning nothing for it would make the
37
+ * overwhelming majority of the set invisible to every consumer of this function.
38
+ *
39
+ * @module
40
+ */
41
+ import type { ElementDeclaration, ElementState, SignalValues } from './schema.js';
42
+ /** One derived, addressable state of one element. */
43
+ export interface ElementStateEntry {
44
+ /** The declaration's permanent id, e.g. `xeno.bookmark`. */
45
+ readonly id: string;
46
+ /**
47
+ * A stable name for this state, safe in a URL segment and a filename: `default`, `selection-on`,
48
+ * `availability-busy_selection-on`, `signal-activity`. Unique within an element.
49
+ */
50
+ readonly state: string;
51
+ /** The discrete state to render. Axes the element does not declare are absent and take their default. */
52
+ readonly elementState: Partial<ElementState>;
53
+ /** The continuous inputs for this entry. Empty unless it is a signal sample. */
54
+ readonly signals: SignalValues;
55
+ }
56
+ /**
57
+ * The states of ONE declaration: every combination of the axes it declares, then one sample per
58
+ * signal it declares. Never empty โ€” an element with neither yields a single `default` entry.
59
+ */
60
+ export declare function statesOf(decl: ElementDeclaration): ElementStateEntry[];
61
+ /**
62
+ * The states of many declarations, id-sorted so the list is stable whatever order they were read in.
63
+ *
64
+ * Without the sort a consumer that globs a directory would see its own enumeration reorder when the
65
+ * filesystem does, which reads as a change in the surface rather than in the elements.
66
+ */
67
+ export declare function elementStates(decls: readonly ElementDeclaration[]): ElementStateEntry[];
68
+ /**
69
+ * `xeno.chevron-down` โ†’ `xeno-chevron-down`.
70
+ *
71
+ * An element id is permanent and contains a dot; a URL segment and a filename are both happier
72
+ * without one. Consumers that address a state by path want the same spelling as each other, so the
73
+ * transform lives here rather than being reinvented per tool.
74
+ */
75
+ export declare const slugForId: (id: string) => string;
package/dist/states.js ADDED
@@ -0,0 +1,112 @@
1
+ /**
2
+ * State ENUMERATION โ€” what a declaration's axes and signals imply, computed once, here.
3
+ *
4
+ * ## Why this belongs in the contract package
5
+ *
6
+ * `schema.ts` says what a state IS. This says which states an element HAS. Every tool that shows an
7
+ * element in all its states needs that answer โ€” the workshop, `xeno-apps`' Library, an agent asking
8
+ * "show me the bookmark selected", a future screenshot gate on another platform โ€” and if each works
9
+ * it out for itself they drift, silently, because nothing compares two tools' idea of a list. That
10
+ * drift is the Storybook failure (state coverage is whatever someone remembered to write) arriving
11
+ * by a different road: not hand-written stories, but hand-rolled enumerations.
12
+ *
13
+ * So the derivation lives beside the contract it derives from, and a consumer imports it. This is
14
+ * the same rule the components rung already follows, where a family exports its own `STATES`.
15
+ *
16
+ * ## It is DATA about data โ€” still no code in a declaration
17
+ *
18
+ * This is a pure function over declarations, not something a declaration carries. Absolute rule 4
19
+ * ("declarations are DATA, never code") is untouched: nothing here is stored in, referenced by, or
20
+ * executed on behalf of an element. It reads `contract.axes` and `contract.signals` and returns a
21
+ * list. Zero dependencies, zero framework, zero platform โ€” like everything else in this package.
22
+ *
23
+ * ## The two decisions worth knowing
24
+ *
25
+ * **Axes cross-multiply.** They co-occur: a disabled toggle that is `on`, a selected row being
26
+ * pressed. That is the schema's own argument against a single enum, and it means an element's
27
+ * discrete states are the cartesian product of the axes it DECLARES โ€” not a flat list of axis
28
+ * values, which would be the same mistake one level up.
29
+ *
30
+ * **Signals do not.** A signal is a continuous VALUE, not a member of a set. Crossing it with the
31
+ * axes is unbounded in principle and uninformative in practice, so each declared signal contributes
32
+ * one sampled cell over the default axis state โ€” the one a reviewer means when they ask what
33
+ * mid-gesture looks like.
34
+ *
35
+ * **An element declaring neither has exactly one state, and it is real.** A static glyph still
36
+ * renders; `default` is the thing a gate screenshots. Returning nothing for it would make the
37
+ * overwhelming majority of the set invisible to every consumer of this function.
38
+ *
39
+ * @module
40
+ */
41
+ /**
42
+ * Every value of every axis, in the schema's own order.
43
+ *
44
+ * Adding a value to an axis reaches every consumer through this constant โ€” which is the point of
45
+ * having one. It is typed against {@link ElementState} so a value the schema does not permit cannot
46
+ * be added here without the compiler saying so.
47
+ */
48
+ const AXIS_VALUES = {
49
+ availability: ['enabled', 'disabled', 'busy'],
50
+ selection: ['off', 'on', 'mixed'],
51
+ interaction: ['idle', 'engaged', 'pressed'],
52
+ };
53
+ /**
54
+ * The one sample per signal an enumeration shows: `progress` mid-gesture, `activity` running.
55
+ *
56
+ * A sample, not a range. Enumerating a continuous value is a category error; showing one
57
+ * representative point of it is what a reviewer or a gate can actually look at.
58
+ */
59
+ const SIGNAL_SAMPLE = {
60
+ progress: { progress: 0.5 },
61
+ activity: { activity: true },
62
+ };
63
+ /**
64
+ * The schema's axis order.
65
+ *
66
+ * Load-bearing: the key is built in THIS order, never the declaration's, so two elements declaring
67
+ * the same axes the other way round produce the same key for the same state. Without it one state
68
+ * would have two names, and anything keyed by name โ€” a URL, a screenshot baseline, an agent's
69
+ * request โ€” would split in two.
70
+ */
71
+ const AXIS_ORDER = ['availability', 'selection', 'interaction'];
72
+ const cross = (axes) => AXIS_ORDER.filter((a) => axes.includes(a)).reduce((acc, axis) => acc.flatMap((base) => AXIS_VALUES[axis].map((v) => ({ ...base, [axis]: v }))), [{}]);
73
+ const keyFor = (state) => {
74
+ const parts = AXIS_ORDER.filter((a) => state[a] !== undefined).map((a) => `${a}-${state[a]}`);
75
+ return parts.length ? parts.join('_') : 'default';
76
+ };
77
+ /**
78
+ * The states of ONE declaration: every combination of the axes it declares, then one sample per
79
+ * signal it declares. Never empty โ€” an element with neither yields a single `default` entry.
80
+ */
81
+ export function statesOf(decl) {
82
+ const discrete = cross(decl.contract.axes).map((elementState) => ({
83
+ id: decl.id,
84
+ state: keyFor(elementState),
85
+ elementState,
86
+ signals: {},
87
+ }));
88
+ const sampled = decl.contract.signals.map((signal) => ({
89
+ id: decl.id,
90
+ state: `signal-${signal}`,
91
+ elementState: {},
92
+ signals: SIGNAL_SAMPLE[signal],
93
+ }));
94
+ return [...discrete, ...sampled];
95
+ }
96
+ /**
97
+ * The states of many declarations, id-sorted so the list is stable whatever order they were read in.
98
+ *
99
+ * Without the sort a consumer that globs a directory would see its own enumeration reorder when the
100
+ * filesystem does, which reads as a change in the surface rather than in the elements.
101
+ */
102
+ export function elementStates(decls) {
103
+ return [...decls].sort((a, b) => a.id.localeCompare(b.id)).flatMap(statesOf);
104
+ }
105
+ /**
106
+ * `xeno.chevron-down` โ†’ `xeno-chevron-down`.
107
+ *
108
+ * An element id is permanent and contains a dot; a URL segment and a filename are both happier
109
+ * without one. Consumers that address a state by path want the same spelling as each other, so the
110
+ * transform lives here rather than being reinvented per tool.
111
+ */
112
+ export const slugForId = (id) => id.replace(/\./g, '-');
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Border scale โ€” `DESIGN_SYSTEM.md ยง2 Borders` and the identically-valued "Reference Color Tokens"
3
+ * table (`borderSubtle`/`borderDefault`/`borderMedium`/`borderStrong`).
4
+ *
5
+ * All four are white-at-opacity, on the same accent ladder `./interactive.ts` publishes โ€” `medium`
6
+ * is numerically identical to `accent.secondary` (both `rgba(255, 255, 255, 0.10)`) and `strong` is
7
+ * numerically identical to `accent.base` (both `rgba(255, 255, 255, 0.15)`). That is the design
8
+ * system's own overlap (one opacity ladder, reused across semantic roles), not a coincidence this
9
+ * module invents โ€” `strong`/`default` are exported here under their OWN name because a border and an
10
+ * accent fill are different roles that happen to share a value today; a consumer asking for "the
11
+ * strong border colour" should not have to know it is spelled `accent.base` this season.
12
+ */
13
+ export declare const border: {
14
+ /** The faintest separation. */
15
+ readonly subtle: "rgba(255, 255, 255, 0.05)";
16
+ /** Around containers, between panels. Byte-identical to `PANEL_COLORS.border` (`./panel.ts`). */
17
+ readonly default: "rgba(255, 255, 255, 0.08)";
18
+ /** Glassmorphism borders. Byte-identical to `accent.secondary` (`./interactive.ts`). */
19
+ readonly medium: "rgba(255, 255, 255, 0.10)";
20
+ /** Focus states, active selections, strong dividers. Byte-identical to `accent.base`. */
21
+ readonly strong: "rgba(255, 255, 255, 0.15)";
22
+ };
23
+ export type BorderToken = keyof typeof border;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Border scale โ€” `DESIGN_SYSTEM.md ยง2 Borders` and the identically-valued "Reference Color Tokens"
3
+ * table (`borderSubtle`/`borderDefault`/`borderMedium`/`borderStrong`).
4
+ *
5
+ * All four are white-at-opacity, on the same accent ladder `./interactive.ts` publishes โ€” `medium`
6
+ * is numerically identical to `accent.secondary` (both `rgba(255, 255, 255, 0.10)`) and `strong` is
7
+ * numerically identical to `accent.base` (both `rgba(255, 255, 255, 0.15)`). That is the design
8
+ * system's own overlap (one opacity ladder, reused across semantic roles), not a coincidence this
9
+ * module invents โ€” `strong`/`default` are exported here under their OWN name because a border and an
10
+ * accent fill are different roles that happen to share a value today; a consumer asking for "the
11
+ * strong border colour" should not have to know it is spelled `accent.base` this season.
12
+ */
13
+ export const border = {
14
+ /** The faintest separation. */
15
+ subtle: 'rgba(255, 255, 255, 0.05)',
16
+ /** Around containers, between panels. Byte-identical to `PANEL_COLORS.border` (`./panel.ts`). */
17
+ default: 'rgba(255, 255, 255, 0.08)',
18
+ /** Glassmorphism borders. Byte-identical to `accent.secondary` (`./interactive.ts`). */
19
+ medium: 'rgba(255, 255, 255, 0.10)',
20
+ /** Focus states, active selections, strong dividers. Byte-identical to `accent.base`. */
21
+ strong: 'rgba(255, 255, 255, 0.15)',
22
+ };
@@ -8,6 +8,14 @@
8
8
  * Scope so far: ยง2 surfaces + interactive/text/glass, plus the radius scale, control size scale and
9
9
  * status vocabulary (landed for Tier-1 controls, values from the locked chat lab / DESIGN_SYSTEM). Motion
10
10
  * durations and the cursor map are the remaining ROADMAP tokens.
11
+ *
12
+ * Added 2026-09-21 for a downstream consumer (`@xenosystem/workbench`) that had been carrying these
13
+ * exact ยง2 values as first-authored literals for want of a TS export: `reading` (the reading-text
14
+ * ramp โ€” primary/body/secondary/muted/dim, distinct from `interactive.ts`'s `text` states),
15
+ * `border` (the four-step border scale as its own named group), `scrollbar` (opaque thumb/hover
16
+ * hex from the ยง2 reference table), and `surface.surface1` (app-chrome raise level). Every value is
17
+ * copied byte-for-byte from `DESIGN_SYSTEM.md ยง2`'s "Reference Color Tokens" table โ€” none is new or
18
+ * proposed.
11
19
  */
12
20
  export * from './surfaces.js';
13
21
  export * from './interactive.js';
@@ -16,3 +24,6 @@ export * from './size.js';
16
24
  export * from './status.js';
17
25
  export * from './motion.js';
18
26
  export * from './panel.js';
27
+ export * from './reading.js';
28
+ export * from './border.js';
29
+ export * from './scrollbar.js';
@@ -8,6 +8,14 @@
8
8
  * Scope so far: ยง2 surfaces + interactive/text/glass, plus the radius scale, control size scale and
9
9
  * status vocabulary (landed for Tier-1 controls, values from the locked chat lab / DESIGN_SYSTEM). Motion
10
10
  * durations and the cursor map are the remaining ROADMAP tokens.
11
+ *
12
+ * Added 2026-09-21 for a downstream consumer (`@xenosystem/workbench`) that had been carrying these
13
+ * exact ยง2 values as first-authored literals for want of a TS export: `reading` (the reading-text
14
+ * ramp โ€” primary/body/secondary/muted/dim, distinct from `interactive.ts`'s `text` states),
15
+ * `border` (the four-step border scale as its own named group), `scrollbar` (opaque thumb/hover
16
+ * hex from the ยง2 reference table), and `surface.surface1` (app-chrome raise level). Every value is
17
+ * copied byte-for-byte from `DESIGN_SYSTEM.md ยง2`'s "Reference Color Tokens" table โ€” none is new or
18
+ * proposed.
11
19
  */
12
20
  export * from './surfaces.js';
13
21
  export * from './interactive.js';
@@ -16,3 +24,6 @@ export * from './size.js';
16
24
  export * from './status.js';
17
25
  export * from './motion.js';
18
26
  export * from './panel.js';
27
+ export * from './reading.js';
28
+ export * from './border.js';
29
+ export * from './scrollbar.js';
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The reading-text hierarchy โ€” `DESIGN_SYSTEM.md ยง2 Text Hierarchy` (and the identically-valued
3
+ * "Reference Color Tokens" table: `textPrimary`/`textBody`/`textSecondary`/`textMuted`/`textDim`).
4
+ *
5
+ * Distinct from `./interactive.ts`'s `text` export: that group is INTERACTIVE STATES (idle/hover/
6
+ * active โ€” how a menu item or button label looks as the pointer moves over it). This group is the
7
+ * READING ramp โ€” how much attention a piece of static content earns, independent of interaction.
8
+ * The two happen to share a design vocabulary ("text") but are different axes with different values
9
+ * (compare `text.secondary` `#9a9aa1`, the AA-safe caption tone, with `reading.secondary` `#a8a8b1`
10
+ * below โ€” same rank in each ramp, not the same colour, because they answer different questions).
11
+ * Do not merge them into one export: a consumer needing "the fourth-darkest reading tone" and a
12
+ * consumer needing "this menu item's hover colour" must not be able to typo their way into the
13
+ * other's value.
14
+ *
15
+ * One neutral cool-gray family (R=G, Bโ‰ˆ+7) โ€” never the retired slate/blue-tinted ramp.
16
+ */
17
+ export declare const reading: {
18
+ /** Content the user is actively reading โ€” names, values, headings. */
19
+ readonly primary: "#ffffff";
20
+ /** Descriptions, transaction names, supporting content. */
21
+ readonly body: "#e5e5e9";
22
+ /** Labels, section headers, metadata. Most descriptions use this. */
23
+ readonly secondary: "#a8a8b1";
24
+ /** Hints, subtitles, captions. */
25
+ readonly muted: "#79797f";
26
+ /** Timestamps, balance-after values, the faintest text. */
27
+ readonly dim: "#57575e";
28
+ };
29
+ export type ReadingToken = keyof typeof reading;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * The reading-text hierarchy โ€” `DESIGN_SYSTEM.md ยง2 Text Hierarchy` (and the identically-valued
3
+ * "Reference Color Tokens" table: `textPrimary`/`textBody`/`textSecondary`/`textMuted`/`textDim`).
4
+ *
5
+ * Distinct from `./interactive.ts`'s `text` export: that group is INTERACTIVE STATES (idle/hover/
6
+ * active โ€” how a menu item or button label looks as the pointer moves over it). This group is the
7
+ * READING ramp โ€” how much attention a piece of static content earns, independent of interaction.
8
+ * The two happen to share a design vocabulary ("text") but are different axes with different values
9
+ * (compare `text.secondary` `#9a9aa1`, the AA-safe caption tone, with `reading.secondary` `#a8a8b1`
10
+ * below โ€” same rank in each ramp, not the same colour, because they answer different questions).
11
+ * Do not merge them into one export: a consumer needing "the fourth-darkest reading tone" and a
12
+ * consumer needing "this menu item's hover colour" must not be able to typo their way into the
13
+ * other's value.
14
+ *
15
+ * One neutral cool-gray family (R=G, Bโ‰ˆ+7) โ€” never the retired slate/blue-tinted ramp.
16
+ */
17
+ export const reading = {
18
+ /** Content the user is actively reading โ€” names, values, headings. */
19
+ primary: '#ffffff',
20
+ /** Descriptions, transaction names, supporting content. */
21
+ body: '#e5e5e9',
22
+ /** Labels, section headers, metadata. Most descriptions use this. */
23
+ secondary: '#a8a8b1',
24
+ /** Hints, subtitles, captions. */
25
+ muted: '#79797f',
26
+ /** Timestamps, balance-after values, the faintest text. */
27
+ dim: '#57575e',
28
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Scrollbar thumb colours โ€” `DESIGN_SYSTEM.md ยง2` "Reference Color Tokens" (`scrollThumb`/
3
+ * `scrollHover`), opaque hex. Geometry (thin rectangle, transparent track, margin on every side) is
4
+ * described in `DESIGN_SYSTEM.md ยง3 The Scrollbar`; this module is colour only.
5
+ *
6
+ * `packages/elements-react/src/xeno-theme.css` also ships scrollbar colours
7
+ * (`--xeno-scroll-thumb*`), but as **alpha-over-transparent** (`rgba(255, 255, 255, 0.16)` /
8
+ * `0.28`), not this module's opaque hex. The two are NOT the same token under two names โ€” compositing
9
+ * the CSS alphas over `surface.canvas` (`#111111`) lands close to but not equal to the values below
10
+ * (`rgba(255,255,255,0.16)` over `#111111` โ‰ˆ `#373737`, not `#3a3a3d`), so this module does not derive
11
+ * from that file. It derives from `DESIGN_SYSTEM.md`'s own reference table, which is where these exact
12
+ * opaque values (`#3a3a3d` / `#555555`) are locked. The CSS variant is elements-react's own
13
+ * implementation choice for its own scrollable surfaces and is out of scope here.
14
+ */
15
+ export declare const scrollbar: {
16
+ readonly thumb: "#3a3a3d";
17
+ readonly thumbHover: "#555555";
18
+ };
19
+ export type ScrollbarToken = keyof typeof scrollbar;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Scrollbar thumb colours โ€” `DESIGN_SYSTEM.md ยง2` "Reference Color Tokens" (`scrollThumb`/
3
+ * `scrollHover`), opaque hex. Geometry (thin rectangle, transparent track, margin on every side) is
4
+ * described in `DESIGN_SYSTEM.md ยง3 The Scrollbar`; this module is colour only.
5
+ *
6
+ * `packages/elements-react/src/xeno-theme.css` also ships scrollbar colours
7
+ * (`--xeno-scroll-thumb*`), but as **alpha-over-transparent** (`rgba(255, 255, 255, 0.16)` /
8
+ * `0.28`), not this module's opaque hex. The two are NOT the same token under two names โ€” compositing
9
+ * the CSS alphas over `surface.canvas` (`#111111`) lands close to but not equal to the values below
10
+ * (`rgba(255,255,255,0.16)` over `#111111` โ‰ˆ `#373737`, not `#3a3a3d`), so this module does not derive
11
+ * from that file. It derives from `DESIGN_SYSTEM.md`'s own reference table, which is where these exact
12
+ * opaque values (`#3a3a3d` / `#555555`) are locked. The CSS variant is elements-react's own
13
+ * implementation choice for its own scrollable surfaces and is out of scope here.
14
+ */
15
+ export const scrollbar = {
16
+ thumb: '#3a3a3d',
17
+ thumbHover: '#555555',
18
+ };
@@ -14,5 +14,12 @@ export declare const surface: {
14
14
  readonly input: "#2b2b2b";
15
15
  readonly dialog: "#111115";
16
16
  readonly dropdown: "#101011";
17
+ /**
18
+ * "cards, panels, sidebar" โ€” app CHROME raised one step above `page` (ยง2 Surface Hierarchy: "app
19
+ * chrome โ€ฆ sits above [the page] (lighter, `surface1 #18181b`)"). Distinct from `panelBody`
20
+ * (`#161618`, a panel's own full-height background): `surface1` is the app-shell level a panel
21
+ * sits ON, not the panel's own fill.
22
+ */
23
+ readonly surface1: "#18181b";
17
24
  };
18
25
  export type SurfaceToken = keyof typeof surface;
@@ -14,4 +14,11 @@ export const surface = {
14
14
  input: '#2b2b2b',
15
15
  dialog: '#111115',
16
16
  dropdown: '#101011',
17
+ /**
18
+ * "cards, panels, sidebar" โ€” app CHROME raised one step above `page` (ยง2 Surface Hierarchy: "app
19
+ * chrome โ€ฆ sits above [the page] (lighter, `surface1 #18181b`)"). Distinct from `panelBody`
20
+ * (`#161618`, a panel's own full-height background): `surface1` is the app-shell level a panel
21
+ * sits ON, not the panel's own fill.
22
+ */
23
+ surface1: '#18181b',
17
24
  };
package/package.json CHANGED
@@ -1,46 +1,53 @@
1
- {
2
- "name": "@xenosystem/elements",
3
- "version": "0.0.4",
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
- }
1
+ {
2
+ "name": "@xenosystem/elements",
3
+ "version": "0.0.6",
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
+ "./states": {
21
+ "types": "./dist/states.d.ts",
22
+ "default": "./dist/states.js"
23
+ },
24
+ "./tokens": {
25
+ "types": "./dist/tokens/index.d.ts",
26
+ "default": "./dist/tokens/index.js"
27
+ },
28
+ "./elements/*": {
29
+ "types": "./dist/elements/*.d.ts",
30
+ "default": "./dist/elements/*.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "LICENSE"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsc -p tsconfig.json",
39
+ "typecheck": "tsc -p tsconfig.json --noEmit && tsc -p tsconfig.test.json --noEmit",
40
+ "test": "vitest run",
41
+ "import-glyphs": "node --no-warnings scripts/import-glyphs.mjs",
42
+ "verify:pack": "node --no-warnings scripts/verify-pack.mjs",
43
+ "test:pack-guard": "node --no-warnings scripts/verify-pack.negative.test.mjs",
44
+ "prepack": "node --no-warnings scripts/verify-pack.mjs"
45
+ },
46
+ "devDependencies": {
47
+ "svgpath": "^2.6.0",
48
+ "typescript": "^5.4.0"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
52
+ }
53
+ }