@vhyxui/core 0.1.0-alpha.1 → 0.2.0-alpha

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vhyxara
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # @vhyxui/core
2
+
3
+ Shared foundations for VhyxUI packages: agent contract templates for every
4
+ interactive component, the `Slot` primitive and typed errors.
5
+
6
+ > **Alpha** — most apps use `@vhyxui/react` and never import this package directly.
7
+
8
+ ## Install
9
+
10
+ ```bash
11
+ npm install @vhyxui/core
12
+ ```
13
+
14
+ ## What's included
15
+
16
+ - **Contract templates** — `buttonContract`, `dialogContract`, `tableContract` … one per
17
+ interactive component, describing its intent and safety level for AI agents
18
+ (built on `@vhyxseal/core`)
19
+ - **`Slot`** — merges props and refs onto a child element (`asChild` pattern),
20
+ plus `mergeProps` and `mergeRefs`
21
+ - **Errors** — `VhyxUIError` and `VhyxUIErrorCode`
22
+
23
+ ```ts
24
+ import { Slot, mergeRefs } from "@vhyxui/core";
25
+ ```
26
+
27
+ ## Links
28
+
29
+ - Documentation — https://vhyxui.com
30
+ - Source — https://github.com/vhyxara/vhyxUI/tree/main/packages/core
31
+ - License — MIT
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./pagination-DMKZiFFW.cjs");exports.alertContract=t.alertContract;exports.badgeContract=t.badgeContract;exports.breadcrumbContract=t.breadcrumbContract;exports.buttonContract=t.buttonContract;exports.cardContract=t.cardContract;exports.checkboxContract=t.checkboxContract;exports.dialogContract=t.dialogContract;exports.drawerContract=t.drawerContract;exports.formContract=t.formContract;exports.inputContract=t.inputContract;exports.paginationContract=t.paginationContract;exports.popoverContract=t.popoverContract;exports.progressContract=t.progressContract;exports.radioContract=t.radioContract;exports.selectContract=t.selectContract;exports.separatorContract=t.separatorContract;exports.spinnerContract=t.spinnerContract;exports.switchContract=t.switchContract;exports.tabsContract=t.tabsContract;exports.textareaContract=t.textareaContract;exports.toastContract=t.toastContract;exports.tooltipContract=t.tooltipContract;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./table-THh0Ixxd.cjs");exports.accordionContract=t.accordionContract;exports.alertContract=t.alertContract;exports.badgeContract=t.badgeContract;exports.breadcrumbContract=t.breadcrumbContract;exports.buttonContract=t.buttonContract;exports.cardContract=t.cardContract;exports.checkboxContract=t.checkboxContract;exports.dialogContract=t.dialogContract;exports.drawerContract=t.drawerContract;exports.formContract=t.formContract;exports.inputContract=t.inputContract;exports.paginationContract=t.paginationContract;exports.popoverContract=t.popoverContract;exports.progressContract=t.progressContract;exports.radioContract=t.radioContract;exports.selectContract=t.selectContract;exports.separatorContract=t.separatorContract;exports.spinnerContract=t.spinnerContract;exports.switchContract=t.switchContract;exports.tableContract=t.tableContract;exports.tabsContract=t.tabsContract;exports.textareaContract=t.textareaContract;exports.toastContract=t.toastContract;exports.tooltipContract=t.tooltipContract;
@@ -1,5 +1,15 @@
1
1
  import { ComponentContract } from '@vhyxseal/core';
2
2
 
3
+ /**
4
+ * Default VhyxSeal contract template for the Accordion component.
5
+ *
6
+ * Expanding or collapsing a section only changes what is visible — agents can
7
+ * toggle freely to read hidden content. Instance id is injected at render time.
8
+ */
9
+ export declare const accordionContract: Readonly<Omit<ComponentContract, "id"> & {
10
+ readonly fingerprint: string;
11
+ }>;
12
+
3
13
  /**
4
14
  * Default VhyxSeal contract template for the Alert component.
5
15
  *
@@ -204,6 +214,16 @@ export declare const switchContract: Readonly<Omit<ComponentContract, "id"> & {
204
214
  readonly fingerprint: string;
205
215
  }>;
206
216
 
217
+ /**
218
+ * Default VhyxSeal contract template for the Table component.
219
+ *
220
+ * Tables are read-only structured data — the most valuable thing for an agent
221
+ * to read reliably. Instance id is injected at render time.
222
+ */
223
+ export declare const tableContract: Readonly<Omit<ComponentContract, "id"> & {
224
+ readonly fingerprint: string;
225
+ }>;
226
+
207
227
  /**
208
228
  * Default VhyxSeal contract template for the Tabs component.
209
229
  *
package/dist/contracts.js CHANGED
@@ -1,25 +1,27 @@
1
- import { a as r, b as o, c as s, d as c, e as n, f as C, g as e, h as p, i, j as b, p as d, k as g, l, r as m, s as u, m as f, n as h, o as x, t as k, q as v, u as w, v as j } from "./pagination-BC8m1q01.js";
1
+ import { a as r, b as o, c, d as s, e as n, f as C, g as e, h as i, i as p, j as b, k as d, p as l, l as g, m, r as u, s as x, n as f, o as h, q as w, t as k, u as v, v as j, w as q, x as y } from "./table-HKtt13kb.js";
2
2
  export {
3
- r as alertContract,
4
- o as badgeContract,
3
+ r as accordionContract,
4
+ o as alertContract,
5
+ c as badgeContract,
5
6
  s as breadcrumbContract,
6
- c as buttonContract,
7
- n as cardContract,
8
- C as checkboxContract,
9
- e as dialogContract,
7
+ n as buttonContract,
8
+ C as cardContract,
9
+ e as checkboxContract,
10
+ i as dialogContract,
10
11
  p as drawerContract,
11
- i as formContract,
12
- b as inputContract,
13
- d as paginationContract,
12
+ b as formContract,
13
+ d as inputContract,
14
+ l as paginationContract,
14
15
  g as popoverContract,
15
- l as progressContract,
16
- m as radioContract,
17
- u as selectContract,
16
+ m as progressContract,
17
+ u as radioContract,
18
+ x as selectContract,
18
19
  f as separatorContract,
19
20
  h as spinnerContract,
20
- x as switchContract,
21
- k as tabsContract,
22
- v as textareaContract,
23
- w as toastContract,
24
- j as tooltipContract
21
+ w as switchContract,
22
+ k as tableContract,
23
+ v as tabsContract,
24
+ j as textareaContract,
25
+ q as toastContract,
26
+ y as tooltipContract
25
27
  };
package/dist/errors.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e=(I=>(I.VHYXUI_MISSING_CONTEXT="VHYXUI_MISSING_CONTEXT",I.VHYXUI_MISSING_TITLE="VHYXUI_MISSING_TITLE",I.VHYXUI_INVALID_PROP="VHYXUI_INVALID_PROP",I.VHYXUI_PROVIDER_MISSING="VHYXUI_PROVIDER_MISSING",I.VHYXUI_TOAST_LIMIT_EXCEEDED="VHYXUI_TOAST_LIMIT_EXCEEDED",I))(e||{});class t extends Error{constructor(_){super(_.message),this.name="VhyxUIError",this.code=_.code,this.suggestion=_.suggestion,this.context=_.context}}exports.VhyxUIError=t;exports.VhyxUIErrorCode=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var T=(I=>(I.VHYXUI_MISSING_CONTEXT="VHYXUI_MISSING_CONTEXT",I.VHYXUI_MISSING_TITLE="VHYXUI_MISSING_TITLE",I.VHYXUI_INVALID_PROP="VHYXUI_INVALID_PROP",I.VHYXUI_PROVIDER_MISSING="VHYXUI_PROVIDER_MISSING",I.VHYXUI_TOAST_LIMIT_EXCEEDED="VHYXUI_TOAST_LIMIT_EXCEEDED",I.VHYXUI_STRUCTURE_INVALID="VHYXUI_STRUCTURE_INVALID",I.VHYXUI_RUNTIME_INVARIANT_VIOLATION="VHYXUI_RUNTIME_INVARIANT_VIOLATION",I))(T||{});class V extends Error{constructor(_){super(_.message),this.name="VhyxUIError",this.code=_.code,this.suggestion=_.suggestion,this.context=_.context}}exports.VhyxUIError=V;exports.VhyxUIErrorCode=T;
package/dist/errors.d.ts CHANGED
@@ -26,7 +26,9 @@ export declare enum VhyxUIErrorCode {
26
26
  VHYXUI_MISSING_TITLE = "VHYXUI_MISSING_TITLE",
27
27
  VHYXUI_INVALID_PROP = "VHYXUI_INVALID_PROP",
28
28
  VHYXUI_PROVIDER_MISSING = "VHYXUI_PROVIDER_MISSING",
29
- VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED"
29
+ VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED",
30
+ VHYXUI_STRUCTURE_INVALID = "VHYXUI_STRUCTURE_INVALID",
31
+ VHYXUI_RUNTIME_INVARIANT_VIOLATION = "VHYXUI_RUNTIME_INVARIANT_VIOLATION"
30
32
  }
31
33
 
32
34
  /** Configuration object passed to the VhyxUIError constructor. */
package/dist/errors.js CHANGED
@@ -1,10 +1,10 @@
1
- var S = /* @__PURE__ */ ((I) => (I.VHYXUI_MISSING_CONTEXT = "VHYXUI_MISSING_CONTEXT", I.VHYXUI_MISSING_TITLE = "VHYXUI_MISSING_TITLE", I.VHYXUI_INVALID_PROP = "VHYXUI_INVALID_PROP", I.VHYXUI_PROVIDER_MISSING = "VHYXUI_PROVIDER_MISSING", I.VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED", I))(S || {});
2
- class T extends Error {
1
+ var T = /* @__PURE__ */ ((I) => (I.VHYXUI_MISSING_CONTEXT = "VHYXUI_MISSING_CONTEXT", I.VHYXUI_MISSING_TITLE = "VHYXUI_MISSING_TITLE", I.VHYXUI_INVALID_PROP = "VHYXUI_INVALID_PROP", I.VHYXUI_PROVIDER_MISSING = "VHYXUI_PROVIDER_MISSING", I.VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED", I.VHYXUI_STRUCTURE_INVALID = "VHYXUI_STRUCTURE_INVALID", I.VHYXUI_RUNTIME_INVARIANT_VIOLATION = "VHYXUI_RUNTIME_INVARIANT_VIOLATION", I))(T || {});
2
+ class N extends Error {
3
3
  constructor(_) {
4
4
  super(_.message), this.name = "VhyxUIError", this.code = _.code, this.suggestion = _.suggestion, this.context = _.context;
5
5
  }
6
6
  }
7
7
  export {
8
- T as VhyxUIError,
9
- S as VhyxUIErrorCode
8
+ N as VhyxUIError,
9
+ T as VhyxUIErrorCode
10
10
  };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./errors.cjs"),r=require("./Slot-CLNJSabn.cjs"),t=require("./pagination-DMKZiFFW.cjs");exports.VhyxUIError=o.VhyxUIError;exports.VhyxUIErrorCode=o.VhyxUIErrorCode;exports.Slot=r.Slot;exports.mergeProps=r.mergeProps;exports.mergeRefs=r.mergeRefs;exports.alertContract=t.alertContract;exports.badgeContract=t.badgeContract;exports.breadcrumbContract=t.breadcrumbContract;exports.buttonContract=t.buttonContract;exports.cardContract=t.cardContract;exports.checkboxContract=t.checkboxContract;exports.dialogContract=t.dialogContract;exports.drawerContract=t.drawerContract;exports.formContract=t.formContract;exports.inputContract=t.inputContract;exports.paginationContract=t.paginationContract;exports.popoverContract=t.popoverContract;exports.progressContract=t.progressContract;exports.radioContract=t.radioContract;exports.selectContract=t.selectContract;exports.separatorContract=t.separatorContract;exports.spinnerContract=t.spinnerContract;exports.switchContract=t.switchContract;exports.tabsContract=t.tabsContract;exports.textareaContract=t.textareaContract;exports.toastContract=t.toastContract;exports.tooltipContract=t.tooltipContract;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./errors.cjs"),r=require("./Slot-CLNJSabn.cjs"),t=require("./table-THh0Ixxd.cjs");exports.VhyxUIError=o.VhyxUIError;exports.VhyxUIErrorCode=o.VhyxUIErrorCode;exports.Slot=r.Slot;exports.mergeProps=r.mergeProps;exports.mergeRefs=r.mergeRefs;exports.accordionContract=t.accordionContract;exports.alertContract=t.alertContract;exports.badgeContract=t.badgeContract;exports.breadcrumbContract=t.breadcrumbContract;exports.buttonContract=t.buttonContract;exports.cardContract=t.cardContract;exports.checkboxContract=t.checkboxContract;exports.dialogContract=t.dialogContract;exports.drawerContract=t.drawerContract;exports.formContract=t.formContract;exports.inputContract=t.inputContract;exports.paginationContract=t.paginationContract;exports.popoverContract=t.popoverContract;exports.progressContract=t.progressContract;exports.radioContract=t.radioContract;exports.selectContract=t.selectContract;exports.separatorContract=t.separatorContract;exports.spinnerContract=t.spinnerContract;exports.switchContract=t.switchContract;exports.tableContract=t.tableContract;exports.tabsContract=t.tabsContract;exports.textareaContract=t.textareaContract;exports.toastContract=t.toastContract;exports.tooltipContract=t.tooltipContract;
package/dist/index.d.ts CHANGED
@@ -3,6 +3,16 @@ import { ComponentType as ContractComponentType } from '@vhyxseal/core';
3
3
  import { default as default_2 } from 'react';
4
4
  import { SafetyLevel } from '@vhyxseal/core';
5
5
 
6
+ /**
7
+ * Default VhyxSeal contract template for the Accordion component.
8
+ *
9
+ * Expanding or collapsing a section only changes what is visible — agents can
10
+ * toggle freely to read hidden content. Instance id is injected at render time.
11
+ */
12
+ export declare const accordionContract: Readonly<Omit<ComponentContract, "id"> & {
13
+ readonly fingerprint: string;
14
+ }>;
15
+
6
16
  /**
7
17
  * Default VhyxSeal contract template for the Alert component.
8
18
  *
@@ -277,6 +287,16 @@ export declare const switchContract: Readonly<Omit<ComponentContract, "id"> & {
277
287
  readonly fingerprint: string;
278
288
  }>;
279
289
 
290
+ /**
291
+ * Default VhyxSeal contract template for the Table component.
292
+ *
293
+ * Tables are read-only structured data — the most valuable thing for an agent
294
+ * to read reliably. Instance id is injected at render time.
295
+ */
296
+ export declare const tableContract: Readonly<Omit<ComponentContract, "id"> & {
297
+ readonly fingerprint: string;
298
+ }>;
299
+
280
300
  /**
281
301
  * Default VhyxSeal contract template for the Tabs component.
282
302
  *
@@ -349,7 +369,9 @@ export declare enum VhyxUIErrorCode {
349
369
  VHYXUI_MISSING_TITLE = "VHYXUI_MISSING_TITLE",
350
370
  VHYXUI_INVALID_PROP = "VHYXUI_INVALID_PROP",
351
371
  VHYXUI_PROVIDER_MISSING = "VHYXUI_PROVIDER_MISSING",
352
- VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED"
372
+ VHYXUI_TOAST_LIMIT_EXCEEDED = "VHYXUI_TOAST_LIMIT_EXCEEDED",
373
+ VHYXUI_STRUCTURE_INVALID = "VHYXUI_STRUCTURE_INVALID",
374
+ VHYXUI_RUNTIME_INVARIANT_VIOLATION = "VHYXUI_RUNTIME_INVARIANT_VIOLATION"
353
375
  }
354
376
 
355
377
  /** Configuration object passed to the VhyxUIError constructor. */
package/dist/index.js CHANGED
@@ -1,32 +1,34 @@
1
1
  import { VhyxUIError as r, VhyxUIErrorCode as o } from "./errors.js";
2
- import { S as c, m as n, a as e } from "./Slot-PvMbF2q3.js";
3
- import { a as p, b as i, c as m, d, e as b, f as g, g as x, h as f, i as l, j as h, p as u, k, l as v, r as w, s as y, m as E, n as I, o as S, t as U, q as V, u as j, v as q } from "./pagination-BC8m1q01.js";
2
+ import { S as c, m as n, a as C } from "./Slot-PvMbF2q3.js";
3
+ import { a as p, b as i, c as d, d as m, e as b, f as x, g, h as l, i as f, j as h, k as u, p as w, l as k, m as v, r as y, s as E, n as I, o as S, q as U, t as V, u as j, v as q, w as P, x as R } from "./table-HKtt13kb.js";
4
4
  export {
5
5
  c as Slot,
6
6
  r as VhyxUIError,
7
7
  o as VhyxUIErrorCode,
8
- p as alertContract,
9
- i as badgeContract,
8
+ p as accordionContract,
9
+ i as alertContract,
10
+ d as badgeContract,
10
11
  m as breadcrumbContract,
11
- d as buttonContract,
12
- b as cardContract,
12
+ b as buttonContract,
13
+ x as cardContract,
13
14
  g as checkboxContract,
14
- x as dialogContract,
15
+ l as dialogContract,
15
16
  f as drawerContract,
16
- l as formContract,
17
- h as inputContract,
17
+ h as formContract,
18
+ u as inputContract,
18
19
  n as mergeProps,
19
- e as mergeRefs,
20
- u as paginationContract,
20
+ C as mergeRefs,
21
+ w as paginationContract,
21
22
  k as popoverContract,
22
23
  v as progressContract,
23
- w as radioContract,
24
- y as selectContract,
25
- E as separatorContract,
26
- I as spinnerContract,
27
- S as switchContract,
28
- U as tabsContract,
29
- V as textareaContract,
30
- j as toastContract,
31
- q as tooltipContract
24
+ y as radioContract,
25
+ E as selectContract,
26
+ I as separatorContract,
27
+ S as spinnerContract,
28
+ U as switchContract,
29
+ V as tableContract,
30
+ j as tabsContract,
31
+ q as textareaContract,
32
+ P as toastContract,
33
+ R as tooltipContract
32
34
  };
@@ -220,7 +220,7 @@ const s = e({
220
220
  requiresConfirmation: !1,
221
221
  destructive: !1,
222
222
  contractVersion: "0.0.1"
223
- }), b = e({
223
+ }), h = e({
224
224
  type: "display",
225
225
  intent: "display-content",
226
226
  description: "Displays grouped content in a visually distinct container",
@@ -233,7 +233,7 @@ const s = e({
233
233
  requiresConfirmation: !1,
234
234
  destructive: !1,
235
235
  contractVersion: "0.0.1"
236
- }), h = e({
236
+ }), b = e({
237
237
  type: "display",
238
238
  intent: "separate-content",
239
239
  description: "Visually or semantically separates adjacent content sections",
@@ -285,28 +285,56 @@ const s = e({
285
285
  requiresConfirmation: !1,
286
286
  destructive: !1,
287
287
  contractVersion: "0.0.1"
288
+ }), V = e({
289
+ type: "navigation",
290
+ intent: "toggle-section",
291
+ description: "Expands or collapses a section of content to reveal or hide it",
292
+ requires: [],
293
+ requiredPermissions: [],
294
+ consequence: "Shows or hides the section content. No data changes.",
295
+ affects: [],
296
+ reversible: !0,
297
+ safetyLevel: "low",
298
+ requiresConfirmation: !1,
299
+ destructive: !1,
300
+ contractVersion: "0.0.1"
301
+ }), L = e({
302
+ type: "display",
303
+ intent: "display-data",
304
+ description: "Displays structured rows and columns of data",
305
+ requires: [],
306
+ requiredPermissions: [],
307
+ consequence: "None — display only.",
308
+ affects: [],
309
+ reversible: !0,
310
+ safetyLevel: "low",
311
+ requiresConfirmation: !1,
312
+ destructive: !1,
313
+ contractVersion: "0.0.1"
288
314
  });
289
315
  export {
290
- f as a,
291
- d as b,
292
- w as c,
293
- s as d,
294
- b as e,
295
- a as f,
296
- y as g,
297
- m as h,
298
- l as i,
299
- r as j,
300
- g as k,
301
- p as l,
302
- h as m,
303
- v as n,
304
- c as o,
316
+ V as a,
317
+ f as b,
318
+ d as c,
319
+ w as d,
320
+ s as e,
321
+ h as f,
322
+ a as g,
323
+ y as h,
324
+ m as i,
325
+ l as j,
326
+ r as k,
327
+ g as l,
328
+ p as m,
329
+ b as n,
330
+ v as o,
305
331
  P as p,
306
- i as q,
332
+ c as q,
307
333
  o as r,
308
334
  n as s,
309
- C as t,
310
- u,
311
- q as v
335
+ L as t,
336
+ C as u,
337
+ i as v,
338
+ u as w,
339
+ q as x
312
340
  };
@@ -1 +1 @@
1
- "use strict";const e=require("@vhyxseal/core"),t=e.defineContractTemplate({type:"action",intent:"trigger-action",description:"Triggers an action or submits a form when activated by the user",requires:[],requiredPermissions:[],consequence:"Triggers the associated action",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),r=e.defineContractTemplate({type:"input",intent:"enter-text",description:"Accepts a text value entered by the user",requires:[],requiredPermissions:[],consequence:"Updates the field value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),n=e.defineContractTemplate({type:"input",intent:"enter-text",description:"Accepts multi-line text content entered by the user",requires:[],requiredPermissions:[],consequence:"Updates the multi-line field value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),s=e.defineContractTemplate({type:"input",intent:"select-option",description:"Allows the user to choose one option from a dropdown list",requires:[],requiredPermissions:[],consequence:"Updates the selected option value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),i=e.defineContractTemplate({type:"input",intent:"toggle-selection",description:"Toggles a boolean selection — checked, unchecked, or indeterminate",requires:[],requiredPermissions:[],consequence:"Updates the checked state in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),a=e.defineContractTemplate({type:"input",intent:"select-option",description:"Captures a single mutually exclusive selection from a set of radio options",requires:[],requiredPermissions:[],consequence:"Updates the selected radio value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),o=e.defineContractTemplate({type:"input",intent:"toggle-state",description:"Toggles a binary on/off state immediately upon interaction",requires:[],requiredPermissions:[],consequence:"Changes the boolean state of the controlled feature",affects:[],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),c=e.defineContractTemplate({type:"action",intent:"submit-form",description:"Collects field values and submits them to the server or handler",requires:[],requiredPermissions:[],consequence:"Sends form data to the configured handler — may create or update records",affects:["form"],reversible:!1,safetyLevel:"medium",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),l=e.defineContractTemplate({type:"display",intent:"notify",description:"Displays a transient notification message to the user",requires:[],requiredPermissions:[],consequence:"None — display only. Disappears after the configured duration.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),f=e.defineContractTemplate({type:"display",intent:"display-alert",description:"Displays a persistent contextual alert message to the user",requires:[],requiredPermissions:[],consequence:"None — display only. Persists until dismissed.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),d=e.defineContractTemplate({type:"display",intent:"display-status",description:"Displays a small status label, count, or categorical indicator",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),u=e.defineContractTemplate({type:"display",intent:"display-progress",description:"Displays the completion percentage of an ongoing operation",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),p=e.defineContractTemplate({type:"display",intent:"display-loading",description:"Indicates that an asynchronous operation is in progress",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),m=e.defineContractTemplate({type:"confirmation",intent:"open-dialog",description:"Opens a modal dialog overlay that interrupts the current workflow",requires:[],requiredPermissions:[],consequence:"Renders a blocking overlay — underlying page is inaccessible until dismissed",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),v=e.defineContractTemplate({type:"navigation",intent:"open-drawer",description:"Opens a slide-in panel from a screen edge for navigation or contextual content",requires:[],requiredPermissions:[],consequence:"Renders a side panel overlay — underlying page remains accessible",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),y=e.defineContractTemplate({type:"display",intent:"display-tooltip",description:"Shows supplementary information about a trigger element on hover or focus",requires:[],requiredPermissions:[],consequence:"None — display only. Hides on mouse leave, blur, or Escape.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),C=e.defineContractTemplate({type:"display",intent:"open-popover",description:"Opens a non-modal floating panel anchored to a trigger element",requires:[],requiredPermissions:[],consequence:"Renders a floating panel — underlying page remains fully interactive",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),q=e.defineContractTemplate({type:"display",intent:"display-content",description:"Displays grouped content in a visually distinct container",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),g=e.defineContractTemplate({type:"display",intent:"separate-content",description:"Visually or semantically separates adjacent content sections",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),b=e.defineContractTemplate({type:"navigation",intent:"navigate-tabs",description:"Switches between content panels by activating a tab trigger",requires:[],requiredPermissions:[],consequence:"Changes the active content panel — no data mutation",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),h=e.defineContractTemplate({type:"navigation",intent:"navigate-breadcrumb",description:"Displays the current page location in the site hierarchy with ancestor navigation links",requires:[],requiredPermissions:[],consequence:"Navigates to an ancestor page when a breadcrumb link is activated",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),w=e.defineContractTemplate({type:"navigation",intent:"navigate-page",description:"Navigates between pages of a paginated data set",requires:[],requiredPermissions:[],consequence:"Changes the visible page of the data set — no data mutation",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"});exports.alertContract=f;exports.badgeContract=d;exports.breadcrumbContract=h;exports.buttonContract=t;exports.cardContract=q;exports.checkboxContract=i;exports.dialogContract=m;exports.drawerContract=v;exports.formContract=c;exports.inputContract=r;exports.paginationContract=w;exports.popoverContract=C;exports.progressContract=u;exports.radioContract=a;exports.selectContract=s;exports.separatorContract=g;exports.spinnerContract=p;exports.switchContract=o;exports.tabsContract=b;exports.textareaContract=n;exports.toastContract=l;exports.tooltipContract=y;
1
+ "use strict";const e=require("@vhyxseal/core"),t=e.defineContractTemplate({type:"action",intent:"trigger-action",description:"Triggers an action or submits a form when activated by the user",requires:[],requiredPermissions:[],consequence:"Triggers the associated action",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),n=e.defineContractTemplate({type:"input",intent:"enter-text",description:"Accepts a text value entered by the user",requires:[],requiredPermissions:[],consequence:"Updates the field value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),r=e.defineContractTemplate({type:"input",intent:"enter-text",description:"Accepts multi-line text content entered by the user",requires:[],requiredPermissions:[],consequence:"Updates the multi-line field value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),s=e.defineContractTemplate({type:"input",intent:"select-option",description:"Allows the user to choose one option from a dropdown list",requires:[],requiredPermissions:[],consequence:"Updates the selected option value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),i=e.defineContractTemplate({type:"input",intent:"toggle-selection",description:"Toggles a boolean selection — checked, unchecked, or indeterminate",requires:[],requiredPermissions:[],consequence:"Updates the checked state in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),a=e.defineContractTemplate({type:"input",intent:"select-option",description:"Captures a single mutually exclusive selection from a set of radio options",requires:[],requiredPermissions:[],consequence:"Updates the selected radio value in the parent form context",affects:["form"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),o=e.defineContractTemplate({type:"input",intent:"toggle-state",description:"Toggles a binary on/off state immediately upon interaction",requires:[],requiredPermissions:[],consequence:"Changes the boolean state of the controlled feature",affects:[],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),c=e.defineContractTemplate({type:"action",intent:"submit-form",description:"Collects field values and submits them to the server or handler",requires:[],requiredPermissions:[],consequence:"Sends form data to the configured handler — may create or update records",affects:["form"],reversible:!1,safetyLevel:"medium",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),l=e.defineContractTemplate({type:"display",intent:"notify",description:"Displays a transient notification message to the user",requires:[],requiredPermissions:[],consequence:"None — display only. Disappears after the configured duration.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),f=e.defineContractTemplate({type:"display",intent:"display-alert",description:"Displays a persistent contextual alert message to the user",requires:[],requiredPermissions:[],consequence:"None — display only. Persists until dismissed.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),d=e.defineContractTemplate({type:"display",intent:"display-status",description:"Displays a small status label, count, or categorical indicator",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),u=e.defineContractTemplate({type:"display",intent:"display-progress",description:"Displays the completion percentage of an ongoing operation",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),p=e.defineContractTemplate({type:"display",intent:"display-loading",description:"Indicates that an asynchronous operation is in progress",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),m=e.defineContractTemplate({type:"confirmation",intent:"open-dialog",description:"Opens a modal dialog overlay that interrupts the current workflow",requires:[],requiredPermissions:[],consequence:"Renders a blocking overlay — underlying page is inaccessible until dismissed",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),v=e.defineContractTemplate({type:"navigation",intent:"open-drawer",description:"Opens a slide-in panel from a screen edge for navigation or contextual content",requires:[],requiredPermissions:[],consequence:"Renders a side panel overlay — underlying page remains accessible",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),y=e.defineContractTemplate({type:"display",intent:"display-tooltip",description:"Shows supplementary information about a trigger element on hover or focus",requires:[],requiredPermissions:[],consequence:"None — display only. Hides on mouse leave, blur, or Escape.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),C=e.defineContractTemplate({type:"display",intent:"open-popover",description:"Opens a non-modal floating panel anchored to a trigger element",requires:[],requiredPermissions:[],consequence:"Renders a floating panel — underlying page remains fully interactive",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),q=e.defineContractTemplate({type:"display",intent:"display-content",description:"Displays grouped content in a visually distinct container",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),g=e.defineContractTemplate({type:"display",intent:"separate-content",description:"Visually or semantically separates adjacent content sections",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!1,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),b=e.defineContractTemplate({type:"navigation",intent:"navigate-tabs",description:"Switches between content panels by activating a tab trigger",requires:[],requiredPermissions:[],consequence:"Changes the active content panel — no data mutation",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),h=e.defineContractTemplate({type:"navigation",intent:"navigate-breadcrumb",description:"Displays the current page location in the site hierarchy with ancestor navigation links",requires:[],requiredPermissions:[],consequence:"Navigates to an ancestor page when a breadcrumb link is activated",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),w=e.defineContractTemplate({type:"navigation",intent:"navigate-page",description:"Navigates between pages of a paginated data set",requires:[],requiredPermissions:[],consequence:"Changes the visible page of the data set — no data mutation",affects:["view"],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),T=e.defineContractTemplate({type:"navigation",intent:"toggle-section",description:"Expands or collapses a section of content to reveal or hide it",requires:[],requiredPermissions:[],consequence:"Shows or hides the section content. No data changes.",affects:[],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"}),P=e.defineContractTemplate({type:"display",intent:"display-data",description:"Displays structured rows and columns of data",requires:[],requiredPermissions:[],consequence:"None — display only.",affects:[],reversible:!0,safetyLevel:"low",requiresConfirmation:!1,destructive:!1,contractVersion:"0.0.1"});exports.accordionContract=T;exports.alertContract=f;exports.badgeContract=d;exports.breadcrumbContract=h;exports.buttonContract=t;exports.cardContract=q;exports.checkboxContract=i;exports.dialogContract=m;exports.drawerContract=v;exports.formContract=c;exports.inputContract=n;exports.paginationContract=w;exports.popoverContract=C;exports.progressContract=u;exports.radioContract=a;exports.selectContract=s;exports.separatorContract=g;exports.spinnerContract=p;exports.switchContract=o;exports.tableContract=P;exports.tabsContract=b;exports.textareaContract=r;exports.toastContract=l;exports.tooltipContract=y;
package/package.json CHANGED
@@ -1,9 +1,27 @@
1
1
  {
2
2
  "name": "@vhyxui/core",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.2.0-alpha",
4
+ "private": false,
4
5
  "description": "VhyxUI core — shared types, contracts, slot, and error infrastructure",
6
+ "keywords": [
7
+ "vhyxui",
8
+ "vhyxara",
9
+ "contracts",
10
+ "slot"
11
+ ],
5
12
  "license": "MIT",
6
- "private": false,
13
+ "homepage": "https://vhyxui.com",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/vhyxara/vhyxUI.git",
17
+ "directory": "packages/core"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/vhyxara/vhyxUI/issues"
21
+ },
22
+ "engines": {
23
+ "node": ">=20.19"
24
+ },
7
25
  "type": "module",
8
26
  "main": "./dist/index.cjs",
9
27
  "module": "./dist/index.js",
@@ -39,7 +57,7 @@
39
57
  "dist"
40
58
  ],
41
59
  "dependencies": {
42
- "@vhyxseal/core": "1.0.0-rc.2"
60
+ "@vhyxseal/core": "1.0.0-rc.3"
43
61
  },
44
62
  "peerDependencies": {
45
63
  "react": ">=18",