@xenosystem/elements 0.0.3 โ†’ 0.0.5

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,9 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.chart-gantt` โ€” Gantt chart. A degenerate element (pure geometry, no children).
4
+ * Three task bars of different length and start offset, stacked on a baseline โ€” a schedule, not
5
+ * a bar chart (contrast `xeno.chart-column`, whose bars share one baseline x and vary only in
6
+ * height).
7
+ */
8
+ export declare const ChartGantt: ElementDeclaration;
9
+ export default ChartGantt;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.chart-gantt` โ€” Gantt chart. A degenerate element (pure geometry, no children).
3
+ * Three task bars of different length and start offset, stacked on a baseline โ€” a schedule, not
4
+ * a bar chart (contrast `xeno.chart-column`, whose bars share one baseline x and vary only in
5
+ * height).
6
+ */
7
+ export const ChartGantt = {
8
+ id: 'xeno.chart-gantt',
9
+ kind: 'icon',
10
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
11
+ geometry: {
12
+ base: [
13
+ { kind: 'path', d: 'M3 20h18' },
14
+ { kind: 'rect', x: 6, y: 4, w: 11, h: 3, rx: 1 },
15
+ { kind: 'rect', x: 9, y: 9.5, w: 9, h: 3, rx: 1 },
16
+ { kind: 'rect', x: 4, y: 15, w: 7, h: 3, rx: 1 },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Gantt chart' },
21
+ meta: { tags: ['gantt', 'timeline', 'schedule', 'tasks', 'chart'], since: '0.1.0' },
22
+ };
23
+ export default ChartGantt;
@@ -0,0 +1,8 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.spline` โ€” Spline. A degenerate element (pure geometry, no children).
4
+ * Two anchor squares joined by one S-curve, vertical at each end โ€” a curve with handles, not a
5
+ * straight edge. DESIGN_SYSTEM ยง3 forbids circles; the anchors are rounded squares, not points.
6
+ */
7
+ export declare const Spline: ElementDeclaration;
8
+ export default Spline;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `xeno.spline` โ€” Spline. A degenerate element (pure geometry, no children).
3
+ * Two anchor squares joined by one S-curve, vertical at each end โ€” a curve with handles, not a
4
+ * straight edge. DESIGN_SYSTEM ยง3 forbids circles; the anchors are rounded squares, not points.
5
+ */
6
+ export const Spline = {
7
+ id: 'xeno.spline',
8
+ kind: 'icon',
9
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
10
+ geometry: {
11
+ base: [
12
+ { kind: 'rect', x: 3, y: 15, w: 4, h: 4, rx: 1 },
13
+ { kind: 'rect', x: 17, y: 5, w: 4, h: 4, rx: 1 },
14
+ { kind: 'path', d: 'M7 17C7 12 17 12 17 7' },
15
+ ],
16
+ },
17
+ bindings: [],
18
+ a11y: { role: 'img', label: 'Spline' },
19
+ meta: { tags: ['curve', 'bezier', 'path', 'anchor', 'vector'], since: '0.1.0' },
20
+ };
21
+ export default Spline;
@@ -0,0 +1,8 @@
1
+ import type { ElementDeclaration } from '../schema';
2
+ /**
3
+ * `xeno.waypoints` โ€” Waypoints. A degenerate element (pure geometry, no children).
4
+ * Three stop markers on a winding route, low to high. DESIGN_SYSTEM ยง3 forbids circles โ€” each
5
+ * stop is a rounded square, not a pin.
6
+ */
7
+ export declare const Waypoints: ElementDeclaration;
8
+ export default Waypoints;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * `xeno.waypoints` โ€” Waypoints. A degenerate element (pure geometry, no children).
3
+ * Three stop markers on a winding route, low to high. DESIGN_SYSTEM ยง3 forbids circles โ€” each
4
+ * stop is a rounded square, not a pin.
5
+ */
6
+ export const Waypoints = {
7
+ id: 'xeno.waypoints',
8
+ kind: 'icon',
9
+ contract: { viewBox: '0 0 24 24', weight: 'regular', strokeFamily: 'xeno-regular', axes: [], signals: [] },
10
+ geometry: {
11
+ base: [
12
+ { kind: 'rect', x: 3, y: 17, w: 4, h: 4, rx: 1 },
13
+ { kind: 'rect', x: 10, y: 9, w: 4, h: 4, rx: 1 },
14
+ { kind: 'rect', x: 17, y: 3, w: 4, h: 4, rx: 1 },
15
+ { kind: 'path', d: 'M5 17C6 14 8 12 10 11' },
16
+ { kind: 'path', d: 'M14 11C16 9 17 8 19 7' },
17
+ ],
18
+ },
19
+ bindings: [],
20
+ a11y: { role: 'img', label: 'Waypoints' },
21
+ meta: { tags: ['route', 'stops', 'markers', 'navigation', 'path'], since: '0.1.0' },
22
+ };
23
+ export default Waypoints;
@@ -15,3 +15,4 @@ export * from './radius.js';
15
15
  export * from './size.js';
16
16
  export * from './status.js';
17
17
  export * from './motion.js';
18
+ export * from './panel.js';
@@ -15,3 +15,4 @@ export * from './radius.js';
15
15
  export * from './size.js';
16
16
  export * from './status.js';
17
17
  export * from './motion.js';
18
+ export * from './panel.js';
@@ -18,6 +18,14 @@ export declare const text: {
18
18
  readonly hover: "#d8d8de";
19
19
  readonly active: "#acacb4";
20
20
  readonly hoverBg: "rgba(169, 169, 177, 0.08)";
21
+ /**
22
+ * Secondary READING text โ€” hints, meta, captions, empty-state copy. Distinct from `idle`, which is
23
+ * the resting state of an INTERACTIVE label (a menu item waits to be hovered; a hint is only read).
24
+ * Chosen for WCAG AA (โ‰ฅ 4.5:1) on every panel surface, including the control well and the badge
25
+ * chip (`#2d2d2f`: 4.92); `idle` is 3.46 there, which is why the chrome family's 69 contrast
26
+ * findings had one cause. Measured 2026-09-18, xeno-workshop `scripts/measure-contrast.mjs`.
27
+ */
28
+ readonly secondary: "#9a9aa1";
21
29
  };
22
30
  /** Glassmorphism surfaces (ยง2). */
23
31
  export declare const glass: {
@@ -18,6 +18,14 @@ export const text = {
18
18
  hover: '#d8d8de',
19
19
  active: '#acacb4',
20
20
  hoverBg: 'rgba(169, 169, 177, 0.08)',
21
+ /**
22
+ * Secondary READING text โ€” hints, meta, captions, empty-state copy. Distinct from `idle`, which is
23
+ * the resting state of an INTERACTIVE label (a menu item waits to be hovered; a hint is only read).
24
+ * Chosen for WCAG AA (โ‰ฅ 4.5:1) on every panel surface, including the control well and the badge
25
+ * chip (`#2d2d2f`: 4.92); `idle` is 3.46 there, which is why the chrome family's 69 contrast
26
+ * findings had one cause. Measured 2026-09-18, xeno-workshop `scripts/measure-contrast.mjs`.
27
+ */
28
+ secondary: '#9a9aa1',
21
29
  };
22
30
  /** Glassmorphism surfaces (ยง2). */
23
31
  export const glass = {
@@ -0,0 +1,31 @@
1
+ /** Legacy panel palette, retained at rung 1 for API compatibility. New UI uses semantic CSS tokens. */
2
+ export declare const PANEL_COLORS: Readonly<{
3
+ /** Row hover fill. DESIGN_SYSTEM ยง2 `rowHover`. **No shipped panel has a hover state at all.** */
4
+ readonly rowHover: "rgba(255,255,255,0.05)";
5
+ /** Row selected fill. Census: byte-identical in layers + history. */
6
+ readonly rowSelected: "rgba(255,255,255,0.10)";
7
+ /** Active/focus ring. Census: byte-identical `inset 0 0 0 1px` in layers + history. */
8
+ readonly ring: "rgba(255,255,255,0.15)";
9
+ /** Keyboard focus outline. DESIGN_SYSTEM ยง11. **No shipped panel has one.** */
10
+ readonly focus: "rgba(255,255,255,0.25)";
11
+ /** Recessed well fill for inputs. Census: 4/5 packages. */
12
+ readonly well: "rgba(0,0,0,0.3)";
13
+ /** Hairline border. */
14
+ readonly border: "rgba(255,255,255,0.08)";
15
+ /** Soft raised fill โ€” chips, ghost buttons. Census: 5/5 packages. */
16
+ readonly soft: "rgba(255,255,255,0.06)";
17
+ /** Section-header wash. Census: inspector. */
18
+ readonly wash: "rgba(255,255,255,0.03)";
19
+ /** Solid status red (indicators). DESIGN_SYSTEM ยง2 `error`. */
20
+ readonly error: "#ef4444";
21
+ /** Status red for TEXT. DESIGN_SYSTEM ยง2 `error.text`. */
22
+ readonly errorText: "rgba(239,68,68,0.65)";
23
+ /** Status amber for text. */
24
+ readonly warningText: "rgba(245,158,11,0.65)";
25
+ /** Status green for text. */
26
+ readonly successText: "#5a9a6a";
27
+ /** Info blue-gray for text (the dimmest permitted chroma). */
28
+ readonly infoText: "#7aa2c4";
29
+ }>;
30
+ /** The type of {@link PANEL_COLORS}. */
31
+ export type PanelColors = typeof PANEL_COLORS;
@@ -0,0 +1,29 @@
1
+ /** Legacy panel palette, retained at rung 1 for API compatibility. New UI uses semantic CSS tokens. */
2
+ export const PANEL_COLORS = Object.freeze({
3
+ /** Row hover fill. DESIGN_SYSTEM ยง2 `rowHover`. **No shipped panel has a hover state at all.** */
4
+ rowHover: 'rgba(255,255,255,0.05)',
5
+ /** Row selected fill. Census: byte-identical in layers + history. */
6
+ rowSelected: 'rgba(255,255,255,0.10)',
7
+ /** Active/focus ring. Census: byte-identical `inset 0 0 0 1px` in layers + history. */
8
+ ring: 'rgba(255,255,255,0.15)',
9
+ /** Keyboard focus outline. DESIGN_SYSTEM ยง11. **No shipped panel has one.** */
10
+ focus: 'rgba(255,255,255,0.25)',
11
+ /** Recessed well fill for inputs. Census: 4/5 packages. */
12
+ well: 'rgba(0,0,0,0.3)',
13
+ /** Hairline border. */
14
+ border: 'rgba(255,255,255,0.08)',
15
+ /** Soft raised fill โ€” chips, ghost buttons. Census: 5/5 packages. */
16
+ soft: 'rgba(255,255,255,0.06)',
17
+ /** Section-header wash. Census: inspector. */
18
+ wash: 'rgba(255,255,255,0.03)',
19
+ /** Solid status red (indicators). DESIGN_SYSTEM ยง2 `error`. */
20
+ error: '#ef4444',
21
+ /** Status red for TEXT. DESIGN_SYSTEM ยง2 `error.text`. */
22
+ errorText: 'rgba(239,68,68,0.65)',
23
+ /** Status amber for text. */
24
+ warningText: 'rgba(245,158,11,0.65)',
25
+ /** Status green for text. */
26
+ successText: '#5a9a6a',
27
+ /** Info blue-gray for text (the dimmest permitted chroma). */
28
+ infoText: '#7aa2c4',
29
+ });
@@ -10,5 +10,15 @@ export declare const status: {
10
10
  readonly dangerHover: "#dc2626";
11
11
  readonly success: "#3fb950";
12
12
  readonly warning: "#d29922";
13
+ /**
14
+ * The same four meanings as TEXT (a badge label, a status line, an error message): the fill hues
15
+ * above fail AA as small text on the panel surfaces (danger `#ef4444` is 3.65:1 on a `#2d2d2f`
16
+ * chip), so text gets its own, lighter tone per meaning โ€” every one โ‰ฅ 4.5:1 on every surface down
17
+ * to `#2d2d2f`. Distinguish a status by TONE, not by hue alone (`DESIGN_SYSTEM.md` ยงa11y).
18
+ */
19
+ readonly dangerText: "#f27a7a";
20
+ readonly successText: "#6fae7f";
21
+ readonly warningText: "#c98d2a";
22
+ readonly infoText: "#7aa2c4";
13
23
  };
14
24
  export type StatusToken = keyof typeof status;
@@ -10,4 +10,14 @@ export const status = {
10
10
  dangerHover: '#dc2626',
11
11
  success: '#3fb950',
12
12
  warning: '#d29922',
13
+ /**
14
+ * The same four meanings as TEXT (a badge label, a status line, an error message): the fill hues
15
+ * above fail AA as small text on the panel surfaces (danger `#ef4444` is 3.65:1 on a `#2d2d2f`
16
+ * chip), so text gets its own, lighter tone per meaning โ€” every one โ‰ฅ 4.5:1 on every surface down
17
+ * to `#2d2d2f`. Distinguish a status by TONE, not by hue alone (`DESIGN_SYSTEM.md` ยงa11y).
18
+ */
19
+ dangerText: '#f27a7a',
20
+ successText: '#6fae7f',
21
+ warningText: '#c98d2a',
22
+ infoText: '#7aa2c4',
13
23
  };
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@xenosystem/elements",
3
- "version": "0.0.3",
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.5",
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
+ }