@openwebf/react-cupertino-ui 0.3.26 → 0.3.28
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 +135 -2
- package/dist/index.d.ts +135 -2
- package/dist/index.js +109 -45
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +108 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,139 @@
|
|
|
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
|
+
|
|
4
137
|
interface FlutterCupertinoTabBarProps {
|
|
5
138
|
/**
|
|
6
139
|
* Zero-based active item index.
|
|
@@ -2707,7 +2840,7 @@ interface FlutterCupertinoCheckboxProps {
|
|
|
2707
2840
|
* Whether the checkbox is checked.
|
|
2708
2841
|
* Default: false.
|
|
2709
2842
|
*/
|
|
2710
|
-
checked?:
|
|
2843
|
+
checked?: void;
|
|
2711
2844
|
/**
|
|
2712
2845
|
* Whether the checkbox is disabled.
|
|
2713
2846
|
* Default: false.
|
|
@@ -3129,4 +3262,4 @@ declare const FlutterCupertinoActionSheet: React.ForwardRefExoticComponent<Flutt
|
|
|
3129
3262
|
children?: React.ReactNode;
|
|
3130
3263
|
} & React.RefAttributes<FlutterCupertinoActionSheetElement>>;
|
|
3131
3264
|
|
|
3132
|
-
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, 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 };
|
|
3265
|
+
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, 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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,139 @@
|
|
|
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
|
+
|
|
4
137
|
interface FlutterCupertinoTabBarProps {
|
|
5
138
|
/**
|
|
6
139
|
* Zero-based active item index.
|
|
@@ -2707,7 +2840,7 @@ interface FlutterCupertinoCheckboxProps {
|
|
|
2707
2840
|
* Whether the checkbox is checked.
|
|
2708
2841
|
* Default: false.
|
|
2709
2842
|
*/
|
|
2710
|
-
checked?:
|
|
2843
|
+
checked?: void;
|
|
2711
2844
|
/**
|
|
2712
2845
|
* Whether the checkbox is disabled.
|
|
2713
2846
|
* Default: false.
|
|
@@ -3129,4 +3262,4 @@ declare const FlutterCupertinoActionSheet: React.ForwardRefExoticComponent<Flutt
|
|
|
3129
3262
|
children?: React.ReactNode;
|
|
3130
3263
|
} & React.RefAttributes<FlutterCupertinoActionSheetElement>>;
|
|
3131
3264
|
|
|
3132
|
-
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, 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 };
|
|
3265
|
+
export { CupertinoColors, CupertinoIcons, FlutterCupertinoActionSheet, type FlutterCupertinoActionSheetElement, FlutterCupertinoAlert, type FlutterCupertinoAlertElement, FlutterCupertinoButton, type FlutterCupertinoButtonElement, FlutterCupertinoCheckbox, type FlutterCupertinoCheckboxElement, FlutterCupertinoContextMenu, type FlutterCupertinoContextMenuElement, FlutterCupertinoFormRow, type FlutterCupertinoFormRowElement, FlutterCupertinoFormSection, type FlutterCupertinoFormSectionElement, FlutterCupertinoIcon, type FlutterCupertinoIconElement, FlutterCupertinoInput, type FlutterCupertinoInputElement, FlutterCupertinoListSection, type FlutterCupertinoListSectionElement, FlutterCupertinoListSectionFooter, type FlutterCupertinoListSectionFooterElement, FlutterCupertinoListSectionHeader, type FlutterCupertinoListSectionHeaderElement, FlutterCupertinoListTile, FlutterCupertinoListTileAdditionalInfo, type FlutterCupertinoListTileAdditionalInfoElement, type FlutterCupertinoListTileElement, FlutterCupertinoListTileLeading, type FlutterCupertinoListTileLeadingElement, FlutterCupertinoListTileSubtitle, type FlutterCupertinoListTileSubtitleElement, FlutterCupertinoListTileTrailing, type FlutterCupertinoListTileTrailingElement, FlutterCupertinoModalPopup, type FlutterCupertinoModalPopupElement, FlutterCupertinoRadio, type FlutterCupertinoRadioElement, 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 };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ __export(index_exports, {
|
|
|
30
30
|
FlutterCupertinoFormRow: () => FlutterCupertinoFormRow,
|
|
31
31
|
FlutterCupertinoFormSection: () => FlutterCupertinoFormSection,
|
|
32
32
|
FlutterCupertinoIcon: () => FlutterCupertinoIcon,
|
|
33
|
+
FlutterCupertinoInput: () => FlutterCupertinoInput,
|
|
33
34
|
FlutterCupertinoListSection: () => FlutterCupertinoListSection,
|
|
34
35
|
FlutterCupertinoListSectionFooter: () => FlutterCupertinoListSectionFooter,
|
|
35
36
|
FlutterCupertinoListSectionHeader: () => FlutterCupertinoListSectionHeader,
|
|
@@ -52,9 +53,71 @@ __export(index_exports, {
|
|
|
52
53
|
});
|
|
53
54
|
module.exports = __toCommonJS(index_exports);
|
|
54
55
|
|
|
55
|
-
// src/lib/src/
|
|
56
|
+
// src/webf_cupertino_ui/lib/src/input.tsx
|
|
56
57
|
var import_react_core_ui = require("@openwebf/react-core-ui");
|
|
57
|
-
var
|
|
58
|
+
var FlutterCupertinoInput = (0, import_react_core_ui.createWebFComponent)({
|
|
59
|
+
tagName: "flutter-cupertino-input",
|
|
60
|
+
displayName: "FlutterCupertinoInput",
|
|
61
|
+
// Map props to attributes
|
|
62
|
+
attributeProps: [
|
|
63
|
+
"val",
|
|
64
|
+
"placeholder",
|
|
65
|
+
"type",
|
|
66
|
+
"disabled",
|
|
67
|
+
"autofocus",
|
|
68
|
+
"clearable",
|
|
69
|
+
"maxlength",
|
|
70
|
+
"readonly"
|
|
71
|
+
],
|
|
72
|
+
// Convert prop names to attribute names if needed
|
|
73
|
+
attributeMap: {},
|
|
74
|
+
// Event handlers
|
|
75
|
+
events: [
|
|
76
|
+
{
|
|
77
|
+
propName: "onInput",
|
|
78
|
+
eventName: "input",
|
|
79
|
+
handler: (callback) => (event) => {
|
|
80
|
+
callback(event);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
propName: "onSubmit",
|
|
85
|
+
eventName: "submit",
|
|
86
|
+
handler: (callback) => (event) => {
|
|
87
|
+
callback(event);
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
propName: "onFocus",
|
|
92
|
+
eventName: "focus",
|
|
93
|
+
handler: (callback) => (event) => {
|
|
94
|
+
callback(event);
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
propName: "onBlur",
|
|
99
|
+
eventName: "blur",
|
|
100
|
+
handler: (callback) => (event) => {
|
|
101
|
+
callback(event);
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
propName: "onClear",
|
|
106
|
+
eventName: "clear",
|
|
107
|
+
handler: (callback) => (event) => {
|
|
108
|
+
callback(event);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
// Default prop values
|
|
113
|
+
defaultProps: {
|
|
114
|
+
// Add default values here
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
// src/lib/src/tab_bar.tsx
|
|
119
|
+
var import_react_core_ui2 = require("@openwebf/react-core-ui");
|
|
120
|
+
var FlutterCupertinoTabBar = (0, import_react_core_ui2.createWebFComponent)({
|
|
58
121
|
tagName: "flutter-cupertino-tab-bar",
|
|
59
122
|
displayName: "FlutterCupertinoTabBar",
|
|
60
123
|
// Map props to attributes
|
|
@@ -92,8 +155,8 @@ var FlutterCupertinoTabBar = (0, import_react_core_ui.createWebFComponent)({
|
|
|
92
155
|
});
|
|
93
156
|
|
|
94
157
|
// src/lib/src/tab.tsx
|
|
95
|
-
var
|
|
96
|
-
var FlutterCupertinoTabBarItem = (0,
|
|
158
|
+
var import_react_core_ui3 = require("@openwebf/react-core-ui");
|
|
159
|
+
var FlutterCupertinoTabBarItem = (0, import_react_core_ui3.createWebFComponent)({
|
|
97
160
|
tagName: "flutter-cupertino-tab-bar-item",
|
|
98
161
|
displayName: "FlutterCupertinoTabBarItem",
|
|
99
162
|
// Map props to attributes
|
|
@@ -111,8 +174,8 @@ var FlutterCupertinoTabBarItem = (0, import_react_core_ui2.createWebFComponent)(
|
|
|
111
174
|
});
|
|
112
175
|
|
|
113
176
|
// src/lib/src/tab-view.tsx
|
|
114
|
-
var
|
|
115
|
-
var FlutterCupertinoTabView = (0,
|
|
177
|
+
var import_react_core_ui4 = require("@openwebf/react-core-ui");
|
|
178
|
+
var FlutterCupertinoTabView = (0, import_react_core_ui4.createWebFComponent)({
|
|
116
179
|
tagName: "flutter-cupertino-tab-view",
|
|
117
180
|
displayName: "FlutterCupertinoTabView",
|
|
118
181
|
// Map props to attributes
|
|
@@ -134,8 +197,8 @@ var FlutterCupertinoTabView = (0, import_react_core_ui3.createWebFComponent)({
|
|
|
134
197
|
});
|
|
135
198
|
|
|
136
199
|
// src/lib/src/tab-scaffold.tsx
|
|
137
|
-
var
|
|
138
|
-
var FlutterCupertinoTabScaffold = (0,
|
|
200
|
+
var import_react_core_ui5 = require("@openwebf/react-core-ui");
|
|
201
|
+
var FlutterCupertinoTabScaffold = (0, import_react_core_ui5.createWebFComponent)({
|
|
139
202
|
tagName: "flutter-cupertino-tab-scaffold",
|
|
140
203
|
displayName: "FlutterCupertinoTabScaffold",
|
|
141
204
|
// Map props to attributes
|
|
@@ -163,7 +226,7 @@ var FlutterCupertinoTabScaffold = (0, import_react_core_ui4.createWebFComponent)
|
|
|
163
226
|
// Add default values here
|
|
164
227
|
}
|
|
165
228
|
});
|
|
166
|
-
var FlutterCupertinoTabScaffoldTab = (0,
|
|
229
|
+
var FlutterCupertinoTabScaffoldTab = (0, import_react_core_ui5.createWebFComponent)({
|
|
167
230
|
tagName: "flutter-cupertino-tab-scaffold-tab",
|
|
168
231
|
displayName: "FlutterCupertinoTabScaffoldTab",
|
|
169
232
|
// Map props to attributes
|
|
@@ -181,8 +244,8 @@ var FlutterCupertinoTabScaffoldTab = (0, import_react_core_ui4.createWebFCompone
|
|
|
181
244
|
});
|
|
182
245
|
|
|
183
246
|
// src/lib/src/switch.tsx
|
|
184
|
-
var
|
|
185
|
-
var FlutterCupertinoSwitch = (0,
|
|
247
|
+
var import_react_core_ui6 = require("@openwebf/react-core-ui");
|
|
248
|
+
var FlutterCupertinoSwitch = (0, import_react_core_ui6.createWebFComponent)({
|
|
186
249
|
tagName: "flutter-cupertino-switch",
|
|
187
250
|
displayName: "FlutterCupertinoSwitch",
|
|
188
251
|
// Map props to attributes
|
|
@@ -214,8 +277,8 @@ var FlutterCupertinoSwitch = (0, import_react_core_ui5.createWebFComponent)({
|
|
|
214
277
|
});
|
|
215
278
|
|
|
216
279
|
// src/lib/src/sliding-segmented-control.tsx
|
|
217
|
-
var
|
|
218
|
-
var FlutterCupertinoSlidingSegmentedControl = (0,
|
|
280
|
+
var import_react_core_ui7 = require("@openwebf/react-core-ui");
|
|
281
|
+
var FlutterCupertinoSlidingSegmentedControl = (0, import_react_core_ui7.createWebFComponent)({
|
|
219
282
|
tagName: "flutter-cupertino-sliding-segmented-control",
|
|
220
283
|
displayName: "FlutterCupertinoSlidingSegmentedControl",
|
|
221
284
|
// Map props to attributes
|
|
@@ -245,7 +308,7 @@ var FlutterCupertinoSlidingSegmentedControl = (0, import_react_core_ui6.createWe
|
|
|
245
308
|
// Add default values here
|
|
246
309
|
}
|
|
247
310
|
});
|
|
248
|
-
var FlutterCupertinoSlidingSegmentedControlItem = (0,
|
|
311
|
+
var FlutterCupertinoSlidingSegmentedControlItem = (0, import_react_core_ui7.createWebFComponent)({
|
|
249
312
|
tagName: "flutter-cupertino-sliding-segmented-control-item",
|
|
250
313
|
displayName: "FlutterCupertinoSlidingSegmentedControlItem",
|
|
251
314
|
// Map props to attributes
|
|
@@ -263,8 +326,8 @@ var FlutterCupertinoSlidingSegmentedControlItem = (0, import_react_core_ui6.crea
|
|
|
263
326
|
});
|
|
264
327
|
|
|
265
328
|
// src/lib/src/slider.tsx
|
|
266
|
-
var
|
|
267
|
-
var FlutterCupertinoSlider = (0,
|
|
329
|
+
var import_react_core_ui8 = require("@openwebf/react-core-ui");
|
|
330
|
+
var FlutterCupertinoSlider = (0, import_react_core_ui8.createWebFComponent)({
|
|
268
331
|
tagName: "flutter-cupertino-slider",
|
|
269
332
|
displayName: "FlutterCupertinoSlider",
|
|
270
333
|
// Map props to attributes
|
|
@@ -308,8 +371,8 @@ var FlutterCupertinoSlider = (0, import_react_core_ui7.createWebFComponent)({
|
|
|
308
371
|
});
|
|
309
372
|
|
|
310
373
|
// src/lib/src/radio.tsx
|
|
311
|
-
var
|
|
312
|
-
var FlutterCupertinoRadio = (0,
|
|
374
|
+
var import_react_core_ui9 = require("@openwebf/react-core-ui");
|
|
375
|
+
var FlutterCupertinoRadio = (0, import_react_core_ui9.createWebFComponent)({
|
|
313
376
|
tagName: "flutter-cupertino-radio",
|
|
314
377
|
displayName: "FlutterCupertinoRadio",
|
|
315
378
|
// Map props to attributes
|
|
@@ -351,8 +414,8 @@ var FlutterCupertinoRadio = (0, import_react_core_ui8.createWebFComponent)({
|
|
|
351
414
|
});
|
|
352
415
|
|
|
353
416
|
// src/lib/src/modal-popup.tsx
|
|
354
|
-
var
|
|
355
|
-
var FlutterCupertinoModalPopup = (0,
|
|
417
|
+
var import_react_core_ui10 = require("@openwebf/react-core-ui");
|
|
418
|
+
var FlutterCupertinoModalPopup = (0, import_react_core_ui10.createWebFComponent)({
|
|
356
419
|
tagName: "flutter-cupertino-modal-popup",
|
|
357
420
|
displayName: "FlutterCupertinoModalPopup",
|
|
358
421
|
// Map props to attributes
|
|
@@ -386,8 +449,8 @@ var FlutterCupertinoModalPopup = (0, import_react_core_ui9.createWebFComponent)(
|
|
|
386
449
|
});
|
|
387
450
|
|
|
388
451
|
// src/lib/src/list_tile.tsx
|
|
389
|
-
var
|
|
390
|
-
var FlutterCupertinoListTile = (0,
|
|
452
|
+
var import_react_core_ui11 = require("@openwebf/react-core-ui");
|
|
453
|
+
var FlutterCupertinoListTile = (0, import_react_core_ui11.createWebFComponent)({
|
|
391
454
|
tagName: "flutter-cupertino-list-tile",
|
|
392
455
|
displayName: "FlutterCupertinoListTile",
|
|
393
456
|
// Map props to attributes
|
|
@@ -414,7 +477,7 @@ var FlutterCupertinoListTile = (0, import_react_core_ui10.createWebFComponent)({
|
|
|
414
477
|
// Add default values here
|
|
415
478
|
}
|
|
416
479
|
});
|
|
417
|
-
var FlutterCupertinoListTileLeading = (0,
|
|
480
|
+
var FlutterCupertinoListTileLeading = (0, import_react_core_ui11.createWebFComponent)({
|
|
418
481
|
tagName: "flutter-cupertino-list-tile-leading",
|
|
419
482
|
displayName: "FlutterCupertinoListTileLeading",
|
|
420
483
|
// Map props to attributes
|
|
@@ -428,7 +491,7 @@ var FlutterCupertinoListTileLeading = (0, import_react_core_ui10.createWebFCompo
|
|
|
428
491
|
// Add default values here
|
|
429
492
|
}
|
|
430
493
|
});
|
|
431
|
-
var FlutterCupertinoListTileSubtitle = (0,
|
|
494
|
+
var FlutterCupertinoListTileSubtitle = (0, import_react_core_ui11.createWebFComponent)({
|
|
432
495
|
tagName: "flutter-cupertino-list-tile-subtitle",
|
|
433
496
|
displayName: "FlutterCupertinoListTileSubtitle",
|
|
434
497
|
// Map props to attributes
|
|
@@ -442,7 +505,7 @@ var FlutterCupertinoListTileSubtitle = (0, import_react_core_ui10.createWebFComp
|
|
|
442
505
|
// Add default values here
|
|
443
506
|
}
|
|
444
507
|
});
|
|
445
|
-
var FlutterCupertinoListTileAdditionalInfo = (0,
|
|
508
|
+
var FlutterCupertinoListTileAdditionalInfo = (0, import_react_core_ui11.createWebFComponent)({
|
|
446
509
|
tagName: "flutter-cupertino-list-tile-additional-info",
|
|
447
510
|
displayName: "FlutterCupertinoListTileAdditionalInfo",
|
|
448
511
|
// Map props to attributes
|
|
@@ -456,7 +519,7 @@ var FlutterCupertinoListTileAdditionalInfo = (0, import_react_core_ui10.createWe
|
|
|
456
519
|
// Add default values here
|
|
457
520
|
}
|
|
458
521
|
});
|
|
459
|
-
var FlutterCupertinoListTileTrailing = (0,
|
|
522
|
+
var FlutterCupertinoListTileTrailing = (0, import_react_core_ui11.createWebFComponent)({
|
|
460
523
|
tagName: "flutter-cupertino-list-tile-trailing",
|
|
461
524
|
displayName: "FlutterCupertinoListTileTrailing",
|
|
462
525
|
// Map props to attributes
|
|
@@ -472,8 +535,8 @@ var FlutterCupertinoListTileTrailing = (0, import_react_core_ui10.createWebFComp
|
|
|
472
535
|
});
|
|
473
536
|
|
|
474
537
|
// src/lib/src/list_section.tsx
|
|
475
|
-
var
|
|
476
|
-
var FlutterCupertinoListSection = (0,
|
|
538
|
+
var import_react_core_ui12 = require("@openwebf/react-core-ui");
|
|
539
|
+
var FlutterCupertinoListSection = (0, import_react_core_ui12.createWebFComponent)({
|
|
477
540
|
tagName: "flutter-cupertino-list-section",
|
|
478
541
|
displayName: "FlutterCupertinoListSection",
|
|
479
542
|
// Map props to attributes
|
|
@@ -491,7 +554,7 @@ var FlutterCupertinoListSection = (0, import_react_core_ui11.createWebFComponent
|
|
|
491
554
|
// Add default values here
|
|
492
555
|
}
|
|
493
556
|
});
|
|
494
|
-
var FlutterCupertinoListSectionHeader = (0,
|
|
557
|
+
var FlutterCupertinoListSectionHeader = (0, import_react_core_ui12.createWebFComponent)({
|
|
495
558
|
tagName: "flutter-cupertino-list-section-header",
|
|
496
559
|
displayName: "FlutterCupertinoListSectionHeader",
|
|
497
560
|
// Map props to attributes
|
|
@@ -505,7 +568,7 @@ var FlutterCupertinoListSectionHeader = (0, import_react_core_ui11.createWebFCom
|
|
|
505
568
|
// Add default values here
|
|
506
569
|
}
|
|
507
570
|
});
|
|
508
|
-
var FlutterCupertinoListSectionFooter = (0,
|
|
571
|
+
var FlutterCupertinoListSectionFooter = (0, import_react_core_ui12.createWebFComponent)({
|
|
509
572
|
tagName: "flutter-cupertino-list-section-footer",
|
|
510
573
|
displayName: "FlutterCupertinoListSectionFooter",
|
|
511
574
|
// Map props to attributes
|
|
@@ -521,8 +584,8 @@ var FlutterCupertinoListSectionFooter = (0, import_react_core_ui11.createWebFCom
|
|
|
521
584
|
});
|
|
522
585
|
|
|
523
586
|
// src/lib/src/icon.tsx
|
|
524
|
-
var
|
|
525
|
-
var FlutterCupertinoIcon = (0,
|
|
587
|
+
var import_react_core_ui13 = require("@openwebf/react-core-ui");
|
|
588
|
+
var FlutterCupertinoIcon = (0, import_react_core_ui13.createWebFComponent)({
|
|
526
589
|
tagName: "flutter-cupertino-icon",
|
|
527
590
|
displayName: "FlutterCupertinoIcon",
|
|
528
591
|
// Map props to attributes
|
|
@@ -539,8 +602,8 @@ var FlutterCupertinoIcon = (0, import_react_core_ui12.createWebFComponent)({
|
|
|
539
602
|
});
|
|
540
603
|
|
|
541
604
|
// src/lib/src/form-section.tsx
|
|
542
|
-
var
|
|
543
|
-
var FlutterCupertinoFormSection = (0,
|
|
605
|
+
var import_react_core_ui14 = require("@openwebf/react-core-ui");
|
|
606
|
+
var FlutterCupertinoFormSection = (0, import_react_core_ui14.createWebFComponent)({
|
|
544
607
|
tagName: "flutter-cupertino-form-section",
|
|
545
608
|
displayName: "FlutterCupertinoFormSection",
|
|
546
609
|
// Map props to attributes
|
|
@@ -560,7 +623,7 @@ var FlutterCupertinoFormSection = (0, import_react_core_ui13.createWebFComponent
|
|
|
560
623
|
// Add default values here
|
|
561
624
|
}
|
|
562
625
|
});
|
|
563
|
-
var FlutterCupertinoFormRow = (0,
|
|
626
|
+
var FlutterCupertinoFormRow = (0, import_react_core_ui14.createWebFComponent)({
|
|
564
627
|
tagName: "flutter-cupertino-form-row",
|
|
565
628
|
displayName: "FlutterCupertinoFormRow",
|
|
566
629
|
// Map props to attributes
|
|
@@ -576,8 +639,8 @@ var FlutterCupertinoFormRow = (0, import_react_core_ui13.createWebFComponent)({
|
|
|
576
639
|
});
|
|
577
640
|
|
|
578
641
|
// src/lib/src/context-menu.tsx
|
|
579
|
-
var
|
|
580
|
-
var FlutterCupertinoContextMenu = (0,
|
|
642
|
+
var import_react_core_ui15 = require("@openwebf/react-core-ui");
|
|
643
|
+
var FlutterCupertinoContextMenu = (0, import_react_core_ui15.createWebFComponent)({
|
|
581
644
|
tagName: "flutter-cupertino-context-menu",
|
|
582
645
|
displayName: "FlutterCupertinoContextMenu",
|
|
583
646
|
// Map props to attributes
|
|
@@ -605,8 +668,8 @@ var FlutterCupertinoContextMenu = (0, import_react_core_ui14.createWebFComponent
|
|
|
605
668
|
});
|
|
606
669
|
|
|
607
670
|
// src/lib/src/checkbox.tsx
|
|
608
|
-
var
|
|
609
|
-
var FlutterCupertinoCheckbox = (0,
|
|
671
|
+
var import_react_core_ui16 = require("@openwebf/react-core-ui");
|
|
672
|
+
var FlutterCupertinoCheckbox = (0, import_react_core_ui16.createWebFComponent)({
|
|
610
673
|
tagName: "flutter-cupertino-checkbox",
|
|
611
674
|
displayName: "FlutterCupertinoCheckbox",
|
|
612
675
|
// Map props to attributes
|
|
@@ -655,8 +718,8 @@ var FlutterCupertinoCheckbox = (0, import_react_core_ui15.createWebFComponent)({
|
|
|
655
718
|
});
|
|
656
719
|
|
|
657
720
|
// src/lib/src/button.tsx
|
|
658
|
-
var
|
|
659
|
-
var FlutterCupertinoButton = (0,
|
|
721
|
+
var import_react_core_ui17 = require("@openwebf/react-core-ui");
|
|
722
|
+
var FlutterCupertinoButton = (0, import_react_core_ui17.createWebFComponent)({
|
|
660
723
|
tagName: "flutter-cupertino-button",
|
|
661
724
|
displayName: "FlutterCupertinoButton",
|
|
662
725
|
// Map props to attributes
|
|
@@ -689,8 +752,8 @@ var FlutterCupertinoButton = (0, import_react_core_ui16.createWebFComponent)({
|
|
|
689
752
|
});
|
|
690
753
|
|
|
691
754
|
// src/lib/src/alert.tsx
|
|
692
|
-
var
|
|
693
|
-
var FlutterCupertinoAlert = (0,
|
|
755
|
+
var import_react_core_ui18 = require("@openwebf/react-core-ui");
|
|
756
|
+
var FlutterCupertinoAlert = (0, import_react_core_ui18.createWebFComponent)({
|
|
694
757
|
tagName: "flutter-cupertino-alert",
|
|
695
758
|
displayName: "FlutterCupertinoAlert",
|
|
696
759
|
// Map props to attributes
|
|
@@ -741,8 +804,8 @@ var FlutterCupertinoAlert = (0, import_react_core_ui17.createWebFComponent)({
|
|
|
741
804
|
});
|
|
742
805
|
|
|
743
806
|
// src/lib/src/action-sheet.tsx
|
|
744
|
-
var
|
|
745
|
-
var FlutterCupertinoActionSheet = (0,
|
|
807
|
+
var import_react_core_ui19 = require("@openwebf/react-core-ui");
|
|
808
|
+
var FlutterCupertinoActionSheet = (0, import_react_core_ui19.createWebFComponent)({
|
|
746
809
|
tagName: "flutter-cupertino-action-sheet",
|
|
747
810
|
displayName: "FlutterCupertinoActionSheet",
|
|
748
811
|
// Map props to attributes
|
|
@@ -2153,6 +2216,7 @@ var CupertinoColors = /* @__PURE__ */ ((CupertinoColors2) => {
|
|
|
2153
2216
|
FlutterCupertinoFormRow,
|
|
2154
2217
|
FlutterCupertinoFormSection,
|
|
2155
2218
|
FlutterCupertinoIcon,
|
|
2219
|
+
FlutterCupertinoInput,
|
|
2156
2220
|
FlutterCupertinoListSection,
|
|
2157
2221
|
FlutterCupertinoListSectionFooter,
|
|
2158
2222
|
FlutterCupertinoListSectionHeader,
|