@openwebf/react-cupertino-ui 0.3.30 → 0.3.31

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
@@ -1,139 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WebFElementWithMethods } from '@openwebf/react-core-ui';
3
3
 
4
- interface FlutterCupertinoInputProps {
5
- /**
6
- * Current text value of the input.
7
- */
8
- val?: string;
9
- /**
10
- * Placeholder text shown when the field is empty.
11
- */
12
- placeholder?: string;
13
- /**
14
- * Input type / keyboard type.
15
- * Supported values:
16
- * - 'text' (default)
17
- * - 'password'
18
- * - 'number'
19
- * - 'tel'
20
- * - 'email'
21
- * - 'url'
22
- */
23
- type?: string;
24
- /**
25
- * Whether the field is disabled (non-editable and dimmed).
26
- * Default: false.
27
- */
28
- disabled?: boolean;
29
- /**
30
- * Whether the field should autofocus when inserted.
31
- * Default: false.
32
- */
33
- autofocus?: boolean;
34
- /**
35
- * Whether to show a clear button while editing.
36
- * When true, a clear icon appears while text is non-empty.
37
- * Default: false.
38
- */
39
- clearable?: boolean;
40
- /**
41
- * Maximum number of characters allowed.
42
- * When set, input is truncated to this length.
43
- */
44
- maxlength?: number;
45
- /**
46
- * Whether the field is read-only (focusable but not editable).
47
- * Default: false.
48
- */
49
- readonly?: boolean;
50
- /**
51
- * Fired whenever the text changes.
52
- * detail = current value.
53
- */
54
- onInput?: (event: CustomEvent<string>) => void;
55
- /**
56
- * Fired when the user submits the field (e.g., presses the done/enter key).
57
- * detail = current value.
58
- */
59
- onSubmit?: (event: CustomEvent<string>) => void;
60
- /**
61
- * Fired when the field gains focus.
62
- */
63
- onFocus?: (event: CustomEvent<void>) => void;
64
- /**
65
- * Fired when the field loses focus.
66
- */
67
- onBlur?: (event: CustomEvent<void>) => void;
68
- /**
69
- * Fired when the text is cleared via clear button or clear().
70
- */
71
- onClear?: (event: CustomEvent<void>) => void;
72
- /**
73
- * HTML id attribute
74
- */
75
- id?: string;
76
- /**
77
- * Additional CSS styles
78
- */
79
- style?: React.CSSProperties;
80
- /**
81
- * Children elements
82
- */
83
- children?: React.ReactNode;
84
- /**
85
- * Additional CSS class names
86
- */
87
- className?: string;
88
- }
89
- /**
90
- * Element interface with methods accessible via ref
91
- * @example
92
- * ```tsx
93
- * const ref = useRef<FlutterCupertinoInputElement>(null);
94
- * // Call methods on the element
95
- * ref.current?.finishRefresh('success');
96
- * ```
97
- */
98
- interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
99
- /**
100
- * Programmatically focus the input.
101
- */
102
- focus(): void;
103
- /**
104
- * Programmatically blur (unfocus) the input.
105
- */
106
- blur(): void;
107
- /**
108
- * Clear the current value. Triggers the `clear` event.
109
- */
110
- clear(): void;
111
- }> {
112
- }
113
- /**
114
- * Properties for <flutter-cupertino-input>.
115
- *
116
- * @example
117
- * ```tsx
118
- * const ref = useRef<FlutterCupertinoInputElement>(null);
119
- *
120
- * <FlutterCupertinoInput
121
- * ref={ref}
122
- * // Add props here
123
- * >
124
- * Content
125
- * </FlutterCupertinoInput>
126
- *
127
- * // Call methods on the element
128
- * ref.current?.finishRefresh('success');
129
- * ```
130
- */
131
- declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
132
- className?: string;
133
- style?: React.CSSProperties;
134
- children?: React.ReactNode;
135
- } & React.RefAttributes<FlutterCupertinoInputElement>>;
136
-
137
4
  interface FlutterCupertinoTabBarProps {
138
5
  /**
139
6
  * Zero-based active item index.
@@ -1198,6 +1065,139 @@ declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent
1198
1065
  children?: React.ReactNode;
1199
1066
  } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
1200
1067
 
1068
+ interface FlutterCupertinoInputProps {
1069
+ /**
1070
+ * Current text value of the input.
1071
+ */
1072
+ val?: string;
1073
+ /**
1074
+ * Placeholder text shown when the field is empty.
1075
+ */
1076
+ placeholder?: string;
1077
+ /**
1078
+ * Input type / keyboard type.
1079
+ * Supported values:
1080
+ * - 'text' (default)
1081
+ * - 'password'
1082
+ * - 'number'
1083
+ * - 'tel'
1084
+ * - 'email'
1085
+ * - 'url'
1086
+ */
1087
+ type?: string;
1088
+ /**
1089
+ * Whether the field is disabled (non-editable and dimmed).
1090
+ * Default: false.
1091
+ */
1092
+ disabled?: boolean;
1093
+ /**
1094
+ * Whether the field should autofocus when inserted.
1095
+ * Default: false.
1096
+ */
1097
+ autofocus?: boolean;
1098
+ /**
1099
+ * Whether to show a clear button while editing.
1100
+ * When true, a clear icon appears while text is non-empty.
1101
+ * Default: false.
1102
+ */
1103
+ clearable?: boolean;
1104
+ /**
1105
+ * Maximum number of characters allowed.
1106
+ * When set, input is truncated to this length.
1107
+ */
1108
+ maxlength?: number;
1109
+ /**
1110
+ * Whether the field is read-only (focusable but not editable).
1111
+ * Default: false.
1112
+ */
1113
+ readonly?: boolean;
1114
+ /**
1115
+ * Fired whenever the text changes.
1116
+ * detail = current value.
1117
+ */
1118
+ onInput?: (event: CustomEvent<string>) => void;
1119
+ /**
1120
+ * Fired when the user submits the field (e.g., presses the done/enter key).
1121
+ * detail = current value.
1122
+ */
1123
+ onSubmit?: (event: CustomEvent<string>) => void;
1124
+ /**
1125
+ * Fired when the field gains focus.
1126
+ */
1127
+ onFocus?: (event: CustomEvent<void>) => void;
1128
+ /**
1129
+ * Fired when the field loses focus.
1130
+ */
1131
+ onBlur?: (event: CustomEvent<void>) => void;
1132
+ /**
1133
+ * Fired when the text is cleared via clear button or clear().
1134
+ */
1135
+ onClear?: (event: CustomEvent<void>) => void;
1136
+ /**
1137
+ * HTML id attribute
1138
+ */
1139
+ id?: string;
1140
+ /**
1141
+ * Additional CSS styles
1142
+ */
1143
+ style?: React.CSSProperties;
1144
+ /**
1145
+ * Children elements
1146
+ */
1147
+ children?: React.ReactNode;
1148
+ /**
1149
+ * Additional CSS class names
1150
+ */
1151
+ className?: string;
1152
+ }
1153
+ /**
1154
+ * Element interface with methods accessible via ref
1155
+ * @example
1156
+ * ```tsx
1157
+ * const ref = useRef<FlutterCupertinoInputElement>(null);
1158
+ * // Call methods on the element
1159
+ * ref.current?.finishRefresh('success');
1160
+ * ```
1161
+ */
1162
+ interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
1163
+ /**
1164
+ * Programmatically focus the input.
1165
+ */
1166
+ focus(): void;
1167
+ /**
1168
+ * Programmatically blur (unfocus) the input.
1169
+ */
1170
+ blur(): void;
1171
+ /**
1172
+ * Clear the current value. Triggers the `clear` event.
1173
+ */
1174
+ clear(): void;
1175
+ }> {
1176
+ }
1177
+ /**
1178
+ * Properties for <flutter-cupertino-input>.
1179
+ *
1180
+ * @example
1181
+ * ```tsx
1182
+ * const ref = useRef<FlutterCupertinoInputElement>(null);
1183
+ *
1184
+ * <FlutterCupertinoInput
1185
+ * ref={ref}
1186
+ * // Add props here
1187
+ * >
1188
+ * Content
1189
+ * </FlutterCupertinoInput>
1190
+ *
1191
+ * // Call methods on the element
1192
+ * ref.current?.finishRefresh('success');
1193
+ * ```
1194
+ */
1195
+ declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
1196
+ className?: string;
1197
+ style?: React.CSSProperties;
1198
+ children?: React.ReactNode;
1199
+ } & React.RefAttributes<FlutterCupertinoInputElement>>;
1200
+
1201
1201
  declare enum CupertinoIcons {
1202
1202
  add = "add",
1203
1203
  add_circled = "add_circled",
@@ -2840,7 +2840,7 @@ interface FlutterCupertinoCheckboxProps {
2840
2840
  * Whether the checkbox is checked.
2841
2841
  * Default: false.
2842
2842
  */
2843
- checked?: void;
2843
+ checked?: boolean | null;
2844
2844
  /**
2845
2845
  * Whether the checkbox is disabled.
2846
2846
  * Default: false.
package/dist/index.d.ts CHANGED
@@ -1,139 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WebFElementWithMethods } from '@openwebf/react-core-ui';
3
3
 
4
- interface FlutterCupertinoInputProps {
5
- /**
6
- * Current text value of the input.
7
- */
8
- val?: string;
9
- /**
10
- * Placeholder text shown when the field is empty.
11
- */
12
- placeholder?: string;
13
- /**
14
- * Input type / keyboard type.
15
- * Supported values:
16
- * - 'text' (default)
17
- * - 'password'
18
- * - 'number'
19
- * - 'tel'
20
- * - 'email'
21
- * - 'url'
22
- */
23
- type?: string;
24
- /**
25
- * Whether the field is disabled (non-editable and dimmed).
26
- * Default: false.
27
- */
28
- disabled?: boolean;
29
- /**
30
- * Whether the field should autofocus when inserted.
31
- * Default: false.
32
- */
33
- autofocus?: boolean;
34
- /**
35
- * Whether to show a clear button while editing.
36
- * When true, a clear icon appears while text is non-empty.
37
- * Default: false.
38
- */
39
- clearable?: boolean;
40
- /**
41
- * Maximum number of characters allowed.
42
- * When set, input is truncated to this length.
43
- */
44
- maxlength?: number;
45
- /**
46
- * Whether the field is read-only (focusable but not editable).
47
- * Default: false.
48
- */
49
- readonly?: boolean;
50
- /**
51
- * Fired whenever the text changes.
52
- * detail = current value.
53
- */
54
- onInput?: (event: CustomEvent<string>) => void;
55
- /**
56
- * Fired when the user submits the field (e.g., presses the done/enter key).
57
- * detail = current value.
58
- */
59
- onSubmit?: (event: CustomEvent<string>) => void;
60
- /**
61
- * Fired when the field gains focus.
62
- */
63
- onFocus?: (event: CustomEvent<void>) => void;
64
- /**
65
- * Fired when the field loses focus.
66
- */
67
- onBlur?: (event: CustomEvent<void>) => void;
68
- /**
69
- * Fired when the text is cleared via clear button or clear().
70
- */
71
- onClear?: (event: CustomEvent<void>) => void;
72
- /**
73
- * HTML id attribute
74
- */
75
- id?: string;
76
- /**
77
- * Additional CSS styles
78
- */
79
- style?: React.CSSProperties;
80
- /**
81
- * Children elements
82
- */
83
- children?: React.ReactNode;
84
- /**
85
- * Additional CSS class names
86
- */
87
- className?: string;
88
- }
89
- /**
90
- * Element interface with methods accessible via ref
91
- * @example
92
- * ```tsx
93
- * const ref = useRef<FlutterCupertinoInputElement>(null);
94
- * // Call methods on the element
95
- * ref.current?.finishRefresh('success');
96
- * ```
97
- */
98
- interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
99
- /**
100
- * Programmatically focus the input.
101
- */
102
- focus(): void;
103
- /**
104
- * Programmatically blur (unfocus) the input.
105
- */
106
- blur(): void;
107
- /**
108
- * Clear the current value. Triggers the `clear` event.
109
- */
110
- clear(): void;
111
- }> {
112
- }
113
- /**
114
- * Properties for <flutter-cupertino-input>.
115
- *
116
- * @example
117
- * ```tsx
118
- * const ref = useRef<FlutterCupertinoInputElement>(null);
119
- *
120
- * <FlutterCupertinoInput
121
- * ref={ref}
122
- * // Add props here
123
- * >
124
- * Content
125
- * </FlutterCupertinoInput>
126
- *
127
- * // Call methods on the element
128
- * ref.current?.finishRefresh('success');
129
- * ```
130
- */
131
- declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
132
- className?: string;
133
- style?: React.CSSProperties;
134
- children?: React.ReactNode;
135
- } & React.RefAttributes<FlutterCupertinoInputElement>>;
136
-
137
4
  interface FlutterCupertinoTabBarProps {
138
5
  /**
139
6
  * Zero-based active item index.
@@ -1198,6 +1065,139 @@ declare const FlutterCupertinoListSectionFooter: React.ForwardRefExoticComponent
1198
1065
  children?: React.ReactNode;
1199
1066
  } & React.RefAttributes<FlutterCupertinoListSectionFooterElement>>;
1200
1067
 
1068
+ interface FlutterCupertinoInputProps {
1069
+ /**
1070
+ * Current text value of the input.
1071
+ */
1072
+ val?: string;
1073
+ /**
1074
+ * Placeholder text shown when the field is empty.
1075
+ */
1076
+ placeholder?: string;
1077
+ /**
1078
+ * Input type / keyboard type.
1079
+ * Supported values:
1080
+ * - 'text' (default)
1081
+ * - 'password'
1082
+ * - 'number'
1083
+ * - 'tel'
1084
+ * - 'email'
1085
+ * - 'url'
1086
+ */
1087
+ type?: string;
1088
+ /**
1089
+ * Whether the field is disabled (non-editable and dimmed).
1090
+ * Default: false.
1091
+ */
1092
+ disabled?: boolean;
1093
+ /**
1094
+ * Whether the field should autofocus when inserted.
1095
+ * Default: false.
1096
+ */
1097
+ autofocus?: boolean;
1098
+ /**
1099
+ * Whether to show a clear button while editing.
1100
+ * When true, a clear icon appears while text is non-empty.
1101
+ * Default: false.
1102
+ */
1103
+ clearable?: boolean;
1104
+ /**
1105
+ * Maximum number of characters allowed.
1106
+ * When set, input is truncated to this length.
1107
+ */
1108
+ maxlength?: number;
1109
+ /**
1110
+ * Whether the field is read-only (focusable but not editable).
1111
+ * Default: false.
1112
+ */
1113
+ readonly?: boolean;
1114
+ /**
1115
+ * Fired whenever the text changes.
1116
+ * detail = current value.
1117
+ */
1118
+ onInput?: (event: CustomEvent<string>) => void;
1119
+ /**
1120
+ * Fired when the user submits the field (e.g., presses the done/enter key).
1121
+ * detail = current value.
1122
+ */
1123
+ onSubmit?: (event: CustomEvent<string>) => void;
1124
+ /**
1125
+ * Fired when the field gains focus.
1126
+ */
1127
+ onFocus?: (event: CustomEvent<void>) => void;
1128
+ /**
1129
+ * Fired when the field loses focus.
1130
+ */
1131
+ onBlur?: (event: CustomEvent<void>) => void;
1132
+ /**
1133
+ * Fired when the text is cleared via clear button or clear().
1134
+ */
1135
+ onClear?: (event: CustomEvent<void>) => void;
1136
+ /**
1137
+ * HTML id attribute
1138
+ */
1139
+ id?: string;
1140
+ /**
1141
+ * Additional CSS styles
1142
+ */
1143
+ style?: React.CSSProperties;
1144
+ /**
1145
+ * Children elements
1146
+ */
1147
+ children?: React.ReactNode;
1148
+ /**
1149
+ * Additional CSS class names
1150
+ */
1151
+ className?: string;
1152
+ }
1153
+ /**
1154
+ * Element interface with methods accessible via ref
1155
+ * @example
1156
+ * ```tsx
1157
+ * const ref = useRef<FlutterCupertinoInputElement>(null);
1158
+ * // Call methods on the element
1159
+ * ref.current?.finishRefresh('success');
1160
+ * ```
1161
+ */
1162
+ interface FlutterCupertinoInputElement extends WebFElementWithMethods<{
1163
+ /**
1164
+ * Programmatically focus the input.
1165
+ */
1166
+ focus(): void;
1167
+ /**
1168
+ * Programmatically blur (unfocus) the input.
1169
+ */
1170
+ blur(): void;
1171
+ /**
1172
+ * Clear the current value. Triggers the `clear` event.
1173
+ */
1174
+ clear(): void;
1175
+ }> {
1176
+ }
1177
+ /**
1178
+ * Properties for <flutter-cupertino-input>.
1179
+ *
1180
+ * @example
1181
+ * ```tsx
1182
+ * const ref = useRef<FlutterCupertinoInputElement>(null);
1183
+ *
1184
+ * <FlutterCupertinoInput
1185
+ * ref={ref}
1186
+ * // Add props here
1187
+ * >
1188
+ * Content
1189
+ * </FlutterCupertinoInput>
1190
+ *
1191
+ * // Call methods on the element
1192
+ * ref.current?.finishRefresh('success');
1193
+ * ```
1194
+ */
1195
+ declare const FlutterCupertinoInput: React.ForwardRefExoticComponent<FlutterCupertinoInputProps & {
1196
+ className?: string;
1197
+ style?: React.CSSProperties;
1198
+ children?: React.ReactNode;
1199
+ } & React.RefAttributes<FlutterCupertinoInputElement>>;
1200
+
1201
1201
  declare enum CupertinoIcons {
1202
1202
  add = "add",
1203
1203
  add_circled = "add_circled",
@@ -2840,7 +2840,7 @@ interface FlutterCupertinoCheckboxProps {
2840
2840
  * Whether the checkbox is checked.
2841
2841
  * Default: false.
2842
2842
  */
2843
- checked?: void;
2843
+ checked?: boolean | null;
2844
2844
  /**
2845
2845
  * Whether the checkbox is disabled.
2846
2846
  * Default: false.