cortena-ui 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -0
- package/dist/index.d.ts +436 -15
- package/dist/index.js +4316 -2058
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/a2ui/catalogue-doc.ts +218 -0
- package/src/a2ui/catalogue.ts +950 -0
- package/src/a2ui/index.ts +73 -0
- package/src/a2ui/message.ts +590 -0
- package/src/a2ui/renderer.tsx +438 -0
- package/src/a2ui/views.tsx +1113 -0
- package/src/index.ts +2 -0
package/README.md
CHANGED
|
@@ -26,6 +26,55 @@ Consuming it: `../../CONSUMING.md`, section "cortena-ui".
|
|
|
26
26
|
check in light, dark and system-dark; add an entry with every variant and
|
|
27
27
|
size when adding a component.
|
|
28
28
|
|
|
29
|
+
## A2UI: the vocabulary agents draw with
|
|
30
|
+
|
|
31
|
+
`src/a2ui/` is Layer 1 of `cortena-docs/cortenaUI&Design/05-agent-ui.md`: an
|
|
32
|
+
[A2UI](https://a2ui.org) catalogue bound to this package, plus a React renderer.
|
|
33
|
+
An agent emits an A2UI payload, it arrives as an AG-UI `CUSTOM` event, and
|
|
34
|
+
`<A2UIRenderer>` draws it from the catalogue and sends user events back.
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
import { A2UIRenderer, defaultCatalogue } from "cortena-ui";
|
|
38
|
+
|
|
39
|
+
<A2UIRenderer
|
|
40
|
+
message={customEvent.value} // message, message[], or JSONL text
|
|
41
|
+
catalogue={defaultCatalogue} // 27 components; see `pnpm a2ui:catalogue`
|
|
42
|
+
onAction={(action) => run.send(action)} // { surfaceId, componentId, name, payload }
|
|
43
|
+
resolveDataSource={(id) => sources[id]} // server-backed DataTable handles
|
|
44
|
+
/>;
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Two dialects fold onto the same surfaces: **v0.9** (`createSurface`,
|
|
48
|
+
`updateComponents`, `updateDataModel`) and the **v0.8** form core already speaks
|
|
49
|
+
(`beginRendering`, `surfaceUpdate`, `dataModelUpdate`), which is what the
|
|
50
|
+
`canvas` tool pushes as JSON lines. Later messages fold onto earlier ones, so a
|
|
51
|
+
push stream can be accumulated and handed to the renderer whole.
|
|
52
|
+
|
|
53
|
+
Safety is by construction: a node is a catalogue name plus properties that must
|
|
54
|
+
pass that entry's zod schema. An unknown component, an invalid property, a
|
|
55
|
+
missing child id or a `javascript:` URL each render an inline error card; no part
|
|
56
|
+
of a payload ever becomes markup.
|
|
57
|
+
|
|
58
|
+
`pnpm a2ui:catalogue` writes `dist-a2ui/catalogue.json` and `.md` (gitignored,
|
|
59
|
+
derived). DESIGN-34 generates the core system-prompt section from the JSON, so
|
|
60
|
+
the prompt and the renderer cannot describe different components.
|
|
61
|
+
|
|
62
|
+
### Why the renderer is written rather than adopted
|
|
63
|
+
|
|
64
|
+
`@a2ui/react` 0.11.0 (Google, Apache-2.0) is a maintained v0.9 renderer and does
|
|
65
|
+
support host catalogues. It was evaluated at DESIGN-33 and not adopted:
|
|
66
|
+
|
|
67
|
+
| | |
|
|
68
|
+
| --- | --- |
|
|
69
|
+
| **zod major** | `@a2ui/web_core`'s binder reads zod 3 internals (`_def.typeName`, `_def.shape()`). This package's zod peer is `^3.25 \|\| ^4`; zod 4 has neither, so a catalogue authored with the consumer's zod 4 fails inside the binder. |
|
|
70
|
+
| **Dialect** | It splits `v0_8` and `v0_9` into separate entry points with separate catalogues, so neither reads both. Every A2UI payload already written for Cortena's native nodes would have to be rewritten before it rendered on the web. |
|
|
71
|
+
| **Weight and surface** | It pulls in `@a2ui/web_core` (3.8 MB unpacked), markdown-it, `@preact/signals-core` and date-fns, into a package that externalises everything and already renders markdown through react-markdown with a sanitize schema. `resolveDataSource` and `onAction` have no counterpart there, so it would be wrapped either way. |
|
|
72
|
+
|
|
73
|
+
What is kept is what makes interop work: the wire format is A2UI's, the emitted
|
|
74
|
+
action is shaped like A2UI's client-to-server `action`, and the catalogue is a
|
|
75
|
+
schema-per-component registry. Swapping the engine later is mechanical. Nothing
|
|
76
|
+
from `@a2ui/*` is installed, so `vitest.config.ts` has no entry for it.
|
|
77
|
+
|
|
29
78
|
## Commands
|
|
30
79
|
|
|
31
80
|
```bash
|
|
@@ -34,6 +83,7 @@ pnpm lint:design # no literals where a token exists; no dangling var()
|
|
|
34
83
|
pnpm build # dist/ via tsdown (ESM + d.ts); also runs on prepack
|
|
35
84
|
pnpm test # Vitest browser mode, chromium light + dark
|
|
36
85
|
pnpm guide # three-theme guide on a local Vite server
|
|
86
|
+
pnpm a2ui:catalogue # dist-a2ui/catalogue.json + .md from the A2UI catalogue
|
|
37
87
|
```
|
|
38
88
|
|
|
39
89
|
From the repo root the same are `pnpm ui:check`, `ui:build`, `ui:test`, `ui:guide`.
|
|
@@ -43,6 +93,7 @@ From the repo root the same are `pnpm ui:check`, `ui:build`, `ui:test`, `ui:guid
|
|
|
43
93
|
```
|
|
44
94
|
src/index.ts public surface; add an export per component
|
|
45
95
|
src/components/*.tsx one file per component, shadcn shape, Base UI primitives
|
|
96
|
+
src/a2ui/ A2UI catalogue, React renderer and doc generator
|
|
46
97
|
src/lib/cn.ts clsx + tailwind-merge
|
|
47
98
|
src/styles/index.css what consumers import after the tokens: animation
|
|
48
99
|
utilities and the Base UI data-attribute variants
|
package/dist/index.d.ts
CHANGED
|
@@ -1,37 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ClassValue } from "clsx";
|
|
3
|
+
import { z } from "zod";
|
|
3
4
|
import * as React$1 from "react";
|
|
4
5
|
import { ReactNode } from "react";
|
|
5
|
-
import { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, ComposedChart, Funnel, FunnelChart, LabelList, Legend as RechartsLegend, LegendPayload, LegendProps, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, ReferenceLine, ResponsiveContainer, Scatter, ScatterChart, Tooltip as RechartsTooltip, TooltipContentProps as TooltipContentProps$1, TooltipProps, XAxis, YAxis } from "recharts";
|
|
6
|
-
import { Button as Button$1 } from "@base-ui/react/button";
|
|
7
6
|
import { VariantProps } from "class-variance-authority";
|
|
7
|
+
import { Button as Button$1 } from "@base-ui/react/button";
|
|
8
|
+
import { Area, AreaChart, Bar, BarChart, CartesianGrid, Cell, ComposedChart, Funnel, FunnelChart, LabelList, Legend as RechartsLegend, LegendPayload, LegendProps, Line, LineChart, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Radar, RadarChart, ReferenceLine, ResponsiveContainer, Scatter, ScatterChart, Tooltip as RechartsTooltip, TooltipContentProps as TooltipContentProps$1, TooltipProps, XAxis, YAxis } from "recharts";
|
|
9
|
+
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
8
10
|
import { Menu } from "@base-ui/react/menu";
|
|
9
11
|
import { Select as Select$1 } from "@base-ui/react/select";
|
|
10
12
|
import { Cell as Cell$2, Column, ColumnDef, ColumnHelper, ReactTable, Row, RowData, TableState } from "@tanstack/react-table";
|
|
11
|
-
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
12
|
-
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
13
|
-
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
14
13
|
import { DateRange, DayButtonProps, DayPickerProps } from "react-day-picker";
|
|
15
|
-
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
16
|
-
import { Command as Command$1 } from "cmdk";
|
|
17
|
-
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
18
14
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
19
|
-
import { Accept, DropzoneState, FileRejection } from "react-dropzone";
|
|
20
15
|
import { Field as Field$1 } from "@base-ui/react/field";
|
|
21
16
|
import { Fieldset as Fieldset$1 } from "@base-ui/react/fieldset";
|
|
22
|
-
import { ControllerProps, FieldError as FieldError$1, FieldPath, FieldValues, SubmitHandler, UseFormReturn, useForm } from "react-hook-form";
|
|
23
|
-
import { zodResolver } from "@hookform/resolvers/zod";
|
|
24
17
|
import { Components, Options } from "react-markdown";
|
|
25
18
|
import { Options as Options$1 } from "rehype-sanitize";
|
|
26
19
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
27
20
|
import { Radio } from "@base-ui/react/radio";
|
|
28
21
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
29
|
-
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
30
22
|
import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
31
|
-
import { DraggableAttributes, UniqueIdentifier } from "@dnd-kit/core";
|
|
32
|
-
import { arrayMove } from "@dnd-kit/sortable";
|
|
33
23
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
34
24
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
25
|
+
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
26
|
+
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
27
|
+
import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
|
|
28
|
+
import { Command as Command$1 } from "cmdk";
|
|
29
|
+
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
30
|
+
import { Accept, DropzoneState, FileRejection } from "react-dropzone";
|
|
31
|
+
import { ControllerProps, FieldError as FieldError$1, FieldPath, FieldValues, SubmitHandler, UseFormReturn, useForm } from "react-hook-form";
|
|
32
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
33
|
+
import { ScrollArea as ScrollArea$1 } from "@base-ui/react/scroll-area";
|
|
34
|
+
import { DraggableAttributes, UniqueIdentifier } from "@dnd-kit/core";
|
|
35
|
+
import { arrayMove } from "@dnd-kit/sortable";
|
|
35
36
|
import { Toast as Toast$1 } from "@base-ui/react/toast";
|
|
36
37
|
import { Tooltip as Tooltip$2 } from "@base-ui/react/tooltip";
|
|
37
38
|
//#region src/lib/cn.d.ts
|
|
@@ -41,6 +42,236 @@ import { Tooltip as Tooltip$2 } from "@base-ui/react/tooltip";
|
|
|
41
42
|
*/
|
|
42
43
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
43
44
|
//#endregion
|
|
45
|
+
//#region src/a2ui/message.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* A2UI message layer.
|
|
48
|
+
*
|
|
49
|
+
* The wire format cortena-ui accepts, and the fold from a stream of messages
|
|
50
|
+
* onto a set of surfaces. Deliberately free of React so it can be reused by a
|
|
51
|
+
* canvas host, a test fixture, or the catalogue doc generator.
|
|
52
|
+
*
|
|
53
|
+
* ## Two dialects, one fold
|
|
54
|
+
*
|
|
55
|
+
* **v0.9** is the current A2UI protocol (`createSurface`, `updateComponents`,
|
|
56
|
+
* `updateDataModel`, `deleteSurface`) and is what an agent should emit.
|
|
57
|
+
*
|
|
58
|
+
* **v0.8** is what Cortena already speaks: core bundles Google's A2UI Lit
|
|
59
|
+
* renderer at `src/canvas-host/a2ui/` and its `A2uiMessageProcessor` handles
|
|
60
|
+
* `beginRendering`, `surfaceUpdate`, `dataModelUpdate` and `deleteSurface`.
|
|
61
|
+
* The `canvas` agent tool pushes exactly those, as JSON lines, through
|
|
62
|
+
* `canvas.a2ui.pushJSONL`. Accepting both means one renderer serves the chat,
|
|
63
|
+
* the web canvas panel and every payload already written against the native
|
|
64
|
+
* nodes.
|
|
65
|
+
*
|
|
66
|
+
* ## Transport
|
|
67
|
+
*
|
|
68
|
+
* Per `05-agent-ui.md`, an A2UI block travels as an AG-UI `CUSTOM` event. The
|
|
69
|
+
* event value is a message, an array of messages, or the JSONL text the canvas
|
|
70
|
+
* tool sends; {@link parseA2UIMessages} takes all three.
|
|
71
|
+
*/
|
|
72
|
+
/** Surface id used when a message omits one, matching core's Lit processor. */
|
|
73
|
+
export declare const A2UI_DEFAULT_SURFACE_ID = "@default";
|
|
74
|
+
/** Protocol version this package speaks. */
|
|
75
|
+
export declare const A2UI_VERSION = "v0.9";
|
|
76
|
+
/** A reference to a value in the surface's data model, as a JSON pointer. */
|
|
77
|
+
interface A2UIDataBinding {
|
|
78
|
+
path: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A property value as an agent writes it: a literal, a data binding, or one of
|
|
82
|
+
* the v0.8 literal wrappers the Lit renderer accepts.
|
|
83
|
+
*/
|
|
84
|
+
type A2UIPropertyValue = string | number | boolean | null | A2UIDataBinding | {
|
|
85
|
+
literal: unknown;
|
|
86
|
+
} | {
|
|
87
|
+
literalString: string;
|
|
88
|
+
} | readonly A2UIPropertyValue[] | {
|
|
89
|
+
readonly [key: string]: unknown;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* A component's children. v0.9 uses a plain id array or a `{ componentId, path }`
|
|
93
|
+
* template; v0.8 wraps the same two in `explicitList` / `template`.
|
|
94
|
+
*/
|
|
95
|
+
type A2UIChildList = readonly string[] | {
|
|
96
|
+
componentId: string;
|
|
97
|
+
path: string;
|
|
98
|
+
} | {
|
|
99
|
+
explicitList: readonly string[];
|
|
100
|
+
} | {
|
|
101
|
+
template: {
|
|
102
|
+
componentId: string;
|
|
103
|
+
dataBinding: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
/** An action an agent attaches to an interactive property. */
|
|
107
|
+
type A2UIActionSpec = string | {
|
|
108
|
+
event: {
|
|
109
|
+
name: string;
|
|
110
|
+
context?: Record<string, unknown>;
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
name: string;
|
|
114
|
+
context?: Record<string, unknown>;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* One component in a surface.
|
|
118
|
+
*
|
|
119
|
+
* v0.9 is flat — `{ id, component: "Text", text: "hi" }` — and v0.8 wraps the
|
|
120
|
+
* properties under the type name — `{ id, component: { Text: { text: "hi" } } }`.
|
|
121
|
+
*/
|
|
122
|
+
interface A2UIComponentSpec {
|
|
123
|
+
id: string;
|
|
124
|
+
component: string | Record<string, Record<string, unknown>>;
|
|
125
|
+
children?: A2UIChildList;
|
|
126
|
+
/** v0.8 flex weight; carried through but not used for layout here. */
|
|
127
|
+
weight?: number | string;
|
|
128
|
+
[property: string]: unknown;
|
|
129
|
+
}
|
|
130
|
+
interface A2UICreateSurface {
|
|
131
|
+
surfaceId?: string;
|
|
132
|
+
catalogId?: string;
|
|
133
|
+
/** Not in the v0.9 schema; accepted so a single message can seed a surface. */
|
|
134
|
+
root?: string;
|
|
135
|
+
sendDataModel?: boolean;
|
|
136
|
+
}
|
|
137
|
+
interface A2UIUpdateComponents {
|
|
138
|
+
surfaceId?: string;
|
|
139
|
+
components: A2UIComponentSpec[];
|
|
140
|
+
root?: string;
|
|
141
|
+
}
|
|
142
|
+
interface A2UIUpdateDataModel {
|
|
143
|
+
surfaceId?: string;
|
|
144
|
+
path?: string;
|
|
145
|
+
value?: unknown;
|
|
146
|
+
/** v0.8 spelling of `value`. */
|
|
147
|
+
contents?: unknown;
|
|
148
|
+
}
|
|
149
|
+
interface A2UIBeginRendering {
|
|
150
|
+
surfaceId?: string;
|
|
151
|
+
root?: string;
|
|
152
|
+
styles?: Record<string, unknown>;
|
|
153
|
+
}
|
|
154
|
+
interface A2UIDeleteSurface {
|
|
155
|
+
surfaceId?: string;
|
|
156
|
+
}
|
|
157
|
+
/** One message on the wire. Exactly one operation key is read per message. */
|
|
158
|
+
interface A2UIMessage {
|
|
159
|
+
version?: string;
|
|
160
|
+
createSurface?: A2UICreateSurface;
|
|
161
|
+
updateComponents?: A2UIUpdateComponents;
|
|
162
|
+
updateDataModel?: A2UIUpdateDataModel;
|
|
163
|
+
deleteSurface?: A2UIDeleteSurface;
|
|
164
|
+
/** v0.8 */
|
|
165
|
+
beginRendering?: A2UIBeginRendering;
|
|
166
|
+
/** v0.8 */
|
|
167
|
+
surfaceUpdate?: A2UIUpdateComponents;
|
|
168
|
+
/** v0.8 */
|
|
169
|
+
dataModelUpdate?: A2UIUpdateDataModel;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Everything the renderer's `message` prop takes: one message, a list of them
|
|
173
|
+
* (the AG-UI `CUSTOM` payload), or JSONL / a JSON array as text (the canvas
|
|
174
|
+
* tool's `a2ui_push`).
|
|
175
|
+
*/
|
|
176
|
+
type A2UIMessageInput = A2UIMessage | readonly A2UIMessage[] | string | null | undefined;
|
|
177
|
+
/** A folded surface: what the renderer draws. */
|
|
178
|
+
interface A2UISurface {
|
|
179
|
+
id: string;
|
|
180
|
+
/** Id of the root component; `undefined` until a message names one. */
|
|
181
|
+
root: string | undefined;
|
|
182
|
+
components: ReadonlyMap<string, A2UIComponentSpec>;
|
|
183
|
+
dataModel: Record<string, unknown>;
|
|
184
|
+
styles: Record<string, unknown>;
|
|
185
|
+
}
|
|
186
|
+
interface A2UIFoldResult {
|
|
187
|
+
surfaces: A2UISurface[];
|
|
188
|
+
/** One line per malformed message; the renderer shows these in an error card. */
|
|
189
|
+
errors: string[];
|
|
190
|
+
}
|
|
191
|
+
/** True when a value is a `{ path }` data binding rather than a literal object. */
|
|
192
|
+
export declare function isDataBinding(value: unknown): value is A2UIDataBinding;
|
|
193
|
+
/**
|
|
194
|
+
* Parse whatever arrived into a message list.
|
|
195
|
+
*
|
|
196
|
+
* A string is tried as JSON first (an array or a single message) and then as
|
|
197
|
+
* JSONL, which is the form `canvas.a2ui.pushJSONL` sends. A line that does not
|
|
198
|
+
* parse is reported rather than dropped: silently rendering three of four
|
|
199
|
+
* pushed messages is the failure mode this returns errors for.
|
|
200
|
+
*/
|
|
201
|
+
export declare function parseA2UIMessages(input: A2UIMessageInput): {
|
|
202
|
+
messages: A2UIMessage[];
|
|
203
|
+
errors: string[];
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* Fold a message stream onto surfaces.
|
|
207
|
+
*
|
|
208
|
+
* Updates accumulate: a later `updateComponents` replaces the components it
|
|
209
|
+
* names and leaves the rest, and a later `updateDataModel` writes at its path
|
|
210
|
+
* only. That is what makes the JSONL push form work — the agent sends the
|
|
211
|
+
* shell, then the rows, then a correction, and each one folds onto the same
|
|
212
|
+
* surface.
|
|
213
|
+
*/
|
|
214
|
+
export declare function foldMessages(input: A2UIMessageInput): A2UIFoldResult;
|
|
215
|
+
/** Split a JSON pointer into its unescaped segments. */
|
|
216
|
+
export declare function pointerSegments(pointer: string): string[];
|
|
217
|
+
/** Resolve a possibly relative pointer against a data context. */
|
|
218
|
+
export declare function resolvePointer(path: string, contextPath: string): string;
|
|
219
|
+
/** Read a JSON pointer out of the data model. */
|
|
220
|
+
export declare function getAtPointer(model: unknown, pointer: string): unknown;
|
|
221
|
+
/**
|
|
222
|
+
* Write a JSON pointer into the data model, returning a new model.
|
|
223
|
+
*
|
|
224
|
+
* Immutable because the renderer keeps the model in React state: a mutation in
|
|
225
|
+
* place would not re-render, which is the kind of silent nothing-happens bug
|
|
226
|
+
* that is hard to see in a browser test.
|
|
227
|
+
*/
|
|
228
|
+
export declare function setAtPointer(model: Record<string, unknown>, pointer: string, value: unknown): Record<string, unknown>;
|
|
229
|
+
/** Normalise the children of a component spec into a single description. */
|
|
230
|
+
type A2UIChildren = {
|
|
231
|
+
kind: "list";
|
|
232
|
+
ids: readonly string[];
|
|
233
|
+
} | {
|
|
234
|
+
kind: "template";
|
|
235
|
+
componentId: string;
|
|
236
|
+
path: string;
|
|
237
|
+
} | {
|
|
238
|
+
kind: "none";
|
|
239
|
+
};
|
|
240
|
+
export declare function readChildren(spec: A2UIComponentSpec, properties: Record<string, unknown>): A2UIChildren;
|
|
241
|
+
/**
|
|
242
|
+
* Split a component spec into its type name and its raw (unresolved) properties,
|
|
243
|
+
* across both dialects. Returns `undefined` when the spec names no type.
|
|
244
|
+
*/
|
|
245
|
+
export declare function readComponent(spec: A2UIComponentSpec): {
|
|
246
|
+
name: string;
|
|
247
|
+
properties: Record<string, unknown>;
|
|
248
|
+
} | undefined;
|
|
249
|
+
/**
|
|
250
|
+
* Resolve one property value against the data model.
|
|
251
|
+
*
|
|
252
|
+
* `{ path }` reads the model, `{ literal }` / `{ literalString }` unwrap, and
|
|
253
|
+
* everything else is returned as written, recursing through arrays and objects
|
|
254
|
+
* so a binding nested inside a prop object still resolves.
|
|
255
|
+
*/
|
|
256
|
+
export declare function resolveValue(value: unknown, model: Record<string, unknown>, contextPath: string): unknown;
|
|
257
|
+
/** A user action leaving the renderer, shaped like A2UI's client-to-server action. */
|
|
258
|
+
interface A2UIAction {
|
|
259
|
+
surfaceId: string;
|
|
260
|
+
componentId: string;
|
|
261
|
+
name: string;
|
|
262
|
+
payload: Record<string, unknown>;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Normalise an action property into `{ name, context }`.
|
|
266
|
+
*
|
|
267
|
+
* Accepts v0.9's `{ event: { name, context } }`, the bare `{ name, context }`
|
|
268
|
+
* shape, and a plain string, which is what an agent writes most often.
|
|
269
|
+
*/
|
|
270
|
+
export declare function readAction(value: unknown): {
|
|
271
|
+
name: string;
|
|
272
|
+
context: Record<string, unknown>;
|
|
273
|
+
} | undefined;
|
|
274
|
+
//#endregion
|
|
44
275
|
//#region src/components/chart/types.d.ts
|
|
45
276
|
/**
|
|
46
277
|
* Chart types and the data shape each one expects.
|
|
@@ -841,6 +1072,196 @@ export declare function downloadCsv<Row extends RowData>(table: DataTableTable<R
|
|
|
841
1072
|
*/
|
|
842
1073
|
export declare function downloadExcel<Row extends RowData>(table: DataTableTable<Row>, fileName?: string, rows?: DataTableRow<Row>[]): Promise<void>;
|
|
843
1074
|
//#endregion
|
|
1075
|
+
//#region src/a2ui/views.d.ts
|
|
1076
|
+
/** A row in an agent-drawn table. Every value is opaque until a column reads it. */
|
|
1077
|
+
type A2UIRow = Record<string, unknown>;
|
|
1078
|
+
/** Where a node sits, carried into every action the view emits. */
|
|
1079
|
+
interface A2UINodeInfo {
|
|
1080
|
+
surfaceId: string;
|
|
1081
|
+
componentId: string;
|
|
1082
|
+
/** JSON pointer this node's relative bindings resolve against. */
|
|
1083
|
+
dataContextPath: string;
|
|
1084
|
+
}
|
|
1085
|
+
/** A normalised action attached to an interactive property. */
|
|
1086
|
+
interface A2UIResolvedAction {
|
|
1087
|
+
name: string;
|
|
1088
|
+
context?: Record<string, unknown>;
|
|
1089
|
+
}
|
|
1090
|
+
/** What every view receives. */
|
|
1091
|
+
interface A2UIViewProps<P> {
|
|
1092
|
+
props: P;
|
|
1093
|
+
node: A2UINodeInfo;
|
|
1094
|
+
/** Already-rendered child nodes, in the order the component listed them. */
|
|
1095
|
+
children: React$1.ReactNode[];
|
|
1096
|
+
/** The surface data model, for actions that report the whole form. */
|
|
1097
|
+
dataModel: Record<string, unknown>;
|
|
1098
|
+
/**
|
|
1099
|
+
* Send an action. `action` is what the agent attached to the property; when
|
|
1100
|
+
* it is absent the event still fires under `fallbackName` so a host can
|
|
1101
|
+
* observe interactions the agent did not ask for.
|
|
1102
|
+
*/
|
|
1103
|
+
emit: (action: A2UIResolvedAction | undefined, fallbackName: string, payload?: Record<string, unknown>) => void;
|
|
1104
|
+
/** Write a value back to the data model where this prop was bound. No-op for a literal. */
|
|
1105
|
+
writeBack: (property: string, value: unknown) => void;
|
|
1106
|
+
/** Resolve a `{ kind: "server", sourceId }` handle into a real data source. */
|
|
1107
|
+
resolveDataSource: (sourceId: string) => DataSource<A2UIRow> | undefined;
|
|
1108
|
+
/** Debounce applied to continuous inputs before they become actions. */
|
|
1109
|
+
debounceMs: number;
|
|
1110
|
+
}
|
|
1111
|
+
type A2UIView<P> = React$1.FC<A2UIViewProps<P>>;
|
|
1112
|
+
interface A2UIColumn {
|
|
1113
|
+
id: string;
|
|
1114
|
+
label?: string;
|
|
1115
|
+
align?: "start" | "center" | "end";
|
|
1116
|
+
filter?: "faceted" | "text";
|
|
1117
|
+
width?: number;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Where a table's rows come from.
|
|
1121
|
+
*
|
|
1122
|
+
* `client` carries the rows inline, which suits a short result an agent
|
|
1123
|
+
* already has. `server` carries a handle instead: the agent obtains a
|
|
1124
|
+
* `sourceId` from a tool and the host resolves it through
|
|
1125
|
+
* `resolveDataSource`, so search, sort and paging run on the backend and the
|
|
1126
|
+
* agent never has to put ten thousand rows in a message.
|
|
1127
|
+
*/
|
|
1128
|
+
type A2UITableSource = {
|
|
1129
|
+
kind: "client";
|
|
1130
|
+
rows: A2UIRow[];
|
|
1131
|
+
} | {
|
|
1132
|
+
kind: "server";
|
|
1133
|
+
sourceId: string;
|
|
1134
|
+
};
|
|
1135
|
+
/**
|
|
1136
|
+
* What the renderer draws instead of a component it cannot draw.
|
|
1137
|
+
*
|
|
1138
|
+
* Never raw markup and never the offending payload as HTML: the detail is set
|
|
1139
|
+
* as text, so a malformed message cannot inject anything. This is the
|
|
1140
|
+
* "fallback: an error card on malformed payloads" of `05-agent-ui.md`.
|
|
1141
|
+
*/
|
|
1142
|
+
export declare function A2UIErrorCard({ title, detail, componentId }: {
|
|
1143
|
+
title: string;
|
|
1144
|
+
detail?: string;
|
|
1145
|
+
componentId?: string;
|
|
1146
|
+
}): React$1.JSX.Element;
|
|
1147
|
+
//#endregion
|
|
1148
|
+
//#region src/a2ui/catalogue.d.ts
|
|
1149
|
+
/** The five families the doc and the prompt group components by. */
|
|
1150
|
+
type A2UIGroup = "layout" | "text" | "input" | "feedback" | "data";
|
|
1151
|
+
/** A ready-to-render example: the components, plus any data model they bind to. */
|
|
1152
|
+
interface A2UIExample {
|
|
1153
|
+
/** Components for this entry. The first is the one being demonstrated. */
|
|
1154
|
+
components: A2UIComponentSpec[];
|
|
1155
|
+
/** Seed data for `{ path }` bindings used by the example. */
|
|
1156
|
+
data?: Record<string, unknown>;
|
|
1157
|
+
}
|
|
1158
|
+
interface A2UICatalogueEntry<P = unknown> {
|
|
1159
|
+
/** The name an agent writes in `component`. */
|
|
1160
|
+
name: string;
|
|
1161
|
+
group: A2UIGroup;
|
|
1162
|
+
/** One sentence, used verbatim in the generated prompt section. */
|
|
1163
|
+
summary: string;
|
|
1164
|
+
/** Schema of the resolved properties. */
|
|
1165
|
+
props: z.ZodType<P>;
|
|
1166
|
+
/** Event names this component can raise through `onAction`. */
|
|
1167
|
+
events: readonly string[];
|
|
1168
|
+
/** `many` takes a `children` list; `none` ignores one. */
|
|
1169
|
+
children: "none" | "many";
|
|
1170
|
+
example: A2UIExample;
|
|
1171
|
+
view: A2UIView<P>;
|
|
1172
|
+
}
|
|
1173
|
+
type A2UICatalogue = Readonly<Record<string, A2UICatalogueEntry<never>>>;
|
|
1174
|
+
/**
|
|
1175
|
+
* The catalogue an agent draws from, and the renderer's default.
|
|
1176
|
+
*
|
|
1177
|
+
* A host may narrow it (hand the renderer a subset) but should not widen it
|
|
1178
|
+
* with components the prompt does not describe: an agent can only usefully
|
|
1179
|
+
* emit what `catalogue-doc.ts` told it about.
|
|
1180
|
+
*/
|
|
1181
|
+
export declare const defaultCatalogue: A2UICatalogue;
|
|
1182
|
+
/** Catalogue id an agent may echo in `createSurface.catalogId`. */
|
|
1183
|
+
export declare const A2UI_CATALOGUE_ID = "https://cortena.ai/a2ui/catalogues/cortena-ui/v1.json";
|
|
1184
|
+
/** Every component name in the catalogue, sorted. */
|
|
1185
|
+
export declare function catalogueNames(catalogue?: A2UICatalogue): string[];
|
|
1186
|
+
//#endregion
|
|
1187
|
+
//#region src/a2ui/catalogue-doc.d.ts
|
|
1188
|
+
/** A JSON Schema object, as far as this module cares. */
|
|
1189
|
+
type JsonSchema = Record<string, unknown>;
|
|
1190
|
+
interface A2UIComponentDoc {
|
|
1191
|
+
name: string;
|
|
1192
|
+
group: A2UIGroup;
|
|
1193
|
+
summary: string;
|
|
1194
|
+
/** Whether the component takes a `children` list. */
|
|
1195
|
+
children: "none" | "many";
|
|
1196
|
+
/** Event names the component raises through `onAction`. */
|
|
1197
|
+
events: string[];
|
|
1198
|
+
/** JSON Schema of the resolved properties, derived from the zod schema. */
|
|
1199
|
+
props: JsonSchema;
|
|
1200
|
+
/** Property names that must be present. */
|
|
1201
|
+
required: string[];
|
|
1202
|
+
/** A complete, renderable example: the components and any data they bind to. */
|
|
1203
|
+
example: {
|
|
1204
|
+
components: A2UIComponentSpec[];
|
|
1205
|
+
data?: Record<string, unknown>;
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
interface A2UICatalogueDoc {
|
|
1209
|
+
catalogueId: string;
|
|
1210
|
+
protocol: string;
|
|
1211
|
+
generator: string;
|
|
1212
|
+
components: A2UIComponentDoc[];
|
|
1213
|
+
}
|
|
1214
|
+
/** Build the machine-readable catalogue document. */
|
|
1215
|
+
export declare function buildCatalogueDoc(catalogue?: A2UICatalogue): A2UICatalogueDoc;
|
|
1216
|
+
/**
|
|
1217
|
+
* Render the catalogue document as markdown.
|
|
1218
|
+
*
|
|
1219
|
+
* The output is written to be pasted into a system prompt: one table per
|
|
1220
|
+
* component listing every property with its type, whether it is required and
|
|
1221
|
+
* what it means, then a fenced example an agent can copy.
|
|
1222
|
+
*/
|
|
1223
|
+
export declare function catalogueMarkdown(doc?: A2UICatalogueDoc): string;
|
|
1224
|
+
/** Turn an entry's example into the messages an agent would actually send. */
|
|
1225
|
+
export declare function exampleMessages(component: A2UIComponentDoc): unknown[];
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region src/a2ui/renderer.d.ts
|
|
1228
|
+
interface A2UIRendererProps {
|
|
1229
|
+
/**
|
|
1230
|
+
* The payload. One message, the list an AG-UI `CUSTOM` event carries, or the
|
|
1231
|
+
* JSONL text `canvas.a2ui.pushJSONL` sends. Later messages fold onto earlier
|
|
1232
|
+
* ones, so a push stream can be accumulated by the host and handed here whole.
|
|
1233
|
+
*/
|
|
1234
|
+
message: A2UIMessageInput;
|
|
1235
|
+
/** The component vocabulary. Defaults to the whole cortena-ui catalogue. */
|
|
1236
|
+
catalogue?: A2UICatalogue;
|
|
1237
|
+
/** Receives every user event, shaped like A2UI's client-to-server action. */
|
|
1238
|
+
onAction?: (action: A2UIAction) => void;
|
|
1239
|
+
/**
|
|
1240
|
+
* Resolves a `{ kind: "server", sourceId }` table handle into a real data
|
|
1241
|
+
* source. Without it, a server table renders an error card rather than an
|
|
1242
|
+
* empty one, because a silently empty table reads as "no results".
|
|
1243
|
+
*/
|
|
1244
|
+
resolveDataSource?: (sourceId: string) => DataSource<A2UIRow> | undefined;
|
|
1245
|
+
/** Render only this surface. Default: every surface, in arrival order. */
|
|
1246
|
+
surfaceId?: string;
|
|
1247
|
+
/** Debounce before a continuous input becomes an action. @default 300 */
|
|
1248
|
+
debounceMs?: number;
|
|
1249
|
+
className?: string;
|
|
1250
|
+
}
|
|
1251
|
+
/**
|
|
1252
|
+
* A2UIRenderer — draws A2UI messages through cortena-ui.
|
|
1253
|
+
*
|
|
1254
|
+
* ```tsx
|
|
1255
|
+
* <A2UIRenderer
|
|
1256
|
+
* message={customEvent.value}
|
|
1257
|
+
* catalogue={defaultCatalogue}
|
|
1258
|
+
* onAction={(action) => agent.send(action)}
|
|
1259
|
+
* resolveDataSource={(id) => sources[id]}
|
|
1260
|
+
* />
|
|
1261
|
+
* ```
|
|
1262
|
+
*/
|
|
1263
|
+
export declare function A2UIRenderer({ message, catalogue, onAction, resolveDataSource, surfaceId, debounceMs, className }: A2UIRendererProps): React$1.JSX.Element;
|
|
1264
|
+
//#endregion
|
|
844
1265
|
//#region src/components/accordion.d.ts
|
|
845
1266
|
/**
|
|
846
1267
|
* Accordion.
|
|
@@ -2059,5 +2480,5 @@ export declare function themeFromBackground(background: unknown): ResolvedCorten
|
|
|
2059
2480
|
export declare function themeFromMessage(data: unknown): CortenaTheme | null;
|
|
2060
2481
|
export declare function useCortenaTheme(options?: UseCortenaThemeOptions): UseCortenaThemeResult;
|
|
2061
2482
|
//#endregion
|
|
2062
|
-
export { type Accept, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertIcon, type AlertProps, AlertTitle, Area, AreaChart, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Bar, BarChart, Button, ButtonLink, type ButtonLinkProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, CartesianGrid, Cell, Chart, type ChartConfig, ChartContainer, type ChartContainerProps, type ChartDataFor, type ChartDay, ChartEmpty, type ChartEngine, ChartError, ChartLegend, ChartLegendContent, type ChartLegendContentProps, ChartLoading, type ChartPoint, type ChartProps, type ChartRenderer, type ChartRow, type ChartScale, type ChartScales, type ChartSeries, type ChartSlice, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTree, type ChartType, Checkbox, type CheckboxProps, Chip, type ChipProps, type ClientSource, type CodeRendererProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChips, type ComboboxChipsProps, ComboboxClear, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposedChart, type CortenaTheme, type CortenaThemeMessage, type DataSource, DataTable, type DataTableCell, type DataTableColumn, type DataTableColumnDef, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableColumnMeta, type DataTableEditable, type DataTableEditingCell, DataTableExportMenu, type DataTableExportMenuProps, DataTableFacetedFilter, type DataTableFacetedFilterOption, type DataTableFacetedFilterProps, type DataTableFeatures, type DataTableInstance, DataTablePagination, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRow, type DataTableState, type DataTableTable, DataTableToolbar, type DataTableToolbarProps, DataTableView, DataTableViewOptions, type DataTableViewOptionsProps, type DataTableViewProps, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, Dropzone, type DropzoneProps, type DropzoneState, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ExportCell, type ExportSheet, Field, FieldContent, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorItem, type FieldErrorProps, FieldGroup, FieldLabel, type FieldLabelProps, type FieldProps, Fieldset, FieldsetLegend, type FieldsetLegendProps, type FieldsetProps, FileList, type FileListProps, type FileRejection, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, Funnel, FunnelChart, Input, type InputProps, Kbd, Label, LabelList, type LabelProps, Line, LineChart, LoadingSkeleton, type LoadingSkeletonPreset, type LoadingSkeletonProps, Markdown, type Components as MarkdownComponents, type MarkdownProps, type NivoTheme, PageHeader, type PageHeaderProps, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, Radar, RadarChart, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RechartsLegend, RechartsTooltip, ReferenceLine, type ResolvedCortenaTheme, ResponsiveContainer, Scatter, ScatterChart, ScrollArea, type ScrollAreaProps, ScrollBar, SectionCard, type SectionCardProps, Segmented, type SegmentedOption, type SegmentedProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, type ServerSource, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortableHandle, type SortableHandleProps, SortableList, type SortableListProps, type SortableRenderState, Spinner, type SpinnerProps, StatusDot, type StatusDotProps, type StatusDotTone, type SubmitHandler, Switch, type SwitchProps, type TableQuery, type TableResult, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, type ToastProps, Toaster, type ToasterProps, Toolbar, ToolbarEnd, type ToolbarProps, ToolbarSeparator, ToolbarStart, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, type UseCortenaThemeOptions, type UseCortenaThemeResult, type UseDataTableOptions, type UseFormFieldReturn, type UseFormReturn, XAxis, YAxis, alertVariants, arrayMove, badgeVariants, buttonVariants, chipVariants, fieldVariants, formatDateDefault, formatDateISO, formatDateLong, formatDateShort, formatFileSize, formatRelative, inputClassName, labelVariants, markdownSanitizeSchema, parseDateDefault, parseDateISO, sheetVariants, textareaClassName, toastVariants, useComboboxFilter, useForm, useFormField, useToast, zodResolver };
|
|
2483
|
+
export { type A2UIAction, type A2UIActionSpec, type A2UIBeginRendering, type A2UICatalogue, type A2UICatalogueDoc, type A2UICatalogueEntry, type A2UIChildList, type A2UIChildren, type A2UIColumn, type A2UIComponentDoc, type A2UIComponentSpec, type A2UICreateSurface, type A2UIDataBinding, type A2UIDeleteSurface, type A2UIExample, type A2UIFoldResult, type A2UIGroup, type A2UIMessage, type A2UIMessageInput, type A2UINodeInfo, type A2UIPropertyValue, type A2UIRendererProps, type A2UIResolvedAction, type A2UIRow, type A2UISurface, type A2UITableSource, type A2UIUpdateComponents, type A2UIUpdateDataModel, type A2UIView, type A2UIViewProps, type Accept, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertIcon, type AlertProps, AlertTitle, Area, AreaChart, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Bar, BarChart, Button, ButtonLink, type ButtonLinkProps, type ButtonProps, Calendar, CalendarDayButton, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, CartesianGrid, Cell, Chart, type ChartConfig, ChartContainer, type ChartContainerProps, type ChartDataFor, type ChartDay, ChartEmpty, type ChartEngine, ChartError, ChartLegend, ChartLegendContent, type ChartLegendContentProps, ChartLoading, type ChartPoint, type ChartProps, type ChartRenderer, type ChartRow, type ChartScale, type ChartScales, type ChartSeries, type ChartSlice, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, type ChartTree, type ChartType, Checkbox, type CheckboxProps, Chip, type ChipProps, type ClientSource, type CodeRendererProps, Combobox, ComboboxChip, type ComboboxChipProps, ComboboxChips, type ComboboxChipsProps, ComboboxClear, ComboboxCollection, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, type ComboboxInputProps, ComboboxItem, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue, Command, CommandDialog, type CommandDialogProps, CommandEmpty, CommandGroup, CommandInput, CommandItem, type CommandItemProps, CommandList, CommandLoading, CommandSeparator, CommandShortcut, ComposedChart, type CortenaTheme, type CortenaThemeMessage, type DataSource, DataTable, type DataTableCell, type DataTableColumn, type DataTableColumnDef, DataTableColumnHeader, type DataTableColumnHeaderProps, type DataTableColumnMeta, type DataTableEditable, type DataTableEditingCell, DataTableExportMenu, type DataTableExportMenuProps, DataTableFacetedFilter, type DataTableFacetedFilterOption, type DataTableFacetedFilterProps, type DataTableFeatures, type DataTableInstance, DataTablePagination, type DataTablePaginationMode, type DataTablePaginationProps, type DataTableProps, type DataTableRow, type DataTableState, type DataTableTable, DataTableToolbar, type DataTableToolbarProps, DataTableView, DataTableViewOptions, type DataTableViewOptionsProps, type DataTableViewProps, DateField, type DateFieldProps, DatePicker, type DatePickerProps, DateRangePicker, type DateRangePickerProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, Dropzone, type DropzoneProps, type DropzoneState, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ExportCell, type ExportSheet, Field, FieldContent, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorItem, type FieldErrorProps, FieldGroup, FieldLabel, type FieldLabelProps, type FieldProps, Fieldset, FieldsetLegend, type FieldsetLegendProps, type FieldsetProps, FileList, type FileListProps, type FileRejection, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, Funnel, FunnelChart, Input, type InputProps, type JsonSchema, Kbd, Label, LabelList, type LabelProps, Line, LineChart, LoadingSkeleton, type LoadingSkeletonPreset, type LoadingSkeletonProps, Markdown, type Components as MarkdownComponents, type MarkdownProps, type NivoTheme, PageHeader, type PageHeaderProps, Pie, PieChart, PolarAngleAxis, PolarGrid, PolarRadiusAxis, Popover, PopoverClose, PopoverContent, type PopoverContentProps, PopoverDescription, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, type ProgressProps, ProgressTrack, ProgressValue, Radar, RadarChart, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, RechartsLegend, RechartsTooltip, ReferenceLine, type ResolvedCortenaTheme, ResponsiveContainer, Scatter, ScatterChart, ScrollArea, type ScrollAreaProps, ScrollBar, SectionCard, type SectionCardProps, Segmented, type SegmentedOption, type SegmentedProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, type ServerSource, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Skeleton, SortableHandle, type SortableHandleProps, SortableList, type SortableListProps, type SortableRenderState, Spinner, type SpinnerProps, StatusDot, type StatusDotProps, type StatusDotTone, type SubmitHandler, Switch, type SwitchProps, type TableQuery, type TableResult, Tabs, TabsContent, TabsIndicator, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, type ToastProps, Toaster, type ToasterProps, Toolbar, ToolbarEnd, type ToolbarProps, ToolbarSeparator, ToolbarStart, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, type UseCortenaThemeOptions, type UseCortenaThemeResult, type UseDataTableOptions, type UseFormFieldReturn, type UseFormReturn, XAxis, YAxis, alertVariants, arrayMove, badgeVariants, buttonVariants, chipVariants, fieldVariants, formatDateDefault, formatDateISO, formatDateLong, formatDateShort, formatFileSize, formatRelative, inputClassName, labelVariants, markdownSanitizeSchema, parseDateDefault, parseDateISO, sheetVariants, textareaClassName, toastVariants, useComboboxFilter, useForm, useFormField, useToast, zodResolver };
|
|
2063
2484
|
//# sourceMappingURL=index.d.ts.map
|