@tenerife.music/ui 4.0.0 → 5.0.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 +11 -362
- package/package.json +1 -1
- package/dist/Link-B8gB8LrX.d.cts +0 -78
- package/dist/Link-Dg9GiZzj.d.ts +0 -78
- package/dist/agent-contract/index.d.cts +0 -133
- package/dist/ai/index.d.cts +0 -202
- package/dist/colors-BRUYtnG-.d.cts +0 -298
- package/dist/colors-BRUYtnG-.d.ts +0 -298
- package/dist/engine/index.d.cts +0 -135
- package/dist/extensions/next/index.d.cts +0 -37
- package/dist/index-4rLh47Jk.d.cts +0 -1460
- package/dist/index-B9bPI2VR.d.cts +0 -4523
- package/dist/index-Cgj5md_p.d.ts +0 -4523
- package/dist/index-DzJQZ5GE.d.ts +0 -1460
- package/dist/index.d.cts +0 -11680
- package/dist/preset.d.cts +0 -21
- package/dist/safe-native-DQVUNMW7.d.cts +0 -32
- package/dist/safe-native-DQVUNMW7.d.ts +0 -32
- package/dist/styles.cjs +0 -2
- package/dist/styles.d.cts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/styles.mjs +0 -1
- package/dist/theme/index.d.cts +0 -368
- package/dist/tokens/index.d.cts +0 -4
- package/dist/types-BBXB5_Tj.d.ts +0 -407
- package/dist/types-BEG5B5HA.d.cts +0 -138
- package/dist/types-C9zHIyTu.d.ts +0 -80
- package/dist/types-CNgJi1zK.d.ts +0 -138
- package/dist/types-CeNHa-BU.d.cts +0 -12
- package/dist/types-CeNHa-BU.d.ts +0 -12
- package/dist/types-CoqbRddt.d.cts +0 -80
- package/dist/types-kjA4Koki.d.cts +0 -407
- package/dist/typography-BsoBDDcG.d.cts +0 -1216
- package/dist/typography-BsoBDDcG.d.ts +0 -1216
- package/dist/ui-node-union-BNt_iPQO.d.cts +0 -272
- package/dist/ui-node-union-BdALN0FB.d.ts +0 -272
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { R as Responsive, a as RadiusToken, S as ShadowToken, b as SpacingToken, C as ContainerMaxWidthToken, c as ResponsiveColor, d as ResponsiveRadius, e as ResponsiveSpace } from './index-4rLh47Jk.cjs';
|
|
2
|
-
import { S as SafeNativeProps } from './safe-native-DQVUNMW7.cjs';
|
|
3
|
-
|
|
4
|
-
type TypedUIValidationSeverity = "error" | "warning";
|
|
5
|
-
type TypedUIValidationCode = "authority_violation" | "deprecated_alias" | "forbidden_prop" | "invalid_children" | "invalid_native_prop" | "invalid_node" | "invalid_prop_value" | "invalid_root" | "unknown_component";
|
|
6
|
-
interface TypedUIValidationIssue {
|
|
7
|
-
code: TypedUIValidationCode;
|
|
8
|
-
message: string;
|
|
9
|
-
path: string;
|
|
10
|
-
canonicalRef: string;
|
|
11
|
-
severity?: TypedUIValidationSeverity;
|
|
12
|
-
category?: "authority" | "children" | "native" | "props" | "shape";
|
|
13
|
-
}
|
|
14
|
-
interface TypedUIValidationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
data?: TypedUISchema;
|
|
17
|
-
errors: TypedUIValidationIssue[];
|
|
18
|
-
warnings: TypedUIValidationIssue[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type IntentDslKeyword = "button" | "card" | "container" | "grid" | "heading" | "inline" | "link" | "page" | "section" | "stack" | "text";
|
|
22
|
-
type IntentDslSurfaceKind = "Button" | "Card" | "Container" | "Grid" | "Heading" | "Inline" | "Link" | "Section" | "Stack" | "Text";
|
|
23
|
-
type IntentDslSurfaceCategory = "component" | "layout" | "section";
|
|
24
|
-
type IntentDslValueType = "boolean" | "number" | "object" | "string";
|
|
25
|
-
interface IntentDslPropSpec {
|
|
26
|
-
required?: boolean;
|
|
27
|
-
type: IntentDslValueType;
|
|
28
|
-
dsl?: boolean;
|
|
29
|
-
semanticIntent?: string;
|
|
30
|
-
}
|
|
31
|
-
interface IntentDslGrammarEntry {
|
|
32
|
-
keyword: IntentDslKeyword;
|
|
33
|
-
kind?: IntentDslSurfaceKind;
|
|
34
|
-
category?: IntentDslSurfaceCategory;
|
|
35
|
-
allowsChildren: boolean;
|
|
36
|
-
allowedChildKinds: readonly IntentDslSurfaceKind[];
|
|
37
|
-
allowedProps: Record<string, IntentDslPropSpec>;
|
|
38
|
-
semanticIntent: string;
|
|
39
|
-
supportsIntentRoot?: boolean;
|
|
40
|
-
supportsTypedDslRoot?: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare const INTENT_DSL_GRAMMAR: Record<IntentDslKeyword, IntentDslGrammarEntry>;
|
|
43
|
-
declare const INTENT_DSL_KEYWORDS: readonly IntentDslKeyword[];
|
|
44
|
-
declare const DETERMINISTIC_INTENT_KIND_ALLOWLIST: readonly IntentDslSurfaceKind[];
|
|
45
|
-
declare const DETERMINISTIC_LAYOUT_SURFACE_ALLOWLIST: readonly IntentDslSurfaceKind[];
|
|
46
|
-
declare const DETERMINISTIC_INTENT_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
47
|
-
declare const DETERMINISTIC_TYPED_DSL_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
48
|
-
declare const INTENT_DSL_ALLOWED_PROP_KEYS_BY_KIND: Readonly<Record<IntentDslSurfaceKind, readonly string[]>>;
|
|
49
|
-
declare const INTENT_DSL_ALLOWED_CHILD_KINDS_BY_KIND: Readonly<Record<IntentDslSurfaceKind, readonly IntentDslSurfaceKind[]>>;
|
|
50
|
-
declare function getDslWritablePropNames(entry: IntentDslGrammarEntry): readonly string[];
|
|
51
|
-
|
|
52
|
-
declare const TYPED_UI_LAYOUT_KINDS: readonly IntentDslSurfaceKind[];
|
|
53
|
-
declare const TYPED_UI_TYPOGRAPHY_KINDS: readonly ["Heading", "Text"];
|
|
54
|
-
declare const TYPED_UI_ACTION_KINDS: readonly ["Button", "Link"];
|
|
55
|
-
declare const TYPED_UI_SURFACE_KINDS: readonly ["Card"];
|
|
56
|
-
declare const TYPED_UI_NODE_KINDS: readonly IntentDslSurfaceKind[];
|
|
57
|
-
declare const TYPED_UI_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
58
|
-
type TypedUILayoutKind = (typeof TYPED_UI_LAYOUT_KINDS)[number];
|
|
59
|
-
type TypedUITypographyKind = (typeof TYPED_UI_TYPOGRAPHY_KINDS)[number];
|
|
60
|
-
type TypedUIActionKind = (typeof TYPED_UI_ACTION_KINDS)[number];
|
|
61
|
-
type TypedUISurfaceKind = (typeof TYPED_UI_SURFACE_KINDS)[number];
|
|
62
|
-
type TypedUIKind = (typeof TYPED_UI_NODE_KINDS)[number];
|
|
63
|
-
type TypedUIRootKind = (typeof TYPED_UI_ROOT_KINDS)[number];
|
|
64
|
-
type TypedUIPrimitive = string | number | boolean | null;
|
|
65
|
-
type TypedUISerializable = TypedUIPrimitive | TypedUISerializable[] | TypedUIObject;
|
|
66
|
-
interface TypedUIObject {
|
|
67
|
-
[key: string]: TypedUISerializable;
|
|
68
|
-
}
|
|
69
|
-
type TypedUINativeProps = SafeNativeProps;
|
|
70
|
-
declare function isTypedUIKind(value: string): value is TypedUIKind;
|
|
71
|
-
declare function isTypedUIRootKind(value: string): value is TypedUIRootKind;
|
|
72
|
-
|
|
73
|
-
declare const UI_DSL_BUTTON_VARIANTS: readonly ["primary", "secondary", "accent", "outline", "ghost", "destructive"];
|
|
74
|
-
declare const UI_DSL_BUTTON_SIZES: readonly ["sm", "md", "lg"];
|
|
75
|
-
declare const UI_DSL_LINK_VARIANTS: readonly ["primary", "secondary", "accent", "outline", "ghost", "text", "destructive"];
|
|
76
|
-
declare const UI_DSL_LINK_SIZES: readonly ["sm", "md", "lg"];
|
|
77
|
-
declare const UI_DSL_HEADING_WEIGHTS: readonly ["normal", "medium", "semibold", "bold"];
|
|
78
|
-
declare const UI_DSL_HEADING_COLORS: readonly ["primary", "secondary"];
|
|
79
|
-
declare const UI_DSL_TEXT_AS: readonly ["span", "p", "label", "strong", "em"];
|
|
80
|
-
declare const UI_DSL_TEXT_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
81
|
-
declare const UI_DSL_TEXT_WEIGHTS: readonly ["normal", "medium", "semibold", "bold"];
|
|
82
|
-
declare const UI_DSL_TEXT_COLORS: readonly ["primary", "secondary", "tertiary", "muted", "inverse", "disabled", "success", "warning", "error", "info"];
|
|
83
|
-
declare const UI_DSL_TEXT_ROLES: readonly ["body", "meta", "caption", "label", "helper", "status", "inverse", "disabled"];
|
|
84
|
-
declare const UI_DSL_STACK_ALIGN: readonly ["start", "center", "end", "stretch"];
|
|
85
|
-
declare const UI_DSL_STACK_JUSTIFY: readonly ["start", "center", "end", "between"];
|
|
86
|
-
declare const UI_DSL_INLINE_ALIGN: readonly ["start", "center", "end", "baseline"];
|
|
87
|
-
declare const UI_DSL_GRID_ALIGN: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
88
|
-
declare const UI_DSL_GRID_JUSTIFY: readonly ["start", "center", "end", "between", "around", "evenly"];
|
|
89
|
-
declare const UI_DSL_GRID_FLOW: readonly ["row", "col", "dense", "row-dense", "col-dense"];
|
|
90
|
-
declare const UI_DSL_SECTION_AS: readonly ["section", "article", "div", "main", "aside", "header", "footer"];
|
|
91
|
-
declare const UI_DSL_HEADING_AS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
92
|
-
declare const UI_DSL_CARD_SIZES: readonly ["sm", "md", "lg"];
|
|
93
|
-
declare const UI_DSL_BUTTON_TYPES: readonly ["button", "submit", "reset"];
|
|
94
|
-
declare const UI_DSL_LINK_TARGETS: readonly ["_self", "_blank", "_parent", "_top"];
|
|
95
|
-
declare const UI_DSL_GRID_COLUMNS: readonly [1, 2, 3, 4, 5, 6, 12, "none"];
|
|
96
|
-
declare const UI_DSL_GRID_ROWS: readonly [1, 2, 3, 4, 5, 6, "none"];
|
|
97
|
-
declare const UI_DSL_CONTAINER_MAX_WIDTH: readonly ["sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "full"];
|
|
98
|
-
type UIDSLButtonVariant = (typeof UI_DSL_BUTTON_VARIANTS)[number];
|
|
99
|
-
type UIDSLButtonSize = (typeof UI_DSL_BUTTON_SIZES)[number];
|
|
100
|
-
type UIDSLLinkVariant = (typeof UI_DSL_LINK_VARIANTS)[number];
|
|
101
|
-
type UIDSLLinkSize = (typeof UI_DSL_LINK_SIZES)[number];
|
|
102
|
-
type UIDSLHeadingWeight = (typeof UI_DSL_HEADING_WEIGHTS)[number];
|
|
103
|
-
type UIDSLHeadingColor = (typeof UI_DSL_HEADING_COLORS)[number];
|
|
104
|
-
type UIDSLTextAs = (typeof UI_DSL_TEXT_AS)[number];
|
|
105
|
-
type UIDSLTextSize = (typeof UI_DSL_TEXT_SIZES)[number];
|
|
106
|
-
type UIDSLTextWeight = (typeof UI_DSL_TEXT_WEIGHTS)[number];
|
|
107
|
-
type UIDSLTextColor = (typeof UI_DSL_TEXT_COLORS)[number];
|
|
108
|
-
type UIDSLTextRole = (typeof UI_DSL_TEXT_ROLES)[number];
|
|
109
|
-
type UIDSLStackAlign = (typeof UI_DSL_STACK_ALIGN)[number];
|
|
110
|
-
type UIDSLStackJustify = (typeof UI_DSL_STACK_JUSTIFY)[number];
|
|
111
|
-
type UIDSLInlineAlign = (typeof UI_DSL_INLINE_ALIGN)[number];
|
|
112
|
-
type UIDSLGridAlign = (typeof UI_DSL_GRID_ALIGN)[number];
|
|
113
|
-
type UIDSLGridJustify = (typeof UI_DSL_GRID_JUSTIFY)[number];
|
|
114
|
-
type UIDSLGridFlow = (typeof UI_DSL_GRID_FLOW)[number];
|
|
115
|
-
type UIDSLSectionAs = (typeof UI_DSL_SECTION_AS)[number];
|
|
116
|
-
type UIDSLHeadingAs = (typeof UI_DSL_HEADING_AS)[number];
|
|
117
|
-
type UIDSLCardSize = (typeof UI_DSL_CARD_SIZES)[number];
|
|
118
|
-
type UIDSLButtonType = (typeof UI_DSL_BUTTON_TYPES)[number];
|
|
119
|
-
type UIDSLLinkTarget = (typeof UI_DSL_LINK_TARGETS)[number];
|
|
120
|
-
type UIDSLGridColumn = (typeof UI_DSL_GRID_COLUMNS)[number];
|
|
121
|
-
type UIDSLGridRow = (typeof UI_DSL_GRID_ROWS)[number];
|
|
122
|
-
type UIDSLContainerMaxWidth = (typeof UI_DSL_CONTAINER_MAX_WIDTH)[number];
|
|
123
|
-
type UIDSLResponsiveSpacing = ResponsiveSpace;
|
|
124
|
-
type UIDSLResponsiveRadius = ResponsiveRadius;
|
|
125
|
-
type UIDSLResponsiveColor = ResponsiveColor;
|
|
126
|
-
type UIDSLResponsive<T> = Responsive<T>;
|
|
127
|
-
interface TypedContainerNodeProps {
|
|
128
|
-
maxWidth?: Responsive<ContainerMaxWidthToken | SpacingToken>;
|
|
129
|
-
padding?: Responsive<SpacingToken>;
|
|
130
|
-
center?: boolean;
|
|
131
|
-
native?: TypedUINativeProps;
|
|
132
|
-
}
|
|
133
|
-
interface TypedStackNodeProps {
|
|
134
|
-
direction?: "row" | "column";
|
|
135
|
-
gap?: Responsive<SpacingToken>;
|
|
136
|
-
align?: UIDSLStackAlign;
|
|
137
|
-
justify?: UIDSLStackJustify;
|
|
138
|
-
wrap?: boolean;
|
|
139
|
-
native?: TypedUINativeProps;
|
|
140
|
-
}
|
|
141
|
-
interface TypedInlineNodeProps {
|
|
142
|
-
gap?: Responsive<SpacingToken>;
|
|
143
|
-
align?: UIDSLInlineAlign;
|
|
144
|
-
wrap?: boolean;
|
|
145
|
-
native?: TypedUINativeProps;
|
|
146
|
-
}
|
|
147
|
-
interface TypedGridNodeProps {
|
|
148
|
-
cols?: Responsive<UIDSLGridColumn>;
|
|
149
|
-
sm?: UIDSLGridColumn;
|
|
150
|
-
md?: UIDSLGridColumn;
|
|
151
|
-
lg?: UIDSLGridColumn;
|
|
152
|
-
xl?: UIDSLGridColumn;
|
|
153
|
-
"2xl"?: UIDSLGridColumn;
|
|
154
|
-
rows?: Responsive<UIDSLGridRow>;
|
|
155
|
-
gap?: Responsive<SpacingToken>;
|
|
156
|
-
flow?: UIDSLGridFlow;
|
|
157
|
-
align?: UIDSLGridAlign;
|
|
158
|
-
justify?: UIDSLGridJustify;
|
|
159
|
-
native?: TypedUINativeProps;
|
|
160
|
-
}
|
|
161
|
-
interface TypedSectionNodeProps {
|
|
162
|
-
spaceY?: Responsive<SpacingToken>;
|
|
163
|
-
spacing?: Responsive<SpacingToken>;
|
|
164
|
-
as?: UIDSLSectionAs;
|
|
165
|
-
native?: TypedUINativeProps;
|
|
166
|
-
}
|
|
167
|
-
interface TypedHeadingNodeProps {
|
|
168
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
169
|
-
weight?: UIDSLHeadingWeight;
|
|
170
|
-
color?: UIDSLHeadingColor;
|
|
171
|
-
as?: UIDSLHeadingAs;
|
|
172
|
-
text: string;
|
|
173
|
-
native?: TypedUINativeProps;
|
|
174
|
-
}
|
|
175
|
-
interface TypedTextNodeProps {
|
|
176
|
-
as?: UIDSLTextAs;
|
|
177
|
-
size?: UIDSLTextSize;
|
|
178
|
-
weight?: UIDSLTextWeight;
|
|
179
|
-
color?: UIDSLTextColor;
|
|
180
|
-
typographyRole?: UIDSLTextRole;
|
|
181
|
-
text: string;
|
|
182
|
-
native?: TypedUINativeProps;
|
|
183
|
-
}
|
|
184
|
-
interface TypedButtonNodeProps {
|
|
185
|
-
variant?: UIDSLButtonVariant;
|
|
186
|
-
size?: UIDSLButtonSize;
|
|
187
|
-
disabled?: boolean;
|
|
188
|
-
type?: UIDSLButtonType;
|
|
189
|
-
label: string;
|
|
190
|
-
native?: TypedUINativeProps;
|
|
191
|
-
}
|
|
192
|
-
interface TypedLinkNodeProps {
|
|
193
|
-
variant?: UIDSLLinkVariant;
|
|
194
|
-
size?: UIDSLLinkSize;
|
|
195
|
-
disabled?: boolean;
|
|
196
|
-
href: string;
|
|
197
|
-
target?: UIDSLLinkTarget;
|
|
198
|
-
rel?: string;
|
|
199
|
-
label: string;
|
|
200
|
-
native?: TypedUINativeProps;
|
|
201
|
-
}
|
|
202
|
-
interface TypedCardNodeProps {
|
|
203
|
-
size?: UIDSLCardSize;
|
|
204
|
-
radius?: Responsive<RadiusToken>;
|
|
205
|
-
shadow?: ShadowToken | "none";
|
|
206
|
-
p?: Responsive<SpacingToken>;
|
|
207
|
-
native?: TypedUINativeProps;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
interface TypedUINodeBase<TKind extends TypedUIKind, TProps> {
|
|
211
|
-
kind: TKind;
|
|
212
|
-
props: TProps;
|
|
213
|
-
}
|
|
214
|
-
interface TypedHeadingNode extends TypedUINodeBase<"Heading", TypedHeadingNodeProps> {
|
|
215
|
-
children?: never;
|
|
216
|
-
}
|
|
217
|
-
interface TypedTextNode extends TypedUINodeBase<"Text", TypedTextNodeProps> {
|
|
218
|
-
children?: never;
|
|
219
|
-
}
|
|
220
|
-
interface TypedButtonNode extends TypedUINodeBase<"Button", TypedButtonNodeProps> {
|
|
221
|
-
children?: never;
|
|
222
|
-
}
|
|
223
|
-
interface TypedLinkNode extends TypedUINodeBase<"Link", TypedLinkNodeProps> {
|
|
224
|
-
children?: never;
|
|
225
|
-
}
|
|
226
|
-
type TypedUITypographyNode = TypedHeadingNode | TypedTextNode;
|
|
227
|
-
type TypedUIActionNode = TypedButtonNode | TypedLinkNode;
|
|
228
|
-
type TypedUILeafNode = TypedUITypographyNode | TypedUIActionNode;
|
|
229
|
-
type TypedCardChildNode = TypedHeadingNode | TypedTextNode | TypedButtonNode | TypedLinkNode | TypedStackNode | TypedInlineNode | TypedGridNode | TypedSectionNode;
|
|
230
|
-
type TypedUILayoutChildNode = TypedCardChildNode | TypedCardNode;
|
|
231
|
-
interface TypedContainerNode extends TypedUINodeBase<"Container", TypedContainerNodeProps> {
|
|
232
|
-
children?: TypedUILayoutChildNode[];
|
|
233
|
-
}
|
|
234
|
-
interface TypedStackNode extends TypedUINodeBase<"Stack", TypedStackNodeProps> {
|
|
235
|
-
children?: TypedUILayoutChildNode[];
|
|
236
|
-
}
|
|
237
|
-
interface TypedInlineNode extends TypedUINodeBase<"Inline", TypedInlineNodeProps> {
|
|
238
|
-
children?: TypedUILayoutChildNode[];
|
|
239
|
-
}
|
|
240
|
-
interface TypedGridNode extends TypedUINodeBase<"Grid", TypedGridNodeProps> {
|
|
241
|
-
children?: TypedUILayoutChildNode[];
|
|
242
|
-
}
|
|
243
|
-
interface TypedSectionNode extends TypedUINodeBase<"Section", TypedSectionNodeProps> {
|
|
244
|
-
children?: TypedUILayoutChildNode[];
|
|
245
|
-
}
|
|
246
|
-
interface TypedCardNode extends TypedUINodeBase<"Card", TypedCardNodeProps> {
|
|
247
|
-
children?: TypedCardChildNode[];
|
|
248
|
-
}
|
|
249
|
-
type TypedUILayoutNode = TypedContainerNode | TypedStackNode | TypedInlineNode | TypedGridNode | TypedSectionNode;
|
|
250
|
-
type TypedUISurfaceNode = TypedCardNode;
|
|
251
|
-
type TypedUIContentNode = TypedUILeafNode | TypedUILayoutNode | TypedUISurfaceNode;
|
|
252
|
-
type TypedUINode = TypedUIContentNode;
|
|
253
|
-
type TypedUISchema = TypedContainerNode | TypedStackNode | TypedGridNode | TypedSectionNode | TypedCardNode;
|
|
254
|
-
type TypedUIKindToNode = {
|
|
255
|
-
Button: TypedButtonNode;
|
|
256
|
-
Card: TypedCardNode;
|
|
257
|
-
Container: TypedContainerNode;
|
|
258
|
-
Grid: TypedGridNode;
|
|
259
|
-
Heading: TypedHeadingNode;
|
|
260
|
-
Inline: TypedInlineNode;
|
|
261
|
-
Link: TypedLinkNode;
|
|
262
|
-
Section: TypedSectionNode;
|
|
263
|
-
Stack: TypedStackNode;
|
|
264
|
-
Text: TypedTextNode;
|
|
265
|
-
};
|
|
266
|
-
type TypedNodeByKind<TKind extends TypedUIKind> = TypedUIKindToNode[TKind];
|
|
267
|
-
type TypedNodeByLayoutKind<TKind extends TypedUILayoutKind> = TypedNodeByKind<TKind>;
|
|
268
|
-
type TypedNodeByTypographyKind<TKind extends TypedUITypographyKind> = TypedNodeByKind<TKind>;
|
|
269
|
-
type TypedNodeByActionKind<TKind extends TypedUIActionKind> = TypedNodeByKind<TKind>;
|
|
270
|
-
type TypedNodeBySurfaceKind<TKind extends TypedUISurfaceKind> = TypedNodeByKind<TKind>;
|
|
271
|
-
|
|
272
|
-
export { type TypedUIRootKind as $, type TypedUIValidationResult as A, type TypedButtonNode as B, type TypedCardNode as C, DETERMINISTIC_INTENT_KIND_ALLOWLIST as D, type TypedContainerNode as E, type TypedGridNode as F, type TypedHeadingNode as G, type TypedInlineNode as H, type IntentDslValueType as I, type TypedLinkNode as J, type TypedNodeByActionKind as K, type TypedNodeByLayoutKind as L, type TypedNodeBySurfaceKind as M, type TypedNodeByTypographyKind as N, type TypedSectionNode as O, type TypedStackNode as P, type TypedTextNode as Q, type TypedUIActionKind as R, type TypedUIActionNode as S, type TypedButtonNodeProps as T, type TypedUIContentNode as U, type TypedUILayoutKind as V, type TypedUILayoutNode as W, type TypedUILeafNode as X, type TypedUINativeProps as Y, type TypedUIObject as Z, type TypedUIPrimitive as _, type IntentDslKeyword as a, UI_DSL_TEXT_AS as a$, type TypedUISerializable as a0, type TypedUISurfaceKind as a1, type TypedUISurfaceNode as a2, type TypedUITypographyKind as a3, type TypedUITypographyNode as a4, type TypedUIValidationIssue as a5, type UIDSLButtonSize as a6, type UIDSLButtonType as a7, type UIDSLButtonVariant as a8, type UIDSLCardSize as a9, isTypedUIRootKind as aA, TYPED_UI_ACTION_KINDS as aB, TYPED_UI_LAYOUT_KINDS as aC, TYPED_UI_NODE_KINDS as aD, TYPED_UI_ROOT_KINDS as aE, TYPED_UI_SURFACE_KINDS as aF, TYPED_UI_TYPOGRAPHY_KINDS as aG, UI_DSL_BUTTON_SIZES as aH, UI_DSL_BUTTON_TYPES as aI, UI_DSL_BUTTON_VARIANTS as aJ, UI_DSL_CARD_SIZES as aK, UI_DSL_CONTAINER_MAX_WIDTH as aL, UI_DSL_GRID_ALIGN as aM, UI_DSL_GRID_COLUMNS as aN, UI_DSL_GRID_FLOW as aO, UI_DSL_GRID_JUSTIFY as aP, UI_DSL_GRID_ROWS as aQ, UI_DSL_HEADING_AS as aR, UI_DSL_HEADING_COLORS as aS, UI_DSL_HEADING_WEIGHTS as aT, UI_DSL_INLINE_ALIGN as aU, UI_DSL_LINK_SIZES as aV, UI_DSL_LINK_TARGETS as aW, UI_DSL_LINK_VARIANTS as aX, UI_DSL_SECTION_AS as aY, UI_DSL_STACK_ALIGN as aZ, UI_DSL_STACK_JUSTIFY as a_, type UIDSLContainerMaxWidth as aa, type UIDSLGridAlign as ab, type UIDSLGridColumn as ac, type UIDSLGridFlow as ad, type UIDSLGridJustify as ae, type UIDSLGridRow as af, type UIDSLHeadingAs as ag, type UIDSLHeadingColor as ah, type UIDSLHeadingWeight as ai, type UIDSLInlineAlign as aj, type UIDSLLinkSize as ak, type UIDSLLinkTarget as al, type UIDSLLinkVariant as am, type UIDSLResponsive as an, type UIDSLResponsiveColor as ao, type UIDSLResponsiveRadius as ap, type UIDSLResponsiveSpacing as aq, type UIDSLSectionAs as ar, type UIDSLStackAlign as as, type UIDSLStackJustify as at, type UIDSLTextAs as au, type UIDSLTextColor as av, type UIDSLTextRole as aw, type UIDSLTextSize as ax, type UIDSLTextWeight as ay, isTypedUIKind as az, type IntentDslSurfaceKind as b, UI_DSL_TEXT_COLORS as b0, UI_DSL_TEXT_ROLES as b1, UI_DSL_TEXT_SIZES as b2, UI_DSL_TEXT_WEIGHTS as b3, type TypedCardNodeProps as c, type TypedContainerNodeProps as d, type TypedGridNodeProps as e, type TypedHeadingNodeProps as f, type TypedInlineNodeProps as g, type TypedLinkNodeProps as h, type TypedSectionNodeProps as i, type TypedStackNodeProps as j, type TypedTextNodeProps as k, type TypedUIValidationCode as l, type TypedUIValidationSeverity as m, getDslWritablePropNames as n, INTENT_DSL_GRAMMAR as o, INTENT_DSL_KEYWORDS as p, type IntentDslGrammarEntry as q, DETERMINISTIC_INTENT_ROOT_KINDS as r, DETERMINISTIC_LAYOUT_SURFACE_ALLOWLIST as s, DETERMINISTIC_TYPED_DSL_ROOT_KINDS as t, INTENT_DSL_ALLOWED_CHILD_KINDS_BY_KIND as u, INTENT_DSL_ALLOWED_PROP_KEYS_BY_KIND as v, type TypedUISchema as w, type TypedUINode as x, type TypedUIKind as y, type TypedNodeByKind as z };
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { R as Responsive, a as RadiusToken, S as ShadowToken, b as SpacingToken, C as ContainerMaxWidthToken, c as ResponsiveColor, d as ResponsiveRadius, e as ResponsiveSpace } from './index-DzJQZ5GE.js';
|
|
2
|
-
import { S as SafeNativeProps } from './safe-native-DQVUNMW7.js';
|
|
3
|
-
|
|
4
|
-
type TypedUIValidationSeverity = "error" | "warning";
|
|
5
|
-
type TypedUIValidationCode = "authority_violation" | "deprecated_alias" | "forbidden_prop" | "invalid_children" | "invalid_native_prop" | "invalid_node" | "invalid_prop_value" | "invalid_root" | "unknown_component";
|
|
6
|
-
interface TypedUIValidationIssue {
|
|
7
|
-
code: TypedUIValidationCode;
|
|
8
|
-
message: string;
|
|
9
|
-
path: string;
|
|
10
|
-
canonicalRef: string;
|
|
11
|
-
severity?: TypedUIValidationSeverity;
|
|
12
|
-
category?: "authority" | "children" | "native" | "props" | "shape";
|
|
13
|
-
}
|
|
14
|
-
interface TypedUIValidationResult {
|
|
15
|
-
valid: boolean;
|
|
16
|
-
data?: TypedUISchema;
|
|
17
|
-
errors: TypedUIValidationIssue[];
|
|
18
|
-
warnings: TypedUIValidationIssue[];
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
type IntentDslKeyword = "button" | "card" | "container" | "grid" | "heading" | "inline" | "link" | "page" | "section" | "stack" | "text";
|
|
22
|
-
type IntentDslSurfaceKind = "Button" | "Card" | "Container" | "Grid" | "Heading" | "Inline" | "Link" | "Section" | "Stack" | "Text";
|
|
23
|
-
type IntentDslSurfaceCategory = "component" | "layout" | "section";
|
|
24
|
-
type IntentDslValueType = "boolean" | "number" | "object" | "string";
|
|
25
|
-
interface IntentDslPropSpec {
|
|
26
|
-
required?: boolean;
|
|
27
|
-
type: IntentDslValueType;
|
|
28
|
-
dsl?: boolean;
|
|
29
|
-
semanticIntent?: string;
|
|
30
|
-
}
|
|
31
|
-
interface IntentDslGrammarEntry {
|
|
32
|
-
keyword: IntentDslKeyword;
|
|
33
|
-
kind?: IntentDslSurfaceKind;
|
|
34
|
-
category?: IntentDslSurfaceCategory;
|
|
35
|
-
allowsChildren: boolean;
|
|
36
|
-
allowedChildKinds: readonly IntentDslSurfaceKind[];
|
|
37
|
-
allowedProps: Record<string, IntentDslPropSpec>;
|
|
38
|
-
semanticIntent: string;
|
|
39
|
-
supportsIntentRoot?: boolean;
|
|
40
|
-
supportsTypedDslRoot?: boolean;
|
|
41
|
-
}
|
|
42
|
-
declare const INTENT_DSL_GRAMMAR: Record<IntentDslKeyword, IntentDslGrammarEntry>;
|
|
43
|
-
declare const INTENT_DSL_KEYWORDS: readonly IntentDslKeyword[];
|
|
44
|
-
declare const DETERMINISTIC_INTENT_KIND_ALLOWLIST: readonly IntentDslSurfaceKind[];
|
|
45
|
-
declare const DETERMINISTIC_LAYOUT_SURFACE_ALLOWLIST: readonly IntentDslSurfaceKind[];
|
|
46
|
-
declare const DETERMINISTIC_INTENT_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
47
|
-
declare const DETERMINISTIC_TYPED_DSL_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
48
|
-
declare const INTENT_DSL_ALLOWED_PROP_KEYS_BY_KIND: Readonly<Record<IntentDslSurfaceKind, readonly string[]>>;
|
|
49
|
-
declare const INTENT_DSL_ALLOWED_CHILD_KINDS_BY_KIND: Readonly<Record<IntentDslSurfaceKind, readonly IntentDslSurfaceKind[]>>;
|
|
50
|
-
declare function getDslWritablePropNames(entry: IntentDslGrammarEntry): readonly string[];
|
|
51
|
-
|
|
52
|
-
declare const TYPED_UI_LAYOUT_KINDS: readonly IntentDslSurfaceKind[];
|
|
53
|
-
declare const TYPED_UI_TYPOGRAPHY_KINDS: readonly ["Heading", "Text"];
|
|
54
|
-
declare const TYPED_UI_ACTION_KINDS: readonly ["Button", "Link"];
|
|
55
|
-
declare const TYPED_UI_SURFACE_KINDS: readonly ["Card"];
|
|
56
|
-
declare const TYPED_UI_NODE_KINDS: readonly IntentDslSurfaceKind[];
|
|
57
|
-
declare const TYPED_UI_ROOT_KINDS: readonly IntentDslSurfaceKind[];
|
|
58
|
-
type TypedUILayoutKind = (typeof TYPED_UI_LAYOUT_KINDS)[number];
|
|
59
|
-
type TypedUITypographyKind = (typeof TYPED_UI_TYPOGRAPHY_KINDS)[number];
|
|
60
|
-
type TypedUIActionKind = (typeof TYPED_UI_ACTION_KINDS)[number];
|
|
61
|
-
type TypedUISurfaceKind = (typeof TYPED_UI_SURFACE_KINDS)[number];
|
|
62
|
-
type TypedUIKind = (typeof TYPED_UI_NODE_KINDS)[number];
|
|
63
|
-
type TypedUIRootKind = (typeof TYPED_UI_ROOT_KINDS)[number];
|
|
64
|
-
type TypedUIPrimitive = string | number | boolean | null;
|
|
65
|
-
type TypedUISerializable = TypedUIPrimitive | TypedUISerializable[] | TypedUIObject;
|
|
66
|
-
interface TypedUIObject {
|
|
67
|
-
[key: string]: TypedUISerializable;
|
|
68
|
-
}
|
|
69
|
-
type TypedUINativeProps = SafeNativeProps;
|
|
70
|
-
declare function isTypedUIKind(value: string): value is TypedUIKind;
|
|
71
|
-
declare function isTypedUIRootKind(value: string): value is TypedUIRootKind;
|
|
72
|
-
|
|
73
|
-
declare const UI_DSL_BUTTON_VARIANTS: readonly ["primary", "secondary", "accent", "outline", "ghost", "destructive"];
|
|
74
|
-
declare const UI_DSL_BUTTON_SIZES: readonly ["sm", "md", "lg"];
|
|
75
|
-
declare const UI_DSL_LINK_VARIANTS: readonly ["primary", "secondary", "accent", "outline", "ghost", "text", "destructive"];
|
|
76
|
-
declare const UI_DSL_LINK_SIZES: readonly ["sm", "md", "lg"];
|
|
77
|
-
declare const UI_DSL_HEADING_WEIGHTS: readonly ["normal", "medium", "semibold", "bold"];
|
|
78
|
-
declare const UI_DSL_HEADING_COLORS: readonly ["primary", "secondary"];
|
|
79
|
-
declare const UI_DSL_TEXT_AS: readonly ["span", "p", "label", "strong", "em"];
|
|
80
|
-
declare const UI_DSL_TEXT_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
81
|
-
declare const UI_DSL_TEXT_WEIGHTS: readonly ["normal", "medium", "semibold", "bold"];
|
|
82
|
-
declare const UI_DSL_TEXT_COLORS: readonly ["primary", "secondary", "tertiary", "muted", "inverse", "disabled", "success", "warning", "error", "info"];
|
|
83
|
-
declare const UI_DSL_TEXT_ROLES: readonly ["body", "meta", "caption", "label", "helper", "status", "inverse", "disabled"];
|
|
84
|
-
declare const UI_DSL_STACK_ALIGN: readonly ["start", "center", "end", "stretch"];
|
|
85
|
-
declare const UI_DSL_STACK_JUSTIFY: readonly ["start", "center", "end", "between"];
|
|
86
|
-
declare const UI_DSL_INLINE_ALIGN: readonly ["start", "center", "end", "baseline"];
|
|
87
|
-
declare const UI_DSL_GRID_ALIGN: readonly ["start", "center", "end", "baseline", "stretch"];
|
|
88
|
-
declare const UI_DSL_GRID_JUSTIFY: readonly ["start", "center", "end", "between", "around", "evenly"];
|
|
89
|
-
declare const UI_DSL_GRID_FLOW: readonly ["row", "col", "dense", "row-dense", "col-dense"];
|
|
90
|
-
declare const UI_DSL_SECTION_AS: readonly ["section", "article", "div", "main", "aside", "header", "footer"];
|
|
91
|
-
declare const UI_DSL_HEADING_AS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
92
|
-
declare const UI_DSL_CARD_SIZES: readonly ["sm", "md", "lg"];
|
|
93
|
-
declare const UI_DSL_BUTTON_TYPES: readonly ["button", "submit", "reset"];
|
|
94
|
-
declare const UI_DSL_LINK_TARGETS: readonly ["_self", "_blank", "_parent", "_top"];
|
|
95
|
-
declare const UI_DSL_GRID_COLUMNS: readonly [1, 2, 3, 4, 5, 6, 12, "none"];
|
|
96
|
-
declare const UI_DSL_GRID_ROWS: readonly [1, 2, 3, 4, 5, 6, "none"];
|
|
97
|
-
declare const UI_DSL_CONTAINER_MAX_WIDTH: readonly ["sm", "md", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "full"];
|
|
98
|
-
type UIDSLButtonVariant = (typeof UI_DSL_BUTTON_VARIANTS)[number];
|
|
99
|
-
type UIDSLButtonSize = (typeof UI_DSL_BUTTON_SIZES)[number];
|
|
100
|
-
type UIDSLLinkVariant = (typeof UI_DSL_LINK_VARIANTS)[number];
|
|
101
|
-
type UIDSLLinkSize = (typeof UI_DSL_LINK_SIZES)[number];
|
|
102
|
-
type UIDSLHeadingWeight = (typeof UI_DSL_HEADING_WEIGHTS)[number];
|
|
103
|
-
type UIDSLHeadingColor = (typeof UI_DSL_HEADING_COLORS)[number];
|
|
104
|
-
type UIDSLTextAs = (typeof UI_DSL_TEXT_AS)[number];
|
|
105
|
-
type UIDSLTextSize = (typeof UI_DSL_TEXT_SIZES)[number];
|
|
106
|
-
type UIDSLTextWeight = (typeof UI_DSL_TEXT_WEIGHTS)[number];
|
|
107
|
-
type UIDSLTextColor = (typeof UI_DSL_TEXT_COLORS)[number];
|
|
108
|
-
type UIDSLTextRole = (typeof UI_DSL_TEXT_ROLES)[number];
|
|
109
|
-
type UIDSLStackAlign = (typeof UI_DSL_STACK_ALIGN)[number];
|
|
110
|
-
type UIDSLStackJustify = (typeof UI_DSL_STACK_JUSTIFY)[number];
|
|
111
|
-
type UIDSLInlineAlign = (typeof UI_DSL_INLINE_ALIGN)[number];
|
|
112
|
-
type UIDSLGridAlign = (typeof UI_DSL_GRID_ALIGN)[number];
|
|
113
|
-
type UIDSLGridJustify = (typeof UI_DSL_GRID_JUSTIFY)[number];
|
|
114
|
-
type UIDSLGridFlow = (typeof UI_DSL_GRID_FLOW)[number];
|
|
115
|
-
type UIDSLSectionAs = (typeof UI_DSL_SECTION_AS)[number];
|
|
116
|
-
type UIDSLHeadingAs = (typeof UI_DSL_HEADING_AS)[number];
|
|
117
|
-
type UIDSLCardSize = (typeof UI_DSL_CARD_SIZES)[number];
|
|
118
|
-
type UIDSLButtonType = (typeof UI_DSL_BUTTON_TYPES)[number];
|
|
119
|
-
type UIDSLLinkTarget = (typeof UI_DSL_LINK_TARGETS)[number];
|
|
120
|
-
type UIDSLGridColumn = (typeof UI_DSL_GRID_COLUMNS)[number];
|
|
121
|
-
type UIDSLGridRow = (typeof UI_DSL_GRID_ROWS)[number];
|
|
122
|
-
type UIDSLContainerMaxWidth = (typeof UI_DSL_CONTAINER_MAX_WIDTH)[number];
|
|
123
|
-
type UIDSLResponsiveSpacing = ResponsiveSpace;
|
|
124
|
-
type UIDSLResponsiveRadius = ResponsiveRadius;
|
|
125
|
-
type UIDSLResponsiveColor = ResponsiveColor;
|
|
126
|
-
type UIDSLResponsive<T> = Responsive<T>;
|
|
127
|
-
interface TypedContainerNodeProps {
|
|
128
|
-
maxWidth?: Responsive<ContainerMaxWidthToken | SpacingToken>;
|
|
129
|
-
padding?: Responsive<SpacingToken>;
|
|
130
|
-
center?: boolean;
|
|
131
|
-
native?: TypedUINativeProps;
|
|
132
|
-
}
|
|
133
|
-
interface TypedStackNodeProps {
|
|
134
|
-
direction?: "row" | "column";
|
|
135
|
-
gap?: Responsive<SpacingToken>;
|
|
136
|
-
align?: UIDSLStackAlign;
|
|
137
|
-
justify?: UIDSLStackJustify;
|
|
138
|
-
wrap?: boolean;
|
|
139
|
-
native?: TypedUINativeProps;
|
|
140
|
-
}
|
|
141
|
-
interface TypedInlineNodeProps {
|
|
142
|
-
gap?: Responsive<SpacingToken>;
|
|
143
|
-
align?: UIDSLInlineAlign;
|
|
144
|
-
wrap?: boolean;
|
|
145
|
-
native?: TypedUINativeProps;
|
|
146
|
-
}
|
|
147
|
-
interface TypedGridNodeProps {
|
|
148
|
-
cols?: Responsive<UIDSLGridColumn>;
|
|
149
|
-
sm?: UIDSLGridColumn;
|
|
150
|
-
md?: UIDSLGridColumn;
|
|
151
|
-
lg?: UIDSLGridColumn;
|
|
152
|
-
xl?: UIDSLGridColumn;
|
|
153
|
-
"2xl"?: UIDSLGridColumn;
|
|
154
|
-
rows?: Responsive<UIDSLGridRow>;
|
|
155
|
-
gap?: Responsive<SpacingToken>;
|
|
156
|
-
flow?: UIDSLGridFlow;
|
|
157
|
-
align?: UIDSLGridAlign;
|
|
158
|
-
justify?: UIDSLGridJustify;
|
|
159
|
-
native?: TypedUINativeProps;
|
|
160
|
-
}
|
|
161
|
-
interface TypedSectionNodeProps {
|
|
162
|
-
spaceY?: Responsive<SpacingToken>;
|
|
163
|
-
spacing?: Responsive<SpacingToken>;
|
|
164
|
-
as?: UIDSLSectionAs;
|
|
165
|
-
native?: TypedUINativeProps;
|
|
166
|
-
}
|
|
167
|
-
interface TypedHeadingNodeProps {
|
|
168
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
169
|
-
weight?: UIDSLHeadingWeight;
|
|
170
|
-
color?: UIDSLHeadingColor;
|
|
171
|
-
as?: UIDSLHeadingAs;
|
|
172
|
-
text: string;
|
|
173
|
-
native?: TypedUINativeProps;
|
|
174
|
-
}
|
|
175
|
-
interface TypedTextNodeProps {
|
|
176
|
-
as?: UIDSLTextAs;
|
|
177
|
-
size?: UIDSLTextSize;
|
|
178
|
-
weight?: UIDSLTextWeight;
|
|
179
|
-
color?: UIDSLTextColor;
|
|
180
|
-
typographyRole?: UIDSLTextRole;
|
|
181
|
-
text: string;
|
|
182
|
-
native?: TypedUINativeProps;
|
|
183
|
-
}
|
|
184
|
-
interface TypedButtonNodeProps {
|
|
185
|
-
variant?: UIDSLButtonVariant;
|
|
186
|
-
size?: UIDSLButtonSize;
|
|
187
|
-
disabled?: boolean;
|
|
188
|
-
type?: UIDSLButtonType;
|
|
189
|
-
label: string;
|
|
190
|
-
native?: TypedUINativeProps;
|
|
191
|
-
}
|
|
192
|
-
interface TypedLinkNodeProps {
|
|
193
|
-
variant?: UIDSLLinkVariant;
|
|
194
|
-
size?: UIDSLLinkSize;
|
|
195
|
-
disabled?: boolean;
|
|
196
|
-
href: string;
|
|
197
|
-
target?: UIDSLLinkTarget;
|
|
198
|
-
rel?: string;
|
|
199
|
-
label: string;
|
|
200
|
-
native?: TypedUINativeProps;
|
|
201
|
-
}
|
|
202
|
-
interface TypedCardNodeProps {
|
|
203
|
-
size?: UIDSLCardSize;
|
|
204
|
-
radius?: Responsive<RadiusToken>;
|
|
205
|
-
shadow?: ShadowToken | "none";
|
|
206
|
-
p?: Responsive<SpacingToken>;
|
|
207
|
-
native?: TypedUINativeProps;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
interface TypedUINodeBase<TKind extends TypedUIKind, TProps> {
|
|
211
|
-
kind: TKind;
|
|
212
|
-
props: TProps;
|
|
213
|
-
}
|
|
214
|
-
interface TypedHeadingNode extends TypedUINodeBase<"Heading", TypedHeadingNodeProps> {
|
|
215
|
-
children?: never;
|
|
216
|
-
}
|
|
217
|
-
interface TypedTextNode extends TypedUINodeBase<"Text", TypedTextNodeProps> {
|
|
218
|
-
children?: never;
|
|
219
|
-
}
|
|
220
|
-
interface TypedButtonNode extends TypedUINodeBase<"Button", TypedButtonNodeProps> {
|
|
221
|
-
children?: never;
|
|
222
|
-
}
|
|
223
|
-
interface TypedLinkNode extends TypedUINodeBase<"Link", TypedLinkNodeProps> {
|
|
224
|
-
children?: never;
|
|
225
|
-
}
|
|
226
|
-
type TypedUITypographyNode = TypedHeadingNode | TypedTextNode;
|
|
227
|
-
type TypedUIActionNode = TypedButtonNode | TypedLinkNode;
|
|
228
|
-
type TypedUILeafNode = TypedUITypographyNode | TypedUIActionNode;
|
|
229
|
-
type TypedCardChildNode = TypedHeadingNode | TypedTextNode | TypedButtonNode | TypedLinkNode | TypedStackNode | TypedInlineNode | TypedGridNode | TypedSectionNode;
|
|
230
|
-
type TypedUILayoutChildNode = TypedCardChildNode | TypedCardNode;
|
|
231
|
-
interface TypedContainerNode extends TypedUINodeBase<"Container", TypedContainerNodeProps> {
|
|
232
|
-
children?: TypedUILayoutChildNode[];
|
|
233
|
-
}
|
|
234
|
-
interface TypedStackNode extends TypedUINodeBase<"Stack", TypedStackNodeProps> {
|
|
235
|
-
children?: TypedUILayoutChildNode[];
|
|
236
|
-
}
|
|
237
|
-
interface TypedInlineNode extends TypedUINodeBase<"Inline", TypedInlineNodeProps> {
|
|
238
|
-
children?: TypedUILayoutChildNode[];
|
|
239
|
-
}
|
|
240
|
-
interface TypedGridNode extends TypedUINodeBase<"Grid", TypedGridNodeProps> {
|
|
241
|
-
children?: TypedUILayoutChildNode[];
|
|
242
|
-
}
|
|
243
|
-
interface TypedSectionNode extends TypedUINodeBase<"Section", TypedSectionNodeProps> {
|
|
244
|
-
children?: TypedUILayoutChildNode[];
|
|
245
|
-
}
|
|
246
|
-
interface TypedCardNode extends TypedUINodeBase<"Card", TypedCardNodeProps> {
|
|
247
|
-
children?: TypedCardChildNode[];
|
|
248
|
-
}
|
|
249
|
-
type TypedUILayoutNode = TypedContainerNode | TypedStackNode | TypedInlineNode | TypedGridNode | TypedSectionNode;
|
|
250
|
-
type TypedUISurfaceNode = TypedCardNode;
|
|
251
|
-
type TypedUIContentNode = TypedUILeafNode | TypedUILayoutNode | TypedUISurfaceNode;
|
|
252
|
-
type TypedUINode = TypedUIContentNode;
|
|
253
|
-
type TypedUISchema = TypedContainerNode | TypedStackNode | TypedGridNode | TypedSectionNode | TypedCardNode;
|
|
254
|
-
type TypedUIKindToNode = {
|
|
255
|
-
Button: TypedButtonNode;
|
|
256
|
-
Card: TypedCardNode;
|
|
257
|
-
Container: TypedContainerNode;
|
|
258
|
-
Grid: TypedGridNode;
|
|
259
|
-
Heading: TypedHeadingNode;
|
|
260
|
-
Inline: TypedInlineNode;
|
|
261
|
-
Link: TypedLinkNode;
|
|
262
|
-
Section: TypedSectionNode;
|
|
263
|
-
Stack: TypedStackNode;
|
|
264
|
-
Text: TypedTextNode;
|
|
265
|
-
};
|
|
266
|
-
type TypedNodeByKind<TKind extends TypedUIKind> = TypedUIKindToNode[TKind];
|
|
267
|
-
type TypedNodeByLayoutKind<TKind extends TypedUILayoutKind> = TypedNodeByKind<TKind>;
|
|
268
|
-
type TypedNodeByTypographyKind<TKind extends TypedUITypographyKind> = TypedNodeByKind<TKind>;
|
|
269
|
-
type TypedNodeByActionKind<TKind extends TypedUIActionKind> = TypedNodeByKind<TKind>;
|
|
270
|
-
type TypedNodeBySurfaceKind<TKind extends TypedUISurfaceKind> = TypedNodeByKind<TKind>;
|
|
271
|
-
|
|
272
|
-
export { type TypedUIRootKind as $, type TypedUIValidationResult as A, type TypedButtonNode as B, type TypedCardNode as C, DETERMINISTIC_INTENT_KIND_ALLOWLIST as D, type TypedContainerNode as E, type TypedGridNode as F, type TypedHeadingNode as G, type TypedInlineNode as H, type IntentDslValueType as I, type TypedLinkNode as J, type TypedNodeByActionKind as K, type TypedNodeByLayoutKind as L, type TypedNodeBySurfaceKind as M, type TypedNodeByTypographyKind as N, type TypedSectionNode as O, type TypedStackNode as P, type TypedTextNode as Q, type TypedUIActionKind as R, type TypedUIActionNode as S, type TypedButtonNodeProps as T, type TypedUIContentNode as U, type TypedUILayoutKind as V, type TypedUILayoutNode as W, type TypedUILeafNode as X, type TypedUINativeProps as Y, type TypedUIObject as Z, type TypedUIPrimitive as _, type IntentDslKeyword as a, UI_DSL_TEXT_AS as a$, type TypedUISerializable as a0, type TypedUISurfaceKind as a1, type TypedUISurfaceNode as a2, type TypedUITypographyKind as a3, type TypedUITypographyNode as a4, type TypedUIValidationIssue as a5, type UIDSLButtonSize as a6, type UIDSLButtonType as a7, type UIDSLButtonVariant as a8, type UIDSLCardSize as a9, isTypedUIRootKind as aA, TYPED_UI_ACTION_KINDS as aB, TYPED_UI_LAYOUT_KINDS as aC, TYPED_UI_NODE_KINDS as aD, TYPED_UI_ROOT_KINDS as aE, TYPED_UI_SURFACE_KINDS as aF, TYPED_UI_TYPOGRAPHY_KINDS as aG, UI_DSL_BUTTON_SIZES as aH, UI_DSL_BUTTON_TYPES as aI, UI_DSL_BUTTON_VARIANTS as aJ, UI_DSL_CARD_SIZES as aK, UI_DSL_CONTAINER_MAX_WIDTH as aL, UI_DSL_GRID_ALIGN as aM, UI_DSL_GRID_COLUMNS as aN, UI_DSL_GRID_FLOW as aO, UI_DSL_GRID_JUSTIFY as aP, UI_DSL_GRID_ROWS as aQ, UI_DSL_HEADING_AS as aR, UI_DSL_HEADING_COLORS as aS, UI_DSL_HEADING_WEIGHTS as aT, UI_DSL_INLINE_ALIGN as aU, UI_DSL_LINK_SIZES as aV, UI_DSL_LINK_TARGETS as aW, UI_DSL_LINK_VARIANTS as aX, UI_DSL_SECTION_AS as aY, UI_DSL_STACK_ALIGN as aZ, UI_DSL_STACK_JUSTIFY as a_, type UIDSLContainerMaxWidth as aa, type UIDSLGridAlign as ab, type UIDSLGridColumn as ac, type UIDSLGridFlow as ad, type UIDSLGridJustify as ae, type UIDSLGridRow as af, type UIDSLHeadingAs as ag, type UIDSLHeadingColor as ah, type UIDSLHeadingWeight as ai, type UIDSLInlineAlign as aj, type UIDSLLinkSize as ak, type UIDSLLinkTarget as al, type UIDSLLinkVariant as am, type UIDSLResponsive as an, type UIDSLResponsiveColor as ao, type UIDSLResponsiveRadius as ap, type UIDSLResponsiveSpacing as aq, type UIDSLSectionAs as ar, type UIDSLStackAlign as as, type UIDSLStackJustify as at, type UIDSLTextAs as au, type UIDSLTextColor as av, type UIDSLTextRole as aw, type UIDSLTextSize as ax, type UIDSLTextWeight as ay, isTypedUIKind as az, type IntentDslSurfaceKind as b, UI_DSL_TEXT_COLORS as b0, UI_DSL_TEXT_ROLES as b1, UI_DSL_TEXT_SIZES as b2, UI_DSL_TEXT_WEIGHTS as b3, type TypedCardNodeProps as c, type TypedContainerNodeProps as d, type TypedGridNodeProps as e, type TypedHeadingNodeProps as f, type TypedInlineNodeProps as g, type TypedLinkNodeProps as h, type TypedSectionNodeProps as i, type TypedStackNodeProps as j, type TypedTextNodeProps as k, type TypedUIValidationCode as l, type TypedUIValidationSeverity as m, getDslWritablePropNames as n, INTENT_DSL_GRAMMAR as o, INTENT_DSL_KEYWORDS as p, type IntentDslGrammarEntry as q, DETERMINISTIC_INTENT_ROOT_KINDS as r, DETERMINISTIC_LAYOUT_SURFACE_ALLOWLIST as s, DETERMINISTIC_TYPED_DSL_ROOT_KINDS as t, INTENT_DSL_ALLOWED_CHILD_KINDS_BY_KIND as u, INTENT_DSL_ALLOWED_PROP_KEYS_BY_KIND as v, type TypedUISchema as w, type TypedUINode as x, type TypedUIKind as y, type TypedNodeByKind as z };
|