@openwebf/react-cupertino-ui 0.3.11 → 0.3.13

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 CHANGED
@@ -265,6 +265,129 @@ declare const FlutterCupertinoTabScaffoldTab: React.ForwardRefExoticComponent<Fl
265
265
  children?: React.ReactNode;
266
266
  } & React.RefAttributes<FlutterCupertinoTabScaffoldTabElement>>;
267
267
 
268
+ interface FlutterCupertinoListSectionProps {
269
+ /**
270
+ * Whether to use the inset grouped style (iOS Settings-style sections).
271
+ * Default: false.
272
+ */
273
+ insetGrouped?: boolean;
274
+ /**
275
+ * HTML id attribute
276
+ */
277
+ id?: string;
278
+ /**
279
+ * Additional CSS styles
280
+ */
281
+ style?: React.CSSProperties;
282
+ /**
283
+ * Children elements
284
+ */
285
+ children?: React.ReactNode;
286
+ /**
287
+ * Additional CSS class names
288
+ */
289
+ className?: string;
290
+ }
291
+ interface FlutterCupertinoListSectionElement extends WebFElementWithMethods<{}> {
292
+ }
293
+ /**
294
+ * Properties for <flutter-cupertino-list-section>
295
+ Grouped list section with optional header and footer slots.
296
+ *
297
+ * @example
298
+ * ```tsx
299
+ *
300
+ * <FlutterCupertinoListSection
301
+ * // Add props here
302
+ * >
303
+ * Content
304
+ * </FlutterCupertinoListSection>
305
+ * ```
306
+ */
307
+ declare const FlutterCupertinoListSection: React.ForwardRefExoticComponent<FlutterCupertinoListSectionProps & {
308
+ className?: string;
309
+ style?: React.CSSProperties;
310
+ children?: React.ReactNode;
311
+ } & React.RefAttributes<FlutterCupertinoListSectionElement>>;
312
+ interface FlutterCupertinoListSectionHeaderProps {
313
+ /**
314
+ * HTML id attribute
315
+ */
316
+ id?: string;
317
+ /**
318
+ * Additional CSS styles
319
+ */
320
+ style?: React.CSSProperties;
321
+ /**
322
+ * Children elements
323
+ */
324
+ children?: React.ReactNode;
325
+ /**
326
+ * Additional CSS class names
327
+ */
328
+ className?: string;
329
+ }
330
+ interface FlutterCupertinoListSectionHeaderElement extends WebFElementWithMethods<{}> {
331
+ }
332
+ /**
333
+ * Properties for <flutter-cupertino-list-section-header>
334
+ Slot for the section header content.
335
+ *
336
+ * @example
337
+ * ```tsx
338
+ *
339
+ * <FlutterCupertinoListSectionHeader
340
+ * // Add props here
341
+ * >
342
+ * Content
343
+ * </FlutterCupertinoListSectionHeader>
344
+ * ```
345
+ */
346
+ declare const FlutterCupertinoListSectionHeader: React.ForwardRefExoticComponent<FlutterCupertinoListSectionHeaderProps & {
347
+ className?: string;
348
+ style?: React.CSSProperties;
349
+ children?: React.ReactNode;
350
+ } & React.RefAttributes<FlutterCupertinoListSectionHeaderElement>>;
351
+ interface FlutterCupertinoListSectionFooterProps {
352
+ /**
353
+ * HTML id attribute
354
+ */
355
+ id?: string;
356
+ /**
357
+ * Additional CSS styles
358
+ */
359
+ style?: React.CSSProperties;
360
+ /**
361
+ * Children elements
362
+ */
363
+ children?: React.ReactNode;
364
+ /**
365
+ * Additional CSS class names
366
+ */
367
+ className?: string;
368
+ }
369
+ interface FlutterCupertinoListSectionFooterElement extends WebFElementWithMethods<{}> {
370
+ }
371
+ /**
372
+ * Properties for <flutter-cupertino-list-section-footer>
373
+ Slot for the section footer content.
374
+ *
375
+ * @example
376
+ * ```tsx
377
+ *
378
+ * <FlutterCupertinoListSectionFooter
379
+ * // Add props here
380
+ * >
381
+ * Content
382
+ * </FlutterCupertinoListSectionFooter>
383
+ * ```
384
+ */
385
+ declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent<FlutterCupertinoListSectionFooterProps & {
386
+ className?: string;
387
+ style?: React.CSSProperties;
388
+ children?: React.ReactNode;
389
+ } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
390
+
268
391
  declare enum CupertinoIcons {
269
392
  add = "add",
270
393
  add_circled = "add_circled",
@@ -1688,6 +1811,123 @@ declare const FlutterCupertinoIcon: React.ForwardRefExoticComponent<FlutterCuper
1688
1811
  children?: React.ReactNode;
1689
1812
  } & React.RefAttributes<FlutterCupertinoIconElement>>;
1690
1813
 
1814
+ /**
1815
+ * Properties for <flutter-cupertino-context-menu>.
1816
+ * Wraps Flutter's CupertinoContextMenu.
1817
+ */
1818
+ interface ContextMenuAction {
1819
+ /**
1820
+ * Button label text.
1821
+ */
1822
+ text: string;
1823
+ /**
1824
+ * Optional trailing icon name (Cupertino icon key).
1825
+ */
1826
+ icon?: string;
1827
+ /**
1828
+ * Marks this action as destructive (red).
1829
+ */
1830
+ destructive?: boolean;
1831
+ /**
1832
+ * Marks this action as the default action.
1833
+ */
1834
+ default?: boolean;
1835
+ /**
1836
+ * Optional event name associated with this action.
1837
+ * If omitted, a name may be derived from the text.
1838
+ */
1839
+ event?: string;
1840
+ }
1841
+ interface FlutterCupertinoContextMenuSelectDetail {
1842
+ /**
1843
+ * Zero-based index of the selected action.
1844
+ */
1845
+ index: number;
1846
+ /**
1847
+ * Action text.
1848
+ */
1849
+ text: string;
1850
+ /**
1851
+ * Event name for this action.
1852
+ */
1853
+ event: string;
1854
+ /**
1855
+ * Whether the action is destructive.
1856
+ */
1857
+ destructive: boolean;
1858
+ /**
1859
+ * Whether the action is the default one.
1860
+ */
1861
+ default: boolean;
1862
+ }
1863
+ interface FlutterCupertinoContextMenuProps {
1864
+ /**
1865
+ * Whether to enable haptic feedback when the menu is opened.
1866
+ * Default: false.
1867
+ */
1868
+ enableHapticFeedback?: boolean;
1869
+ /**
1870
+ * Fired when an action is selected.
1871
+ * detail contains metadata about the selected action.
1872
+ */
1873
+ onSelect?: (event: CustomEvent<FlutterCupertinoContextMenuSelectDetail>) => void;
1874
+ /**
1875
+ * HTML id attribute
1876
+ */
1877
+ id?: string;
1878
+ /**
1879
+ * Additional CSS styles
1880
+ */
1881
+ style?: React.CSSProperties;
1882
+ /**
1883
+ * Children elements
1884
+ */
1885
+ children?: React.ReactNode;
1886
+ /**
1887
+ * Additional CSS class names
1888
+ */
1889
+ className?: string;
1890
+ }
1891
+ /**
1892
+ * Element interface with methods accessible via ref
1893
+ * @example
1894
+ * ```tsx
1895
+ * const ref = useRef<FlutterCupertinoContextMenuElement>(null);
1896
+ * // Call methods on the element
1897
+ * ref.current?.finishRefresh('success');
1898
+ * ```
1899
+ */
1900
+ interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{
1901
+ /**
1902
+ * Set the list of actions displayed in the context menu.
1903
+ */
1904
+ setActions(actions: ContextMenuAction[]): void;
1905
+ }> {
1906
+ }
1907
+ /**
1908
+ * FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component
1909
+ *
1910
+ * @example
1911
+ * ```tsx
1912
+ * const ref = useRef<FlutterCupertinoContextMenuElement>(null);
1913
+ *
1914
+ * <FlutterCupertinoContextMenu
1915
+ * ref={ref}
1916
+ * // Add props here
1917
+ * >
1918
+ * Content
1919
+ * </FlutterCupertinoContextMenu>
1920
+ *
1921
+ * // Call methods on the element
1922
+ * ref.current?.finishRefresh('success');
1923
+ * ```
1924
+ */
1925
+ declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<FlutterCupertinoContextMenuProps & {
1926
+ className?: string;
1927
+ style?: React.CSSProperties;
1928
+ children?: React.ReactNode;
1929
+ } & React.RefAttributes<FlutterCupertinoContextMenuElement>>;
1930
+
1691
1931
  interface FlutterCupertinoButtonProps {
1692
1932
  /**
1693
1933
  * Visual variant of the button.
@@ -3099,126 +3339,6 @@ declare const FlutterCupertinoListTileTrailing: React.ForwardRefExoticComponent<
3099
3339
  children?: React.ReactNode;
3100
3340
  } & React.RefAttributes<FlutterCupertinoListTileTrailingElement>>;
3101
3341
 
3102
- interface FlutterCupertinoListSectionProps {
3103
- /**
3104
- * insetGrouped property
3105
- * @default undefined
3106
- */
3107
- insetGrouped?: string;
3108
- /**
3109
- * HTML id attribute
3110
- */
3111
- id?: string;
3112
- /**
3113
- * Additional CSS styles
3114
- */
3115
- style?: React.CSSProperties;
3116
- /**
3117
- * Children elements
3118
- */
3119
- children?: React.ReactNode;
3120
- /**
3121
- * Additional CSS class names
3122
- */
3123
- className?: string;
3124
- }
3125
- interface FlutterCupertinoListSectionElement extends WebFElementWithMethods<{}> {
3126
- }
3127
- /**
3128
- * FlutterCupertinoListSection - WebF FlutterCupertinoListSection component
3129
- *
3130
- * @example
3131
- * ```tsx
3132
- *
3133
- * <FlutterCupertinoListSection
3134
- * // Add props here
3135
- * >
3136
- * Content
3137
- * </FlutterCupertinoListSection>
3138
- * ```
3139
- */
3140
- declare const FlutterCupertinoListSection: React.ForwardRefExoticComponent<FlutterCupertinoListSectionProps & {
3141
- className?: string;
3142
- style?: React.CSSProperties;
3143
- children?: React.ReactNode;
3144
- } & React.RefAttributes<FlutterCupertinoListSectionElement>>;
3145
- interface FlutterCupertinoListSectionHeaderProps {
3146
- /**
3147
- * HTML id attribute
3148
- */
3149
- id?: string;
3150
- /**
3151
- * Additional CSS styles
3152
- */
3153
- style?: React.CSSProperties;
3154
- /**
3155
- * Children elements
3156
- */
3157
- children?: React.ReactNode;
3158
- /**
3159
- * Additional CSS class names
3160
- */
3161
- className?: string;
3162
- }
3163
- interface FlutterCupertinoListSectionHeaderElement extends WebFElementWithMethods<{}> {
3164
- }
3165
- /**
3166
- * FlutterCupertinoListSectionHeader - WebF FlutterCupertinoListSectionHeader component
3167
- *
3168
- * @example
3169
- * ```tsx
3170
- *
3171
- * <FlutterCupertinoListSectionHeader
3172
- * // Add props here
3173
- * >
3174
- * Content
3175
- * </FlutterCupertinoListSectionHeader>
3176
- * ```
3177
- */
3178
- declare const FlutterCupertinoListSectionHeader: React.ForwardRefExoticComponent<FlutterCupertinoListSectionHeaderProps & {
3179
- className?: string;
3180
- style?: React.CSSProperties;
3181
- children?: React.ReactNode;
3182
- } & React.RefAttributes<FlutterCupertinoListSectionHeaderElement>>;
3183
- interface FlutterCupertinoListSectionFooterProps {
3184
- /**
3185
- * HTML id attribute
3186
- */
3187
- id?: string;
3188
- /**
3189
- * Additional CSS styles
3190
- */
3191
- style?: React.CSSProperties;
3192
- /**
3193
- * Children elements
3194
- */
3195
- children?: React.ReactNode;
3196
- /**
3197
- * Additional CSS class names
3198
- */
3199
- className?: string;
3200
- }
3201
- interface FlutterCupertinoListSectionFooterElement extends WebFElementWithMethods<{}> {
3202
- }
3203
- /**
3204
- * FlutterCupertinoListSectionFooter - WebF FlutterCupertinoListSectionFooter component
3205
- *
3206
- * @example
3207
- * ```tsx
3208
- *
3209
- * <FlutterCupertinoListSectionFooter
3210
- * // Add props here
3211
- * >
3212
- * Content
3213
- * </FlutterCupertinoListSectionFooter>
3214
- * ```
3215
- */
3216
- declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent<FlutterCupertinoListSectionFooterProps & {
3217
- className?: string;
3218
- style?: React.CSSProperties;
3219
- children?: React.ReactNode;
3220
- } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
3221
-
3222
3342
  interface FlutterCupertinoInputProps {
3223
3343
  /**
3224
3344
  * val property
@@ -3789,84 +3909,6 @@ declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<Flutte
3789
3909
  children?: React.ReactNode;
3790
3910
  } & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
3791
3911
 
3792
- interface ContextMenuAction {
3793
- text: string;
3794
- icon?: string;
3795
- destructive?: boolean;
3796
- default?: boolean;
3797
- event?: string;
3798
- }
3799
- interface FlutterCupertinoContextMenuSelectDetail {
3800
- index: number;
3801
- text: string;
3802
- event: string;
3803
- destructive: boolean;
3804
- default: boolean;
3805
- }
3806
- interface FlutterCupertinoContextMenuProps {
3807
- /**
3808
- * enableHapticFeedback property
3809
- * @default undefined
3810
- */
3811
- enableHapticFeedback?: boolean;
3812
- /**
3813
- * select event handler
3814
- */
3815
- onSelect?: (event: CustomEvent<FlutterCupertinoContextMenuSelectDetail>) => void;
3816
- /**
3817
- * HTML id attribute
3818
- */
3819
- id?: string;
3820
- /**
3821
- * Additional CSS styles
3822
- */
3823
- style?: React.CSSProperties;
3824
- /**
3825
- * Children elements
3826
- */
3827
- children?: React.ReactNode;
3828
- /**
3829
- * Additional CSS class names
3830
- */
3831
- className?: string;
3832
- }
3833
- /**
3834
- * Element interface with methods accessible via ref
3835
- * @example
3836
- * ```tsx
3837
- * const ref = useRef<FlutterCupertinoContextMenuElement>(null);
3838
- * // Call methods on the element
3839
- * ref.current?.finishRefresh('success');
3840
- * ```
3841
- */
3842
- interface FlutterCupertinoContextMenuElement extends WebFElementWithMethods<{
3843
- setActions(actions: ContextMenuAction[]): void;
3844
- }> {
3845
- }
3846
- /**
3847
- * FlutterCupertinoContextMenu - WebF FlutterCupertinoContextMenu component
3848
- *
3849
- * @example
3850
- * ```tsx
3851
- * const ref = useRef<FlutterCupertinoContextMenuElement>(null);
3852
- *
3853
- * <FlutterCupertinoContextMenu
3854
- * ref={ref}
3855
- * // Add props here
3856
- * >
3857
- * Content
3858
- * </FlutterCupertinoContextMenu>
3859
- *
3860
- * // Call methods on the element
3861
- * ref.current?.finishRefresh('success');
3862
- * ```
3863
- */
3864
- declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<FlutterCupertinoContextMenuProps & {
3865
- className?: string;
3866
- style?: React.CSSProperties;
3867
- children?: React.ReactNode;
3868
- } & React.RefAttributes<FlutterCupertinoContextMenuElement>>;
3869
-
3870
3912
  interface FlutterCupertinoCheckboxProps {
3871
3913
  /**
3872
3914
  * val property