@openwebf/react-cupertino-ui 0.3.17 → 0.3.18

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
@@ -2195,6 +2195,101 @@ declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<Flutt
2195
2195
  children?: React.ReactNode;
2196
2196
  } & React.RefAttributes<FlutterCupertinoContextMenuElement>>;
2197
2197
 
2198
+ interface FlutterCupertinoCheckboxProps {
2199
+ /**
2200
+ * Whether the checkbox is checked.
2201
+ * Default: false.
2202
+ */
2203
+ checked?: boolean;
2204
+ /**
2205
+ * Whether the checkbox is disabled.
2206
+ * Default: false.
2207
+ */
2208
+ disabled?: boolean;
2209
+ /**
2210
+ * Whether the checkbox supports a third, mixed state.
2211
+ * When true, Flutter's checkbox cycles false → true → null → false.
2212
+ * Default: false.
2213
+ */
2214
+ tristate?: boolean;
2215
+ /**
2216
+ * Color of the checkbox when selected.
2217
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2218
+ */
2219
+ activeColor?: string;
2220
+ /**
2221
+ * Color of the check icon.
2222
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2223
+ */
2224
+ checkColor?: string;
2225
+ /**
2226
+ * Focus highlight color.
2227
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2228
+ */
2229
+ focusColor?: string;
2230
+ /**
2231
+ * Fill color when the checkbox is selected.
2232
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2233
+ */
2234
+ fillColorSelected?: string;
2235
+ /**
2236
+ * Fill color when the checkbox is disabled.
2237
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2238
+ */
2239
+ fillColorDisabled?: string;
2240
+ /**
2241
+ * Whether this checkbox should focus itself if nothing else is focused.
2242
+ * Default: false.
2243
+ */
2244
+ autofocus?: boolean;
2245
+ /**
2246
+ * Semantic label announced by screen readers (not visible in the UI).
2247
+ */
2248
+ semanticLabel?: string;
2249
+ /**
2250
+ * Fired when the checkbox value changes.
2251
+ * detail = checked state (or null when tristate is enabled and the value is mixed).
2252
+ */
2253
+ onChange?: (event: CustomEvent<any>) => void;
2254
+ /**
2255
+ * HTML id attribute
2256
+ */
2257
+ id?: string;
2258
+ /**
2259
+ * Additional CSS styles
2260
+ */
2261
+ style?: React.CSSProperties;
2262
+ /**
2263
+ * Children elements
2264
+ */
2265
+ children?: React.ReactNode;
2266
+ /**
2267
+ * Additional CSS class names
2268
+ */
2269
+ className?: string;
2270
+ }
2271
+ interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
2272
+ }
2273
+ /**
2274
+ * Properties for <flutter-cupertino-checkbox>
2275
+ iOS-style checkbox.
2276
+ *
2277
+ * @example
2278
+ * ```tsx
2279
+ *
2280
+ * <FlutterCupertinoCheckbox
2281
+ * // Add props here
2282
+ * >
2283
+ * Content
2284
+ * </FlutterCupertinoCheckbox>
2285
+ * ```
2286
+ */
2287
+ declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterCupertinoCheckboxProps & {
2288
+ className?: string;
2289
+ style?: React.CSSProperties;
2290
+ children?: React.ReactNode;
2291
+ } & React.RefAttributes<FlutterCupertinoCheckboxElement>>;
2292
+
2198
2293
  interface FlutterCupertinoButtonProps {
2199
2294
  /**
2200
2295
  * Visual variant of the button.
@@ -4063,82 +4158,4 @@ declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<Flutte
4063
4158
  children?: React.ReactNode;
4064
4159
  } & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
4065
4160
 
4066
- interface FlutterCupertinoCheckboxProps {
4067
- /**
4068
- * val property
4069
- * @default undefined
4070
- */
4071
- val?: string;
4072
- /**
4073
- * disabled property
4074
- * @default undefined
4075
- */
4076
- disabled?: boolean;
4077
- /**
4078
- * activeColor property
4079
- * @default undefined
4080
- */
4081
- activeColor?: string;
4082
- /**
4083
- * checkColor property
4084
- * @default undefined
4085
- */
4086
- checkColor?: string;
4087
- /**
4088
- * focusColor property
4089
- * @default undefined
4090
- */
4091
- focusColor?: string;
4092
- /**
4093
- * fillColorSelected property
4094
- * @default undefined
4095
- */
4096
- fillColorSelected?: string;
4097
- /**
4098
- * fillColorDisabled property
4099
- * @default undefined
4100
- */
4101
- fillColorDisabled?: string;
4102
- /**
4103
- * change event handler
4104
- */
4105
- onChange?: (event: CustomEvent<boolean>) => void;
4106
- /**
4107
- * HTML id attribute
4108
- */
4109
- id?: string;
4110
- /**
4111
- * Additional CSS styles
4112
- */
4113
- style?: React.CSSProperties;
4114
- /**
4115
- * Children elements
4116
- */
4117
- children?: React.ReactNode;
4118
- /**
4119
- * Additional CSS class names
4120
- */
4121
- className?: string;
4122
- }
4123
- interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
4124
- }
4125
- /**
4126
- * FlutterCupertinoCheckbox - WebF FlutterCupertinoCheckbox component
4127
- *
4128
- * @example
4129
- * ```tsx
4130
- *
4131
- * <FlutterCupertinoCheckbox
4132
- * // Add props here
4133
- * >
4134
- * Content
4135
- * </FlutterCupertinoCheckbox>
4136
- * ```
4137
- */
4138
- declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterCupertinoCheckboxProps & {
4139
- className?: string;
4140
- style?: React.CSSProperties;
4141
- children?: React.ReactNode;
4142
- } & React.RefAttributes<FlutterCupertinoCheckboxElement>>;
4143
-
4144
4161
  export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoDatePicker, type FlutterCupertinoDatePickerElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormRowError, type FlutterCupertinoFormRowErrorElement, FlutterCupertinoFormRowHelper, type FlutterCupertinoFormRowHelperElement, FlutterCupertinoFormRowPrefix, type FlutterCupertinoFormRowPrefixElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoFormSectionFooter, type FlutterCupertinoFormSectionFooterElement, FlutterCupertinoFormSectionHeader, type FlutterCupertinoFormSectionHeaderElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoInputPrefix, type FlutterCupertinoInputPrefixElement, FlutterCupertinoInputSuffix, type FlutterCupertinoInputSuffixElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoLoading, type FlutterCupertinoLoadingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoPicker, type FlutterCupertinoPickerElement, FlutterCupertinoPickerItem, type FlutterCupertinoPickerItemElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSearchInput, type FlutterCupertinoSearchInputElement, FlutterCupertinoSegmentedTab, type FlutterCupertinoSegmentedTabElement, FlutterCupertinoSegmentedTabItem, type FlutterCupertinoSegmentedTabItemElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextarea, type FlutterCupertinoTextareaElement, FlutterCupertinoTimerPicker, type FlutterCupertinoTimerPickerElement, FlutterCupertinoToast, type FlutterCupertinoToastElement };
package/dist/index.d.ts CHANGED
@@ -2195,6 +2195,101 @@ declare const FlutterCupertinoContextMenu: React.ForwardRefExoticComponent<Flutt
2195
2195
  children?: React.ReactNode;
2196
2196
  } & React.RefAttributes<FlutterCupertinoContextMenuElement>>;
2197
2197
 
2198
+ interface FlutterCupertinoCheckboxProps {
2199
+ /**
2200
+ * Whether the checkbox is checked.
2201
+ * Default: false.
2202
+ */
2203
+ checked?: boolean;
2204
+ /**
2205
+ * Whether the checkbox is disabled.
2206
+ * Default: false.
2207
+ */
2208
+ disabled?: boolean;
2209
+ /**
2210
+ * Whether the checkbox supports a third, mixed state.
2211
+ * When true, Flutter's checkbox cycles false → true → null → false.
2212
+ * Default: false.
2213
+ */
2214
+ tristate?: boolean;
2215
+ /**
2216
+ * Color of the checkbox when selected.
2217
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2218
+ */
2219
+ activeColor?: string;
2220
+ /**
2221
+ * Color of the check icon.
2222
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2223
+ */
2224
+ checkColor?: string;
2225
+ /**
2226
+ * Focus highlight color.
2227
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2228
+ */
2229
+ focusColor?: string;
2230
+ /**
2231
+ * Fill color when the checkbox is selected.
2232
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2233
+ */
2234
+ fillColorSelected?: string;
2235
+ /**
2236
+ * Fill color when the checkbox is disabled.
2237
+ * Hex string '#RRGGBB' or '#AARRGGBB', or any CSS color supported by WebF.
2238
+ */
2239
+ fillColorDisabled?: string;
2240
+ /**
2241
+ * Whether this checkbox should focus itself if nothing else is focused.
2242
+ * Default: false.
2243
+ */
2244
+ autofocus?: boolean;
2245
+ /**
2246
+ * Semantic label announced by screen readers (not visible in the UI).
2247
+ */
2248
+ semanticLabel?: string;
2249
+ /**
2250
+ * Fired when the checkbox value changes.
2251
+ * detail = checked state (or null when tristate is enabled and the value is mixed).
2252
+ */
2253
+ onChange?: (event: CustomEvent<any>) => void;
2254
+ /**
2255
+ * HTML id attribute
2256
+ */
2257
+ id?: string;
2258
+ /**
2259
+ * Additional CSS styles
2260
+ */
2261
+ style?: React.CSSProperties;
2262
+ /**
2263
+ * Children elements
2264
+ */
2265
+ children?: React.ReactNode;
2266
+ /**
2267
+ * Additional CSS class names
2268
+ */
2269
+ className?: string;
2270
+ }
2271
+ interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
2272
+ }
2273
+ /**
2274
+ * Properties for <flutter-cupertino-checkbox>
2275
+ iOS-style checkbox.
2276
+ *
2277
+ * @example
2278
+ * ```tsx
2279
+ *
2280
+ * <FlutterCupertinoCheckbox
2281
+ * // Add props here
2282
+ * >
2283
+ * Content
2284
+ * </FlutterCupertinoCheckbox>
2285
+ * ```
2286
+ */
2287
+ declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterCupertinoCheckboxProps & {
2288
+ className?: string;
2289
+ style?: React.CSSProperties;
2290
+ children?: React.ReactNode;
2291
+ } & React.RefAttributes<FlutterCupertinoCheckboxElement>>;
2292
+
2198
2293
  interface FlutterCupertinoButtonProps {
2199
2294
  /**
2200
2295
  * Visual variant of the button.
@@ -4063,82 +4158,4 @@ declare const FlutterCupertinoDatePicker: React.ForwardRefExoticComponent<Flutte
4063
4158
  children?: React.ReactNode;
4064
4159
  } & React.RefAttributes<FlutterCupertinoDatePickerElement>>;
4065
4160
 
4066
- interface FlutterCupertinoCheckboxProps {
4067
- /**
4068
- * val property
4069
- * @default undefined
4070
- */
4071
- val?: string;
4072
- /**
4073
- * disabled property
4074
- * @default undefined
4075
- */
4076
- disabled?: boolean;
4077
- /**
4078
- * activeColor property
4079
- * @default undefined
4080
- */
4081
- activeColor?: string;
4082
- /**
4083
- * checkColor property
4084
- * @default undefined
4085
- */
4086
- checkColor?: string;
4087
- /**
4088
- * focusColor property
4089
- * @default undefined
4090
- */
4091
- focusColor?: string;
4092
- /**
4093
- * fillColorSelected property
4094
- * @default undefined
4095
- */
4096
- fillColorSelected?: string;
4097
- /**
4098
- * fillColorDisabled property
4099
- * @default undefined
4100
- */
4101
- fillColorDisabled?: string;
4102
- /**
4103
- * change event handler
4104
- */
4105
- onChange?: (event: CustomEvent<boolean>) => void;
4106
- /**
4107
- * HTML id attribute
4108
- */
4109
- id?: string;
4110
- /**
4111
- * Additional CSS styles
4112
- */
4113
- style?: React.CSSProperties;
4114
- /**
4115
- * Children elements
4116
- */
4117
- children?: React.ReactNode;
4118
- /**
4119
- * Additional CSS class names
4120
- */
4121
- className?: string;
4122
- }
4123
- interface FlutterCupertinoCheckboxElement extends WebFElementWithMethods<{}> {
4124
- }
4125
- /**
4126
- * FlutterCupertinoCheckbox - WebF FlutterCupertinoCheckbox component
4127
- *
4128
- * @example
4129
- * ```tsx
4130
- *
4131
- * <FlutterCupertinoCheckbox
4132
- * // Add props here
4133
- * >
4134
- * Content
4135
- * </FlutterCupertinoCheckbox>
4136
- * ```
4137
- */
4138
- declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterCupertinoCheckboxProps & {
4139
- className?: string;
4140
- style?: React.CSSProperties;
4141
- children?: React.ReactNode;
4142
- } & React.RefAttributes<FlutterCupertinoCheckboxElement>>;
4143
-
4144
4161
  export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoDatePicker, type FlutterCupertinoDatePickerElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormRowError, type FlutterCupertinoFormRowErrorElement, FlutterCupertinoFormRowHelper, type FlutterCupertinoFormRowHelperElement, FlutterCupertinoFormRowPrefix, type FlutterCupertinoFormRowPrefixElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoFormSectionFooter, type FlutterCupertinoFormSectionFooterElement, FlutterCupertinoFormSectionHeader, type FlutterCupertinoFormSectionHeaderElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoInputPrefix, type FlutterCupertinoInputPrefixElement, FlutterCupertinoInputSuffix, type FlutterCupertinoInputSuffixElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoLoading, type FlutterCupertinoLoadingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoPicker, type FlutterCupertinoPickerElement, FlutterCupertinoPickerItem, type FlutterCupertinoPickerItemElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, FlutterCupertinoSearchInput, type FlutterCupertinoSearchInputElement, FlutterCupertinoSegmentedTab, type FlutterCupertinoSegmentedTabElement, FlutterCupertinoSegmentedTabItem, type FlutterCupertinoSegmentedTabItemElement, FlutterCupertinoSlider, type FlutterCupertinoSliderElement, FlutterCupertinoSlidingSegmentedControl, type FlutterCupertinoSlidingSegmentedControlElement, FlutterCupertinoSlidingSegmentedControlItem, type FlutterCupertinoSlidingSegmentedControlItemElement, FlutterCupertinoSwitch, type FlutterCupertinoSwitchElement, FlutterCupertinoTabBar, type FlutterCupertinoTabBarElement, FlutterCupertinoTabBarItem, type FlutterCupertinoTabBarItemElement, FlutterCupertinoTabScaffold, type FlutterCupertinoTabScaffoldElement, FlutterCupertinoTabScaffoldTab, type FlutterCupertinoTabScaffoldTabElement, FlutterCupertinoTabView, type FlutterCupertinoTabViewElement, FlutterCupertinoTextarea, type FlutterCupertinoTextareaElement, FlutterCupertinoTimerPicker, type FlutterCupertinoTimerPickerElement, FlutterCupertinoToast, type FlutterCupertinoToastElement };