@openwebf/react-cupertino-ui 0.2.12 → 0.3.1
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 +19 -10
- package/dist/index.d.ts +19 -10
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -7
package/dist/index.d.mts
CHANGED
|
@@ -2214,27 +2214,36 @@ declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterC
|
|
|
2214
2214
|
|
|
2215
2215
|
interface FlutterCupertinoButtonProps {
|
|
2216
2216
|
/**
|
|
2217
|
-
* variant
|
|
2218
|
-
*
|
|
2217
|
+
* Visual variant of the button.
|
|
2218
|
+
* - 'plain': Standard CupertinoButton
|
|
2219
|
+
* - 'filled': CupertinoButton.filled (ignores custom background color)
|
|
2220
|
+
* - 'tinted': CupertinoButton.tinted
|
|
2221
|
+
* Default: 'plain'
|
|
2219
2222
|
*/
|
|
2220
2223
|
variant?: string;
|
|
2221
2224
|
/**
|
|
2222
|
-
*
|
|
2223
|
-
*
|
|
2225
|
+
* Size style used to derive default padding and min height.
|
|
2226
|
+
* - 'small': minSize ~32, compact padding
|
|
2227
|
+
* - 'large': minSize ~44, comfortable padding
|
|
2228
|
+
* Default: 'small'
|
|
2224
2229
|
*/
|
|
2225
2230
|
size?: string;
|
|
2226
2231
|
/**
|
|
2227
|
-
* disabled
|
|
2228
|
-
* @default undefined
|
|
2232
|
+
* Disable interactions. When true, onPressed is null and the button uses a disabled color.
|
|
2229
2233
|
*/
|
|
2230
2234
|
disabled?: boolean;
|
|
2231
2235
|
/**
|
|
2232
|
-
*
|
|
2233
|
-
*
|
|
2236
|
+
* Opacity applied while pressed (0.0–1.0). Default: 0.4
|
|
2237
|
+
* Note: Accepts numeric value as a string.
|
|
2234
2238
|
*/
|
|
2235
2239
|
pressedOpacity?: string;
|
|
2236
2240
|
/**
|
|
2237
|
-
*
|
|
2241
|
+
* Hex color used when disabled. Accepts '#RRGGBB' or '#AARRGGBB'.
|
|
2242
|
+
* Overrides the internally computed disabled color.
|
|
2243
|
+
*/
|
|
2244
|
+
disabledColor?: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* Fired when the button is pressed (not emitted when disabled).
|
|
2238
2247
|
*/
|
|
2239
2248
|
onClick?: (event: Event) => void;
|
|
2240
2249
|
/**
|
|
@@ -2257,7 +2266,7 @@ interface FlutterCupertinoButtonProps {
|
|
|
2257
2266
|
interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{}> {
|
|
2258
2267
|
}
|
|
2259
2268
|
/**
|
|
2260
|
-
*
|
|
2269
|
+
* Properties for <flutter-cupertino-button>
|
|
2261
2270
|
*
|
|
2262
2271
|
* @example
|
|
2263
2272
|
* ```tsx
|
package/dist/index.d.ts
CHANGED
|
@@ -2214,27 +2214,36 @@ declare const FlutterCupertinoCheckbox: React.ForwardRefExoticComponent<FlutterC
|
|
|
2214
2214
|
|
|
2215
2215
|
interface FlutterCupertinoButtonProps {
|
|
2216
2216
|
/**
|
|
2217
|
-
* variant
|
|
2218
|
-
*
|
|
2217
|
+
* Visual variant of the button.
|
|
2218
|
+
* - 'plain': Standard CupertinoButton
|
|
2219
|
+
* - 'filled': CupertinoButton.filled (ignores custom background color)
|
|
2220
|
+
* - 'tinted': CupertinoButton.tinted
|
|
2221
|
+
* Default: 'plain'
|
|
2219
2222
|
*/
|
|
2220
2223
|
variant?: string;
|
|
2221
2224
|
/**
|
|
2222
|
-
*
|
|
2223
|
-
*
|
|
2225
|
+
* Size style used to derive default padding and min height.
|
|
2226
|
+
* - 'small': minSize ~32, compact padding
|
|
2227
|
+
* - 'large': minSize ~44, comfortable padding
|
|
2228
|
+
* Default: 'small'
|
|
2224
2229
|
*/
|
|
2225
2230
|
size?: string;
|
|
2226
2231
|
/**
|
|
2227
|
-
* disabled
|
|
2228
|
-
* @default undefined
|
|
2232
|
+
* Disable interactions. When true, onPressed is null and the button uses a disabled color.
|
|
2229
2233
|
*/
|
|
2230
2234
|
disabled?: boolean;
|
|
2231
2235
|
/**
|
|
2232
|
-
*
|
|
2233
|
-
*
|
|
2236
|
+
* Opacity applied while pressed (0.0–1.0). Default: 0.4
|
|
2237
|
+
* Note: Accepts numeric value as a string.
|
|
2234
2238
|
*/
|
|
2235
2239
|
pressedOpacity?: string;
|
|
2236
2240
|
/**
|
|
2237
|
-
*
|
|
2241
|
+
* Hex color used when disabled. Accepts '#RRGGBB' or '#AARRGGBB'.
|
|
2242
|
+
* Overrides the internally computed disabled color.
|
|
2243
|
+
*/
|
|
2244
|
+
disabledColor?: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* Fired when the button is pressed (not emitted when disabled).
|
|
2238
2247
|
*/
|
|
2239
2248
|
onClick?: (event: Event) => void;
|
|
2240
2249
|
/**
|
|
@@ -2257,7 +2266,7 @@ interface FlutterCupertinoButtonProps {
|
|
|
2257
2266
|
interface FlutterCupertinoButtonElement extends WebFElementWithMethods<{}> {
|
|
2258
2267
|
}
|
|
2259
2268
|
/**
|
|
2260
|
-
*
|
|
2269
|
+
* Properties for <flutter-cupertino-button>
|
|
2261
2270
|
*
|
|
2262
2271
|
* @example
|
|
2263
2272
|
* ```tsx
|
package/dist/index.js
CHANGED
|
@@ -1035,11 +1035,13 @@ var FlutterCupertinoButton = (0, import_react_core_ui24.createWebFComponent)({
|
|
|
1035
1035
|
"variant",
|
|
1036
1036
|
"size",
|
|
1037
1037
|
"disabled",
|
|
1038
|
-
"pressedOpacity"
|
|
1038
|
+
"pressedOpacity",
|
|
1039
|
+
"disabledColor"
|
|
1039
1040
|
],
|
|
1040
1041
|
// Convert prop names to attribute names if needed
|
|
1041
1042
|
attributeMap: {
|
|
1042
|
-
pressedOpacity: "pressed-opacity"
|
|
1043
|
+
pressedOpacity: "pressed-opacity",
|
|
1044
|
+
disabledColor: "disabled-color"
|
|
1043
1045
|
},
|
|
1044
1046
|
// Event handlers
|
|
1045
1047
|
events: [
|