@openwebf/react-cupertino-ui 0.3.12 → 0.3.14

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,193 @@ declare const FlutterCupertinoTabScaffoldTab: React.ForwardRefExoticComponent<Fl
265
265
  children?: React.ReactNode;
266
266
  } & React.RefAttributes<FlutterCupertinoTabScaffoldTabElement>>;
267
267
 
268
+ interface FlutterCupertinoSwitchProps {
269
+ /**
270
+ * Whether the switch is on.
271
+ * Default: false.
272
+ */
273
+ checked?: boolean;
274
+ /**
275
+ * Whether the switch is disabled.
276
+ * Default: false.
277
+ */
278
+ disabled?: boolean;
279
+ /**
280
+ * Track color when the switch is on.
281
+ * Hex string '#RRGGBB' or '#AARRGGBB'.
282
+ */
283
+ activeColor?: string;
284
+ /**
285
+ * Track color when the switch is off.
286
+ * Hex string '#RRGGBB' or '#AARRGGBB'.
287
+ */
288
+ inactiveColor?: string;
289
+ /**
290
+ * Fired when the switch value changes. detail = checked state
291
+ */
292
+ onChange?: (event: CustomEvent<boolean>) => void;
293
+ /**
294
+ * HTML id attribute
295
+ */
296
+ id?: string;
297
+ /**
298
+ * Additional CSS styles
299
+ */
300
+ style?: React.CSSProperties;
301
+ /**
302
+ * Children elements
303
+ */
304
+ children?: React.ReactNode;
305
+ /**
306
+ * Additional CSS class names
307
+ */
308
+ className?: string;
309
+ }
310
+ interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
311
+ }
312
+ /**
313
+ * Properties for <flutter-cupertino-switch>
314
+ iOS-style toggle switch.
315
+ *
316
+ * @example
317
+ * ```tsx
318
+ *
319
+ * <FlutterCupertinoSwitch
320
+ * // Add props here
321
+ * >
322
+ * Content
323
+ * </FlutterCupertinoSwitch>
324
+ * ```
325
+ */
326
+ declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
327
+ className?: string;
328
+ style?: React.CSSProperties;
329
+ children?: React.ReactNode;
330
+ } & React.RefAttributes<FlutterCupertinoSwitchElement>>;
331
+
332
+ interface FlutterCupertinoListSectionProps {
333
+ /**
334
+ * Whether to use the inset grouped style (iOS Settings-style sections).
335
+ * Default: false.
336
+ */
337
+ insetGrouped?: boolean;
338
+ /**
339
+ * HTML id attribute
340
+ */
341
+ id?: string;
342
+ /**
343
+ * Additional CSS styles
344
+ */
345
+ style?: React.CSSProperties;
346
+ /**
347
+ * Children elements
348
+ */
349
+ children?: React.ReactNode;
350
+ /**
351
+ * Additional CSS class names
352
+ */
353
+ className?: string;
354
+ }
355
+ interface FlutterCupertinoListSectionElement extends WebFElementWithMethods<{}> {
356
+ }
357
+ /**
358
+ * Properties for <flutter-cupertino-list-section>
359
+ Grouped list section with optional header and footer slots.
360
+ *
361
+ * @example
362
+ * ```tsx
363
+ *
364
+ * <FlutterCupertinoListSection
365
+ * // Add props here
366
+ * >
367
+ * Content
368
+ * </FlutterCupertinoListSection>
369
+ * ```
370
+ */
371
+ declare const FlutterCupertinoListSection: React.ForwardRefExoticComponent<FlutterCupertinoListSectionProps & {
372
+ className?: string;
373
+ style?: React.CSSProperties;
374
+ children?: React.ReactNode;
375
+ } & React.RefAttributes<FlutterCupertinoListSectionElement>>;
376
+ interface FlutterCupertinoListSectionHeaderProps {
377
+ /**
378
+ * HTML id attribute
379
+ */
380
+ id?: string;
381
+ /**
382
+ * Additional CSS styles
383
+ */
384
+ style?: React.CSSProperties;
385
+ /**
386
+ * Children elements
387
+ */
388
+ children?: React.ReactNode;
389
+ /**
390
+ * Additional CSS class names
391
+ */
392
+ className?: string;
393
+ }
394
+ interface FlutterCupertinoListSectionHeaderElement extends WebFElementWithMethods<{}> {
395
+ }
396
+ /**
397
+ * Properties for <flutter-cupertino-list-section-header>
398
+ Slot for the section header content.
399
+ *
400
+ * @example
401
+ * ```tsx
402
+ *
403
+ * <FlutterCupertinoListSectionHeader
404
+ * // Add props here
405
+ * >
406
+ * Content
407
+ * </FlutterCupertinoListSectionHeader>
408
+ * ```
409
+ */
410
+ declare const FlutterCupertinoListSectionHeader: React.ForwardRefExoticComponent<FlutterCupertinoListSectionHeaderProps & {
411
+ className?: string;
412
+ style?: React.CSSProperties;
413
+ children?: React.ReactNode;
414
+ } & React.RefAttributes<FlutterCupertinoListSectionHeaderElement>>;
415
+ interface FlutterCupertinoListSectionFooterProps {
416
+ /**
417
+ * HTML id attribute
418
+ */
419
+ id?: string;
420
+ /**
421
+ * Additional CSS styles
422
+ */
423
+ style?: React.CSSProperties;
424
+ /**
425
+ * Children elements
426
+ */
427
+ children?: React.ReactNode;
428
+ /**
429
+ * Additional CSS class names
430
+ */
431
+ className?: string;
432
+ }
433
+ interface FlutterCupertinoListSectionFooterElement extends WebFElementWithMethods<{}> {
434
+ }
435
+ /**
436
+ * Properties for <flutter-cupertino-list-section-footer>
437
+ Slot for the section footer content.
438
+ *
439
+ * @example
440
+ * ```tsx
441
+ *
442
+ * <FlutterCupertinoListSectionFooter
443
+ * // Add props here
444
+ * >
445
+ * Content
446
+ * </FlutterCupertinoListSectionFooter>
447
+ * ```
448
+ */
449
+ declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent<FlutterCupertinoListSectionFooterProps & {
450
+ className?: string;
451
+ style?: React.CSSProperties;
452
+ children?: React.ReactNode;
453
+ } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
454
+
268
455
  declare enum CupertinoIcons {
269
456
  add = "add",
270
457
  add_circled = "add_circled",
@@ -2373,69 +2560,6 @@ declare const FlutterCupertinoTextarea: React.ForwardRefExoticComponent<FlutterC
2373
2560
  children?: React.ReactNode;
2374
2561
  } & React.RefAttributes<FlutterCupertinoTextareaElement>>;
2375
2562
 
2376
- interface FlutterCupertinoSwitchProps {
2377
- /**
2378
- * checked property
2379
- * @default undefined
2380
- */
2381
- checked?: boolean;
2382
- /**
2383
- * disabled property
2384
- * @default undefined
2385
- */
2386
- disabled?: boolean;
2387
- /**
2388
- * activeColor property
2389
- * @default undefined
2390
- */
2391
- activeColor?: string;
2392
- /**
2393
- * inactiveColor property
2394
- * @default undefined
2395
- */
2396
- inactiveColor?: string;
2397
- /**
2398
- * change event handler
2399
- */
2400
- onChange?: (event: CustomEvent<boolean>) => void;
2401
- /**
2402
- * HTML id attribute
2403
- */
2404
- id?: string;
2405
- /**
2406
- * Additional CSS styles
2407
- */
2408
- style?: React.CSSProperties;
2409
- /**
2410
- * Children elements
2411
- */
2412
- children?: React.ReactNode;
2413
- /**
2414
- * Additional CSS class names
2415
- */
2416
- className?: string;
2417
- }
2418
- interface FlutterCupertinoSwitchElement extends WebFElementWithMethods<{}> {
2419
- }
2420
- /**
2421
- * FlutterCupertinoSwitch - WebF FlutterCupertinoSwitch component
2422
- *
2423
- * @example
2424
- * ```tsx
2425
- *
2426
- * <FlutterCupertinoSwitch
2427
- * // Add props here
2428
- * >
2429
- * Content
2430
- * </FlutterCupertinoSwitch>
2431
- * ```
2432
- */
2433
- declare const FlutterCupertinoSwitch: React.ForwardRefExoticComponent<FlutterCupertinoSwitchProps & {
2434
- className?: string;
2435
- style?: React.CSSProperties;
2436
- children?: React.ReactNode;
2437
- } & React.RefAttributes<FlutterCupertinoSwitchElement>>;
2438
-
2439
2563
  interface FlutterCupertinoSliderProps {
2440
2564
  /**
2441
2565
  * val property
@@ -3216,126 +3340,6 @@ declare const FlutterCupertinoListTileTrailing: React.ForwardRefExoticComponent<
3216
3340
  children?: React.ReactNode;
3217
3341
  } & React.RefAttributes<FlutterCupertinoListTileTrailingElement>>;
3218
3342
 
3219
- interface FlutterCupertinoListSectionProps {
3220
- /**
3221
- * insetGrouped property
3222
- * @default undefined
3223
- */
3224
- insetGrouped?: string;
3225
- /**
3226
- * HTML id attribute
3227
- */
3228
- id?: string;
3229
- /**
3230
- * Additional CSS styles
3231
- */
3232
- style?: React.CSSProperties;
3233
- /**
3234
- * Children elements
3235
- */
3236
- children?: React.ReactNode;
3237
- /**
3238
- * Additional CSS class names
3239
- */
3240
- className?: string;
3241
- }
3242
- interface FlutterCupertinoListSectionElement extends WebFElementWithMethods<{}> {
3243
- }
3244
- /**
3245
- * FlutterCupertinoListSection - WebF FlutterCupertinoListSection component
3246
- *
3247
- * @example
3248
- * ```tsx
3249
- *
3250
- * <FlutterCupertinoListSection
3251
- * // Add props here
3252
- * >
3253
- * Content
3254
- * </FlutterCupertinoListSection>
3255
- * ```
3256
- */
3257
- declare const FlutterCupertinoListSection: React.ForwardRefExoticComponent<FlutterCupertinoListSectionProps & {
3258
- className?: string;
3259
- style?: React.CSSProperties;
3260
- children?: React.ReactNode;
3261
- } & React.RefAttributes<FlutterCupertinoListSectionElement>>;
3262
- interface FlutterCupertinoListSectionHeaderProps {
3263
- /**
3264
- * HTML id attribute
3265
- */
3266
- id?: string;
3267
- /**
3268
- * Additional CSS styles
3269
- */
3270
- style?: React.CSSProperties;
3271
- /**
3272
- * Children elements
3273
- */
3274
- children?: React.ReactNode;
3275
- /**
3276
- * Additional CSS class names
3277
- */
3278
- className?: string;
3279
- }
3280
- interface FlutterCupertinoListSectionHeaderElement extends WebFElementWithMethods<{}> {
3281
- }
3282
- /**
3283
- * FlutterCupertinoListSectionHeader - WebF FlutterCupertinoListSectionHeader component
3284
- *
3285
- * @example
3286
- * ```tsx
3287
- *
3288
- * <FlutterCupertinoListSectionHeader
3289
- * // Add props here
3290
- * >
3291
- * Content
3292
- * </FlutterCupertinoListSectionHeader>
3293
- * ```
3294
- */
3295
- declare const FlutterCupertinoListSectionHeader: React.ForwardRefExoticComponent<FlutterCupertinoListSectionHeaderProps & {
3296
- className?: string;
3297
- style?: React.CSSProperties;
3298
- children?: React.ReactNode;
3299
- } & React.RefAttributes<FlutterCupertinoListSectionHeaderElement>>;
3300
- interface FlutterCupertinoListSectionFooterProps {
3301
- /**
3302
- * HTML id attribute
3303
- */
3304
- id?: string;
3305
- /**
3306
- * Additional CSS styles
3307
- */
3308
- style?: React.CSSProperties;
3309
- /**
3310
- * Children elements
3311
- */
3312
- children?: React.ReactNode;
3313
- /**
3314
- * Additional CSS class names
3315
- */
3316
- className?: string;
3317
- }
3318
- interface FlutterCupertinoListSectionFooterElement extends WebFElementWithMethods<{}> {
3319
- }
3320
- /**
3321
- * FlutterCupertinoListSectionFooter - WebF FlutterCupertinoListSectionFooter component
3322
- *
3323
- * @example
3324
- * ```tsx
3325
- *
3326
- * <FlutterCupertinoListSectionFooter
3327
- * // Add props here
3328
- * >
3329
- * Content
3330
- * </FlutterCupertinoListSectionFooter>
3331
- * ```
3332
- */
3333
- declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent<FlutterCupertinoListSectionFooterProps & {
3334
- className?: string;
3335
- style?: React.CSSProperties;
3336
- children?: React.ReactNode;
3337
- } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
3338
-
3339
3343
  interface FlutterCupertinoInputProps {
3340
3344
  /**
3341
3345
  * val property