@openwebf/react-cupertino-ui 0.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/dist/index.d.mts +1245 -0
- package/dist/index.d.ts +1245 -0
- package/dist/index.js +782 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +737 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WebFElementWithMethods } from '@openwebf/react-core-ui';
|
|
3
|
+
|
|
4
|
+
interface FlutterCupertinoTimerPickerProps {
|
|
5
|
+
/**
|
|
6
|
+
* mode property
|
|
7
|
+
* @default undefined
|
|
8
|
+
*/
|
|
9
|
+
mode?: string;
|
|
10
|
+
/**
|
|
11
|
+
* initialTimerDuration property
|
|
12
|
+
* @default undefined
|
|
13
|
+
*/
|
|
14
|
+
initialTimerDuration?: number;
|
|
15
|
+
/**
|
|
16
|
+
* minuteInterval property
|
|
17
|
+
* @default undefined
|
|
18
|
+
*/
|
|
19
|
+
minuteInterval?: number;
|
|
20
|
+
/**
|
|
21
|
+
* secondInterval property
|
|
22
|
+
* @default undefined
|
|
23
|
+
*/
|
|
24
|
+
secondInterval?: number;
|
|
25
|
+
/**
|
|
26
|
+
* backgroundColor property
|
|
27
|
+
* @default undefined
|
|
28
|
+
*/
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
/**
|
|
31
|
+
* height property
|
|
32
|
+
* @default undefined
|
|
33
|
+
*/
|
|
34
|
+
height?: number;
|
|
35
|
+
/**
|
|
36
|
+
* change event handler
|
|
37
|
+
*/
|
|
38
|
+
onChange?: (event: CustomEvent) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Additional CSS styles
|
|
41
|
+
*/
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/**
|
|
44
|
+
* Children elements
|
|
45
|
+
*/
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Additional CSS class names
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
}
|
|
52
|
+
interface FlutterCupertinoTimerPickerElement extends WebFElementWithMethods<{}> {
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* FlutterCupertinoTimerPicker - WebF FlutterCupertinoTimerPicker component
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```tsx
|
|
59
|
+
* <FlutterCupertinoTimerPicker
|
|
60
|
+
* // Add example props here
|
|
61
|
+
* >
|
|
62
|
+
* Content
|
|
63
|
+
* </FlutterCupertinoTimerPicker>
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
declare const FlutterCupertinoTimerPicker: React.ForwardRefExoticComponent<FlutterCupertinoTimerPickerProps & {
|
|
67
|
+
className?: string;
|
|
68
|
+
style?: React.CSSProperties;
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
} & React.RefAttributes<FlutterCupertinoTimerPickerElement>>;
|
|
71
|
+
|
|
72
|
+
interface FlutterCupertinoTextareaProps {
|
|
73
|
+
/**
|
|
74
|
+
* val property
|
|
75
|
+
* @default undefined
|
|
76
|
+
*/
|
|
77
|
+
val?: string;
|
|
78
|
+
/**
|
|
79
|
+
* placeholder property
|
|
80
|
+
* @default undefined
|
|
81
|
+
*/
|
|
82
|
+
placeholder?: string;
|
|
83
|
+
/**
|
|
84
|
+
* disabled property
|
|
85
|
+
* @default undefined
|
|
86
|
+
*/
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* readonly property
|
|
90
|
+
* @default undefined
|
|
91
|
+
*/
|
|
92
|
+
readonly?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* maxLength property
|
|
95
|
+
* @default undefined
|
|
96
|
+
*/
|
|
97
|
+
maxLength?: number;
|
|
98
|
+
/**
|
|
99
|
+
* rows property
|
|
100
|
+
* @default undefined
|
|
101
|
+
*/
|
|
102
|
+
rows?: number;
|
|
103
|
+
/**
|
|
104
|
+
* showCount property
|
|
105
|
+
* @default undefined
|
|
106
|
+
*/
|
|
107
|
+
showCount?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* autoSize property
|
|
110
|
+
* @default undefined
|
|
111
|
+
*/
|
|
112
|
+
autoSize?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* transparent property
|
|
115
|
+
* @default undefined
|
|
116
|
+
*/
|
|
117
|
+
transparent?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* input event handler
|
|
120
|
+
*/
|
|
121
|
+
onInput?: (event: CustomEvent) => void;
|
|
122
|
+
/**
|
|
123
|
+
* complete event handler
|
|
124
|
+
*/
|
|
125
|
+
onComplete?: (event: Event) => void;
|
|
126
|
+
/**
|
|
127
|
+
* Additional CSS styles
|
|
128
|
+
*/
|
|
129
|
+
style?: React.CSSProperties;
|
|
130
|
+
/**
|
|
131
|
+
* Children elements
|
|
132
|
+
*/
|
|
133
|
+
children?: React.ReactNode;
|
|
134
|
+
/**
|
|
135
|
+
* Additional CSS class names
|
|
136
|
+
*/
|
|
137
|
+
className?: string;
|
|
138
|
+
}
|
|
139
|
+
interface FlutterCupertinoTextareaElement extends WebFElementWithMethods<{
|
|
140
|
+
focus(): void;
|
|
141
|
+
blur(): void;
|
|
142
|
+
clear(): void;
|
|
143
|
+
}> {
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* FlutterCupertinoTextarea - WebF FlutterCupertinoTextarea component
|
|
147
|
+
*
|
|
148
|
+
* @example
|
|
149
|
+
* ```tsx
|
|
150
|
+
* <FlutterCupertinoTextarea
|
|
151
|
+
* // Add example props here
|
|
152
|
+
* >
|
|
153
|
+
* Content
|
|
154
|
+
* </FlutterCupertinoTextarea>
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
declare const FlutterCupertinoTextarea: React.ForwardRefExoticComponent<FlutterCupertinoTextareaProps & {
|
|
158
|
+
className?: string;
|
|
159
|
+
style?: React.CSSProperties;
|
|
160
|
+
children?: React.ReactNode;
|
|
161
|
+
} & React.RefAttributes<FlutterCupertinoTextareaElement>>;
|
|
162
|
+
|
|
163
|
+
type CupertinoTabBarIcon = "home" | "house" | "house_fill" | "search" | "search_circle" | "search_circle_fill" | "add" | "add_circled" | "add_circled_solid" | "plus" | "plus_circle" | "plus_circle_fill" | "person" | "person_fill" | "person_circle" | "person_circle_fill" | "profile_circled" | "bell" | "bell_fill" | "bell_circle" | "bell_circle_fill" | "chat_bubble" | "chat_bubble_fill" | "chat_bubble_2" | "chat_bubble_2_fill" | "mail" | "mail_solid" | "envelope" | "envelope_fill" | "phone" | "phone_fill" | "compass" | "compass_fill" | "location" | "location_fill" | "map" | "map_fill" | "photo" | "photo_fill" | "camera" | "camera_fill" | "video_camera" | "video_camera_solid" | "play" | "play_fill" | "play_circle" | "play_circle_fill" | "gear" | "gear_solid" | "settings" | "settings_solid" | "ellipsis" | "ellipsis_circle" | "ellipsis_circle_fill" | "creditcard" | "creditcard_fill" | "cart" | "cart_fill" | "bag" | "bag_fill" | "doc" | "doc_fill" | "doc_text" | "doc_text_fill" | "folder" | "folder_fill" | "book" | "book_fill" | "heart" | "heart_fill" | "star" | "star_fill" | "hand_thumbsup" | "hand_thumbsup_fill" | "bookmark" | "bookmark_fill" | "money_dollar" | "money_dollar_circle" | "money_dollar_circle_fill" | "info" | "info_circle" | "info_circle_fill" | "question" | "question_circle" | "question_circle_fill" | "exclamationmark" | "exclamationmark_circle" | "exclamationmark_circle_fill";
|
|
164
|
+
interface FlutterCupertinoTabBarProps {
|
|
165
|
+
/**
|
|
166
|
+
* currentIndex property
|
|
167
|
+
* @default undefined
|
|
168
|
+
*/
|
|
169
|
+
currentIndex?: string;
|
|
170
|
+
/**
|
|
171
|
+
* backgroundColor property
|
|
172
|
+
* @default undefined
|
|
173
|
+
*/
|
|
174
|
+
backgroundColor?: string;
|
|
175
|
+
/**
|
|
176
|
+
* activeColor property
|
|
177
|
+
* @default undefined
|
|
178
|
+
*/
|
|
179
|
+
activeColor?: string;
|
|
180
|
+
/**
|
|
181
|
+
* inactiveColor property
|
|
182
|
+
* @default undefined
|
|
183
|
+
*/
|
|
184
|
+
inactiveColor?: string;
|
|
185
|
+
/**
|
|
186
|
+
* iconSize property
|
|
187
|
+
* @default undefined
|
|
188
|
+
*/
|
|
189
|
+
iconSize?: string;
|
|
190
|
+
/**
|
|
191
|
+
* height property
|
|
192
|
+
* @default undefined
|
|
193
|
+
*/
|
|
194
|
+
height?: string;
|
|
195
|
+
/**
|
|
196
|
+
* tabchange event handler
|
|
197
|
+
*/
|
|
198
|
+
onTabchange?: (event: CustomEvent) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Additional CSS styles
|
|
201
|
+
*/
|
|
202
|
+
style?: React.CSSProperties;
|
|
203
|
+
/**
|
|
204
|
+
* Children elements
|
|
205
|
+
*/
|
|
206
|
+
children?: React.ReactNode;
|
|
207
|
+
/**
|
|
208
|
+
* Additional CSS class names
|
|
209
|
+
*/
|
|
210
|
+
className?: string;
|
|
211
|
+
}
|
|
212
|
+
interface FlutterCupertinoTabBarElement extends WebFElementWithMethods<{
|
|
213
|
+
switchTab(path: string): void;
|
|
214
|
+
}> {
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* FlutterCupertinoTabBar - WebF FlutterCupertinoTabBar component
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```tsx
|
|
221
|
+
* <FlutterCupertinoTabBar
|
|
222
|
+
* // Add example props here
|
|
223
|
+
* >
|
|
224
|
+
* Content
|
|
225
|
+
* </FlutterCupertinoTabBar>
|
|
226
|
+
* ```
|
|
227
|
+
*/
|
|
228
|
+
declare const FlutterCupertinoTabBar: React.ForwardRefExoticComponent<FlutterCupertinoTabBarProps & {
|
|
229
|
+
className?: string;
|
|
230
|
+
style?: React.CSSProperties;
|
|
231
|
+
children?: React.ReactNode;
|
|
232
|
+
} & React.RefAttributes<FlutterCupertinoTabBarElement>>;
|
|
233
|
+
interface FlutterCupertinoTabBarItemProps {
|
|
234
|
+
/**
|
|
235
|
+
* title property
|
|
236
|
+
* @default undefined
|
|
237
|
+
*/
|
|
238
|
+
title?: string;
|
|
239
|
+
/**
|
|
240
|
+
* icon property
|
|
241
|
+
* @default undefined
|
|
242
|
+
*/
|
|
243
|
+
icon?: CupertinoTabBarIcon;
|
|
244
|
+
/**
|
|
245
|
+
* path property
|
|
246
|
+
* @default undefined
|
|
247
|
+
*/
|
|
248
|
+
path?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Additional CSS styles
|
|
251
|
+
*/
|
|
252
|
+
style?: React.CSSProperties;
|
|
253
|
+
/**
|
|
254
|
+
* Children elements
|
|
255
|
+
*/
|
|
256
|
+
children?: React.ReactNode;
|
|
257
|
+
/**
|
|
258
|
+
* Additional CSS class names
|
|
259
|
+
*/
|
|
260
|
+
className?: string;
|
|
261
|
+
}
|
|
262
|
+
interface FlutterCupertinoTabBarItemElement extends WebFElementWithMethods<{}> {
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* FlutterCupertinoTabBarItem - WebF FlutterCupertinoTabBarItem component
|
|
266
|
+
*
|
|
267
|
+
* @example
|
|
268
|
+
* ```tsx
|
|
269
|
+
* <FlutterCupertinoTabBarItem
|
|
270
|
+
* // Add example props here
|
|
271
|
+
* >
|
|
272
|
+
* Content
|
|
273
|
+
* </FlutterCupertinoTabBarItem>
|
|
274
|
+
* ```
|
|
275
|
+
*/
|
|
276
|
+
declare const FlutterCupertinoTabBarItem: React.ForwardRefExoticComponent<FlutterCupertinoTabBarItemProps & {
|
|
277
|
+
className?: string;
|
|
278
|
+
style?: React.CSSProperties;
|
|
279
|
+
children?: React.ReactNode;
|
|
280
|
+
} & React.RefAttributes<FlutterCupertinoTabBarItemElement>>;
|
|
281
|
+
|
|
282
|
+
interface FlutterCupertinoTabProps {
|
|
283
|
+
/**
|
|
284
|
+
* change event handler
|
|
285
|
+
*/
|
|
286
|
+
onChange?: (event: CustomEvent) => void;
|
|
287
|
+
/**
|
|
288
|
+
* Additional CSS styles
|
|
289
|
+
*/
|
|
290
|
+
style?: React.CSSProperties;
|
|
291
|
+
/**
|
|
292
|
+
* Children elements
|
|
293
|
+
*/
|
|
294
|
+
children?: React.ReactNode;
|
|
295
|
+
/**
|
|
296
|
+
* Additional CSS class names
|
|
297
|
+
*/
|
|
298
|
+
className?: string;
|
|
299
|
+
}
|
|
300
|
+
interface FlutterCupertinoTabElement extends WebFElementWithMethods<{
|
|
301
|
+
switchTab(index: number): void;
|
|
302
|
+
}> {
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* FlutterCupertinoTab - WebF FlutterCupertinoTab component
|
|
306
|
+
*
|
|
307
|
+
* @example
|
|
308
|
+
* ```tsx
|
|
309
|
+
* <FlutterCupertinoTab
|
|
310
|
+
* // Add example props here
|
|
311
|
+
* >
|
|
312
|
+
* Content
|
|
313
|
+
* </FlutterCupertinoTab>
|
|
314
|
+
* ```
|
|
315
|
+
*/
|
|
316
|
+
declare const FlutterCupertinoTab: React.ForwardRefExoticComponent<FlutterCupertinoTabProps & {
|
|
317
|
+
className?: string;
|
|
318
|
+
style?: React.CSSProperties;
|
|
319
|
+
children?: React.ReactNode;
|
|
320
|
+
} & React.RefAttributes<FlutterCupertinoTabElement>>;
|
|
321
|
+
interface FlutterCupertinoTabItemProps {
|
|
322
|
+
/**
|
|
323
|
+
* title property
|
|
324
|
+
* @default undefined
|
|
325
|
+
*/
|
|
326
|
+
title?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Additional CSS styles
|
|
329
|
+
*/
|
|
330
|
+
style?: React.CSSProperties;
|
|
331
|
+
/**
|
|
332
|
+
* Children elements
|
|
333
|
+
*/
|
|
334
|
+
children?: React.ReactNode;
|
|
335
|
+
/**
|
|
336
|
+
* Additional CSS class names
|
|
337
|
+
*/
|
|
338
|
+
className?: string;
|
|
339
|
+
}
|
|
340
|
+
interface FlutterCupertinoTabItemElement extends WebFElementWithMethods<{}> {
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* FlutterCupertinoTabItem - WebF FlutterCupertinoTabItem component
|
|
344
|
+
*
|
|
345
|
+
* @example
|
|
346
|
+
* ```tsx
|
|
347
|
+
* <FlutterCupertinoTabItem
|
|
348
|
+
* // Add example props here
|
|
349
|
+
* >
|
|
350
|
+
* Content
|
|
351
|
+
* </FlutterCupertinoTabItem>
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
declare const FlutterCupertinoTabItem: React.ForwardRefExoticComponent<FlutterCupertinoTabItemProps & {
|
|
355
|
+
className?: string;
|
|
356
|
+
style?: React.CSSProperties;
|
|
357
|
+
children?: React.ReactNode;
|
|
358
|
+
} & React.RefAttributes<FlutterCupertinoTabItemElement>>;
|
|
359
|
+
|
|
360
|
+
interface FlutterCupertinoSwitchProps {
|
|
361
|
+
/**
|
|
362
|
+
* checked property
|
|
363
|
+
* @default undefined
|
|
364
|
+
*/
|
|
365
|
+
checked?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* disabled property
|
|
368
|
+
* @default undefined
|
|
369
|
+
*/
|
|
370
|
+
disabled?: boolean;
|
|
371
|
+
/**
|
|
372
|
+
* activeColor property
|
|
373
|
+
* @default undefined
|
|
374
|
+
*/
|
|
375
|
+
activeColor?: string;
|
|
376
|
+
/**
|
|
377
|
+
* inactiveColor property
|
|
378
|
+
* @default undefined
|
|
379
|
+
*/
|
|
380
|
+
inactiveColor?: string;
|
|
381
|
+
/**
|
|
382
|
+
* change event handler
|
|
383
|
+
*/
|
|
384
|
+
onChange?: (event: CustomEvent) => void;
|
|
385
|
+
/**
|
|
386
|
+
* Additional CSS styles
|
|
387
|
+
*/
|
|
388
|
+
style?: React.CSSProperties;
|
|
389
|
+
/**
|
|
390
|
+
* Children elements
|
|
391
|
+
*/
|
|
392
|
+
children?: React.ReactNode;
|
|
393
|
+
/**
|
|
394
|
+
* Additional CSS class names
|
|
395
|
+
*/
|
|
396
|
+
className?: string;
|
|
397
|
+
}
|
|
398
|
+
interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```tsx
|
|
405
|
+
* <FlutterCupertinoSwitch
|
|
406
|
+
* // Add example props here
|
|
407
|
+
* >
|
|
408
|
+
* Content
|
|
409
|
+
* </FlutterCupertinoSwitch>
|
|
410
|
+
* ```
|
|
411
|
+
*/
|
|
412
|
+
declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
|
|
413
|
+
className?: string;
|
|
414
|
+
style?: React.CSSProperties;
|
|
415
|
+
children?: React.ReactNode;
|
|
416
|
+
} & React.RefAttributes<FlutterCupertinoSwitchElement>>;
|
|
417
|
+
|
|
418
|
+
interface FlutterCupertinoSliderProps {
|
|
419
|
+
/**
|
|
420
|
+
* val property
|
|
421
|
+
* @default undefined
|
|
422
|
+
*/
|
|
423
|
+
val?: number;
|
|
424
|
+
/**
|
|
425
|
+
* min property
|
|
426
|
+
* @default undefined
|
|
427
|
+
*/
|
|
428
|
+
min?: number;
|
|
429
|
+
/**
|
|
430
|
+
* max property
|
|
431
|
+
* @default undefined
|
|
432
|
+
*/
|
|
433
|
+
max?: number;
|
|
434
|
+
/**
|
|
435
|
+
* step property
|
|
436
|
+
* @default undefined
|
|
437
|
+
*/
|
|
438
|
+
step?: number;
|
|
439
|
+
/**
|
|
440
|
+
* disabled property
|
|
441
|
+
* @default undefined
|
|
442
|
+
*/
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* change event handler
|
|
446
|
+
*/
|
|
447
|
+
onChange?: (event: CustomEvent) => void;
|
|
448
|
+
/**
|
|
449
|
+
* changestart event handler
|
|
450
|
+
*/
|
|
451
|
+
onChangestart?: (event: CustomEvent) => void;
|
|
452
|
+
/**
|
|
453
|
+
* changeend event handler
|
|
454
|
+
*/
|
|
455
|
+
onChangeend?: (event: CustomEvent) => void;
|
|
456
|
+
/**
|
|
457
|
+
* Additional CSS styles
|
|
458
|
+
*/
|
|
459
|
+
style?: React.CSSProperties;
|
|
460
|
+
/**
|
|
461
|
+
* Children elements
|
|
462
|
+
*/
|
|
463
|
+
children?: React.ReactNode;
|
|
464
|
+
/**
|
|
465
|
+
* Additional CSS class names
|
|
466
|
+
*/
|
|
467
|
+
className?: string;
|
|
468
|
+
}
|
|
469
|
+
interface FlutterCupertinoSliderElement extends WebFElementWithMethods<{
|
|
470
|
+
getValue(): number;
|
|
471
|
+
setValue(val: number): void;
|
|
472
|
+
}> {
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* FlutterCupertinoSlider - WebF FlutterCupertinoSlider component
|
|
476
|
+
*
|
|
477
|
+
* @example
|
|
478
|
+
* ```tsx
|
|
479
|
+
* <FlutterCupertinoSlider
|
|
480
|
+
* // Add example props here
|
|
481
|
+
* >
|
|
482
|
+
* Content
|
|
483
|
+
* </FlutterCupertinoSlider>
|
|
484
|
+
* ```
|
|
485
|
+
*/
|
|
486
|
+
declare const FlutterCupertinoSlider: React.ForwardRefExoticComponent<FlutterCupertinoSliderProps & {
|
|
487
|
+
className?: string;
|
|
488
|
+
style?: React.CSSProperties;
|
|
489
|
+
children?: React.ReactNode;
|
|
490
|
+
} & React.RefAttributes<FlutterCupertinoSliderElement>>;
|
|
491
|
+
|
|
492
|
+
interface FlutterCupertinoSearchInputProps {
|
|
493
|
+
/**
|
|
494
|
+
* val property
|
|
495
|
+
* @default undefined
|
|
496
|
+
*/
|
|
497
|
+
val?: string;
|
|
498
|
+
/**
|
|
499
|
+
* placeholder property
|
|
500
|
+
* @default undefined
|
|
501
|
+
*/
|
|
502
|
+
placeholder?: string;
|
|
503
|
+
/**
|
|
504
|
+
* disabled property
|
|
505
|
+
* @default undefined
|
|
506
|
+
*/
|
|
507
|
+
disabled?: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* type property
|
|
510
|
+
* @default undefined
|
|
511
|
+
*/
|
|
512
|
+
type?: string;
|
|
513
|
+
/**
|
|
514
|
+
* prefixIcon property
|
|
515
|
+
* @default undefined
|
|
516
|
+
*/
|
|
517
|
+
prefixIcon?: string;
|
|
518
|
+
/**
|
|
519
|
+
* suffixIcon property
|
|
520
|
+
* @default undefined
|
|
521
|
+
*/
|
|
522
|
+
suffixIcon?: string;
|
|
523
|
+
/**
|
|
524
|
+
* suffixModel property
|
|
525
|
+
* @default undefined
|
|
526
|
+
*/
|
|
527
|
+
suffixModel?: string;
|
|
528
|
+
/**
|
|
529
|
+
* itemColor property
|
|
530
|
+
* @default undefined
|
|
531
|
+
*/
|
|
532
|
+
itemColor?: string;
|
|
533
|
+
/**
|
|
534
|
+
* itemSize property
|
|
535
|
+
* @default undefined
|
|
536
|
+
*/
|
|
537
|
+
itemSize?: number;
|
|
538
|
+
/**
|
|
539
|
+
* autofocus property
|
|
540
|
+
*/
|
|
541
|
+
autofocus: boolean;
|
|
542
|
+
/**
|
|
543
|
+
* input event handler
|
|
544
|
+
*/
|
|
545
|
+
onInput?: (event: CustomEvent) => void;
|
|
546
|
+
/**
|
|
547
|
+
* search event handler
|
|
548
|
+
*/
|
|
549
|
+
onSearch?: (event: CustomEvent) => void;
|
|
550
|
+
/**
|
|
551
|
+
* clear event handler
|
|
552
|
+
*/
|
|
553
|
+
onClear?: (event: CustomEvent) => void;
|
|
554
|
+
/**
|
|
555
|
+
* Additional CSS styles
|
|
556
|
+
*/
|
|
557
|
+
style?: React.CSSProperties;
|
|
558
|
+
/**
|
|
559
|
+
* Children elements
|
|
560
|
+
*/
|
|
561
|
+
children?: React.ReactNode;
|
|
562
|
+
/**
|
|
563
|
+
* Additional CSS class names
|
|
564
|
+
*/
|
|
565
|
+
className?: string;
|
|
566
|
+
}
|
|
567
|
+
interface FlutterCupertinoSearchInputElement extends WebFElementWithMethods<{
|
|
568
|
+
getValue(): string;
|
|
569
|
+
setValue(value: string): void;
|
|
570
|
+
focus(): void;
|
|
571
|
+
blur(): void;
|
|
572
|
+
clear(): void;
|
|
573
|
+
}> {
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* FlutterCupertinoSearchInput - WebF FlutterCupertinoSearchInput component
|
|
577
|
+
*
|
|
578
|
+
* @example
|
|
579
|
+
* ```tsx
|
|
580
|
+
* <FlutterCupertinoSearchInput
|
|
581
|
+
* // Add example props here
|
|
582
|
+
* >
|
|
583
|
+
* Content
|
|
584
|
+
* </FlutterCupertinoSearchInput>
|
|
585
|
+
* ```
|
|
586
|
+
*/
|
|
587
|
+
declare const FlutterCupertinoSearchInput: React.ForwardRefExoticComponent<FlutterCupertinoSearchInputProps & {
|
|
588
|
+
className?: string;
|
|
589
|
+
style?: React.CSSProperties;
|
|
590
|
+
children?: React.ReactNode;
|
|
591
|
+
} & React.RefAttributes<FlutterCupertinoSearchInputElement>>;
|
|
592
|
+
|
|
593
|
+
interface FlutterCupertinoRadioProps {
|
|
594
|
+
/**
|
|
595
|
+
* val property
|
|
596
|
+
* @default undefined
|
|
597
|
+
*/
|
|
598
|
+
val?: string;
|
|
599
|
+
/**
|
|
600
|
+
* groupValue property
|
|
601
|
+
* @default undefined
|
|
602
|
+
*/
|
|
603
|
+
groupValue?: string;
|
|
604
|
+
/**
|
|
605
|
+
* useCheckmarkStyle property
|
|
606
|
+
* @default undefined
|
|
607
|
+
*/
|
|
608
|
+
useCheckmarkStyle?: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* disabled property
|
|
611
|
+
* @default undefined
|
|
612
|
+
*/
|
|
613
|
+
disabled?: boolean;
|
|
614
|
+
/**
|
|
615
|
+
* activeColor property
|
|
616
|
+
* @default undefined
|
|
617
|
+
*/
|
|
618
|
+
activeColor?: string;
|
|
619
|
+
/**
|
|
620
|
+
* focusColor property
|
|
621
|
+
* @default undefined
|
|
622
|
+
*/
|
|
623
|
+
focusColor?: string;
|
|
624
|
+
/**
|
|
625
|
+
* change event handler
|
|
626
|
+
*/
|
|
627
|
+
onChange?: (event: CustomEvent) => void;
|
|
628
|
+
/**
|
|
629
|
+
* Additional CSS styles
|
|
630
|
+
*/
|
|
631
|
+
style?: React.CSSProperties;
|
|
632
|
+
/**
|
|
633
|
+
* Children elements
|
|
634
|
+
*/
|
|
635
|
+
children?: React.ReactNode;
|
|
636
|
+
/**
|
|
637
|
+
* Additional CSS class names
|
|
638
|
+
*/
|
|
639
|
+
className?: string;
|
|
640
|
+
}
|
|
641
|
+
interface FlutterCupertinoRadioElement extends WebFElementWithMethods<{}> {
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* FlutterCupertinoRadio - WebF FlutterCupertinoRadio component
|
|
645
|
+
*
|
|
646
|
+
* @example
|
|
647
|
+
* ```tsx
|
|
648
|
+
* <FlutterCupertinoRadio
|
|
649
|
+
* // Add example props here
|
|
650
|
+
* >
|
|
651
|
+
* Content
|
|
652
|
+
* </FlutterCupertinoRadio>
|
|
653
|
+
* ```
|
|
654
|
+
*/
|
|
655
|
+
declare const FlutterCupertinoRadio: React.ForwardRefExoticComponent<FlutterCupertinoRadioProps & {
|
|
656
|
+
className?: string;
|
|
657
|
+
style?: React.CSSProperties;
|
|
658
|
+
children?: React.ReactNode;
|
|
659
|
+
} & React.RefAttributes<FlutterCupertinoRadioElement>>;
|
|
660
|
+
|
|
661
|
+
interface FlutterCupertinoPickerProps {
|
|
662
|
+
/**
|
|
663
|
+
* height property
|
|
664
|
+
* @default undefined
|
|
665
|
+
*/
|
|
666
|
+
height?: number;
|
|
667
|
+
/**
|
|
668
|
+
* itemHeight property
|
|
669
|
+
* @default undefined
|
|
670
|
+
*/
|
|
671
|
+
itemHeight?: number;
|
|
672
|
+
/**
|
|
673
|
+
* change event handler
|
|
674
|
+
*/
|
|
675
|
+
onChange?: (event: CustomEvent) => void;
|
|
676
|
+
/**
|
|
677
|
+
* Additional CSS styles
|
|
678
|
+
*/
|
|
679
|
+
style?: React.CSSProperties;
|
|
680
|
+
/**
|
|
681
|
+
* Children elements
|
|
682
|
+
*/
|
|
683
|
+
children?: React.ReactNode;
|
|
684
|
+
/**
|
|
685
|
+
* Additional CSS class names
|
|
686
|
+
*/
|
|
687
|
+
className?: string;
|
|
688
|
+
}
|
|
689
|
+
interface FlutterCupertinoPickerElement extends WebFElementWithMethods<{}> {
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
* FlutterCupertinoPicker - WebF FlutterCupertinoPicker component
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* ```tsx
|
|
696
|
+
* <FlutterCupertinoPicker
|
|
697
|
+
* // Add example props here
|
|
698
|
+
* >
|
|
699
|
+
* Content
|
|
700
|
+
* </FlutterCupertinoPicker>
|
|
701
|
+
* ```
|
|
702
|
+
*/
|
|
703
|
+
declare const FlutterCupertinoPicker: React.ForwardRefExoticComponent<FlutterCupertinoPickerProps & {
|
|
704
|
+
className?: string;
|
|
705
|
+
style?: React.CSSProperties;
|
|
706
|
+
children?: React.ReactNode;
|
|
707
|
+
} & React.RefAttributes<FlutterCupertinoPickerElement>>;
|
|
708
|
+
|
|
709
|
+
interface FlutterCupertinoModalPopupProps {
|
|
710
|
+
/**
|
|
711
|
+
* visible property
|
|
712
|
+
* @default undefined
|
|
713
|
+
*/
|
|
714
|
+
visible?: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* height property
|
|
717
|
+
* @default undefined
|
|
718
|
+
*/
|
|
719
|
+
height?: number;
|
|
720
|
+
/**
|
|
721
|
+
* surfacePainted property
|
|
722
|
+
* @default undefined
|
|
723
|
+
*/
|
|
724
|
+
surfacePainted?: boolean;
|
|
725
|
+
/**
|
|
726
|
+
* maskClosable property
|
|
727
|
+
* @default undefined
|
|
728
|
+
*/
|
|
729
|
+
maskClosable?: boolean;
|
|
730
|
+
/**
|
|
731
|
+
* backgroundOpacity property
|
|
732
|
+
* @default undefined
|
|
733
|
+
*/
|
|
734
|
+
backgroundOpacity?: number;
|
|
735
|
+
/**
|
|
736
|
+
* close event handler
|
|
737
|
+
*/
|
|
738
|
+
onClose?: (event: CustomEvent) => void;
|
|
739
|
+
/**
|
|
740
|
+
* Additional CSS styles
|
|
741
|
+
*/
|
|
742
|
+
style?: React.CSSProperties;
|
|
743
|
+
/**
|
|
744
|
+
* Children elements
|
|
745
|
+
*/
|
|
746
|
+
children?: React.ReactNode;
|
|
747
|
+
/**
|
|
748
|
+
* Additional CSS class names
|
|
749
|
+
*/
|
|
750
|
+
className?: string;
|
|
751
|
+
}
|
|
752
|
+
interface FlutterCupertinoModalPopupElement extends WebFElementWithMethods<{
|
|
753
|
+
show(): void;
|
|
754
|
+
hide(): void;
|
|
755
|
+
}> {
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* FlutterCupertinoModalPopup - WebF FlutterCupertinoModalPopup component
|
|
759
|
+
*
|
|
760
|
+
* @example
|
|
761
|
+
* ```tsx
|
|
762
|
+
* <FlutterCupertinoModalPopup
|
|
763
|
+
* // Add example props here
|
|
764
|
+
* >
|
|
765
|
+
* Content
|
|
766
|
+
* </FlutterCupertinoModalPopup>
|
|
767
|
+
* ```
|
|
768
|
+
*/
|
|
769
|
+
declare const FlutterCupertinoModalPopup: React.ForwardRefExoticComponent<FlutterCupertinoModalPopupProps & {
|
|
770
|
+
className?: string;
|
|
771
|
+
style?: React.CSSProperties;
|
|
772
|
+
children?: React.ReactNode;
|
|
773
|
+
} & React.RefAttributes<FlutterCupertinoModalPopupElement>>;
|
|
774
|
+
|
|
775
|
+
interface FlutterCupertinoInputProps {
|
|
776
|
+
/**
|
|
777
|
+
* val property
|
|
778
|
+
* @default undefined
|
|
779
|
+
*/
|
|
780
|
+
val?: string;
|
|
781
|
+
/**
|
|
782
|
+
* placeholder property
|
|
783
|
+
* @default undefined
|
|
784
|
+
*/
|
|
785
|
+
placeholder?: string;
|
|
786
|
+
/**
|
|
787
|
+
* type property
|
|
788
|
+
* @default undefined
|
|
789
|
+
*/
|
|
790
|
+
type?: string;
|
|
791
|
+
/**
|
|
792
|
+
* disabled property
|
|
793
|
+
* @default undefined
|
|
794
|
+
*/
|
|
795
|
+
disabled?: boolean;
|
|
796
|
+
/**
|
|
797
|
+
* autofocus property
|
|
798
|
+
*/
|
|
799
|
+
autofocus: boolean;
|
|
800
|
+
/**
|
|
801
|
+
* clearable property
|
|
802
|
+
* @default undefined
|
|
803
|
+
*/
|
|
804
|
+
clearable?: boolean;
|
|
805
|
+
/**
|
|
806
|
+
* maxlength property
|
|
807
|
+
* @default undefined
|
|
808
|
+
*/
|
|
809
|
+
maxlength?: number;
|
|
810
|
+
/**
|
|
811
|
+
* readonly property
|
|
812
|
+
* @default undefined
|
|
813
|
+
*/
|
|
814
|
+
readonly?: boolean;
|
|
815
|
+
/**
|
|
816
|
+
* input event handler
|
|
817
|
+
*/
|
|
818
|
+
onInput?: (event: CustomEvent) => void;
|
|
819
|
+
/**
|
|
820
|
+
* submit event handler
|
|
821
|
+
*/
|
|
822
|
+
onSubmit?: (event: CustomEvent) => void;
|
|
823
|
+
/**
|
|
824
|
+
* Additional CSS styles
|
|
825
|
+
*/
|
|
826
|
+
style?: React.CSSProperties;
|
|
827
|
+
/**
|
|
828
|
+
* Children elements
|
|
829
|
+
*/
|
|
830
|
+
children?: React.ReactNode;
|
|
831
|
+
/**
|
|
832
|
+
* Additional CSS class names
|
|
833
|
+
*/
|
|
834
|
+
className?: string;
|
|
835
|
+
}
|
|
836
|
+
interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
|
|
837
|
+
getValue(): string;
|
|
838
|
+
setValue(value: string): void;
|
|
839
|
+
focus(): void;
|
|
840
|
+
blur(): void;
|
|
841
|
+
}> {
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* FlutterCupertinoInput - WebF FlutterCupertinoInput component
|
|
845
|
+
*
|
|
846
|
+
* @example
|
|
847
|
+
* ```tsx
|
|
848
|
+
* <FlutterCupertinoInput
|
|
849
|
+
* // Add example props here
|
|
850
|
+
* >
|
|
851
|
+
* Content
|
|
852
|
+
* </FlutterCupertinoInput>
|
|
853
|
+
* ```
|
|
854
|
+
*/
|
|
855
|
+
declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
|
|
856
|
+
className?: string;
|
|
857
|
+
style?: React.CSSProperties;
|
|
858
|
+
children?: React.ReactNode;
|
|
859
|
+
} & React.RefAttributes<FlutterCupertinoInputElement>>;
|
|
860
|
+
|
|
861
|
+
interface FlutterCupertinoIconProps {
|
|
862
|
+
/**
|
|
863
|
+
* type property
|
|
864
|
+
* @default undefined
|
|
865
|
+
*/
|
|
866
|
+
type?: string;
|
|
867
|
+
/**
|
|
868
|
+
* label property
|
|
869
|
+
* @default undefined
|
|
870
|
+
*/
|
|
871
|
+
label?: string;
|
|
872
|
+
/**
|
|
873
|
+
* Additional CSS styles
|
|
874
|
+
*/
|
|
875
|
+
style?: React.CSSProperties;
|
|
876
|
+
/**
|
|
877
|
+
* Children elements
|
|
878
|
+
*/
|
|
879
|
+
children?: React.ReactNode;
|
|
880
|
+
/**
|
|
881
|
+
* Additional CSS class names
|
|
882
|
+
*/
|
|
883
|
+
className?: string;
|
|
884
|
+
}
|
|
885
|
+
interface FlutterCupertinoIconElement extends WebFElementWithMethods<{}> {
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* FlutterCupertinoIcon - WebF FlutterCupertinoIcon component
|
|
889
|
+
*
|
|
890
|
+
* @example
|
|
891
|
+
* ```tsx
|
|
892
|
+
* <FlutterCupertinoIcon
|
|
893
|
+
* // Add example props here
|
|
894
|
+
* >
|
|
895
|
+
* Content
|
|
896
|
+
* </FlutterCupertinoIcon>
|
|
897
|
+
* ```
|
|
898
|
+
*/
|
|
899
|
+
declare const FlutterCupertinoIcon: React.ForwardRefExoticComponent<FlutterCupertinoIconProps & {
|
|
900
|
+
className?: string;
|
|
901
|
+
style?: React.CSSProperties;
|
|
902
|
+
children?: React.ReactNode;
|
|
903
|
+
} & React.RefAttributes<FlutterCupertinoIconElement>>;
|
|
904
|
+
|
|
905
|
+
interface FlutterCupertinoDatePickerProps {
|
|
906
|
+
/**
|
|
907
|
+
* mode property
|
|
908
|
+
* @default undefined
|
|
909
|
+
*/
|
|
910
|
+
mode?: string;
|
|
911
|
+
/**
|
|
912
|
+
* minimumDate property
|
|
913
|
+
* @default undefined
|
|
914
|
+
*/
|
|
915
|
+
minimumDate?: string;
|
|
916
|
+
/**
|
|
917
|
+
* maximumDate property
|
|
918
|
+
* @default undefined
|
|
919
|
+
*/
|
|
920
|
+
maximumDate?: string;
|
|
921
|
+
/**
|
|
922
|
+
* minuteInterval property
|
|
923
|
+
* @default undefined
|
|
924
|
+
*/
|
|
925
|
+
minuteInterval?: string;
|
|
926
|
+
/**
|
|
927
|
+
* value property
|
|
928
|
+
* @default undefined
|
|
929
|
+
*/
|
|
930
|
+
value?: string;
|
|
931
|
+
/**
|
|
932
|
+
* minimumYear property
|
|
933
|
+
* @default undefined
|
|
934
|
+
*/
|
|
935
|
+
minimumYear?: string;
|
|
936
|
+
/**
|
|
937
|
+
* maximumYear property
|
|
938
|
+
* @default undefined
|
|
939
|
+
*/
|
|
940
|
+
maximumYear?: string;
|
|
941
|
+
/**
|
|
942
|
+
* showDayOfWeek property
|
|
943
|
+
* @default undefined
|
|
944
|
+
*/
|
|
945
|
+
showDayOfWeek?: string;
|
|
946
|
+
/**
|
|
947
|
+
* dateOrder property
|
|
948
|
+
* @default undefined
|
|
949
|
+
*/
|
|
950
|
+
dateOrder?: string;
|
|
951
|
+
/**
|
|
952
|
+
* height property
|
|
953
|
+
* @default undefined
|
|
954
|
+
*/
|
|
955
|
+
height?: string;
|
|
956
|
+
/**
|
|
957
|
+
* use24H property
|
|
958
|
+
* @default undefined
|
|
959
|
+
*/
|
|
960
|
+
use24H?: boolean;
|
|
961
|
+
/**
|
|
962
|
+
* change event handler
|
|
963
|
+
*/
|
|
964
|
+
onChange?: (event: CustomEvent) => void;
|
|
965
|
+
/**
|
|
966
|
+
* Additional CSS styles
|
|
967
|
+
*/
|
|
968
|
+
style?: React.CSSProperties;
|
|
969
|
+
/**
|
|
970
|
+
* Children elements
|
|
971
|
+
*/
|
|
972
|
+
children?: React.ReactNode;
|
|
973
|
+
/**
|
|
974
|
+
* Additional CSS class names
|
|
975
|
+
*/
|
|
976
|
+
className?: string;
|
|
977
|
+
}
|
|
978
|
+
interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{}> {
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* FlutterCupertinoDatePicker - WebF FlutterCupertinoDatePicker component
|
|
982
|
+
*
|
|
983
|
+
* @example
|
|
984
|
+
* ```tsx
|
|
985
|
+
* <FlutterCupertinoDatePicker
|
|
986
|
+
* // Add example props here
|
|
987
|
+
* >
|
|
988
|
+
* Content
|
|
989
|
+
* </FlutterCupertinoDatePicker>
|
|
990
|
+
* ```
|
|
991
|
+
*/
|
|
992
|
+
declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<FlutterCupertinoDatePickerProps & {
|
|
993
|
+
className?: string;
|
|
994
|
+
style?: React.CSSProperties;
|
|
995
|
+
children?: React.ReactNode;
|
|
996
|
+
} & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
|
|
997
|
+
|
|
998
|
+
interface ContextMenuAction {
|
|
999
|
+
text: string;
|
|
1000
|
+
icon?: string;
|
|
1001
|
+
destructive?: boolean;
|
|
1002
|
+
default?: boolean;
|
|
1003
|
+
event?: string;
|
|
1004
|
+
}
|
|
1005
|
+
interface FlutterCupertinoContextMenuProps {
|
|
1006
|
+
/**
|
|
1007
|
+
* enableHapticFeedback property
|
|
1008
|
+
* @default undefined
|
|
1009
|
+
*/
|
|
1010
|
+
enableHapticFeedback?: boolean;
|
|
1011
|
+
/**
|
|
1012
|
+
* Additional CSS styles
|
|
1013
|
+
*/
|
|
1014
|
+
style?: React.CSSProperties;
|
|
1015
|
+
/**
|
|
1016
|
+
* Children elements
|
|
1017
|
+
*/
|
|
1018
|
+
children?: React.ReactNode;
|
|
1019
|
+
/**
|
|
1020
|
+
* Additional CSS class names
|
|
1021
|
+
*/
|
|
1022
|
+
className?: string;
|
|
1023
|
+
}
|
|
1024
|
+
interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{
|
|
1025
|
+
setActions(actions: ContextMenuAction[]): void;
|
|
1026
|
+
}> {
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component
|
|
1030
|
+
*
|
|
1031
|
+
* @example
|
|
1032
|
+
* ```tsx
|
|
1033
|
+
* <FlutterCupertinoContextMenu
|
|
1034
|
+
* // Add example props here
|
|
1035
|
+
* >
|
|
1036
|
+
* Content
|
|
1037
|
+
* </FlutterCupertinoContextMenu>
|
|
1038
|
+
* ```
|
|
1039
|
+
*/
|
|
1040
|
+
declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<FlutterCupertinoContextMenuProps & {
|
|
1041
|
+
className?: string;
|
|
1042
|
+
style?: React.CSSProperties;
|
|
1043
|
+
children?: React.ReactNode;
|
|
1044
|
+
} & React.RefAttributes<FlutterCupertinoContextMenuElement>>;
|
|
1045
|
+
|
|
1046
|
+
interface FlutterCupertinoCheckboxProps {
|
|
1047
|
+
/**
|
|
1048
|
+
* val property
|
|
1049
|
+
* @default undefined
|
|
1050
|
+
*/
|
|
1051
|
+
val?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* disabled property
|
|
1054
|
+
* @default undefined
|
|
1055
|
+
*/
|
|
1056
|
+
disabled?: boolean;
|
|
1057
|
+
/**
|
|
1058
|
+
* activeColor property
|
|
1059
|
+
* @default undefined
|
|
1060
|
+
*/
|
|
1061
|
+
activeColor?: string;
|
|
1062
|
+
/**
|
|
1063
|
+
* checkColor property
|
|
1064
|
+
* @default undefined
|
|
1065
|
+
*/
|
|
1066
|
+
checkColor?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* focusColor property
|
|
1069
|
+
* @default undefined
|
|
1070
|
+
*/
|
|
1071
|
+
focusColor?: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* fillColorSelected property
|
|
1074
|
+
* @default undefined
|
|
1075
|
+
*/
|
|
1076
|
+
fillColorSelected?: string;
|
|
1077
|
+
/**
|
|
1078
|
+
* fillColorDisabled property
|
|
1079
|
+
* @default undefined
|
|
1080
|
+
*/
|
|
1081
|
+
fillColorDisabled?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* change event handler
|
|
1084
|
+
*/
|
|
1085
|
+
onChange?: (event: CustomEvent) => void;
|
|
1086
|
+
/**
|
|
1087
|
+
* Additional CSS styles
|
|
1088
|
+
*/
|
|
1089
|
+
style?: React.CSSProperties;
|
|
1090
|
+
/**
|
|
1091
|
+
* Children elements
|
|
1092
|
+
*/
|
|
1093
|
+
children?: React.ReactNode;
|
|
1094
|
+
/**
|
|
1095
|
+
* Additional CSS class names
|
|
1096
|
+
*/
|
|
1097
|
+
className?: string;
|
|
1098
|
+
}
|
|
1099
|
+
interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* FlutterCupertinoCheckbox - WebF FlutterCupertinoCheckbox component
|
|
1103
|
+
*
|
|
1104
|
+
* @example
|
|
1105
|
+
* ```tsx
|
|
1106
|
+
* <FlutterCupertinoCheckbox
|
|
1107
|
+
* // Add example props here
|
|
1108
|
+
* >
|
|
1109
|
+
* Content
|
|
1110
|
+
* </FlutterCupertinoCheckbox>
|
|
1111
|
+
* ```
|
|
1112
|
+
*/
|
|
1113
|
+
declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterCupertinoCheckboxProps & {
|
|
1114
|
+
className?: string;
|
|
1115
|
+
style?: React.CSSProperties;
|
|
1116
|
+
children?: React.ReactNode;
|
|
1117
|
+
} & React.RefAttributes<FlutterCupertinoCheckboxElement>>;
|
|
1118
|
+
|
|
1119
|
+
interface FlutterCupertinoButtonProps {
|
|
1120
|
+
/**
|
|
1121
|
+
* variant property
|
|
1122
|
+
* @default undefined
|
|
1123
|
+
*/
|
|
1124
|
+
variant?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* size property
|
|
1127
|
+
* @default undefined
|
|
1128
|
+
*/
|
|
1129
|
+
size?: string;
|
|
1130
|
+
/**
|
|
1131
|
+
* disabled property
|
|
1132
|
+
* @default undefined
|
|
1133
|
+
*/
|
|
1134
|
+
disabled?: boolean;
|
|
1135
|
+
/**
|
|
1136
|
+
* pressedOpacity property
|
|
1137
|
+
* @default undefined
|
|
1138
|
+
*/
|
|
1139
|
+
pressedOpacity?: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* click event handler
|
|
1142
|
+
*/
|
|
1143
|
+
onClick?: (event: Event) => void;
|
|
1144
|
+
/**
|
|
1145
|
+
* Additional CSS styles
|
|
1146
|
+
*/
|
|
1147
|
+
style?: React.CSSProperties;
|
|
1148
|
+
/**
|
|
1149
|
+
* Children elements
|
|
1150
|
+
*/
|
|
1151
|
+
children?: React.ReactNode;
|
|
1152
|
+
/**
|
|
1153
|
+
* Additional CSS class names
|
|
1154
|
+
*/
|
|
1155
|
+
className?: string;
|
|
1156
|
+
}
|
|
1157
|
+
interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{}> {
|
|
1158
|
+
}
|
|
1159
|
+
/**
|
|
1160
|
+
* FlutterCupertinoButton - WebF FlutterCupertinoButton component
|
|
1161
|
+
*
|
|
1162
|
+
* @example
|
|
1163
|
+
* ```tsx
|
|
1164
|
+
* <FlutterCupertinoButton
|
|
1165
|
+
* // Add example props here
|
|
1166
|
+
* >
|
|
1167
|
+
* Content
|
|
1168
|
+
* </FlutterCupertinoButton>
|
|
1169
|
+
* ```
|
|
1170
|
+
*/
|
|
1171
|
+
declare const FlutterCupertinoButton: React.ForwardRefExoticComponent<FlutterCupertinoButtonProps & {
|
|
1172
|
+
className?: string;
|
|
1173
|
+
style?: React.CSSProperties;
|
|
1174
|
+
children?: React.ReactNode;
|
|
1175
|
+
} & React.RefAttributes<FlutterCupertinoButtonElement>>;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* @license
|
|
1179
|
+
* Copyright 2018 Google LLC
|
|
1180
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1181
|
+
*/
|
|
1182
|
+
|
|
1183
|
+
type DistributiveOmit<T, K extends string | number | symbol> = T extends any ? (K extends keyof T ? Omit<T, K> : T) : T;
|
|
1184
|
+
type PropsWithoutRef<T> = DistributiveOmit<T, 'ref'>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Type of the React component wrapping the web component. This is the return
|
|
1187
|
+
* type of `createComponent`.
|
|
1188
|
+
*/
|
|
1189
|
+
type ReactWebComponent<I extends HTMLElement, E extends EventNames = {}> = React.ForwardRefExoticComponent<PropsWithoutRef<ComponentProps<I, E>> & React.RefAttributes<I>>;
|
|
1190
|
+
type ElementProps<I> = Partial<Omit<I, keyof HTMLElement>>;
|
|
1191
|
+
type ComponentProps<I, E extends EventNames = {}> = Omit<React.HTMLAttributes<I>, keyof E | keyof ElementProps<I>> & ElementProps<I>;
|
|
1192
|
+
/**
|
|
1193
|
+
* Type used to cast an event name with an event type when providing the
|
|
1194
|
+
* `events` option to `createComponent` for better typing of the event handler
|
|
1195
|
+
* prop.
|
|
1196
|
+
*
|
|
1197
|
+
* Example:
|
|
1198
|
+
*
|
|
1199
|
+
* ```ts
|
|
1200
|
+
* const FooComponent = createComponent({
|
|
1201
|
+
* ...
|
|
1202
|
+
* events: {
|
|
1203
|
+
* onfoo: 'foo' as EventName<FooEvent>,
|
|
1204
|
+
* }
|
|
1205
|
+
* });
|
|
1206
|
+
* ```
|
|
1207
|
+
*
|
|
1208
|
+
* `onfoo` prop will have the type `(e: FooEvent) => void`.
|
|
1209
|
+
*/
|
|
1210
|
+
type EventName<T extends Event = Event> = string & {
|
|
1211
|
+
__eventType: T;
|
|
1212
|
+
};
|
|
1213
|
+
type EventNames = Record<string, EventName | string>;
|
|
1214
|
+
interface Options<E extends EventNames = {}> {
|
|
1215
|
+
tagName: string;
|
|
1216
|
+
events?: E;
|
|
1217
|
+
displayName?: string;
|
|
1218
|
+
}
|
|
1219
|
+
/**
|
|
1220
|
+
* Creates a React component for a custom element. Properties are distinguished
|
|
1221
|
+
* from attributes automatically, and events can be configured so they are added
|
|
1222
|
+
* to the custom element as event listeners.
|
|
1223
|
+
*
|
|
1224
|
+
* @param options An options bag containing the parameters needed to generate a
|
|
1225
|
+
* wrapped web component.
|
|
1226
|
+
*
|
|
1227
|
+
* @param options.react The React module, typically imported from the `react`
|
|
1228
|
+
* npm package.
|
|
1229
|
+
* @param options.tagName The custom element tag name registered via
|
|
1230
|
+
* `customElements.define`.
|
|
1231
|
+
* @param options.elementClass The custom element class registered via
|
|
1232
|
+
* `customElements.define`.
|
|
1233
|
+
* @param options.events An object listing events to which the component can
|
|
1234
|
+
* listen. The object keys are the event property names passed in via React
|
|
1235
|
+
* props and the object values are the names of the corresponding events
|
|
1236
|
+
* generated by the custom element. For example, given `{onactivate:
|
|
1237
|
+
* 'activate'}` an event function may be passed via the component's `onactivate`
|
|
1238
|
+
* prop and will be called when the custom element fires its `activate` event.
|
|
1239
|
+
* @param options.displayName A React component display name, used in debugging
|
|
1240
|
+
* messages. Default value is inferred from the name of custom element class
|
|
1241
|
+
* registered via `customElements.define`.
|
|
1242
|
+
*/
|
|
1243
|
+
declare const createComponent: <E extends any, I extends any>({ tagName, events, displayName }: Options) => ReactWebComponent<E, I>;
|
|
1244
|
+
|
|
1245
|
+
export { FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoDatePicker, type FlutterCupertinoDatePickerElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoPicker, type FlutterCupertinoPickerElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSearchInput, type FlutterCupertinoSearchInputElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTab, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, type FlutterCupertinoTabElement, FlutterCupertinoTabItem, type FlutterCupertinoTabItemElement, FlutterCupertinoTextarea, type FlutterCupertinoTextareaElement, FlutterCupertinoTimerPicker, type FlutterCupertinoTimerPickerElement, createComponent };
|