@tamagui/input 1.143.1 → 2.0.0-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/cjs/Input.cjs +57 -122
- package/dist/cjs/Input.js +46 -115
- package/dist/cjs/Input.js.map +1 -1
- package/dist/cjs/Input.native.js +133 -71
- package/dist/cjs/Input.native.js.map +1 -1
- package/dist/cjs/TextArea.cjs +1 -1
- package/dist/cjs/TextArea.js +1 -1
- package/dist/cjs/TextArea.js.map +1 -1
- package/dist/cjs/TextArea.native.js +1 -1
- package/dist/cjs/TextArea.native.js.map +1 -1
- package/dist/cjs/v1/Input.cjs +190 -0
- package/dist/cjs/v1/Input.js +171 -0
- package/dist/cjs/v1/Input.js.map +6 -0
- package/dist/cjs/v1/Input.native.js +138 -0
- package/dist/cjs/v1/Input.native.js.map +1 -0
- package/dist/cjs/v1/TextArea.cjs +50 -0
- package/dist/cjs/v1/TextArea.js +43 -0
- package/dist/cjs/v1/TextArea.js.map +6 -0
- package/dist/cjs/v1/TextArea.native.js +53 -0
- package/dist/cjs/v1/TextArea.native.js.map +1 -0
- package/dist/cjs/v1/index.cjs +19 -0
- package/dist/cjs/v1/index.js +16 -0
- package/dist/cjs/v1/index.js.map +6 -0
- package/dist/cjs/v1/index.native.js +22 -0
- package/dist/cjs/v1/index.native.js.map +1 -0
- package/dist/cjs/v1/types.cjs +16 -0
- package/dist/cjs/v1/types.js +14 -0
- package/dist/cjs/v1/types.js.map +6 -0
- package/dist/cjs/v1/types.native.js +19 -0
- package/dist/cjs/v1/types.native.js.map +1 -0
- package/dist/esm/Input.js +47 -116
- package/dist/esm/Input.js.map +1 -1
- package/dist/esm/Input.mjs +58 -123
- package/dist/esm/Input.mjs.map +1 -1
- package/dist/esm/Input.native.js +134 -72
- package/dist/esm/Input.native.js.map +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TextArea.js.map +1 -1
- package/dist/esm/TextArea.mjs +1 -1
- package/dist/esm/TextArea.mjs.map +1 -1
- package/dist/esm/TextArea.native.js +1 -1
- package/dist/esm/TextArea.native.js.map +1 -1
- package/dist/esm/v1/Input.js +151 -0
- package/dist/esm/v1/Input.js.map +6 -0
- package/dist/esm/v1/Input.mjs +156 -0
- package/dist/esm/v1/Input.mjs.map +1 -0
- package/dist/esm/v1/Input.native.js +101 -0
- package/dist/esm/v1/Input.native.js.map +1 -0
- package/dist/esm/v1/TextArea.js +29 -0
- package/dist/esm/v1/TextArea.js.map +6 -0
- package/dist/esm/v1/TextArea.mjs +27 -0
- package/dist/esm/v1/TextArea.mjs.map +1 -0
- package/dist/esm/v1/TextArea.native.js +27 -0
- package/dist/esm/v1/TextArea.native.js.map +1 -0
- package/dist/esm/v1/index.js +3 -0
- package/dist/esm/v1/index.js.map +6 -0
- package/dist/esm/v1/index.mjs +3 -0
- package/dist/esm/v1/index.mjs.map +1 -0
- package/dist/esm/v1/index.native.js +3 -0
- package/dist/esm/v1/index.native.js.map +1 -0
- package/dist/esm/v1/types.js +1 -0
- package/dist/esm/v1/types.js.map +6 -0
- package/dist/esm/v1/types.mjs +2 -0
- package/dist/esm/v1/types.mjs.map +1 -0
- package/dist/esm/v1/types.native.js +2 -0
- package/dist/esm/v1/types.native.js.map +1 -0
- package/dist/jsx/Input.js +47 -116
- package/dist/jsx/Input.js.map +1 -1
- package/dist/jsx/Input.mjs +58 -123
- package/dist/jsx/Input.mjs.map +1 -1
- package/dist/jsx/Input.native.js +133 -71
- package/dist/jsx/Input.native.js.map +1 -1
- package/dist/jsx/TextArea.js +1 -1
- package/dist/jsx/TextArea.js.map +1 -1
- package/dist/jsx/TextArea.mjs +1 -1
- package/dist/jsx/TextArea.mjs.map +1 -1
- package/dist/jsx/TextArea.native.js +1 -1
- package/dist/jsx/TextArea.native.js.map +1 -1
- package/dist/jsx/v1/Input.js +151 -0
- package/dist/jsx/v1/Input.js.map +6 -0
- package/dist/jsx/v1/Input.mjs +156 -0
- package/dist/jsx/v1/Input.mjs.map +1 -0
- package/dist/jsx/v1/Input.native.js +138 -0
- package/dist/jsx/v1/Input.native.js.map +1 -0
- package/dist/jsx/v1/TextArea.js +29 -0
- package/dist/jsx/v1/TextArea.js.map +6 -0
- package/dist/jsx/v1/TextArea.mjs +27 -0
- package/dist/jsx/v1/TextArea.mjs.map +1 -0
- package/dist/jsx/v1/TextArea.native.js +53 -0
- package/dist/jsx/v1/TextArea.native.js.map +1 -0
- package/dist/jsx/v1/index.js +3 -0
- package/dist/jsx/v1/index.js.map +6 -0
- package/dist/jsx/v1/index.mjs +3 -0
- package/dist/jsx/v1/index.mjs.map +1 -0
- package/dist/jsx/v1/index.native.js +22 -0
- package/dist/jsx/v1/index.native.js.map +1 -0
- package/dist/jsx/v1/types.js +1 -0
- package/dist/jsx/v1/types.js.map +6 -0
- package/dist/jsx/v1/types.mjs +2 -0
- package/dist/jsx/v1/types.mjs.map +1 -0
- package/dist/jsx/v1/types.native.js +19 -0
- package/dist/jsx/v1/types.native.js.map +1 -0
- package/package.json +13 -13
- package/src/Input.native.tsx +145 -110
- package/src/Input.tsx +67 -137
- package/src/TextArea.tsx +4 -2
- package/src/index.ts +0 -1
- package/src/types.ts +52 -41
- package/src/v1/Input.native.tsx +154 -0
- package/src/v1/Input.tsx +191 -0
- package/src/v1/TextArea.tsx +35 -0
- package/src/v1/index.ts +3 -0
- package/src/v1/types.ts +65 -0
- package/types/Input.d.ts +47 -21
- package/types/Input.d.ts.map +1 -1
- package/types/Input.native.d.ts +52 -22
- package/types/Input.native.d.ts.map +1 -1
- package/types/TextArea.d.ts +25 -11
- package/types/TextArea.d.ts.map +1 -1
- package/types/index.d.ts +0 -1
- package/types/index.d.ts.map +1 -1
- package/types/types.d.ts +47 -21
- package/types/types.d.ts.map +1 -1
- package/types/v1/Input.d.ts +115 -0
- package/types/v1/Input.d.ts.map +1 -0
- package/types/v1/Input.native.d.ts +114 -0
- package/types/v1/Input.native.d.ts.map +1 -0
- package/types/v1/TextArea.d.ts +98 -0
- package/types/v1/TextArea.d.ts.map +1 -0
- package/types/v1/index.d.ts +4 -0
- package/types/v1/index.d.ts.map +1 -0
- package/types/v1/types.d.ts +39 -0
- package/types/v1/types.d.ts.map +1 -0
package/types/Input.d.ts
CHANGED
|
@@ -1,36 +1,62 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* A web-aligned input component.
|
|
4
4
|
* @see — Docs https://tamagui.dev/ui/inputs#input
|
|
5
5
|
*/
|
|
6
6
|
export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
7
7
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
unstyled?: boolean | undefined;
|
|
10
|
-
}>, "
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
enterKeyHint?: "done" | "go" | "next" | "search" | "send" | "enter" | "previous";
|
|
15
|
-
keyboardType?: import("react-native").TextInputProps["keyboardType"];
|
|
16
|
-
inputMode?: import("react-native").InputModeOptions;
|
|
10
|
+
}>, "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "rel" | "dir" | "selectionColor" | "fontFamily" | "fontSize" | "list" | "max" | "min" | "form" | "slot" | "title" | "hidden" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "placeholderTextColor" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "keyboardAppearance" | keyof import("@tamagui/core").StackNonStyleProps | "rows"> & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "className"> & Pick<import("@tamagui/core").TextProps, "color"> & {
|
|
11
|
+
fontSize?: import("@tamagui/core").FontSizeTokens | number;
|
|
12
|
+
fontFamily?: import("@tamagui/core").FontTokens;
|
|
13
|
+
rows?: number;
|
|
17
14
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
18
15
|
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
onChangeText?: (text: string) => void;
|
|
17
|
+
onSubmitEditing?: (e: {
|
|
18
|
+
nativeEvent: {
|
|
19
|
+
text: string;
|
|
20
|
+
};
|
|
21
|
+
}) => void;
|
|
22
|
+
selection?: {
|
|
23
|
+
start: number;
|
|
24
|
+
end?: number;
|
|
25
|
+
};
|
|
26
|
+
onSelectionChange?: (e: {
|
|
27
|
+
nativeEvent: {
|
|
28
|
+
selection: {
|
|
29
|
+
start: number;
|
|
30
|
+
end: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}) => void;
|
|
34
|
+
keyboardAppearance?: "default" | "light" | "dark";
|
|
35
|
+
}, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "className"> & Pick<import("@tamagui/core").TextProps, "color"> & {
|
|
36
|
+
fontSize?: import("@tamagui/core").FontSizeTokens | number;
|
|
37
|
+
fontFamily?: import("@tamagui/core").FontTokens;
|
|
38
|
+
rows?: number;
|
|
29
39
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
30
40
|
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
41
|
+
onChangeText?: (text: string) => void;
|
|
42
|
+
onSubmitEditing?: (e: {
|
|
43
|
+
nativeEvent: {
|
|
44
|
+
text: string;
|
|
45
|
+
};
|
|
46
|
+
}) => void;
|
|
47
|
+
selection?: {
|
|
48
|
+
start: number;
|
|
49
|
+
end?: number;
|
|
50
|
+
};
|
|
51
|
+
onSelectionChange?: (e: {
|
|
52
|
+
nativeEvent: {
|
|
53
|
+
selection: {
|
|
54
|
+
start: number;
|
|
55
|
+
end: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}) => void;
|
|
59
|
+
keyboardAppearance?: "default" | "light" | "dark";
|
|
34
60
|
}, import("@tamagui/core").StackStyleBase, {
|
|
35
61
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
36
62
|
disabled?: boolean | undefined;
|
package/types/Input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;WAgDD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;WAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DhB,CAAA"}
|
package/types/Input.native.d.ts
CHANGED
|
@@ -1,33 +1,63 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TextInput } from 'react-native';
|
|
3
|
-
|
|
2
|
+
import { TextInput, type TextInputProps as RNTextInputProps } from 'react-native';
|
|
3
|
+
/**
|
|
4
|
+
* A web-aligned input component for React Native.
|
|
5
|
+
* @see — Docs https://tamagui.dev/ui/inputs#input
|
|
6
|
+
*/
|
|
7
|
+
export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").TamaguiComponentPropsBaseBase & RNTextInputProps, import("@tamagui/core").StackStyleBase, {
|
|
4
8
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
5
9
|
disabled?: boolean | undefined;
|
|
6
10
|
unstyled?: boolean | undefined;
|
|
7
|
-
}>, "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
enterKeyHint?: "done" | "go" | "next" | "search" | "send" | "enter" | "previous";
|
|
12
|
-
keyboardType?: import("react-native").TextInputProps["keyboardType"];
|
|
13
|
-
inputMode?: import("react-native").InputModeOptions;
|
|
11
|
+
}>, "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "rel" | "dir" | "selectionColor" | "fontFamily" | "fontSize" | "list" | "max" | "min" | "form" | "slot" | "title" | "hidden" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "placeholderTextColor" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "keyboardAppearance" | keyof import("@tamagui/core").StackNonStyleProps | "rows"> & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "className"> & Pick<import("@tamagui/core").TextProps, "color"> & {
|
|
12
|
+
fontSize?: import("@tamagui/core").FontSizeTokens | number;
|
|
13
|
+
fontFamily?: import("@tamagui/core").FontTokens;
|
|
14
|
+
rows?: number;
|
|
14
15
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
15
16
|
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
onChangeText?: (text: string) => void;
|
|
18
|
+
onSubmitEditing?: (e: {
|
|
19
|
+
nativeEvent: {
|
|
20
|
+
text: string;
|
|
21
|
+
};
|
|
22
|
+
}) => void;
|
|
23
|
+
selection?: {
|
|
24
|
+
start: number;
|
|
25
|
+
end?: number;
|
|
26
|
+
};
|
|
27
|
+
onSelectionChange?: (e: {
|
|
28
|
+
nativeEvent: {
|
|
29
|
+
selection: {
|
|
30
|
+
start: number;
|
|
31
|
+
end: number;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}) => void;
|
|
35
|
+
keyboardAppearance?: "default" | "light" | "dark";
|
|
36
|
+
}, TextInput, import("@tamagui/core").TamaguiComponentPropsBaseBase & RNTextInputProps & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "className"> & Pick<import("@tamagui/core").TextProps, "color"> & {
|
|
37
|
+
fontSize?: import("@tamagui/core").FontSizeTokens | number;
|
|
38
|
+
fontFamily?: import("@tamagui/core").FontTokens;
|
|
39
|
+
rows?: number;
|
|
26
40
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
27
41
|
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
42
|
+
onChangeText?: (text: string) => void;
|
|
43
|
+
onSubmitEditing?: (e: {
|
|
44
|
+
nativeEvent: {
|
|
45
|
+
text: string;
|
|
46
|
+
};
|
|
47
|
+
}) => void;
|
|
48
|
+
selection?: {
|
|
49
|
+
start: number;
|
|
50
|
+
end?: number;
|
|
51
|
+
};
|
|
52
|
+
onSelectionChange?: (e: {
|
|
53
|
+
nativeEvent: {
|
|
54
|
+
selection: {
|
|
55
|
+
start: number;
|
|
56
|
+
end: number;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}) => void;
|
|
60
|
+
keyboardAppearance?: "default" | "light" | "dark";
|
|
31
61
|
}, import("@tamagui/core").StackStyleBase, {
|
|
32
62
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
33
63
|
disabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../src/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../src/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAQjF;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;WAuDC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;WAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmHlB,CAAA"}
|
package/types/TextArea.d.ts
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
|
+
export type { InputProps as TextAreaProps } from './types';
|
|
1
2
|
/**
|
|
2
|
-
*
|
|
3
|
+
* A web-aligned textarea component (multi-line input).
|
|
3
4
|
* @see — Docs https://tamagui.dev/ui/inputs#textarea
|
|
4
5
|
*/
|
|
5
|
-
export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/web").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & Omit<import("react").
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
enterKeyHint?: "done" | "go" | "next" | "search" | "send" | "enter" | "previous";
|
|
10
|
-
keyboardType?: import("react-native").TextInputProps["keyboardType"];
|
|
11
|
-
inputMode?: import("react-native").InputModeOptions;
|
|
6
|
+
export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/web").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "className"> & Pick<import("@tamagui/web").TextProps, "color"> & {
|
|
7
|
+
fontSize?: import("@tamagui/web").FontSizeTokens | number;
|
|
8
|
+
fontFamily?: import("@tamagui/web").FontTokens;
|
|
9
|
+
rows?: number;
|
|
12
10
|
placeholderTextColor?: import("@tamagui/web").ColorTokens;
|
|
13
11
|
selectionColor?: import("@tamagui/web").ColorTokens;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
onChangeText?: (text: string) => void;
|
|
13
|
+
onSubmitEditing?: (e: {
|
|
14
|
+
nativeEvent: {
|
|
15
|
+
text: string;
|
|
16
|
+
};
|
|
17
|
+
}) => void;
|
|
18
|
+
selection?: {
|
|
19
|
+
start: number;
|
|
20
|
+
end?: number;
|
|
21
|
+
};
|
|
22
|
+
onSelectionChange?: (e: {
|
|
23
|
+
nativeEvent: {
|
|
24
|
+
selection: {
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}) => void;
|
|
30
|
+
keyboardAppearance?: "default" | "light" | "dark";
|
|
17
31
|
}, import("@tamagui/web").StackStyleBase, {
|
|
18
32
|
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
19
33
|
disabled?: boolean | undefined;
|
package/types/TextArea.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAIA,YAAY,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAE1D;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;WA0BuzB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CAD30B,CAAA"}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,39 +1,65 @@
|
|
|
1
|
-
import type { ColorTokens,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ColorTokens, FontTokens, FontSizeTokens, StackProps, TextProps } from '@tamagui/web';
|
|
2
|
+
/**
|
|
3
|
+
* Web-aligned Input props
|
|
4
|
+
* Follows standard HTML input API as primary, with minimal RN compatibility
|
|
5
|
+
*/
|
|
6
|
+
type HTMLInputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
7
|
+
export type InputProps = StackProps & Omit<HTMLInputProps, 'size' | 'color' | 'style' | 'children' | 'className'> & Pick<TextProps, 'color'> & {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Font size - accepts Tamagui size tokens or number
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
fontSize?: FontSizeTokens | number;
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
13
|
+
* Font family - accepts Tamagui font tokens
|
|
11
14
|
*/
|
|
12
|
-
|
|
15
|
+
fontFamily?: FontTokens;
|
|
13
16
|
/**
|
|
14
|
-
*
|
|
17
|
+
* Rows for textarea (when tag="textarea")
|
|
15
18
|
*/
|
|
16
|
-
|
|
17
|
-
enterKeyHint?: 'done' | 'go' | 'next' | 'search' | 'send' | 'enter' | 'previous';
|
|
19
|
+
rows?: number;
|
|
18
20
|
/**
|
|
19
|
-
*
|
|
21
|
+
* Placeholder text color - accepts Tamagui color tokens
|
|
20
22
|
*/
|
|
21
|
-
|
|
23
|
+
placeholderTextColor?: ColorTokens;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Text selection color - accepts Tamagui color tokens
|
|
24
26
|
*/
|
|
25
|
-
inputMode?: InputModeOptions;
|
|
26
|
-
placeholderTextColor?: ColorTokens;
|
|
27
27
|
selectionColor?: ColorTokens;
|
|
28
|
-
tag?: TamaguiComponentPropsBase['tag'];
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* Callback when text changes - provides just the string value
|
|
30
|
+
* @deprecated Use onChange instead for web alignment
|
|
31
|
+
*/
|
|
32
|
+
onChangeText?: (text: string) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Callback when Enter/Return is pressed
|
|
35
|
+
*/
|
|
36
|
+
onSubmitEditing?: (e: {
|
|
37
|
+
nativeEvent: {
|
|
38
|
+
text: string;
|
|
39
|
+
};
|
|
40
|
+
}) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Selection range
|
|
43
|
+
*/
|
|
44
|
+
selection?: {
|
|
45
|
+
start: number;
|
|
46
|
+
end?: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Callback when selection changes
|
|
31
50
|
*/
|
|
32
|
-
|
|
51
|
+
onSelectionChange?: (e: {
|
|
52
|
+
nativeEvent: {
|
|
53
|
+
selection: {
|
|
54
|
+
start: number;
|
|
55
|
+
end: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}) => void;
|
|
33
59
|
/**
|
|
34
|
-
*
|
|
60
|
+
* Keyboard appearance (native only, ignored on web)
|
|
35
61
|
*/
|
|
36
|
-
|
|
62
|
+
keyboardAppearance?: 'default' | 'light' | 'dark';
|
|
37
63
|
};
|
|
38
64
|
export {};
|
|
39
65
|
//# sourceMappingURL=types.d.ts.map
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,SAAS,EACV,MAAM,cAAc,CAAA;AAErB;;;GAGG;AAEH,KAAK,cAAc,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEjE,MAAM,MAAM,UAAU,GAAG,UAAU,GACjC,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,CAAC,GAC3E,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,GAAG,MAAM,CAAA;IAElC;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAA;IAOvB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAA;IAElC;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAA;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAErC;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE;QAAE,WAAW,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAA;IAEhE;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAE3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE;QACtB,WAAW,EAAE;YAAE,SAAS,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,GAAG,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAA;KAC3D,KAAK,IAAI,CAAA;IAEV;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;CAClD,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Use the new Input from '@tamagui/input' instead
|
|
4
|
+
* @summary An input is a text field that allows users to enter text.
|
|
5
|
+
* @see — Docs https://tamagui.dev/ui/inputs#input
|
|
6
|
+
*/
|
|
7
|
+
export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
|
|
8
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
unstyled?: boolean | undefined;
|
|
11
|
+
}>, "media" | "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "onStartShouldSetResponder" | "onLayout" | "href" | "rel" | "download" | "dir" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "allowFontScaling" | "numberOfLines" | "maxFontSizeMultiplier" | "lineBreakStrategyIOS" | "selectionColor" | "textBreakStrategy" | "textAlign" | "textAlignVertical" | "summary" | "list" | "max" | "min" | "form" | "cite" | "data" | "label" | "slot" | "span" | "title" | "wrap" | "hidden" | "default" | "open" | "name" | "key" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "placeholderTextColor" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | "blurOnSubmit" | "submitBehavior" | "caretHidden" | "contextMenuHidden" | "editable" | "keyboardType" | "multiline" | "onChangeText" | "onContentSizeChange" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "disableKeyboardShortcuts" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "textContentType" | "scrollEnabled" | "lineBreakModeIOS" | "smartInsertDelete" | "cursorColor" | "selectionHandleColor" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "showSoftInputOnFocus" | keyof import("@tamagui/core").StackNonStyleProps | "rows" | "ref" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "encType" | "frameBorder" | "headers" | "high" | "hrefLang" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "mediaGroup" | "method" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "reversed" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode"> & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.ClassAttributes<HTMLInputElement> & React.HTMLProps<HTMLInputElement>, "size" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "value" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | keyof import("@tamagui/core").StackNonStyleProps> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "keyboardType" | "onChangeText" | "secureTextEntry"> & {
|
|
12
|
+
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
13
|
+
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
14
|
+
editable?: import("react-native").TextInputProps["editable"];
|
|
15
|
+
enterKeyHint?: "done" | "go" | "next" | "search" | "send" | "enter" | "previous";
|
|
16
|
+
keyboardType?: import("react-native").TextInputProps["keyboardType"];
|
|
17
|
+
inputMode?: import("react-native").InputModeOptions;
|
|
18
|
+
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
19
|
+
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
20
|
+
tag?: import("@tamagui/core").TamaguiComponentPropsBase["tag"];
|
|
21
|
+
multiline?: boolean;
|
|
22
|
+
numberOfLines?: number;
|
|
23
|
+
}, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.ClassAttributes<HTMLInputElement> & React.HTMLProps<HTMLInputElement>, "size" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "value" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | keyof import("@tamagui/core").StackNonStyleProps> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "keyboardType" | "onChangeText" | "secureTextEntry"> & {
|
|
24
|
+
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
25
|
+
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
26
|
+
editable?: import("react-native").TextInputProps["editable"];
|
|
27
|
+
enterKeyHint?: "done" | "go" | "next" | "search" | "send" | "enter" | "previous";
|
|
28
|
+
keyboardType?: import("react-native").TextInputProps["keyboardType"];
|
|
29
|
+
inputMode?: import("react-native").InputModeOptions;
|
|
30
|
+
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
31
|
+
selectionColor?: import("@tamagui/core").ColorTokens;
|
|
32
|
+
tag?: import("@tamagui/core").TamaguiComponentPropsBase["tag"];
|
|
33
|
+
multiline?: boolean;
|
|
34
|
+
numberOfLines?: number;
|
|
35
|
+
}, import("@tamagui/core").StackStyleBase, {
|
|
36
|
+
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
37
|
+
disabled?: boolean | undefined;
|
|
38
|
+
unstyled?: boolean | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
tag: string;
|
|
42
|
+
variants: {
|
|
43
|
+
readonly unstyled: {
|
|
44
|
+
readonly false: {
|
|
45
|
+
readonly borderColor: "$borderColor";
|
|
46
|
+
readonly backgroundColor: "$background";
|
|
47
|
+
readonly minWidth: 0;
|
|
48
|
+
readonly hoverStyle: {
|
|
49
|
+
readonly borderColor: "$borderColorHover";
|
|
50
|
+
};
|
|
51
|
+
readonly focusStyle: {
|
|
52
|
+
readonly borderColor: "$borderColorFocus";
|
|
53
|
+
};
|
|
54
|
+
readonly focusVisibleStyle: {
|
|
55
|
+
readonly outlineColor: "$outlineColor";
|
|
56
|
+
readonly outlineWidth: 2;
|
|
57
|
+
readonly outlineStyle: "solid";
|
|
58
|
+
};
|
|
59
|
+
readonly tabIndex: 0;
|
|
60
|
+
readonly size: "$true";
|
|
61
|
+
readonly fontFamily: "$body";
|
|
62
|
+
readonly borderWidth: 1;
|
|
63
|
+
readonly outlineWidth: 0;
|
|
64
|
+
readonly color: "$color";
|
|
65
|
+
} | {
|
|
66
|
+
readonly borderColor: "$borderColor";
|
|
67
|
+
readonly backgroundColor: "$background";
|
|
68
|
+
readonly minWidth: 0;
|
|
69
|
+
readonly hoverStyle: {
|
|
70
|
+
readonly borderColor: "$borderColorHover";
|
|
71
|
+
};
|
|
72
|
+
readonly focusStyle: {
|
|
73
|
+
readonly borderColor: "$borderColorFocus";
|
|
74
|
+
};
|
|
75
|
+
readonly focusVisibleStyle: {
|
|
76
|
+
readonly outlineColor: "$outlineColor";
|
|
77
|
+
readonly outlineWidth: 2;
|
|
78
|
+
readonly outlineStyle: "solid";
|
|
79
|
+
};
|
|
80
|
+
readonly focusable: boolean;
|
|
81
|
+
readonly size: "$true";
|
|
82
|
+
readonly fontFamily: "$body";
|
|
83
|
+
readonly borderWidth: 1;
|
|
84
|
+
readonly outlineWidth: 0;
|
|
85
|
+
readonly color: "$color";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly size: {
|
|
89
|
+
readonly '...size': import("@tamagui/core").SizeVariantSpreadFunction<any>;
|
|
90
|
+
};
|
|
91
|
+
readonly disabled: {
|
|
92
|
+
readonly true: {};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
defaultVariants: {
|
|
96
|
+
unstyled: boolean;
|
|
97
|
+
};
|
|
98
|
+
isInput?: undefined;
|
|
99
|
+
accept?: undefined;
|
|
100
|
+
validStyles?: undefined;
|
|
101
|
+
} | {
|
|
102
|
+
isInput: boolean;
|
|
103
|
+
accept: {
|
|
104
|
+
readonly placeholderTextColor: "color";
|
|
105
|
+
readonly selectionColor: "color";
|
|
106
|
+
};
|
|
107
|
+
validStyles: {
|
|
108
|
+
[key: string]: boolean;
|
|
109
|
+
} | undefined;
|
|
110
|
+
name?: undefined;
|
|
111
|
+
tag?: undefined;
|
|
112
|
+
variants?: undefined;
|
|
113
|
+
defaultVariants?: undefined;
|
|
114
|
+
}>;
|
|
115
|
+
//# sourceMappingURL=Input.d.ts.map
|