@tamagui/input 2.0.0-rc.9 → 2.0.0
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 +165 -153
- package/dist/cjs/Input.native.js +256 -233
- package/dist/cjs/Input.native.js.map +1 -1
- package/dist/cjs/InputNativeProps.cjs +7 -5
- package/dist/cjs/InputNativeProps.native.js +7 -5
- package/dist/cjs/InputNativeProps.native.js.map +1 -1
- package/dist/cjs/TextArea.cjs +15 -13
- package/dist/cjs/TextArea.native.js +34 -32
- package/dist/cjs/TextArea.native.js.map +1 -1
- package/dist/cjs/index.cjs +13 -11
- package/dist/cjs/index.native.js +13 -11
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/inputTypes.test-d.cjs +125 -0
- package/dist/cjs/inputTypes.test-d.native.js +128 -0
- package/dist/cjs/inputTypes.test-d.native.js.map +1 -0
- package/dist/cjs/shared.cjs +119 -104
- package/dist/cjs/shared.native.js +125 -110
- package/dist/cjs/shared.native.js.map +1 -1
- package/dist/cjs/types.cjs +7 -5
- package/dist/cjs/types.native.js +7 -5
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/v1/Input.cjs +177 -170
- package/dist/cjs/v1/Input.native.js +154 -112
- package/dist/cjs/v1/Input.native.js.map +1 -1
- package/dist/cjs/v1/TextArea.cjs +15 -13
- package/dist/cjs/v1/TextArea.native.js +34 -32
- package/dist/cjs/v1/TextArea.native.js.map +1 -1
- package/dist/cjs/v1/index.cjs +7 -5
- package/dist/cjs/v1/index.native.js +7 -5
- package/dist/cjs/v1/index.native.js.map +1 -1
- package/dist/cjs/v1/types.cjs +7 -5
- package/dist/cjs/v1/types.native.js +7 -5
- package/dist/cjs/v1/types.native.js.map +1 -1
- package/dist/esm/Input.mjs +134 -124
- package/dist/esm/Input.mjs.map +1 -1
- package/dist/esm/Input.native.js +225 -204
- package/dist/esm/Input.native.js.map +1 -1
- package/dist/esm/TextArea.mjs.map +1 -1
- package/dist/esm/TextArea.native.js.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -6
- package/dist/esm/inputTypes.test-d.mjs +126 -0
- package/dist/esm/inputTypes.test-d.mjs.map +1 -0
- package/dist/esm/inputTypes.test-d.native.js +126 -0
- package/dist/esm/inputTypes.test-d.native.js.map +1 -0
- package/dist/esm/shared.mjs +102 -89
- package/dist/esm/shared.mjs.map +1 -1
- package/dist/esm/shared.native.js +107 -94
- package/dist/esm/shared.native.js.map +1 -1
- package/dist/esm/v1/Input.mjs +146 -141
- package/dist/esm/v1/Input.mjs.map +1 -1
- package/dist/esm/v1/Input.native.js +123 -83
- package/dist/esm/v1/Input.native.js.map +1 -1
- package/dist/jsx/Input.mjs +134 -124
- package/dist/jsx/Input.mjs.map +1 -1
- package/dist/jsx/Input.native.js +256 -233
- package/dist/jsx/Input.native.js.map +1 -1
- package/dist/jsx/InputNativeProps.native.js +7 -5
- package/dist/jsx/TextArea.mjs.map +1 -1
- package/dist/jsx/TextArea.native.js +34 -32
- package/dist/jsx/TextArea.native.js.map +1 -1
- package/dist/jsx/index.js +4 -7
- package/dist/jsx/index.js.map +1 -6
- package/dist/jsx/index.native.js +13 -11
- package/dist/jsx/inputTypes.test-d.mjs +126 -0
- package/dist/jsx/inputTypes.test-d.mjs.map +1 -0
- package/dist/jsx/inputTypes.test-d.native.js +128 -0
- package/dist/jsx/inputTypes.test-d.native.js.map +1 -0
- package/dist/jsx/shared.mjs +102 -89
- package/dist/jsx/shared.mjs.map +1 -1
- package/dist/jsx/shared.native.js +125 -110
- package/dist/jsx/shared.native.js.map +1 -1
- package/dist/jsx/types.native.js +7 -5
- package/dist/jsx/v1/Input.mjs +146 -141
- package/dist/jsx/v1/Input.mjs.map +1 -1
- package/dist/jsx/v1/Input.native.js +154 -112
- package/dist/jsx/v1/Input.native.js.map +1 -1
- package/dist/jsx/v1/TextArea.native.js +34 -32
- package/dist/jsx/v1/TextArea.native.js.map +1 -1
- package/dist/jsx/v1/index.native.js +7 -5
- package/dist/jsx/v1/types.native.js +7 -5
- package/package.json +20 -19
- package/src/Input.native.tsx +2 -2
- package/src/Input.tsx +7 -5
- package/src/TextArea.tsx +3 -3
- package/src/index.ts +1 -1
- package/src/inputTypes.test-d.ts +237 -0
- package/src/shared.tsx +6 -0
- package/src/types.ts +24 -14
- package/src/v1/Input.tsx +4 -4
- package/types/Input.d.ts +14 -12
- package/types/Input.d.ts.map +1 -1
- package/types/Input.native.d.ts +12 -12
- package/types/Input.native.d.ts.map +1 -1
- package/types/TextArea.d.ts +8 -7
- package/types/TextArea.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/shared.d.ts +5 -0
- package/types/shared.d.ts.map +1 -1
- package/types/types.d.ts +14 -4
- package/types/types.d.ts.map +1 -1
- package/types/v1/Input.d.ts +12 -12
- package/types/v1/Input.native.d.ts +12 -12
- package/types/v1/TextArea.d.ts +6 -6
- package/dist/cjs/Input.js +0 -143
- package/dist/cjs/Input.js.map +0 -6
- package/dist/cjs/InputNativeProps.js +0 -14
- package/dist/cjs/InputNativeProps.js.map +0 -6
- package/dist/cjs/TextArea.js +0 -43
- package/dist/cjs/TextArea.js.map +0 -6
- package/dist/cjs/index.js +0 -24
- package/dist/cjs/index.js.map +0 -6
- package/dist/cjs/shared.js +0 -111
- package/dist/cjs/shared.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/v1/Input.js +0 -171
- package/dist/cjs/v1/Input.js.map +0 -6
- package/dist/cjs/v1/TextArea.js +0 -43
- package/dist/cjs/v1/TextArea.js.map +0 -6
- package/dist/cjs/v1/index.js +0 -16
- package/dist/cjs/v1/index.js.map +0 -6
- package/dist/cjs/v1/types.js +0 -14
- package/dist/cjs/v1/types.js.map +0 -6
- package/dist/esm/Input.js +0 -124
- package/dist/esm/Input.js.map +0 -6
- package/dist/esm/InputNativeProps.js +0 -1
- package/dist/esm/InputNativeProps.js.map +0 -6
- package/dist/esm/TextArea.js +0 -29
- package/dist/esm/TextArea.js.map +0 -6
- package/dist/esm/shared.js +0 -99
- package/dist/esm/shared.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/v1/Input.js +0 -152
- package/dist/esm/v1/Input.js.map +0 -6
- package/dist/esm/v1/TextArea.js +0 -29
- package/dist/esm/v1/TextArea.js.map +0 -6
- package/dist/esm/v1/index.js +0 -3
- package/dist/esm/v1/index.js.map +0 -6
- package/dist/esm/v1/types.js +0 -1
- package/dist/esm/v1/types.js.map +0 -6
- package/dist/jsx/Input.js +0 -124
- package/dist/jsx/Input.js.map +0 -6
- package/dist/jsx/InputNativeProps.js +0 -1
- package/dist/jsx/InputNativeProps.js.map +0 -6
- package/dist/jsx/TextArea.js +0 -29
- package/dist/jsx/TextArea.js.map +0 -6
- package/dist/jsx/shared.js +0 -99
- package/dist/jsx/shared.js.map +0 -6
- package/dist/jsx/types.js +0 -1
- package/dist/jsx/types.js.map +0 -6
- package/dist/jsx/v1/Input.js +0 -152
- package/dist/jsx/v1/Input.js.map +0 -6
- package/dist/jsx/v1/TextArea.js +0 -29
- package/dist/jsx/v1/TextArea.js.map +0 -6
- package/dist/jsx/v1/index.js +0 -3
- package/dist/jsx/v1/index.js.map +0 -6
- package/dist/jsx/v1/types.js +0 -1
- package/dist/jsx/v1/types.js.map +0 -6
package/types/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAO9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChB,CAAA;AAEV,eAAO,MAAM,gBAAgB,EAAE,yBAAyB,CAAC,GAAG,CA4B3D,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,CA6B9D,CAAA;AACD,eAAO,MAAM,UAAU,UAAU,CAAA;AAEjC,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAA;AAO9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkChB,CAAA;AAEV,eAAO,MAAM,gBAAgB,EAAE,yBAAyB,CAAC,GAAG,CA4B3D,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,CA6B9D,CAAA;AACD,eAAO,MAAM,UAAU,UAAU,CAAA;AAEjC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCb,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import type { ColorTokens,
|
|
1
|
+
import type { ColorTokens, TextStyle, TamaguiElementMethods } from '@tamagui/web';
|
|
2
|
+
import type { TextInput } from 'react-native';
|
|
2
3
|
import type { InputNativeProps } from './InputNativeProps';
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
5
|
+
* Extra props that Input adds on top of the base styled component.
|
|
6
|
+
* Used with .styleable<InputExtraProps>() - the Styleable merge
|
|
7
|
+
* (`Omit<BaseProps, keyof CustomProps> & CustomProps`) automatically overrides
|
|
8
|
+
* base event handlers (HTMLDivElement) with these (HTMLInputElement).
|
|
9
|
+
* Consumer-facing InputProps is derived via GetProps<typeof Input>.
|
|
6
10
|
*/
|
|
7
11
|
type HTMLInputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
8
12
|
type InputTextStyleProps = Pick<TextStyle, 'color' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'textAlign' | 'textTransform'>;
|
|
9
13
|
type OverlappingNativeProps = 'autoCorrect' | 'autoCapitalize' | 'spellCheck';
|
|
10
|
-
export type
|
|
14
|
+
export type InputExtraProps = Omit<HTMLInputProps, 'size' | 'color' | 'style' | 'children' | 'className' | keyof InputTextStyleProps | OverlappingNativeProps> & InputTextStyleProps & Omit<InputNativeProps, OverlappingNativeProps> & {
|
|
11
15
|
/**
|
|
12
16
|
* Controls automatic spelling correction.
|
|
13
17
|
*
|
|
@@ -96,6 +100,12 @@ export type InputProps = ViewProps & Omit<HTMLInputProps, 'size' | 'color' | 'st
|
|
|
96
100
|
*/
|
|
97
101
|
textContentType?: InputTextContentType;
|
|
98
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Cross-platform ref type for Input.
|
|
105
|
+
* On web: HTMLInputElement with Tamagui methods (measure, focus, blur).
|
|
106
|
+
* On native: TextInput.
|
|
107
|
+
*/
|
|
108
|
+
export type InputRef = (HTMLInputElement & TamaguiElementMethods) | TextInput;
|
|
99
109
|
/**
|
|
100
110
|
* iOS text content types for autofill
|
|
101
111
|
*/
|
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,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
|
package/types/v1/Input.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import React from 'react';
|
|
|
5
5
|
* @see — Docs https://tamagui.dev/ui/inputs#input
|
|
6
6
|
*/
|
|
7
7
|
export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase & {
|
|
8
|
-
readonly placeholderTextColor?:
|
|
9
|
-
readonly selectionColor?:
|
|
10
|
-
readonly cursorColor?:
|
|
11
|
-
readonly selectionHandleColor?:
|
|
12
|
-
readonly underlineColorAndroid?:
|
|
8
|
+
readonly placeholderTextColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
9
|
+
readonly selectionColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
10
|
+
readonly cursorColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
11
|
+
readonly selectionHandleColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
12
|
+
readonly underlineColorAndroid?: import("@tamagui/core").ColorTokens | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
15
15
|
disabled?: boolean | undefined;
|
|
16
16
|
unstyled?: boolean | undefined;
|
|
17
|
-
}>, "media" | "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys |
|
|
17
|
+
}>, "media" | "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | "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" | "default" | "wrap" | "hidden" | "open" | "value" | "name" | "key" | "returnKeyType" | "submitBehavior" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "selectTextOnFocus" | "secureTextEntry" | "onEndEditing" | "onContentSizeChange" | "onKeyPress" | "multiline" | "keyboardType" | "autoCapitalize" | "autoCorrect" | "keyboardAppearance" | "clearButtonMode" | "clearTextOnFocus" | "enablesReturnKeyAutomatically" | "dataDetectorTypes" | "scrollEnabled" | "passwordRules" | "rejectResponderTermination" | "spellCheck" | "lineBreakModeIOS" | "smartInsertDelete" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "disableKeyboardShortcuts" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "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" | "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" | "cursorColor" | "selectionHandleColor" | "underlineColorAndroid" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "dateTime" | "placeholderTextColor" | "editable" | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "selectionState" | "textContentType" | "rows" | "ref" | keyof import("@tamagui/core").StackNonStyleProps | 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>>> | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "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 | "value" | keyof import("@tamagui/core").StackNonStyleProps | 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>>>> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "secureTextEntry" | "keyboardType" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "onChangeText"> & {
|
|
18
18
|
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
19
19
|
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
20
20
|
editable?: import("react-native").TextInputProps["editable"];
|
|
@@ -26,7 +26,7 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
26
26
|
render?: import("@tamagui/core").TamaguiComponentPropsBase["render"];
|
|
27
27
|
multiline?: boolean;
|
|
28
28
|
numberOfLines?: number;
|
|
29
|
-
}, 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 |
|
|
29
|
+
}, 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 | "value" | keyof import("@tamagui/core").StackNonStyleProps | 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>>>> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "secureTextEntry" | "keyboardType" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "onChangeText"> & {
|
|
30
30
|
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
31
31
|
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
32
32
|
editable?: import("react-native").TextInputProps["editable"];
|
|
@@ -39,11 +39,11 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
39
39
|
multiline?: boolean;
|
|
40
40
|
numberOfLines?: number;
|
|
41
41
|
}, import("@tamagui/core").StackStyleBase & {
|
|
42
|
-
readonly placeholderTextColor?:
|
|
43
|
-
readonly selectionColor?:
|
|
44
|
-
readonly cursorColor?:
|
|
45
|
-
readonly selectionHandleColor?:
|
|
46
|
-
readonly underlineColorAndroid?:
|
|
42
|
+
readonly placeholderTextColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
43
|
+
readonly selectionColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
44
|
+
readonly cursorColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
45
|
+
readonly selectionHandleColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
46
|
+
readonly underlineColorAndroid?: import("@tamagui/core").ColorTokens | undefined;
|
|
47
47
|
}, {
|
|
48
48
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
49
49
|
disabled?: boolean | undefined;
|
|
@@ -4,16 +4,16 @@ import { TextInput } from 'react-native';
|
|
|
4
4
|
* @deprecated Use the new Input from '@tamagui/input' instead
|
|
5
5
|
*/
|
|
6
6
|
export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").TextInputProps, import("@tamagui/core").TextStylePropsBase & {
|
|
7
|
-
readonly placeholderTextColor?:
|
|
8
|
-
readonly selectionColor?:
|
|
9
|
-
readonly cursorColor?:
|
|
10
|
-
readonly selectionHandleColor?:
|
|
11
|
-
readonly underlineColorAndroid?:
|
|
7
|
+
readonly placeholderTextColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
8
|
+
readonly selectionColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
9
|
+
readonly cursorColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
10
|
+
readonly selectionHandleColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
11
|
+
readonly underlineColorAndroid?: import("@tamagui/core").ColorTokens | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
unstyled?: boolean | undefined;
|
|
16
|
-
}>, "media" | "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys |
|
|
16
|
+
}>, "media" | "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | "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" | "default" | "wrap" | "hidden" | "open" | "value" | "name" | "key" | "returnKeyType" | "submitBehavior" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "selectTextOnFocus" | "secureTextEntry" | "onEndEditing" | "onContentSizeChange" | "onKeyPress" | "multiline" | "keyboardType" | "autoCapitalize" | "autoCorrect" | "keyboardAppearance" | "clearButtonMode" | "clearTextOnFocus" | "enablesReturnKeyAutomatically" | "dataDetectorTypes" | "scrollEnabled" | "passwordRules" | "rejectResponderTermination" | "spellCheck" | "lineBreakModeIOS" | "smartInsertDelete" | "inputAccessoryViewID" | "inputAccessoryViewButtonLabel" | "disableKeyboardShortcuts" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "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" | "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" | "cursorColor" | "selectionHandleColor" | "underlineColorAndroid" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "showSoftInputOnFocus" | "dateTime" | "placeholderTextColor" | "editable" | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "selectionState" | "textContentType" | "rows" | "ref" | keyof import("@tamagui/core").StackNonStyleProps | 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>>> | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "as" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "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 | "value" | keyof import("@tamagui/core").StackNonStyleProps | 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>>>> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "secureTextEntry" | "keyboardType" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "onChangeText"> & {
|
|
17
17
|
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
18
18
|
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
19
19
|
editable?: import("react-native").TextInputProps["editable"];
|
|
@@ -25,7 +25,7 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
25
25
|
render?: import("@tamagui/core").TamaguiComponentPropsBase["render"];
|
|
26
26
|
multiline?: boolean;
|
|
27
27
|
numberOfLines?: number;
|
|
28
|
-
}, TextInput, import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").TextInputProps & 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 |
|
|
28
|
+
}, TextInput, import("@tamagui/core").TamaguiComponentPropsBaseBase & import("react-native").TextInputProps & 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 | "value" | keyof import("@tamagui/core").StackNonStyleProps | 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>>>> & Pick<import("@tamagui/core").TextProps, "color"> & Omit<React.CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "secureTextEntry" | "keyboardType" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "onChangeText"> & {
|
|
29
29
|
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
30
30
|
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
31
31
|
editable?: import("react-native").TextInputProps["editable"];
|
|
@@ -38,11 +38,11 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
38
38
|
multiline?: boolean;
|
|
39
39
|
numberOfLines?: number;
|
|
40
40
|
}, import("@tamagui/core").TextStylePropsBase & {
|
|
41
|
-
readonly placeholderTextColor?:
|
|
42
|
-
readonly selectionColor?:
|
|
43
|
-
readonly cursorColor?:
|
|
44
|
-
readonly selectionHandleColor?:
|
|
45
|
-
readonly underlineColorAndroid?:
|
|
41
|
+
readonly placeholderTextColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
42
|
+
readonly selectionColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
43
|
+
readonly cursorColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
44
|
+
readonly selectionHandleColor?: import("@tamagui/core").ColorTokens | undefined;
|
|
45
|
+
readonly underlineColorAndroid?: import("@tamagui/core").ColorTokens | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
size?: import("@tamagui/core").SizeTokens | undefined;
|
|
48
48
|
disabled?: boolean | undefined;
|
package/types/v1/TextArea.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @summary A text area is a multi-line input field that allows users to enter text.
|
|
4
4
|
* @see — Docs https://tamagui.dev/ui/inputs#textarea
|
|
5
5
|
*/
|
|
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").ClassAttributes<HTMLInputElement> & import("react").HTMLProps<HTMLInputElement>, "size" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys |
|
|
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").ClassAttributes<HTMLInputElement> & import("react").HTMLProps<HTMLInputElement>, "size" | `$${string}` | `$${number}` | import("@tamagui/web").GroupMediaKeys | "value" | keyof import("@tamagui/web").StackNonStyleProps | keyof import("@tamagui/web").StackStyleBase | keyof import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>>> & Pick<import("@tamagui/web").TextProps, "color"> & Omit<import("react").CSSProperties | undefined, "color"> & Omit<import("react-native").TextInputProps, "numberOfLines" | "selectionColor" | "secureTextEntry" | "keyboardType" | "enterKeyHint" | "inputMode" | "placeholderTextColor" | "editable" | "onChangeText"> & {
|
|
7
7
|
secureTextEntry?: import("react-native").TextInputProps["secureTextEntry"];
|
|
8
8
|
onChangeText?: import("react-native").TextInputProps["onChangeText"];
|
|
9
9
|
editable?: import("react-native").TextInputProps["editable"];
|
|
@@ -16,11 +16,11 @@ export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@
|
|
|
16
16
|
multiline?: boolean;
|
|
17
17
|
numberOfLines?: number;
|
|
18
18
|
}, import("@tamagui/web").StackStyleBase & {
|
|
19
|
-
readonly placeholderTextColor?:
|
|
20
|
-
readonly selectionColor?:
|
|
21
|
-
readonly cursorColor?:
|
|
22
|
-
readonly selectionHandleColor?:
|
|
23
|
-
readonly underlineColorAndroid?:
|
|
19
|
+
readonly placeholderTextColor?: import("@tamagui/web").ColorTokens | undefined;
|
|
20
|
+
readonly selectionColor?: import("@tamagui/web").ColorTokens | undefined;
|
|
21
|
+
readonly cursorColor?: import("@tamagui/web").ColorTokens | undefined;
|
|
22
|
+
readonly selectionHandleColor?: import("@tamagui/web").ColorTokens | undefined;
|
|
23
|
+
readonly underlineColorAndroid?: import("@tamagui/web").ColorTokens | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
26
26
|
disabled?: boolean | undefined;
|
package/dist/cjs/Input.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var Input_exports = {};
|
|
24
|
-
__export(Input_exports, {
|
|
25
|
-
Input: () => Input
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Input_exports);
|
|
28
|
-
var import_core = require("@tamagui/core"), import_focusable = require("@tamagui/focusable"), import_element = require("@tamagui/element"), import_react = __toESM(require("react"), 1), import_shared = require("./shared"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const StyledInput = (0, import_core.styled)(import_core.View, import_shared.styledBody[0], import_shared.styledBody[1]), Input = StyledInput.styleable((props, _forwardedRef) => {
|
|
30
|
-
const {
|
|
31
|
-
disabled,
|
|
32
|
-
id,
|
|
33
|
-
onChangeText,
|
|
34
|
-
onSubmitEditing,
|
|
35
|
-
onSelectionChange,
|
|
36
|
-
selection,
|
|
37
|
-
placeholderTextColor,
|
|
38
|
-
selectionColor,
|
|
39
|
-
rows,
|
|
40
|
-
// Native-only props (ignored on web)
|
|
41
|
-
keyboardAppearance,
|
|
42
|
-
returnKeyType,
|
|
43
|
-
submitBehavior,
|
|
44
|
-
blurOnSubmit,
|
|
45
|
-
caretHidden,
|
|
46
|
-
contextMenuHidden,
|
|
47
|
-
selectTextOnFocus,
|
|
48
|
-
secureTextEntry,
|
|
49
|
-
maxFontSizeMultiplier,
|
|
50
|
-
allowFontScaling,
|
|
51
|
-
multiline,
|
|
52
|
-
keyboardType,
|
|
53
|
-
autoCapitalize: autoCapitalizeProp,
|
|
54
|
-
autoCorrect: autoCorrectProp,
|
|
55
|
-
autoFocusNative,
|
|
56
|
-
textContentType,
|
|
57
|
-
onEndEditing,
|
|
58
|
-
onContentSizeChange,
|
|
59
|
-
onScroll,
|
|
60
|
-
onKeyPress,
|
|
61
|
-
// iOS-only props (ignored on web)
|
|
62
|
-
clearButtonMode,
|
|
63
|
-
clearTextOnFocus,
|
|
64
|
-
enablesReturnKeyAutomatically,
|
|
65
|
-
dataDetectorTypes,
|
|
66
|
-
scrollEnabled,
|
|
67
|
-
passwordRules,
|
|
68
|
-
rejectResponderTermination,
|
|
69
|
-
spellCheck,
|
|
70
|
-
lineBreakStrategyIOS,
|
|
71
|
-
lineBreakModeIOS,
|
|
72
|
-
smartInsertDelete,
|
|
73
|
-
inputAccessoryViewID,
|
|
74
|
-
inputAccessoryViewButtonLabel,
|
|
75
|
-
disableKeyboardShortcuts,
|
|
76
|
-
// Android-only props (ignored on web)
|
|
77
|
-
cursorColor,
|
|
78
|
-
selectionHandleColor,
|
|
79
|
-
underlineColorAndroid,
|
|
80
|
-
importantForAutofill,
|
|
81
|
-
disableFullscreenUI,
|
|
82
|
-
inlineImageLeft,
|
|
83
|
-
inlineImagePadding,
|
|
84
|
-
returnKeyLabel,
|
|
85
|
-
textBreakStrategy,
|
|
86
|
-
textAlignVertical,
|
|
87
|
-
verticalAlign,
|
|
88
|
-
showSoftInputOnFocus,
|
|
89
|
-
numberOfLines,
|
|
90
|
-
...rest
|
|
91
|
-
} = props, { ref, composedRef } = (0, import_element.useWebRef)(_forwardedRef), theme = (0, import_core.useTheme)(), autoCorrect = autoCorrectProp === !0 ? "on" : autoCorrectProp === !1 ? "off" : autoCorrectProp, autoCapitalize = autoCapitalizeProp === "sentences" || autoCapitalizeProp === "words" ? "on" : autoCapitalizeProp === "none" || autoCapitalizeProp === "characters" ? "off" : autoCapitalizeProp;
|
|
92
|
-
import_react.default.useEffect(() => {
|
|
93
|
-
if (!onSelectionChange) return;
|
|
94
|
-
const node = ref.current;
|
|
95
|
-
if (!node) return;
|
|
96
|
-
const handleSelectionChange = () => {
|
|
97
|
-
onSelectionChange({
|
|
98
|
-
nativeEvent: {
|
|
99
|
-
selection: {
|
|
100
|
-
start: node.selectionStart ?? 0,
|
|
101
|
-
end: node.selectionEnd ?? 0
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
return node.addEventListener("select", handleSelectionChange), () => node.removeEventListener("select", handleSelectionChange);
|
|
107
|
-
}, [onSelectionChange]), import_react.default.useEffect(() => {
|
|
108
|
-
selection && ref.current && ref.current.setSelectionRange(selection.start, selection.end ?? selection.start);
|
|
109
|
-
}, [selection?.start, selection?.end]), import_react.default.useEffect(() => {
|
|
110
|
-
if (!(!id || disabled))
|
|
111
|
-
return (0, import_focusable.registerFocusable)(id, {
|
|
112
|
-
focusAndSelect: () => ref.current?.focus(),
|
|
113
|
-
focus: () => ref.current?.focus()
|
|
114
|
-
});
|
|
115
|
-
}, [id, disabled]);
|
|
116
|
-
const handleKeyDown = (e) => {
|
|
117
|
-
e.key === "Enter" && onSubmitEditing && onSubmitEditing({
|
|
118
|
-
nativeEvent: { text: e.target.value }
|
|
119
|
-
}), rest.onKeyDown?.(e);
|
|
120
|
-
}, handleChange = (e) => {
|
|
121
|
-
onChangeText?.(e.target.value), rest.onChange?.(e);
|
|
122
|
-
}, finalProps = {
|
|
123
|
-
...rest,
|
|
124
|
-
disabled,
|
|
125
|
-
id,
|
|
126
|
-
rows,
|
|
127
|
-
autoCorrect,
|
|
128
|
-
autoCapitalize,
|
|
129
|
-
onKeyDown: onSubmitEditing ? handleKeyDown : rest.onKeyDown,
|
|
130
|
-
onChange: onChangeText ? handleChange : rest.onChange,
|
|
131
|
-
style: {
|
|
132
|
-
...rest.style,
|
|
133
|
-
...placeholderTextColor && {
|
|
134
|
-
"--placeholderColor": theme[placeholderTextColor]?.variable || placeholderTextColor
|
|
135
|
-
},
|
|
136
|
-
...selectionColor && {
|
|
137
|
-
"--selectionColor": theme[selectionColor]?.variable || selectionColor
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledInput, { ref: composedRef, ...finalProps });
|
|
142
|
-
});
|
|
143
|
-
//# sourceMappingURL=Input.js.map
|
package/dist/cjs/Input.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Input.tsx"],
|
|
4
|
-
"mappings": "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",
|
|
5
|
-
"names": ["React"]
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
};
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var InputNativeProps_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(InputNativeProps_exports);
|
|
14
|
-
//# sourceMappingURL=InputNativeProps.js.map
|
package/dist/cjs/TextArea.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var TextArea_exports = {};
|
|
16
|
-
__export(TextArea_exports, {
|
|
17
|
-
TextArea: () => TextArea
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(TextArea_exports);
|
|
20
|
-
var import_web = require("@tamagui/web"), import_Input = require("./Input"), import_shared = require("./shared");
|
|
21
|
-
const TextArea = (0, import_web.styled)(import_Input.Input, {
|
|
22
|
-
name: "TextArea",
|
|
23
|
-
render: "textarea",
|
|
24
|
-
// this attribute fixes firefox newline issue
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
whiteSpace: "pre-wrap",
|
|
27
|
-
variants: {
|
|
28
|
-
unstyled: {
|
|
29
|
-
false: {
|
|
30
|
-
height: "auto",
|
|
31
|
-
...import_shared.defaultStyles,
|
|
32
|
-
rows: 3
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
"...size": import_shared.textAreaSizeVariant
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=TextArea.js.map
|
package/dist/cjs/TextArea.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/TextArea.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAuB,yBACvB,eAAsB,oBACtB,gBAAmD;AAQ5C,MAAM,eAAW,mBAAO,oBAAO;AAAA,EACpC,MAAM;AAAA,EACN,QAAQ;AAAA;AAAA;AAAA,EAIR,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG;AAAA,QACH,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
package/dist/cjs/index.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
}, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var index_exports = {};
|
|
16
|
-
__export(index_exports, {
|
|
17
|
-
inputSizeVariant: () => import_shared.inputSizeVariant,
|
|
18
|
-
textAreaSizeVariant: () => import_shared.textAreaSizeVariant
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(index_exports);
|
|
21
|
-
__reExport(index_exports, require("./Input"), module.exports);
|
|
22
|
-
__reExport(index_exports, require("./TextArea"), module.exports);
|
|
23
|
-
var import_shared = require("./shared");
|
|
24
|
-
//# sourceMappingURL=index.js.map
|