@nativescript/types-swiftui 0.0.1
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/dist/libNodeAPI.dylib +0 -0
- package/dist/libSwiftBridge.node +0 -0
- package/index.js +21 -0
- package/package.json +15 -0
- package/types/IREnums.generated.d.ts +513 -0
- package/types/IRModifiers.generated.d.ts +348 -0
- package/types/IRNodes.generated.d.ts +562 -0
- package/types/IRScenes.generated.d.ts +69 -0
- package/types/IRSwiftUI.d.ts +48 -0
- package/types/SwiftUI.d.ts +58 -0
- package/types/index.d.ts +6 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
// Auto-generated TypeScript type definitions
|
|
2
|
+
// This file is generated by SwiftBindGen - do not edit manually
|
|
3
|
+
|
|
4
|
+
import { IRNode, IRNodeChild, IRColorParams, FontStyle } from './IRSwiftUI';
|
|
5
|
+
import { Binding } from './SwiftUI';
|
|
6
|
+
import * as Enums from './IREnums.generated';
|
|
7
|
+
export interface AsyncImageOptions {
|
|
8
|
+
scale?: number;
|
|
9
|
+
url?: string | undefined;
|
|
10
|
+
content?: IRNodeChild | IRNodeChild[];
|
|
11
|
+
placeholder?: IRNodeChild | IRNodeChild[];
|
|
12
|
+
}
|
|
13
|
+
export declare function AsyncImage(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
14
|
+
export declare function AsyncImage(options?: AsyncImageOptions): IRNode;
|
|
15
|
+
|
|
16
|
+
export interface ButtonOptions {
|
|
17
|
+
action?: () => void;
|
|
18
|
+
role?: Enums.ButtonRole;
|
|
19
|
+
systemImage?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
titleKey?: string;
|
|
22
|
+
titleResource?: string;
|
|
23
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
24
|
+
}
|
|
25
|
+
export declare function Button(title: string, action?: () => void): IRNode;
|
|
26
|
+
export declare function Button(label: IRNodeChild[], action?: () => void): IRNode;
|
|
27
|
+
export declare function Button(action: () => void): IRNode;
|
|
28
|
+
export declare function Button(options: ButtonOptions): IRNode;
|
|
29
|
+
|
|
30
|
+
export declare function Capsule(style?: Enums.RoundedCornerStyle): IRNode;
|
|
31
|
+
|
|
32
|
+
export declare function Circle(): IRNode;
|
|
33
|
+
|
|
34
|
+
export interface ColorOptions {
|
|
35
|
+
blue?: number;
|
|
36
|
+
brightness?: number;
|
|
37
|
+
bundle?: string | undefined;
|
|
38
|
+
color?: IRColorParams | string;
|
|
39
|
+
colorSpace?: Enums.Color_RGBColorSpace;
|
|
40
|
+
green?: number;
|
|
41
|
+
hue?: number;
|
|
42
|
+
name?: string;
|
|
43
|
+
opacity?: number;
|
|
44
|
+
red?: number;
|
|
45
|
+
saturation?: number;
|
|
46
|
+
white?: number;
|
|
47
|
+
}
|
|
48
|
+
export declare function Color(name: string, opts?: Omit<ColorOptions, 'name'>): IRNode;
|
|
49
|
+
export declare function Color(opts: ColorOptions): IRNode;
|
|
50
|
+
|
|
51
|
+
export declare function ConcentricRectangle(): IRNode;
|
|
52
|
+
|
|
53
|
+
export declare function ContainerRelativeShape(): IRNode;
|
|
54
|
+
|
|
55
|
+
export interface ContentUnavailableViewOptions {
|
|
56
|
+
image?: string;
|
|
57
|
+
systemImage?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
actions?: IRNodeChild | IRNodeChild[];
|
|
60
|
+
description?: string | IRNode | undefined | IRNodeChild | IRNodeChild[];
|
|
61
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
62
|
+
}
|
|
63
|
+
export declare function ContentUnavailableView(options?: ContentUnavailableViewOptions): IRNode;
|
|
64
|
+
|
|
65
|
+
export interface ControlGroupOptions {
|
|
66
|
+
systemImage?: string;
|
|
67
|
+
title?: string;
|
|
68
|
+
titleKey?: string;
|
|
69
|
+
titleResource?: string;
|
|
70
|
+
content: IRNodeChild | IRNodeChild[];
|
|
71
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
72
|
+
}
|
|
73
|
+
export declare function ControlGroup(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
74
|
+
export declare function ControlGroup(options?: ControlGroupOptions): IRNode;
|
|
75
|
+
|
|
76
|
+
export interface DebugReplaceableViewOptions {
|
|
77
|
+
erasing: IRNodeChild | IRNodeChild[];
|
|
78
|
+
}
|
|
79
|
+
export declare function DebugReplaceableView(opts?: DebugReplaceableViewOptions): IRNode;
|
|
80
|
+
|
|
81
|
+
export declare function DefaultDocumentGroupLaunchActions(): IRNode;
|
|
82
|
+
|
|
83
|
+
export declare function DefaultGlassEffectShape(): IRNode;
|
|
84
|
+
|
|
85
|
+
export interface DisclosureGroupOptions {
|
|
86
|
+
isExpanded?: Binding<boolean>;
|
|
87
|
+
titleKey?: string;
|
|
88
|
+
titleResource?: string;
|
|
89
|
+
content: IRNodeChild | IRNodeChild[];
|
|
90
|
+
label?: string | IRNodeChild | IRNodeChild[];
|
|
91
|
+
}
|
|
92
|
+
export declare function DisclosureGroup(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
93
|
+
export declare function DisclosureGroup(options?: DisclosureGroupOptions): IRNode;
|
|
94
|
+
|
|
95
|
+
export declare function Divider(): IRNode;
|
|
96
|
+
|
|
97
|
+
export declare function EditButton(): IRNode;
|
|
98
|
+
|
|
99
|
+
export declare function Ellipse(): IRNode;
|
|
100
|
+
|
|
101
|
+
export declare function EmptyView(): IRNode;
|
|
102
|
+
|
|
103
|
+
export interface ForEachOptions {
|
|
104
|
+
data?: { lowerBound: number; upperBound: number };
|
|
105
|
+
sections?: IRNodeChild | IRNodeChild[];
|
|
106
|
+
subviews?: IRNodeChild | IRNodeChild[];
|
|
107
|
+
}
|
|
108
|
+
export declare function ForEach(children: IRNodeChild[]): IRNode;
|
|
109
|
+
export declare function ForEach(options: ForEachOptions, children?: IRNodeChild[]): IRNode;
|
|
110
|
+
|
|
111
|
+
export declare function Form(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
112
|
+
|
|
113
|
+
export interface GaugeOptions {
|
|
114
|
+
in?: { lowerBound: number; upperBound: number };
|
|
115
|
+
value: number;
|
|
116
|
+
currentValueLabel?: IRNodeChild | IRNodeChild[];
|
|
117
|
+
label: IRNodeChild | IRNodeChild[];
|
|
118
|
+
markedValueLabels?: IRNodeChild | IRNodeChild[];
|
|
119
|
+
maximumValueLabel?: IRNodeChild | IRNodeChild[];
|
|
120
|
+
minimumValueLabel?: IRNodeChild | IRNodeChild[];
|
|
121
|
+
}
|
|
122
|
+
export declare function Gauge(options?: GaugeOptions): IRNode;
|
|
123
|
+
|
|
124
|
+
export declare function GeometryReader(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
125
|
+
|
|
126
|
+
export interface GlassEffectContainerOptions {
|
|
127
|
+
spacing?: number | undefined;
|
|
128
|
+
}
|
|
129
|
+
export declare function GlassEffectContainer(children: IRNodeChild[]): IRNode;
|
|
130
|
+
export declare function GlassEffectContainer(spacing: number | undefined, children?: IRNodeChild[]): IRNode;
|
|
131
|
+
export declare function GlassEffectContainer(options: GlassEffectContainerOptions, children?: IRNodeChild[]): IRNode;
|
|
132
|
+
|
|
133
|
+
export interface GridOptions {
|
|
134
|
+
alignment?: Enums.Alignment;
|
|
135
|
+
horizontalSpacing?: number | undefined;
|
|
136
|
+
verticalSpacing?: number | undefined;
|
|
137
|
+
}
|
|
138
|
+
export declare function Grid(children: IRNodeChild[]): IRNode;
|
|
139
|
+
export declare function Grid(alignment: Enums.Alignment, children?: IRNodeChild[]): IRNode;
|
|
140
|
+
export declare function Grid(options: GridOptions, children?: IRNodeChild[]): IRNode;
|
|
141
|
+
|
|
142
|
+
export interface GridRowOptions {
|
|
143
|
+
alignment?: Enums.VerticalAlignment | undefined;
|
|
144
|
+
}
|
|
145
|
+
export declare function GridRow(children: IRNodeChild[]): IRNode;
|
|
146
|
+
export declare function GridRow(alignment: Enums.VerticalAlignment | undefined, children?: IRNodeChild[]): IRNode;
|
|
147
|
+
export declare function GridRow(options: GridRowOptions, children?: IRNodeChild[]): IRNode;
|
|
148
|
+
|
|
149
|
+
export interface GroupBoxOptions {
|
|
150
|
+
title?: string;
|
|
151
|
+
titleKey?: string;
|
|
152
|
+
titleResource?: string;
|
|
153
|
+
content: IRNodeChild | IRNodeChild[];
|
|
154
|
+
label?: IRNodeChild | IRNodeChild[] | IRNodeChild | IRNodeChild[];
|
|
155
|
+
}
|
|
156
|
+
export declare function GroupBox(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
157
|
+
export declare function GroupBox(options?: GroupBoxOptions): IRNode;
|
|
158
|
+
|
|
159
|
+
export declare function HSplitView(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
160
|
+
|
|
161
|
+
export interface HStackOptions {
|
|
162
|
+
alignment?: Enums.VerticalAlignment;
|
|
163
|
+
spacing?: number | undefined;
|
|
164
|
+
}
|
|
165
|
+
export declare function HStack(children: IRNodeChild[]): IRNode;
|
|
166
|
+
export declare function HStack(alignment: Enums.VerticalAlignment, children?: IRNodeChild[]): IRNode;
|
|
167
|
+
export declare function HStack(options: HStackOptions, children?: IRNodeChild[]): IRNode;
|
|
168
|
+
|
|
169
|
+
export declare function HelpLink(destination?: string): IRNode;
|
|
170
|
+
|
|
171
|
+
export interface ImageOptions {
|
|
172
|
+
bundle?: string | undefined;
|
|
173
|
+
decorative?: string;
|
|
174
|
+
label?: string | IRNode;
|
|
175
|
+
name?: string;
|
|
176
|
+
systemName?: string;
|
|
177
|
+
variableValue?: number | undefined;
|
|
178
|
+
}
|
|
179
|
+
export declare function Image(name: string, opts?: Omit<ImageOptions, 'name'>): IRNode;
|
|
180
|
+
export declare function Image(opts: ImageOptions): IRNode;
|
|
181
|
+
|
|
182
|
+
export interface LabelOptions {
|
|
183
|
+
image?: string;
|
|
184
|
+
systemImage?: string;
|
|
185
|
+
titleKey?: string;
|
|
186
|
+
titleResource?: string;
|
|
187
|
+
icon?: IRNodeChild | IRNodeChild[];
|
|
188
|
+
title?: string | IRNodeChild | IRNodeChild[];
|
|
189
|
+
}
|
|
190
|
+
export declare function Label(options?: LabelOptions): IRNode;
|
|
191
|
+
|
|
192
|
+
export interface LabeledContentOptions {
|
|
193
|
+
title?: string;
|
|
194
|
+
titleKey?: string;
|
|
195
|
+
titleResource?: string;
|
|
196
|
+
value?: string;
|
|
197
|
+
content?: IRNodeChild | IRNodeChild[];
|
|
198
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
199
|
+
}
|
|
200
|
+
export declare function LabeledContent(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
201
|
+
export declare function LabeledContent(options?: LabeledContentOptions): IRNode;
|
|
202
|
+
|
|
203
|
+
export interface LazyHStackOptions {
|
|
204
|
+
alignment?: Enums.VerticalAlignment;
|
|
205
|
+
pinnedViews?: Enums.PinnedScrollableViews;
|
|
206
|
+
spacing?: number | undefined;
|
|
207
|
+
}
|
|
208
|
+
export declare function LazyHStack(children: IRNodeChild[]): IRNode;
|
|
209
|
+
export declare function LazyHStack(alignment: Enums.VerticalAlignment, children?: IRNodeChild[]): IRNode;
|
|
210
|
+
export declare function LazyHStack(options: LazyHStackOptions, children?: IRNodeChild[]): IRNode;
|
|
211
|
+
|
|
212
|
+
export interface LazyVStackOptions {
|
|
213
|
+
alignment?: Enums.HorizontalAlignment;
|
|
214
|
+
pinnedViews?: Enums.PinnedScrollableViews;
|
|
215
|
+
spacing?: number | undefined;
|
|
216
|
+
}
|
|
217
|
+
export declare function LazyVStack(children: IRNodeChild[]): IRNode;
|
|
218
|
+
export declare function LazyVStack(alignment: Enums.HorizontalAlignment, children?: IRNodeChild[]): IRNode;
|
|
219
|
+
export declare function LazyVStack(options: LazyVStackOptions, children?: IRNodeChild[]): IRNode;
|
|
220
|
+
|
|
221
|
+
export interface LinkOptions {
|
|
222
|
+
destination: string;
|
|
223
|
+
title?: string;
|
|
224
|
+
titleKey?: string;
|
|
225
|
+
titleResource?: string;
|
|
226
|
+
}
|
|
227
|
+
export declare function Link(children: IRNodeChild[]): IRNode;
|
|
228
|
+
export declare function Link(title: string, children?: IRNodeChild[]): IRNode;
|
|
229
|
+
export declare function Link(options: LinkOptions, children?: IRNodeChild[]): IRNode;
|
|
230
|
+
|
|
231
|
+
export interface ListOptions {
|
|
232
|
+
data?: { lowerBound: number; upperBound: number };
|
|
233
|
+
selection?: Binding<string>;
|
|
234
|
+
content?: IRNodeChild | IRNodeChild[];
|
|
235
|
+
rowContent?: IRNodeChild | IRNodeChild[];
|
|
236
|
+
}
|
|
237
|
+
export declare function List(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
238
|
+
export declare function List(options?: ListOptions): IRNode;
|
|
239
|
+
|
|
240
|
+
export interface MenuOptions {
|
|
241
|
+
systemImage?: string;
|
|
242
|
+
title?: string;
|
|
243
|
+
titleKey?: string;
|
|
244
|
+
titleResource?: string;
|
|
245
|
+
content: IRNodeChild | IRNodeChild[];
|
|
246
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
247
|
+
}
|
|
248
|
+
export declare function Menu(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
249
|
+
export declare function Menu(options?: MenuOptions): IRNode;
|
|
250
|
+
|
|
251
|
+
export interface MenuButtonOptions {
|
|
252
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
253
|
+
title?: string;
|
|
254
|
+
titleKey?: string;
|
|
255
|
+
}
|
|
256
|
+
export declare function MenuButton(children: IRNodeChild[]): IRNode;
|
|
257
|
+
export declare function MenuButton(title: string, children?: IRNodeChild[]): IRNode;
|
|
258
|
+
export declare function MenuButton(options: MenuButtonOptions, children?: IRNodeChild[]): IRNode;
|
|
259
|
+
|
|
260
|
+
export interface NavigationLinkOptions {
|
|
261
|
+
destinationName?: string;
|
|
262
|
+
isActive?: Binding<boolean>;
|
|
263
|
+
title?: string;
|
|
264
|
+
titleKey?: string;
|
|
265
|
+
titleResource?: string;
|
|
266
|
+
value?: string | undefined;
|
|
267
|
+
destination?: IRNodeChild | IRNodeChild[] | IRNodeChild | IRNodeChild[];
|
|
268
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
269
|
+
}
|
|
270
|
+
export declare function NavigationLink(options?: NavigationLinkOptions): IRNode;
|
|
271
|
+
|
|
272
|
+
export interface NavigationSplitViewOptions {
|
|
273
|
+
content?: IRNodeChild | IRNodeChild[];
|
|
274
|
+
detail: IRNodeChild | IRNodeChild[];
|
|
275
|
+
sidebar: IRNodeChild | IRNodeChild[];
|
|
276
|
+
}
|
|
277
|
+
export declare function NavigationSplitView(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
278
|
+
export declare function NavigationSplitView(options?: NavigationSplitViewOptions): IRNode;
|
|
279
|
+
|
|
280
|
+
export interface NavigationStackOptions {
|
|
281
|
+
root: IRNodeChild | IRNodeChild[];
|
|
282
|
+
}
|
|
283
|
+
export declare function NavigationStack(options: NavigationStackOptions): IRNode;
|
|
284
|
+
|
|
285
|
+
export declare function NavigationView(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
286
|
+
|
|
287
|
+
export declare function Path(string?: string): IRNode;
|
|
288
|
+
|
|
289
|
+
export interface ProgressViewOptions {
|
|
290
|
+
countsDown?: boolean;
|
|
291
|
+
timerInterval?: { lowerBound: number; upperBound: number };
|
|
292
|
+
title?: string;
|
|
293
|
+
titleKey?: string;
|
|
294
|
+
titleResource?: string;
|
|
295
|
+
total?: number;
|
|
296
|
+
value?: number | undefined;
|
|
297
|
+
currentValueLabel?: IRNodeChild | IRNodeChild[];
|
|
298
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
299
|
+
}
|
|
300
|
+
export declare function ProgressView(options?: ProgressViewOptions): IRNode;
|
|
301
|
+
|
|
302
|
+
export declare function Rectangle(): IRNode;
|
|
303
|
+
|
|
304
|
+
export declare function RenameButton(): IRNode;
|
|
305
|
+
|
|
306
|
+
export interface RoundedRectangleOptions {
|
|
307
|
+
cornerRadius: number;
|
|
308
|
+
style?: Enums.RoundedCornerStyle;
|
|
309
|
+
}
|
|
310
|
+
export declare function RoundedRectangle(cornerRadius: number, opts?: Omit<RoundedRectangleOptions, 'cornerRadius'>): IRNode;
|
|
311
|
+
export declare function RoundedRectangle(opts: RoundedRectangleOptions): IRNode;
|
|
312
|
+
|
|
313
|
+
export interface ScrollViewOptions {
|
|
314
|
+
axes?: Enums.Axis_Set;
|
|
315
|
+
showsIndicators?: boolean;
|
|
316
|
+
}
|
|
317
|
+
export declare function ScrollView(children: IRNodeChild[]): IRNode;
|
|
318
|
+
export declare function ScrollView(axes: Enums.Axis_Set, children?: IRNodeChild[]): IRNode;
|
|
319
|
+
export declare function ScrollView(options: ScrollViewOptions, children?: IRNodeChild[]): IRNode;
|
|
320
|
+
|
|
321
|
+
export declare function ScrollViewReader(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
322
|
+
|
|
323
|
+
export interface SectionOptions {
|
|
324
|
+
isExpanded?: Binding<boolean>;
|
|
325
|
+
title?: string;
|
|
326
|
+
titleKey?: string;
|
|
327
|
+
titleResource?: string;
|
|
328
|
+
content: IRNodeChild | IRNodeChild[];
|
|
329
|
+
footer?: IRNodeChild | IRNodeChild[] | IRNodeChild | IRNodeChild[];
|
|
330
|
+
header?: IRNodeChild | IRNodeChild[] | IRNodeChild | IRNodeChild[];
|
|
331
|
+
}
|
|
332
|
+
export declare function Section(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
333
|
+
export declare function Section(options?: SectionOptions): IRNode;
|
|
334
|
+
|
|
335
|
+
export interface SecureFieldOptions {
|
|
336
|
+
onCommit?: () => void;
|
|
337
|
+
prompt?: string | IRNode | undefined;
|
|
338
|
+
text: Binding<string>;
|
|
339
|
+
title?: string;
|
|
340
|
+
titleKey?: string;
|
|
341
|
+
titleResource?: string;
|
|
342
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
343
|
+
}
|
|
344
|
+
export declare function SecureField(title: string, text: any): IRNode;
|
|
345
|
+
export declare function SecureField(title: string, text: any, onCommit?: () => void): IRNode;
|
|
346
|
+
export declare function SecureField(options: SecureFieldOptions): IRNode;
|
|
347
|
+
|
|
348
|
+
export declare function SettingsLink(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
349
|
+
|
|
350
|
+
export interface ShareLinkOptions {
|
|
351
|
+
item: string;
|
|
352
|
+
message?: string | IRNode | undefined;
|
|
353
|
+
subject?: string | IRNode | undefined;
|
|
354
|
+
title?: string;
|
|
355
|
+
titleKey?: string;
|
|
356
|
+
titleResource?: string;
|
|
357
|
+
}
|
|
358
|
+
export declare function ShareLink(children: IRNodeChild[]): IRNode;
|
|
359
|
+
export declare function ShareLink(title: string, children?: IRNodeChild[]): IRNode;
|
|
360
|
+
export declare function ShareLink(options: ShareLinkOptions, children?: IRNodeChild[]): IRNode;
|
|
361
|
+
|
|
362
|
+
export interface SliderOptions {
|
|
363
|
+
enabledBounds?: { lowerBound: number; upperBound: number } | undefined;
|
|
364
|
+
in?: { lowerBound: number; upperBound: number };
|
|
365
|
+
neutralValue?: number | undefined;
|
|
366
|
+
onEditingChanged?: (p0: boolean) => void;
|
|
367
|
+
step?: number;
|
|
368
|
+
tick?: (p0: number) => number | undefined;
|
|
369
|
+
value: Binding<number>;
|
|
370
|
+
currentValueLabel?: IRNodeChild | IRNodeChild[];
|
|
371
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
372
|
+
maximumValueLabel?: IRNodeChild | IRNodeChild[];
|
|
373
|
+
minimumValueLabel?: IRNodeChild | IRNodeChild[];
|
|
374
|
+
}
|
|
375
|
+
export declare function Slider(options?: SliderOptions): IRNode;
|
|
376
|
+
|
|
377
|
+
export declare function Spacer(minLength?: number | undefined): IRNode;
|
|
378
|
+
|
|
379
|
+
export interface StepperOptions {
|
|
380
|
+
onDecrement?: () => void | undefined;
|
|
381
|
+
onEditingChanged?: (p0: boolean) => void;
|
|
382
|
+
onIncrement?: () => void | undefined;
|
|
383
|
+
title?: string;
|
|
384
|
+
titleKey?: string;
|
|
385
|
+
titleResource?: string;
|
|
386
|
+
}
|
|
387
|
+
export declare function Stepper(children: IRNodeChild[]): IRNode;
|
|
388
|
+
export declare function Stepper(title: string, children?: IRNodeChild[]): IRNode;
|
|
389
|
+
export declare function Stepper(options: StepperOptions, children?: IRNodeChild[]): IRNode;
|
|
390
|
+
|
|
391
|
+
export interface TabViewOptions {
|
|
392
|
+
selection?: Binding<string> | undefined;
|
|
393
|
+
}
|
|
394
|
+
export declare function TabView(children: IRNodeChild[]): IRNode;
|
|
395
|
+
export declare function TabView(options: TabViewOptions, children?: IRNodeChild[]): IRNode;
|
|
396
|
+
|
|
397
|
+
export interface TextOptions {
|
|
398
|
+
content?: string;
|
|
399
|
+
countsDown?: boolean;
|
|
400
|
+
date?: number;
|
|
401
|
+
dates?: { lowerBound: number; upperBound: number };
|
|
402
|
+
image?: IRNode;
|
|
403
|
+
interval?: { start: number; end: number };
|
|
404
|
+
pauseTime?: number | undefined;
|
|
405
|
+
resource?: string;
|
|
406
|
+
showsHours?: boolean;
|
|
407
|
+
style?: Enums.Text_DateStyle;
|
|
408
|
+
timerInterval?: { lowerBound: number; upperBound: number };
|
|
409
|
+
verbatim?: string;
|
|
410
|
+
}
|
|
411
|
+
export declare function Text(content: string, opts?: Omit<TextOptions, 'content'>): IRNode;
|
|
412
|
+
export declare function Text(opts: TextOptions): IRNode;
|
|
413
|
+
|
|
414
|
+
export interface TextEditorOptions {
|
|
415
|
+
text: Binding<string>;
|
|
416
|
+
}
|
|
417
|
+
export declare function TextEditor(opts?: TextEditorOptions): IRNode;
|
|
418
|
+
|
|
419
|
+
export interface TextFieldOptions {
|
|
420
|
+
axis?: Enums.Axis;
|
|
421
|
+
onCommit?: () => void;
|
|
422
|
+
onEditingChanged?: (p0: boolean) => void;
|
|
423
|
+
prompt?: string | IRNode | undefined;
|
|
424
|
+
text: Binding<string>;
|
|
425
|
+
title?: string;
|
|
426
|
+
titleKey?: string;
|
|
427
|
+
titleResource?: string;
|
|
428
|
+
label?: IRNodeChild | IRNodeChild[];
|
|
429
|
+
}
|
|
430
|
+
export declare function TextField(title: string, text: any): IRNode;
|
|
431
|
+
export declare function TextField(title: string, text: any, onCommit?: () => void): IRNode;
|
|
432
|
+
export declare function TextField(options: TextFieldOptions): IRNode;
|
|
433
|
+
|
|
434
|
+
export interface TextFieldLinkOptions {
|
|
435
|
+
onSubmit: (p0: string) => void;
|
|
436
|
+
prompt?: string | IRNode | undefined;
|
|
437
|
+
title?: string;
|
|
438
|
+
titleKey?: string;
|
|
439
|
+
titleResource?: string;
|
|
440
|
+
}
|
|
441
|
+
export declare function TextFieldLink(children: IRNodeChild[]): IRNode;
|
|
442
|
+
export declare function TextFieldLink(title: string, children?: IRNodeChild[]): IRNode;
|
|
443
|
+
export declare function TextFieldLink(options: TextFieldLinkOptions, children?: IRNodeChild[]): IRNode;
|
|
444
|
+
|
|
445
|
+
export interface ToggleOptions {
|
|
446
|
+
isOn: Binding<boolean>;
|
|
447
|
+
systemImage?: string;
|
|
448
|
+
title?: string;
|
|
449
|
+
titleKey?: string;
|
|
450
|
+
titleResource?: string;
|
|
451
|
+
}
|
|
452
|
+
export declare function Toggle(children: IRNodeChild[]): IRNode;
|
|
453
|
+
export declare function Toggle(title: string, children?: IRNodeChild[]): IRNode;
|
|
454
|
+
export declare function Toggle(options: ToggleOptions, children?: IRNodeChild[]): IRNode;
|
|
455
|
+
|
|
456
|
+
export interface UnevenRoundedRectangleOptions {
|
|
457
|
+
bottomLeadingRadius?: number;
|
|
458
|
+
bottomTrailingRadius?: number;
|
|
459
|
+
style?: Enums.RoundedCornerStyle;
|
|
460
|
+
topLeadingRadius?: number;
|
|
461
|
+
topTrailingRadius?: number;
|
|
462
|
+
}
|
|
463
|
+
export declare function UnevenRoundedRectangle(topLeadingRadius: number, opts?: Omit<UnevenRoundedRectangleOptions, 'topLeadingRadius'>): IRNode;
|
|
464
|
+
export declare function UnevenRoundedRectangle(opts: UnevenRoundedRectangleOptions): IRNode;
|
|
465
|
+
|
|
466
|
+
export declare function VSplitView(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
467
|
+
|
|
468
|
+
export interface VStackOptions {
|
|
469
|
+
alignment?: Enums.HorizontalAlignment;
|
|
470
|
+
spacing?: number | undefined;
|
|
471
|
+
}
|
|
472
|
+
export declare function VStack(children: IRNodeChild[]): IRNode;
|
|
473
|
+
export declare function VStack(alignment: Enums.HorizontalAlignment, children?: IRNodeChild[]): IRNode;
|
|
474
|
+
export declare function VStack(options: VStackOptions, children?: IRNodeChild[]): IRNode;
|
|
475
|
+
|
|
476
|
+
export interface ViewThatFitsOptions {
|
|
477
|
+
in?: Enums.Axis_Set;
|
|
478
|
+
}
|
|
479
|
+
export declare function ViewThatFits(children: IRNodeChild[]): IRNode;
|
|
480
|
+
export declare function ViewThatFits(axes: Enums.Axis_Set, children?: IRNodeChild[]): IRNode;
|
|
481
|
+
export declare function ViewThatFits(options: ViewThatFitsOptions, children?: IRNodeChild[]): IRNode;
|
|
482
|
+
|
|
483
|
+
export declare function WindowVisibilityToggle(windowID: string): IRNode;
|
|
484
|
+
|
|
485
|
+
export interface ZStackOptions {
|
|
486
|
+
alignment?: Enums.Alignment;
|
|
487
|
+
}
|
|
488
|
+
export declare function ZStack(children: IRNodeChild[]): IRNode;
|
|
489
|
+
export declare function ZStack(alignment: Enums.Alignment, children?: IRNodeChild[]): IRNode;
|
|
490
|
+
export declare function ZStack(options: ZStackOptions, children?: IRNodeChild[]): IRNode;
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
// Global declarations
|
|
494
|
+
declare global {
|
|
495
|
+
const AsyncImage: typeof import('./IRNodes.generated').AsyncImage;
|
|
496
|
+
const Button: typeof import('./IRNodes.generated').Button;
|
|
497
|
+
const Capsule: typeof import('./IRNodes.generated').Capsule;
|
|
498
|
+
const Circle: typeof import('./IRNodes.generated').Circle;
|
|
499
|
+
const Color: typeof import('./IRNodes.generated').Color;
|
|
500
|
+
const ConcentricRectangle: typeof import('./IRNodes.generated').ConcentricRectangle;
|
|
501
|
+
const ContainerRelativeShape: typeof import('./IRNodes.generated').ContainerRelativeShape;
|
|
502
|
+
const ContentUnavailableView: typeof import('./IRNodes.generated').ContentUnavailableView;
|
|
503
|
+
const ControlGroup: typeof import('./IRNodes.generated').ControlGroup;
|
|
504
|
+
const DebugReplaceableView: typeof import('./IRNodes.generated').DebugReplaceableView;
|
|
505
|
+
const DefaultDocumentGroupLaunchActions: typeof import('./IRNodes.generated').DefaultDocumentGroupLaunchActions;
|
|
506
|
+
const DefaultGlassEffectShape: typeof import('./IRNodes.generated').DefaultGlassEffectShape;
|
|
507
|
+
const DisclosureGroup: typeof import('./IRNodes.generated').DisclosureGroup;
|
|
508
|
+
const Divider: typeof import('./IRNodes.generated').Divider;
|
|
509
|
+
const EditButton: typeof import('./IRNodes.generated').EditButton;
|
|
510
|
+
const Ellipse: typeof import('./IRNodes.generated').Ellipse;
|
|
511
|
+
const EmptyView: typeof import('./IRNodes.generated').EmptyView;
|
|
512
|
+
const ForEach: typeof import('./IRNodes.generated').ForEach;
|
|
513
|
+
const Form: typeof import('./IRNodes.generated').Form;
|
|
514
|
+
const Gauge: typeof import('./IRNodes.generated').Gauge;
|
|
515
|
+
const GeometryReader: typeof import('./IRNodes.generated').GeometryReader;
|
|
516
|
+
const GlassEffectContainer: typeof import('./IRNodes.generated').GlassEffectContainer;
|
|
517
|
+
const Grid: typeof import('./IRNodes.generated').Grid;
|
|
518
|
+
const GridRow: typeof import('./IRNodes.generated').GridRow;
|
|
519
|
+
const GroupBox: typeof import('./IRNodes.generated').GroupBox;
|
|
520
|
+
const HSplitView: typeof import('./IRNodes.generated').HSplitView;
|
|
521
|
+
const HStack: typeof import('./IRNodes.generated').HStack;
|
|
522
|
+
const HelpLink: typeof import('./IRNodes.generated').HelpLink;
|
|
523
|
+
const Image: typeof import('./IRNodes.generated').Image;
|
|
524
|
+
const Label: typeof import('./IRNodes.generated').Label;
|
|
525
|
+
const LabeledContent: typeof import('./IRNodes.generated').LabeledContent;
|
|
526
|
+
const LazyHStack: typeof import('./IRNodes.generated').LazyHStack;
|
|
527
|
+
const LazyVStack: typeof import('./IRNodes.generated').LazyVStack;
|
|
528
|
+
const Link: typeof import('./IRNodes.generated').Link;
|
|
529
|
+
const List: typeof import('./IRNodes.generated').List;
|
|
530
|
+
const Menu: typeof import('./IRNodes.generated').Menu;
|
|
531
|
+
const MenuButton: typeof import('./IRNodes.generated').MenuButton;
|
|
532
|
+
const NavigationLink: typeof import('./IRNodes.generated').NavigationLink;
|
|
533
|
+
const NavigationSplitView: typeof import('./IRNodes.generated').NavigationSplitView;
|
|
534
|
+
const NavigationStack: typeof import('./IRNodes.generated').NavigationStack;
|
|
535
|
+
const NavigationView: typeof import('./IRNodes.generated').NavigationView;
|
|
536
|
+
const Path: typeof import('./IRNodes.generated').Path;
|
|
537
|
+
const ProgressView: typeof import('./IRNodes.generated').ProgressView;
|
|
538
|
+
const Rectangle: typeof import('./IRNodes.generated').Rectangle;
|
|
539
|
+
const RenameButton: typeof import('./IRNodes.generated').RenameButton;
|
|
540
|
+
const RoundedRectangle: typeof import('./IRNodes.generated').RoundedRectangle;
|
|
541
|
+
const ScrollView: typeof import('./IRNodes.generated').ScrollView;
|
|
542
|
+
const ScrollViewReader: typeof import('./IRNodes.generated').ScrollViewReader;
|
|
543
|
+
const Section: typeof import('./IRNodes.generated').Section;
|
|
544
|
+
const SecureField: typeof import('./IRNodes.generated').SecureField;
|
|
545
|
+
const SettingsLink: typeof import('./IRNodes.generated').SettingsLink;
|
|
546
|
+
const ShareLink: typeof import('./IRNodes.generated').ShareLink;
|
|
547
|
+
const Slider: typeof import('./IRNodes.generated').Slider;
|
|
548
|
+
const Spacer: typeof import('./IRNodes.generated').Spacer;
|
|
549
|
+
const Stepper: typeof import('./IRNodes.generated').Stepper;
|
|
550
|
+
const TabView: typeof import('./IRNodes.generated').TabView;
|
|
551
|
+
const Text: typeof import('./IRNodes.generated').Text;
|
|
552
|
+
const TextEditor: typeof import('./IRNodes.generated').TextEditor;
|
|
553
|
+
const TextField: typeof import('./IRNodes.generated').TextField;
|
|
554
|
+
const TextFieldLink: typeof import('./IRNodes.generated').TextFieldLink;
|
|
555
|
+
const Toggle: typeof import('./IRNodes.generated').Toggle;
|
|
556
|
+
const UnevenRoundedRectangle: typeof import('./IRNodes.generated').UnevenRoundedRectangle;
|
|
557
|
+
const VSplitView: typeof import('./IRNodes.generated').VSplitView;
|
|
558
|
+
const VStack: typeof import('./IRNodes.generated').VStack;
|
|
559
|
+
const ViewThatFits: typeof import('./IRNodes.generated').ViewThatFits;
|
|
560
|
+
const WindowVisibilityToggle: typeof import('./IRNodes.generated').WindowVisibilityToggle;
|
|
561
|
+
const ZStack: typeof import('./IRNodes.generated').ZStack;
|
|
562
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// Auto-generated TypeScript type definitions
|
|
2
|
+
// This file is generated by SwiftBindGen - do not edit manually
|
|
3
|
+
|
|
4
|
+
import { IRNode, IRNodeChild, IRColorParams, FontStyle } from './IRSwiftUI';
|
|
5
|
+
import { Binding } from './SwiftUI';
|
|
6
|
+
import * as Enums from './IREnums.generated';
|
|
7
|
+
export interface AlertSceneOptions {
|
|
8
|
+
isPresented: Binding<boolean>;
|
|
9
|
+
title: string;
|
|
10
|
+
titleKey: string;
|
|
11
|
+
titleResource: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function AlertScene(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
14
|
+
export declare function AlertScene(options: AlertSceneOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
15
|
+
|
|
16
|
+
export declare function AssistiveAccess(children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
17
|
+
|
|
18
|
+
export interface ImmersiveSpaceOptions {
|
|
19
|
+
id: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function ImmersiveSpace(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
22
|
+
export declare function ImmersiveSpace(options: ImmersiveSpaceOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
23
|
+
|
|
24
|
+
export interface MenuBarExtraOptions {
|
|
25
|
+
isInserted: Binding<boolean>;
|
|
26
|
+
}
|
|
27
|
+
export declare function MenuBarExtra(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
28
|
+
export declare function MenuBarExtra(options: MenuBarExtraOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
29
|
+
|
|
30
|
+
export declare function Settings(children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
31
|
+
|
|
32
|
+
export interface UtilityWindowOptions {
|
|
33
|
+
id: string;
|
|
34
|
+
title: string;
|
|
35
|
+
titleKey: string;
|
|
36
|
+
titleResource: string;
|
|
37
|
+
}
|
|
38
|
+
export declare function UtilityWindow(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
39
|
+
export declare function UtilityWindow(options: UtilityWindowOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
40
|
+
|
|
41
|
+
export interface WindowOptions {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
titleKey: string;
|
|
45
|
+
titleResource: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function Window(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
48
|
+
export declare function Window(options: WindowOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
49
|
+
|
|
50
|
+
export interface WindowGroupOptions {
|
|
51
|
+
id: string;
|
|
52
|
+
title: string;
|
|
53
|
+
titleKey: string;
|
|
54
|
+
}
|
|
55
|
+
export declare function WindowGroup(children: IRNodeChild | IRNodeChild[]): IRNode;
|
|
56
|
+
export declare function WindowGroup(options: WindowGroupOptions, children?: IRNodeChild | IRNodeChild[]): IRNode;
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// Global declarations for scenes
|
|
60
|
+
declare global {
|
|
61
|
+
const AlertScene: typeof import('./IRScenes.generated').AlertScene;
|
|
62
|
+
const AssistiveAccess: typeof import('./IRScenes.generated').AssistiveAccess;
|
|
63
|
+
const ImmersiveSpace: typeof import('./IRScenes.generated').ImmersiveSpace;
|
|
64
|
+
const MenuBarExtra: typeof import('./IRScenes.generated').MenuBarExtra;
|
|
65
|
+
const Settings: typeof import('./IRScenes.generated').Settings;
|
|
66
|
+
const UtilityWindow: typeof import('./IRScenes.generated').UtilityWindow;
|
|
67
|
+
const Window: typeof import('./IRScenes.generated').Window;
|
|
68
|
+
const WindowGroup: typeof import('./IRScenes.generated').WindowGroup;
|
|
69
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// TypeScript declarations for SwiftUI IR (Intermediate Representation)
|
|
2
|
+
|
|
3
|
+
import { Font, Font_TextStyle, Font_Weight } from "./IREnums.generated";
|
|
4
|
+
import { IRNodeModifiers } from "./IRModifiers.generated";
|
|
5
|
+
import { SwiftUIView } from "./SwiftUI";
|
|
6
|
+
|
|
7
|
+
export type IRColorParams = string | {
|
|
8
|
+
r: number;
|
|
9
|
+
g: number;
|
|
10
|
+
b: number;
|
|
11
|
+
a: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type FontStyle = Font_TextStyle | {
|
|
15
|
+
style: Font_TextStyle;
|
|
16
|
+
size: number;
|
|
17
|
+
weight: Font_Weight;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** IR Node representing a SwiftUI view */
|
|
21
|
+
export declare class IRNode extends IRNodeModifiers {
|
|
22
|
+
key: string | null;
|
|
23
|
+
name: string;
|
|
24
|
+
params: Record<string, any>;
|
|
25
|
+
slots: Record<string, IRNode[]>;
|
|
26
|
+
modifiers: Array<{ name: string; params: Record<string, any> }>;
|
|
27
|
+
|
|
28
|
+
constructor(
|
|
29
|
+
name: string,
|
|
30
|
+
params?: Record<string, any>,
|
|
31
|
+
slots?: Record<string, IRNode[]>
|
|
32
|
+
);
|
|
33
|
+
|
|
34
|
+
/** Set a unique key for diffing */
|
|
35
|
+
setKey(k: string): this;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type IRNodeChild = IRNode | SwiftUIView;
|
|
39
|
+
|
|
40
|
+
/** State decorator for reactive properties */
|
|
41
|
+
export declare const State: any;
|
|
42
|
+
export declare const main: any;
|
|
43
|
+
|
|
44
|
+
declare global {
|
|
45
|
+
const IRNode: typeof import("./IRSwiftUI.d.ts").IRNode;
|
|
46
|
+
const State: typeof import("./IRSwiftUI.d.ts").State;
|
|
47
|
+
const main: typeof import("./IRSwiftUI.d.ts").main;
|
|
48
|
+
}
|