@openwebf/react-cupertino-ui 0.2.3 → 0.2.4
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 +156 -27
- package/dist/index.d.ts +156 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,8 +56,9 @@ interface FlutterCupertinoTimerPickerElement extends WebFElementWithMethods<{}>
|
|
|
56
56
|
*
|
|
57
57
|
* @example
|
|
58
58
|
* ```tsx
|
|
59
|
+
*
|
|
59
60
|
* <FlutterCupertinoTimerPicker
|
|
60
|
-
* // Add
|
|
61
|
+
* // Add props here
|
|
61
62
|
* >
|
|
62
63
|
* Content
|
|
63
64
|
* </FlutterCupertinoTimerPicker>
|
|
@@ -136,18 +137,37 @@ interface FlutterCupertinoTextareaProps {
|
|
|
136
137
|
*/
|
|
137
138
|
className?: string;
|
|
138
139
|
}
|
|
139
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Element interface with methods accessible via ref
|
|
142
|
+
* @example
|
|
143
|
+
* ```tsx
|
|
144
|
+
* const ref = useRef<FlutterCupertinoTextareaElement>(null);
|
|
145
|
+
* // Call methods on the element
|
|
146
|
+
* ref.current?.finishRefresh('success');
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
interface FlutterCupertinoTextareaElement extends WebFElementWithMethods<{
|
|
150
|
+
focus(): void;
|
|
151
|
+
blur(): void;
|
|
152
|
+
clear(): void;
|
|
153
|
+
}> {
|
|
140
154
|
}
|
|
141
155
|
/**
|
|
142
156
|
* FlutterCupertinoTextarea - WebF FlutterCupertinoTextarea component
|
|
143
157
|
*
|
|
144
158
|
* @example
|
|
145
159
|
* ```tsx
|
|
160
|
+
* const ref = useRef<FlutterCupertinoTextareaElement>(null);
|
|
161
|
+
*
|
|
146
162
|
* <FlutterCupertinoTextarea
|
|
147
|
-
*
|
|
163
|
+
* ref={ref}
|
|
164
|
+
* // Add props here
|
|
148
165
|
* >
|
|
149
166
|
* Content
|
|
150
167
|
* </FlutterCupertinoTextarea>
|
|
168
|
+
*
|
|
169
|
+
* // Call methods on the element
|
|
170
|
+
* ref.current?.finishRefresh('success');
|
|
151
171
|
* ```
|
|
152
172
|
*/
|
|
153
173
|
declare const FlutterCupertinoTextarea: React.ForwardRefExoticComponent<FlutterCupertinoTextareaProps & {
|
|
@@ -205,18 +225,35 @@ interface FlutterCupertinoTabBarProps {
|
|
|
205
225
|
*/
|
|
206
226
|
className?: string;
|
|
207
227
|
}
|
|
208
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Element interface with methods accessible via ref
|
|
230
|
+
* @example
|
|
231
|
+
* ```tsx
|
|
232
|
+
* const ref = useRef<FlutterCupertinoTabBarElement>(null);
|
|
233
|
+
* // Call methods on the element
|
|
234
|
+
* ref.current?.finishRefresh('success');
|
|
235
|
+
* ```
|
|
236
|
+
*/
|
|
237
|
+
interface FlutterCupertinoTabBarElement extends WebFElementWithMethods<{
|
|
238
|
+
switchTab(path: string): void;
|
|
239
|
+
}> {
|
|
209
240
|
}
|
|
210
241
|
/**
|
|
211
242
|
* FlutterCupertinoTabBar - WebF FlutterCupertinoTabBar component
|
|
212
243
|
*
|
|
213
244
|
* @example
|
|
214
245
|
* ```tsx
|
|
246
|
+
* const ref = useRef<FlutterCupertinoTabBarElement>(null);
|
|
247
|
+
*
|
|
215
248
|
* <FlutterCupertinoTabBar
|
|
216
|
-
*
|
|
249
|
+
* ref={ref}
|
|
250
|
+
* // Add props here
|
|
217
251
|
* >
|
|
218
252
|
* Content
|
|
219
253
|
* </FlutterCupertinoTabBar>
|
|
254
|
+
*
|
|
255
|
+
* // Call methods on the element
|
|
256
|
+
* ref.current?.finishRefresh('success');
|
|
220
257
|
* ```
|
|
221
258
|
*/
|
|
222
259
|
declare const FlutterCupertinoTabBar: React.ForwardRefExoticComponent<FlutterCupertinoTabBarProps & {
|
|
@@ -260,8 +297,9 @@ interface FlutterCupertinoTabBarItemElement extends WebFElementWithMethods<{}> {
|
|
|
260
297
|
*
|
|
261
298
|
* @example
|
|
262
299
|
* ```tsx
|
|
300
|
+
*
|
|
263
301
|
* <FlutterCupertinoTabBarItem
|
|
264
|
-
* // Add
|
|
302
|
+
* // Add props here
|
|
265
303
|
* >
|
|
266
304
|
* Content
|
|
267
305
|
* </FlutterCupertinoTabBarItem>
|
|
@@ -291,17 +329,16 @@ interface FlutterCupertinoTabProps {
|
|
|
291
329
|
*/
|
|
292
330
|
className?: string;
|
|
293
331
|
}
|
|
294
|
-
interface FlutterCupertinoTabElement extends WebFElementWithMethods<{
|
|
295
|
-
switchTab(index: number): void;
|
|
296
|
-
}> {
|
|
332
|
+
interface FlutterCupertinoTabElement extends WebFElementWithMethods<{}> {
|
|
297
333
|
}
|
|
298
334
|
/**
|
|
299
335
|
* FlutterCupertinoTab - WebF FlutterCupertinoTab component
|
|
300
336
|
*
|
|
301
337
|
* @example
|
|
302
338
|
* ```tsx
|
|
339
|
+
*
|
|
303
340
|
* <FlutterCupertinoTab
|
|
304
|
-
* // Add
|
|
341
|
+
* // Add props here
|
|
305
342
|
* >
|
|
306
343
|
* Content
|
|
307
344
|
* </FlutterCupertinoTab>
|
|
@@ -338,8 +375,9 @@ interface FlutterCupertinoTabItemElement extends WebFElementWithMethods<{}> {
|
|
|
338
375
|
*
|
|
339
376
|
* @example
|
|
340
377
|
* ```tsx
|
|
378
|
+
*
|
|
341
379
|
* <FlutterCupertinoTabItem
|
|
342
|
-
* // Add
|
|
380
|
+
* // Add props here
|
|
343
381
|
* >
|
|
344
382
|
* Content
|
|
345
383
|
* </FlutterCupertinoTabItem>
|
|
@@ -396,8 +434,9 @@ interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
|
|
|
396
434
|
*
|
|
397
435
|
* @example
|
|
398
436
|
* ```tsx
|
|
437
|
+
*
|
|
399
438
|
* <FlutterCupertinoSwitch
|
|
400
|
-
* // Add
|
|
439
|
+
* // Add props here
|
|
401
440
|
* >
|
|
402
441
|
* Content
|
|
403
442
|
* </FlutterCupertinoSwitch>
|
|
@@ -460,18 +499,36 @@ interface FlutterCupertinoSliderProps {
|
|
|
460
499
|
*/
|
|
461
500
|
className?: string;
|
|
462
501
|
}
|
|
463
|
-
|
|
502
|
+
/**
|
|
503
|
+
* Element interface with methods accessible via ref
|
|
504
|
+
* @example
|
|
505
|
+
* ```tsx
|
|
506
|
+
* const ref = useRef<FlutterCupertinoSliderElement>(null);
|
|
507
|
+
* // Call methods on the element
|
|
508
|
+
* ref.current?.finishRefresh('success');
|
|
509
|
+
* ```
|
|
510
|
+
*/
|
|
511
|
+
interface FlutterCupertinoSliderElement extends WebFElementWithMethods<{
|
|
512
|
+
getValue(): number;
|
|
513
|
+
setValue(val: number): void;
|
|
514
|
+
}> {
|
|
464
515
|
}
|
|
465
516
|
/**
|
|
466
517
|
* FlutterCupertinoSlider - WebF FlutterCupertinoSlider component
|
|
467
518
|
*
|
|
468
519
|
* @example
|
|
469
520
|
* ```tsx
|
|
521
|
+
* const ref = useRef<FlutterCupertinoSliderElement>(null);
|
|
522
|
+
*
|
|
470
523
|
* <FlutterCupertinoSlider
|
|
471
|
-
*
|
|
524
|
+
* ref={ref}
|
|
525
|
+
* // Add props here
|
|
472
526
|
* >
|
|
473
527
|
* Content
|
|
474
528
|
* </FlutterCupertinoSlider>
|
|
529
|
+
*
|
|
530
|
+
* // Call methods on the element
|
|
531
|
+
* ref.current?.finishRefresh('success');
|
|
475
532
|
* ```
|
|
476
533
|
*/
|
|
477
534
|
declare const FlutterCupertinoSlider: React.ForwardRefExoticComponent<FlutterCupertinoSliderProps & {
|
|
@@ -555,18 +612,39 @@ interface FlutterCupertinoSearchInputProps {
|
|
|
555
612
|
*/
|
|
556
613
|
className?: string;
|
|
557
614
|
}
|
|
558
|
-
|
|
615
|
+
/**
|
|
616
|
+
* Element interface with methods accessible via ref
|
|
617
|
+
* @example
|
|
618
|
+
* ```tsx
|
|
619
|
+
* const ref = useRef<FlutterCupertinoSearchInputElement>(null);
|
|
620
|
+
* // Call methods on the element
|
|
621
|
+
* ref.current?.finishRefresh('success');
|
|
622
|
+
* ```
|
|
623
|
+
*/
|
|
624
|
+
interface FlutterCupertinoSearchInputElement extends WebFElementWithMethods<{
|
|
625
|
+
getValue(): string;
|
|
626
|
+
setValue(value: string): void;
|
|
627
|
+
focus(): void;
|
|
628
|
+
blur(): void;
|
|
629
|
+
clear(): void;
|
|
630
|
+
}> {
|
|
559
631
|
}
|
|
560
632
|
/**
|
|
561
633
|
* FlutterCupertinoSearchInput - WebF FlutterCupertinoSearchInput component
|
|
562
634
|
*
|
|
563
635
|
* @example
|
|
564
636
|
* ```tsx
|
|
637
|
+
* const ref = useRef<FlutterCupertinoSearchInputElement>(null);
|
|
638
|
+
*
|
|
565
639
|
* <FlutterCupertinoSearchInput
|
|
566
|
-
*
|
|
640
|
+
* ref={ref}
|
|
641
|
+
* // Add props here
|
|
567
642
|
* >
|
|
568
643
|
* Content
|
|
569
644
|
* </FlutterCupertinoSearchInput>
|
|
645
|
+
*
|
|
646
|
+
* // Call methods on the element
|
|
647
|
+
* ref.current?.finishRefresh('success');
|
|
570
648
|
* ```
|
|
571
649
|
*/
|
|
572
650
|
declare const FlutterCupertinoSearchInput: React.ForwardRefExoticComponent<FlutterCupertinoSearchInputProps & {
|
|
@@ -630,8 +708,9 @@ interface FlutterCupertinoRadioElement extends WebFElementWithMethods<{}> {
|
|
|
630
708
|
*
|
|
631
709
|
* @example
|
|
632
710
|
* ```tsx
|
|
711
|
+
*
|
|
633
712
|
* <FlutterCupertinoRadio
|
|
634
|
-
* // Add
|
|
713
|
+
* // Add props here
|
|
635
714
|
* >
|
|
636
715
|
* Content
|
|
637
716
|
* </FlutterCupertinoRadio>
|
|
@@ -678,8 +757,9 @@ interface FlutterCupertinoPickerElement extends WebFElementWithMethods<{}> {
|
|
|
678
757
|
*
|
|
679
758
|
* @example
|
|
680
759
|
* ```tsx
|
|
760
|
+
*
|
|
681
761
|
* <FlutterCupertinoPicker
|
|
682
|
-
* // Add
|
|
762
|
+
* // Add props here
|
|
683
763
|
* >
|
|
684
764
|
* Content
|
|
685
765
|
* </FlutterCupertinoPicker>
|
|
@@ -741,8 +821,9 @@ interface FlutterCupertinoModalPopupElement extends WebFElementWithMethods<{}> {
|
|
|
741
821
|
*
|
|
742
822
|
* @example
|
|
743
823
|
* ```tsx
|
|
824
|
+
*
|
|
744
825
|
* <FlutterCupertinoModalPopup
|
|
745
|
-
* // Add
|
|
826
|
+
* // Add props here
|
|
746
827
|
* >
|
|
747
828
|
* Content
|
|
748
829
|
* </FlutterCupertinoModalPopup>
|
|
@@ -815,18 +896,38 @@ interface FlutterCupertinoInputProps {
|
|
|
815
896
|
*/
|
|
816
897
|
className?: string;
|
|
817
898
|
}
|
|
818
|
-
|
|
899
|
+
/**
|
|
900
|
+
* Element interface with methods accessible via ref
|
|
901
|
+
* @example
|
|
902
|
+
* ```tsx
|
|
903
|
+
* const ref = useRef<FlutterCupertinoInputElement>(null);
|
|
904
|
+
* // Call methods on the element
|
|
905
|
+
* ref.current?.finishRefresh('success');
|
|
906
|
+
* ```
|
|
907
|
+
*/
|
|
908
|
+
interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
|
|
909
|
+
getValue(): string;
|
|
910
|
+
setValue(value: string): void;
|
|
911
|
+
focus(): void;
|
|
912
|
+
blur(): void;
|
|
913
|
+
}> {
|
|
819
914
|
}
|
|
820
915
|
/**
|
|
821
916
|
* FlutterCupertinoInput - WebF FlutterCupertinoInput component
|
|
822
917
|
*
|
|
823
918
|
* @example
|
|
824
919
|
* ```tsx
|
|
920
|
+
* const ref = useRef<FlutterCupertinoInputElement>(null);
|
|
921
|
+
*
|
|
825
922
|
* <FlutterCupertinoInput
|
|
826
|
-
*
|
|
923
|
+
* ref={ref}
|
|
924
|
+
* // Add props here
|
|
827
925
|
* >
|
|
828
926
|
* Content
|
|
829
927
|
* </FlutterCupertinoInput>
|
|
928
|
+
*
|
|
929
|
+
* // Call methods on the element
|
|
930
|
+
* ref.current?.finishRefresh('success');
|
|
830
931
|
* ```
|
|
831
932
|
*/
|
|
832
933
|
declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
|
|
@@ -866,8 +967,9 @@ interface FlutterCupertinoIconElement extends WebFElementWithMethods<{}> {
|
|
|
866
967
|
*
|
|
867
968
|
* @example
|
|
868
969
|
* ```tsx
|
|
970
|
+
*
|
|
869
971
|
* <FlutterCupertinoIcon
|
|
870
|
-
* // Add
|
|
972
|
+
* // Add props here
|
|
871
973
|
* >
|
|
872
974
|
* Content
|
|
873
975
|
* </FlutterCupertinoIcon>
|
|
@@ -959,8 +1061,9 @@ interface FlutterCupertinoDatePickerElement extends WebFElementWithMethods<{}> {
|
|
|
959
1061
|
*
|
|
960
1062
|
* @example
|
|
961
1063
|
* ```tsx
|
|
1064
|
+
*
|
|
962
1065
|
* <FlutterCupertinoDatePicker
|
|
963
|
-
* // Add
|
|
1066
|
+
* // Add props here
|
|
964
1067
|
* >
|
|
965
1068
|
* Content
|
|
966
1069
|
* </FlutterCupertinoDatePicker>
|
|
@@ -972,6 +1075,13 @@ declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<Flutte
|
|
|
972
1075
|
children?: React.ReactNode;
|
|
973
1076
|
} & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
|
|
974
1077
|
|
|
1078
|
+
interface ContextMenuAction {
|
|
1079
|
+
text: string;
|
|
1080
|
+
icon?: string;
|
|
1081
|
+
destructive?: boolean;
|
|
1082
|
+
default?: boolean;
|
|
1083
|
+
event?: string;
|
|
1084
|
+
}
|
|
975
1085
|
interface FlutterCupertinoContextMenuProps {
|
|
976
1086
|
/**
|
|
977
1087
|
* enableHapticFeedback property
|
|
@@ -991,18 +1101,35 @@ interface FlutterCupertinoContextMenuProps {
|
|
|
991
1101
|
*/
|
|
992
1102
|
className?: string;
|
|
993
1103
|
}
|
|
994
|
-
|
|
1104
|
+
/**
|
|
1105
|
+
* Element interface with methods accessible via ref
|
|
1106
|
+
* @example
|
|
1107
|
+
* ```tsx
|
|
1108
|
+
* const ref = useRef<FlutterCupertinoContextMenuElement>(null);
|
|
1109
|
+
* // Call methods on the element
|
|
1110
|
+
* ref.current?.finishRefresh('success');
|
|
1111
|
+
* ```
|
|
1112
|
+
*/
|
|
1113
|
+
interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{
|
|
1114
|
+
setActions(actions: ContextMenuAction[]): void;
|
|
1115
|
+
}> {
|
|
995
1116
|
}
|
|
996
1117
|
/**
|
|
997
1118
|
* FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component
|
|
998
1119
|
*
|
|
999
1120
|
* @example
|
|
1000
1121
|
* ```tsx
|
|
1122
|
+
* const ref = useRef<FlutterCupertinoContextMenuElement>(null);
|
|
1123
|
+
*
|
|
1001
1124
|
* <FlutterCupertinoContextMenu
|
|
1002
|
-
*
|
|
1125
|
+
* ref={ref}
|
|
1126
|
+
* // Add props here
|
|
1003
1127
|
* >
|
|
1004
1128
|
* Content
|
|
1005
1129
|
* </FlutterCupertinoContextMenu>
|
|
1130
|
+
*
|
|
1131
|
+
* // Call methods on the element
|
|
1132
|
+
* ref.current?.finishRefresh('success');
|
|
1006
1133
|
* ```
|
|
1007
1134
|
*/
|
|
1008
1135
|
declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<FlutterCupertinoContextMenuProps & {
|
|
@@ -1071,8 +1198,9 @@ interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
|
|
|
1071
1198
|
*
|
|
1072
1199
|
* @example
|
|
1073
1200
|
* ```tsx
|
|
1201
|
+
*
|
|
1074
1202
|
* <FlutterCupertinoCheckbox
|
|
1075
|
-
* // Add
|
|
1203
|
+
* // Add props here
|
|
1076
1204
|
* >
|
|
1077
1205
|
* Content
|
|
1078
1206
|
* </FlutterCupertinoCheckbox>
|
|
@@ -1129,8 +1257,9 @@ interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{}> {
|
|
|
1129
1257
|
*
|
|
1130
1258
|
* @example
|
|
1131
1259
|
* ```tsx
|
|
1260
|
+
*
|
|
1132
1261
|
* <FlutterCupertinoButton
|
|
1133
|
-
* // Add
|
|
1262
|
+
* // Add props here
|
|
1134
1263
|
* >
|
|
1135
1264
|
* Content
|
|
1136
1265
|
* </FlutterCupertinoButton>
|