@openwebf/react-cupertino-ui 0.3.20 → 0.3.21

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
@@ -2248,9 +2248,17 @@ interface FlutterCupertinoCheckboxProps {
2248
2248
  semanticLabel?: string;
2249
2249
  /**
2250
2250
  * Fired when the checkbox value changes.
2251
- * detail = checked state (or null when tristate is enabled and the value is mixed).
2251
+ * detail = checked state as a boolean.
2252
2252
  */
2253
- onChange?: (event: CustomEvent<boolean | null>) => void;
2253
+ onChange?: (event: CustomEvent<boolean>) => void;
2254
+ /**
2255
+ * Fired when the checkbox value changes, including tristate transitions.
2256
+ * detail = 'checked' | 'unchecked' | 'mixed'.
2257
+ *
2258
+ * Use this event when you need to distinguish the mixed state,
2259
+ * instead of relying on null.
2260
+ */
2261
+ onStatechange?: (event: CustomEvent<"checked" | "unchecked" | "mixed">) => void;
2254
2262
  /**
2255
2263
  * HTML id attribute
2256
2264
  */
package/dist/index.d.ts CHANGED
@@ -2248,9 +2248,17 @@ interface FlutterCupertinoCheckboxProps {
2248
2248
  semanticLabel?: string;
2249
2249
  /**
2250
2250
  * Fired when the checkbox value changes.
2251
- * detail = checked state (or null when tristate is enabled and the value is mixed).
2251
+ * detail = checked state as a boolean.
2252
2252
  */
2253
- onChange?: (event: CustomEvent<boolean | null>) => void;
2253
+ onChange?: (event: CustomEvent<boolean>) => void;
2254
+ /**
2255
+ * Fired when the checkbox value changes, including tristate transitions.
2256
+ * detail = 'checked' | 'unchecked' | 'mixed'.
2257
+ *
2258
+ * Use this event when you need to distinguish the mixed state,
2259
+ * instead of relying on null.
2260
+ */
2261
+ onStatechange?: (event: CustomEvent<"checked" | "unchecked" | "mixed">) => void;
2254
2262
  /**
2255
2263
  * HTML id attribute
2256
2264
  */
package/dist/index.js CHANGED
@@ -456,6 +456,13 @@ var FlutterCupertinoCheckbox = (0, import_react_core_ui11.createWebFComponent)({
456
456
  handler: (callback) => (event) => {
457
457
  callback(event);
458
458
  }
459
+ },
460
+ {
461
+ propName: "onStatechange",
462
+ eventName: "statechange",
463
+ handler: (callback) => (event) => {
464
+ callback(event);
465
+ }
459
466
  }
460
467
  ],
461
468
  // Default prop values