@tamagui/input 2.7.7 → 3.0.0-beta.643.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 +78 -162
- package/dist/cjs/Input.native.cjs +209 -0
- package/dist/cjs/Input.native.js +186 -282
- package/dist/cjs/Input.native.js.map +1 -1
- package/dist/cjs/InputNativeProps.cjs +10 -11
- package/dist/cjs/InputNativeProps.native.cjs +19 -0
- package/dist/cjs/InputNativeProps.native.js +10 -10
- package/dist/cjs/InputNativeProps.native.js.map +1 -1
- package/dist/cjs/TextArea.cjs +25 -38
- package/dist/cjs/TextArea.native.cjs +41 -0
- package/dist/cjs/TextArea.native.js +25 -37
- package/dist/cjs/TextArea.native.js.map +1 -1
- package/dist/cjs/index.cjs +16 -17
- package/dist/cjs/index.native.cjs +33 -0
- package/dist/cjs/index.native.js +16 -16
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/shared.cjs +115 -122
- package/dist/cjs/shared.native.cjs +144 -0
- package/dist/cjs/shared.native.js +120 -126
- package/dist/cjs/shared.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Input.mjs +63 -137
- package/dist/esm/Input.mjs.map +1 -1
- package/dist/esm/Input.native.js +172 -259
- package/dist/esm/Input.native.js.map +1 -1
- package/dist/esm/InputNativeProps.mjs +0 -2
- package/dist/esm/InputNativeProps.native.js +0 -2
- package/dist/esm/TextArea.mjs +12 -20
- package/dist/esm/TextArea.mjs.map +1 -1
- package/dist/esm/TextArea.native.js +12 -20
- package/dist/esm/TextArea.native.js.map +1 -1
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.mjs +6 -4
- package/dist/esm/index.native.js +6 -4
- package/dist/esm/shared.mjs +99 -104
- package/dist/esm/shared.mjs.map +1 -1
- package/dist/esm/shared.native.js +104 -109
- package/dist/esm/shared.native.js.map +1 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/jsx/Input.mjs +63 -137
- package/dist/jsx/Input.mjs.map +1 -1
- package/dist/jsx/Input.native.cjs +209 -0
- package/dist/jsx/Input.native.js +186 -282
- package/dist/jsx/Input.native.js.map +1 -1
- package/dist/jsx/InputNativeProps.mjs +0 -2
- package/dist/jsx/InputNativeProps.native.cjs +19 -0
- package/dist/jsx/InputNativeProps.native.js +10 -10
- package/dist/jsx/InputNativeProps.native.js.map +1 -1
- package/dist/jsx/TextArea.mjs +12 -20
- package/dist/jsx/TextArea.mjs.map +1 -1
- package/dist/jsx/TextArea.native.cjs +41 -0
- package/dist/jsx/TextArea.native.js +25 -37
- package/dist/jsx/TextArea.native.js.map +1 -1
- package/dist/jsx/index.js +6 -4
- package/dist/jsx/index.mjs +6 -4
- package/dist/jsx/index.native.cjs +33 -0
- package/dist/jsx/index.native.js +16 -16
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/shared.mjs +99 -104
- package/dist/jsx/shared.mjs.map +1 -1
- package/dist/jsx/shared.native.cjs +144 -0
- package/dist/jsx/shared.native.js +120 -126
- package/dist/jsx/shared.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +19 -0
- package/dist/jsx/types.native.js +10 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +13 -15
- package/src/Input.native.tsx +263 -240
- package/src/Input.tsx +162 -152
- package/src/TextArea.tsx +6 -14
- package/src/shared.tsx +65 -70
- package/src/types.ts +1 -1
- package/types/Input.d.ts +57 -41
- package/types/Input.d.ts.map +1 -1
- package/types/Input.native.d.ts +57 -41
- package/types/Input.native.d.ts.map +1 -1
- package/types/TextArea.d.ts +172 -24
- package/types/TextArea.d.ts.map +1 -1
- package/types/shared.d.ts +14 -99
- package/types/shared.d.ts.map +1 -1
- package/types/types.d.ts +1 -1
- package/dist/cjs/inputTypes.test-d.cjs +0 -128
- package/dist/cjs/inputTypes.test-d.native.js +0 -131
- package/dist/cjs/inputTypes.test-d.native.js.map +0 -1
- package/dist/cjs/v1/Input.cjs +0 -200
- package/dist/cjs/v1/Input.native.js +0 -183
- package/dist/cjs/v1/Input.native.js.map +0 -1
- package/dist/cjs/v1/TextArea.cjs +0 -52
- package/dist/cjs/v1/TextArea.native.js +0 -55
- package/dist/cjs/v1/TextArea.native.js.map +0 -1
- package/dist/cjs/v1/index.cjs +0 -21
- package/dist/cjs/v1/index.native.js +0 -24
- package/dist/cjs/v1/index.native.js.map +0 -1
- package/dist/cjs/v1/types.cjs +0 -18
- package/dist/cjs/v1/types.native.js +0 -21
- package/dist/cjs/v1/types.native.js.map +0 -1
- package/dist/esm/InputNativeProps.mjs.map +0 -1
- package/dist/esm/InputNativeProps.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/inputTypes.test-d.mjs +0 -129
- package/dist/esm/inputTypes.test-d.mjs.map +0 -1
- package/dist/esm/inputTypes.test-d.native.js +0 -129
- package/dist/esm/inputTypes.test-d.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/esm/v1/Input.mjs +0 -164
- package/dist/esm/v1/Input.mjs.map +0 -1
- package/dist/esm/v1/Input.native.js +0 -144
- package/dist/esm/v1/Input.native.js.map +0 -1
- package/dist/esm/v1/TextArea.mjs +0 -27
- package/dist/esm/v1/TextArea.mjs.map +0 -1
- package/dist/esm/v1/TextArea.native.js +0 -27
- package/dist/esm/v1/TextArea.native.js.map +0 -1
- package/dist/esm/v1/index.mjs +0 -3
- package/dist/esm/v1/index.mjs.map +0 -1
- package/dist/esm/v1/index.native.js +0 -3
- package/dist/esm/v1/index.native.js.map +0 -1
- package/dist/esm/v1/types.mjs +0 -2
- package/dist/esm/v1/types.mjs.map +0 -1
- package/dist/esm/v1/types.native.js +0 -2
- package/dist/esm/v1/types.native.js.map +0 -1
- package/dist/jsx/InputNativeProps.mjs.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/inputTypes.test-d.mjs +0 -129
- package/dist/jsx/inputTypes.test-d.mjs.map +0 -1
- package/dist/jsx/inputTypes.test-d.native.js +0 -131
- package/dist/jsx/inputTypes.test-d.native.js.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
- package/dist/jsx/v1/Input.mjs +0 -164
- package/dist/jsx/v1/Input.mjs.map +0 -1
- package/dist/jsx/v1/Input.native.js +0 -183
- package/dist/jsx/v1/Input.native.js.map +0 -1
- package/dist/jsx/v1/TextArea.mjs +0 -27
- package/dist/jsx/v1/TextArea.mjs.map +0 -1
- package/dist/jsx/v1/TextArea.native.js +0 -55
- package/dist/jsx/v1/TextArea.native.js.map +0 -1
- package/dist/jsx/v1/index.mjs +0 -3
- package/dist/jsx/v1/index.mjs.map +0 -1
- package/dist/jsx/v1/index.native.js +0 -24
- package/dist/jsx/v1/index.native.js.map +0 -1
- package/dist/jsx/v1/types.mjs +0 -2
- package/dist/jsx/v1/types.mjs.map +0 -1
- package/dist/jsx/v1/types.native.js +0 -21
- package/dist/jsx/v1/types.native.js.map +0 -1
- package/src/inputTypes.test-d.ts +0 -245
- package/src/v1/Input.native.tsx +0 -153
- package/src/v1/Input.tsx +0 -190
- package/src/v1/TextArea.tsx +0 -35
- package/src/v1/index.ts +0 -3
- package/src/v1/types.ts +0 -65
- package/types/v1/Input.d.ts +0 -64
- package/types/v1/Input.d.ts.map +0 -1
- package/types/v1/Input.native.d.ts +0 -63
- package/types/v1/Input.native.d.ts.map +0 -1
- package/types/v1/TextArea.d.ts +0 -41
- package/types/v1/TextArea.d.ts.map +0 -1
- package/types/v1/index.d.ts +0 -4
- package/types/v1/index.d.ts.map +0 -1
- package/types/v1/types.d.ts +0 -39
- package/types/v1/types.d.ts.map +0 -1
package/types/TextArea.d.ts
CHANGED
|
@@ -3,18 +3,88 @@ import { type GetProps } from '@tamagui/web';
|
|
|
3
3
|
* A web-aligned textarea component (multi-line input).
|
|
4
4
|
* @see — Docs https://tamagui.dev/ui/inputs#textarea
|
|
5
5
|
*/
|
|
6
|
-
export declare const TextArea: import("
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
export declare const TextArea: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
7
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
8
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
9
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
10
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
11
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
15
|
+
}>, "about" | "accept" | "accessKey" | "allowFontScaling" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "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-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoFocusNative" | "autoSave" | "blurOnSubmit" | "capture" | "caretHidden" | "checked" | "clearButtonMode" | "clearTextOnFocus" | "color" | "content" | "contentEditable" | "contextMenu" | "contextMenuHidden" | "cursorColor" | "dangerouslySetInnerHTML" | "dataDetectorTypes" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "disableFullscreenUI" | "disableKeyboardShortcuts" | "disabled" | "draggable" | "enablesReturnKeyAutomatically" | "enterKeyHint" | "exportparts" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "hidden" | "id" | "importantForAutofill" | "inert" | "inlineImageLeft" | "inlineImagePadding" | "inlist" | "inputAccessoryViewButtonLabel" | "inputAccessoryViewID" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "keyboardAppearance" | "keyboardType" | "lang" | "letterSpacing" | "lineBreakModeIOS" | "lineBreakStrategyIOS" | "list" | "max" | "maxFontSizeMultiplier" | "maxLength" | "min" | "minLength" | "multiline" | "multiple" | "name" | "nonce" | "numberOfLines" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onChangeText" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContentSizeChange" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndEditing" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onSelectionChange" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSubmitEditing" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "passwordRules" | "pattern" | "placeholder" | "placeholderTextColor" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "readOnly" | "rejectResponderTermination" | "rel" | "required" | "resource" | "results" | "returnKeyLabel" | "returnKeyType" | "rev" | "role" | "rows" | "scrollEnabled" | "secureTextEntry" | "security" | "selectTextOnFocus" | "selection" | "selectionColor" | "selectionHandleColor" | "showSoftInputOnFocus" | "slot" | "smartInsertDelete" | "spellCheck" | "src" | "step" | "submitBehavior" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignVertical" | "textBreakStrategy" | "textContentType" | "textTransform" | "title" | "translate" | "type" | "typeof" | "underlineColorAndroid" | "unselectable" | "value" | "verticalAlign" | "vocab" | "width"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "children" | "className" | "color" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "size" | "style" | "textAlign" | "textTransform" | ("autoCapitalize" | "autoCorrect" | "spellCheck")> & {
|
|
16
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
17
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
18
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
19
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
20
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
21
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
22
|
+
textTransform?: import("@tamagui/web").FlatStyleValue<"capitalize" | "lowercase" | "none" | "unset" | "uppercase" | undefined>;
|
|
23
|
+
color?: import("@tamagui/web").ColorStyleProp;
|
|
15
24
|
} & Omit<import("./InputNativeProps").InputNativeProps, "autoCapitalize" | "autoCorrect" | "spellCheck"> & {
|
|
16
|
-
autoCorrect?: boolean |
|
|
17
|
-
autoCapitalize?:
|
|
25
|
+
autoCorrect?: boolean | 'on' | 'off';
|
|
26
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | 'off' | 'on';
|
|
27
|
+
spellCheck?: boolean;
|
|
28
|
+
rows?: number;
|
|
29
|
+
placeholderTextColor?: import("@tamagui/web").ColorTokens;
|
|
30
|
+
selectionColor?: import("@tamagui/web").ColorTokens;
|
|
31
|
+
onChangeText?: (text: string) => void;
|
|
32
|
+
onSubmitEditing?: (e: {
|
|
33
|
+
nativeEvent: {
|
|
34
|
+
text: string;
|
|
35
|
+
};
|
|
36
|
+
}) => void;
|
|
37
|
+
selection?: {
|
|
38
|
+
start: number;
|
|
39
|
+
end?: number;
|
|
40
|
+
};
|
|
41
|
+
onSelectionChange?: (e: {
|
|
42
|
+
nativeEvent: {
|
|
43
|
+
selection: {
|
|
44
|
+
start: number;
|
|
45
|
+
end: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}) => void;
|
|
49
|
+
textContentType?: import("./types").InputTextContentType;
|
|
50
|
+
}, "alignContent" | "alignItems" | "alignSelf" | "animateOnly" | "animatePresence" | "aspectRatio" | "backdropFilter" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "blockSize" | "border" | "borderBlock" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockEndStyle" | "borderBlockEndWidth" | "borderBlockStartColor" | "borderBlockStartStyle" | "borderBlockStartWidth" | "borderBlockStyle" | "borderBlockWidth" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderBottomWidth" | "borderColor" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderEndWidth" | "borderImage" | "borderInline" | "borderInlineColor" | "borderInlineEndColor" | "borderInlineEndStyle" | "borderInlineEndWidth" | "borderInlineStartColor" | "borderInlineStartStyle" | "borderInlineStartWidth" | "borderInlineStyle" | "borderInlineWidth" | "borderLeftColor" | "borderLeftWidth" | "borderRadius" | "borderRightColor" | "borderRightWidth" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStartWidth" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "borderTopWidth" | "borderWidth" | "bottom" | "boxShadow" | "boxSizing" | "caretColor" | "clipPath" | "color" | "columnGap" | "contain" | "containerName" | "containerType" | "cursor" | "cursorColor" | "direction" | "disabled" | "display" | "elevation" | "ellipsis" | "end" | "experimental_backgroundImage" | "experimental_backgroundPosition" | "experimental_backgroundRepeat" | "experimental_backgroundSize" | "filter" | "flex" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "float" | "font" | "fontFamily" | "fontSize" | "fontStyle" | "fontVariant" | "fontWeight" | "gap" | "gridColumn" | "gridColumnEnd" | "gridColumnGap" | "gridColumnStart" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridTemplateAreas" | "gridTemplateColumns" | "height" | "includeFontPadding" | "inlineSize" | "inset" | "insetBlock" | "insetBlockEnd" | "insetBlockStart" | "insetInline" | "insetInlineEnd" | "insetInlineStart" | "isolation" | "justifyContent" | "left" | "letterSpacing" | "lineHeight" | "margin" | "marginBlock" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginInline" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "mask" | "maskBorder" | "maskBorderMode" | "maskBorderOutset" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskComposite" | "maskImage" | "maskMode" | "maskOrigin" | "maskPosition" | "maskRepeat" | "maskSize" | "maskType" | "matrix" | "maxBlockSize" | "maxHeight" | "maxInlineSize" | "maxWidth" | "minBlockSize" | "minHeight" | "minInlineSize" | "minWidth" | "mixBlendMode" | "numberOfLines" | "objectFit" | "onTransition" | "opacity" | "outline" | "outlineColor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "overflow" | "overflowBlock" | "overflowInline" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBlock" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingInline" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "passThrough" | "perspective" | "placeholderTextColor" | "pointerEvents" | "position" | "resize" | "right" | "rotate" | "rotateX" | "rotateY" | "rotateZ" | "rotation" | "rowGap" | "scale" | "scaleX" | "scaleY" | "selectionColor" | "selectionHandleColor" | "shadowColor" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "size" | "skewX" | "skewY" | "start" | "textAlign" | "textAlignVertical" | "textDecoration" | "textDecorationColor" | "textDecorationDistance" | "textDecorationLine" | "textDecorationStyle" | "textEmphasis" | "textOverflow" | "textShadow" | "textShadowColor" | "textShadowOffset" | "textShadowRadius" | "textTransform" | "textWrap" | "top" | "transform" | "transformMatrix" | "transformOrigin" | "transformStyle" | "transition" | "translateX" | "translateY" | "underlineColorAndroid" | "userSelect" | "verticalAlign" | "visibility" | "whiteSpace" | "width" | "wordWrap" | "writingDirection" | "x" | "y" | "zIndex"> & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
51
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
52
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
53
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
54
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
55
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
56
|
+
}> & {
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
59
|
+
} & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
60
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
61
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
62
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
63
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
64
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
65
|
+
}>> & {
|
|
66
|
+
ref?: import("react").Ref<import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods)> | undefined;
|
|
67
|
+
}> & import("@tamagui/web").StaticComponentObject<import("@tamagui/web").TamaDefer, import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
68
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
69
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
70
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
71
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
72
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
disabled?: boolean | undefined;
|
|
75
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
76
|
+
}>, "about" | "accept" | "accessKey" | "allowFontScaling" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "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-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoFocusNative" | "autoSave" | "blurOnSubmit" | "capture" | "caretHidden" | "checked" | "clearButtonMode" | "clearTextOnFocus" | "color" | "content" | "contentEditable" | "contextMenu" | "contextMenuHidden" | "cursorColor" | "dangerouslySetInnerHTML" | "dataDetectorTypes" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "disableFullscreenUI" | "disableKeyboardShortcuts" | "disabled" | "draggable" | "enablesReturnKeyAutomatically" | "enterKeyHint" | "exportparts" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "hidden" | "id" | "importantForAutofill" | "inert" | "inlineImageLeft" | "inlineImagePadding" | "inlist" | "inputAccessoryViewButtonLabel" | "inputAccessoryViewID" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "keyboardAppearance" | "keyboardType" | "lang" | "letterSpacing" | "lineBreakModeIOS" | "lineBreakStrategyIOS" | "list" | "max" | "maxFontSizeMultiplier" | "maxLength" | "min" | "minLength" | "multiline" | "multiple" | "name" | "nonce" | "numberOfLines" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onChangeText" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContentSizeChange" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndEditing" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onSelectionChange" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSubmitEditing" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "passwordRules" | "pattern" | "placeholder" | "placeholderTextColor" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "readOnly" | "rejectResponderTermination" | "rel" | "required" | "resource" | "results" | "returnKeyLabel" | "returnKeyType" | "rev" | "role" | "rows" | "scrollEnabled" | "secureTextEntry" | "security" | "selectTextOnFocus" | "selection" | "selectionColor" | "selectionHandleColor" | "showSoftInputOnFocus" | "slot" | "smartInsertDelete" | "spellCheck" | "src" | "step" | "submitBehavior" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignVertical" | "textBreakStrategy" | "textContentType" | "textTransform" | "title" | "translate" | "type" | "typeof" | "underlineColorAndroid" | "unselectable" | "value" | "verticalAlign" | "vocab" | "width"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "children" | "className" | "color" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "size" | "style" | "textAlign" | "textTransform" | ("autoCapitalize" | "autoCorrect" | "spellCheck")> & {
|
|
77
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
78
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
79
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
80
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
81
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
82
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
83
|
+
textTransform?: import("@tamagui/web").FlatStyleValue<"capitalize" | "lowercase" | "none" | "unset" | "uppercase" | undefined>;
|
|
84
|
+
color?: import("@tamagui/web").ColorStyleProp;
|
|
85
|
+
} & Omit<import("./InputNativeProps").InputNativeProps, "autoCapitalize" | "autoCorrect" | "spellCheck"> & {
|
|
86
|
+
autoCorrect?: boolean | 'on' | 'off';
|
|
87
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | 'off' | 'on';
|
|
18
88
|
spellCheck?: boolean;
|
|
19
89
|
rows?: number;
|
|
20
90
|
placeholderTextColor?: import("@tamagui/web").ColorTokens;
|
|
@@ -39,27 +109,105 @@ export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@
|
|
|
39
109
|
}) => void;
|
|
40
110
|
textContentType?: import("./types").InputTextContentType;
|
|
41
111
|
}, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
42
|
-
readonly placeholderTextColor?: import("@tamagui/web").
|
|
43
|
-
readonly selectionColor?: import("@tamagui/web").
|
|
44
|
-
readonly cursorColor?: import("@tamagui/web").
|
|
45
|
-
readonly selectionHandleColor?: import("@tamagui/web").
|
|
46
|
-
readonly underlineColorAndroid?: import("@tamagui/web").
|
|
112
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
113
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
114
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
115
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
116
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
47
117
|
}, {
|
|
48
|
-
size?: import("@tamagui/web").SizeTokens | undefined;
|
|
49
118
|
disabled?: boolean | undefined;
|
|
50
|
-
|
|
119
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
51
120
|
}, {
|
|
52
121
|
readonly isInput: true;
|
|
53
122
|
readonly accept: {
|
|
54
|
-
readonly placeholderTextColor:
|
|
55
|
-
readonly selectionColor:
|
|
56
|
-
readonly cursorColor:
|
|
57
|
-
readonly selectionHandleColor:
|
|
58
|
-
readonly underlineColorAndroid:
|
|
123
|
+
readonly placeholderTextColor: 'color';
|
|
124
|
+
readonly selectionColor: 'color';
|
|
125
|
+
readonly cursorColor: 'color';
|
|
126
|
+
readonly selectionHandleColor: 'color';
|
|
127
|
+
readonly underlineColorAndroid: 'color';
|
|
59
128
|
};
|
|
60
129
|
readonly validStyles: {
|
|
61
130
|
[key: string]: boolean;
|
|
62
131
|
} | undefined;
|
|
63
|
-
} & import("@tamagui/web").StaticConfigPublic
|
|
132
|
+
} & import("@tamagui/web").StaticConfigPublic> & Omit<{
|
|
133
|
+
readonly isInput: true;
|
|
134
|
+
readonly accept: {
|
|
135
|
+
readonly placeholderTextColor: 'color';
|
|
136
|
+
readonly selectionColor: 'color';
|
|
137
|
+
readonly cursorColor: 'color';
|
|
138
|
+
readonly selectionHandleColor: 'color';
|
|
139
|
+
readonly underlineColorAndroid: 'color';
|
|
140
|
+
};
|
|
141
|
+
readonly validStyles: {
|
|
142
|
+
[key: string]: boolean;
|
|
143
|
+
} | undefined;
|
|
144
|
+
} & import("@tamagui/web").StaticConfigPublic, "staticConfig"> & {
|
|
145
|
+
__tama: [import("@tamagui/web").TamaDefer, import("react-native").View | (HTMLElement & import("@tamagui/web").TamaguiElementMethods), import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
146
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
147
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
148
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
149
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
150
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
disabled?: boolean | undefined;
|
|
153
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
154
|
+
}>, "about" | "accept" | "accessKey" | "allowFontScaling" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "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-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoFocusNative" | "autoSave" | "blurOnSubmit" | "capture" | "caretHidden" | "checked" | "clearButtonMode" | "clearTextOnFocus" | "color" | "content" | "contentEditable" | "contextMenu" | "contextMenuHidden" | "cursorColor" | "dangerouslySetInnerHTML" | "dataDetectorTypes" | "datatype" | "defaultChecked" | "defaultValue" | "dir" | "disableFullscreenUI" | "disableKeyboardShortcuts" | "disabled" | "draggable" | "enablesReturnKeyAutomatically" | "enterKeyHint" | "exportparts" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "hidden" | "id" | "importantForAutofill" | "inert" | "inlineImageLeft" | "inlineImagePadding" | "inlist" | "inputAccessoryViewButtonLabel" | "inputAccessoryViewID" | "inputMode" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "keyboardAppearance" | "keyboardType" | "lang" | "letterSpacing" | "lineBreakModeIOS" | "lineBreakStrategyIOS" | "list" | "max" | "maxFontSizeMultiplier" | "maxLength" | "min" | "minLength" | "multiline" | "multiple" | "name" | "nonce" | "numberOfLines" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBeforeToggle" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onChangeText" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContentSizeChange" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndEditing" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onSelectionChange" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSubmitEditing" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onToggle" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "part" | "passwordRules" | "pattern" | "placeholder" | "placeholderTextColor" | "popover" | "popoverTarget" | "popoverTargetAction" | "prefix" | "property" | "radioGroup" | "readOnly" | "rejectResponderTermination" | "rel" | "required" | "resource" | "results" | "returnKeyLabel" | "returnKeyType" | "rev" | "role" | "rows" | "scrollEnabled" | "secureTextEntry" | "security" | "selectTextOnFocus" | "selection" | "selectionColor" | "selectionHandleColor" | "showSoftInputOnFocus" | "slot" | "smartInsertDelete" | "spellCheck" | "src" | "step" | "submitBehavior" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "textAlign" | "textAlignVertical" | "textBreakStrategy" | "textContentType" | "textTransform" | "title" | "translate" | "type" | "typeof" | "underlineColorAndroid" | "unselectable" | "value" | "verticalAlign" | "vocab" | "width"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "children" | "className" | "color" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "size" | "style" | "textAlign" | "textTransform" | ("autoCapitalize" | "autoCorrect" | "spellCheck")> & {
|
|
155
|
+
fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
|
|
156
|
+
fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
|
|
157
|
+
fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
|
|
158
|
+
fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
|
|
159
|
+
letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
|
|
160
|
+
textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
|
|
161
|
+
textTransform?: import("@tamagui/web").FlatStyleValue<"capitalize" | "lowercase" | "none" | "unset" | "uppercase" | undefined>;
|
|
162
|
+
color?: import("@tamagui/web").ColorStyleProp;
|
|
163
|
+
} & Omit<import("./InputNativeProps").InputNativeProps, "autoCapitalize" | "autoCorrect" | "spellCheck"> & {
|
|
164
|
+
autoCorrect?: boolean | 'on' | 'off';
|
|
165
|
+
autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | 'off' | 'on';
|
|
166
|
+
spellCheck?: boolean;
|
|
167
|
+
rows?: number;
|
|
168
|
+
placeholderTextColor?: import("@tamagui/web").ColorTokens;
|
|
169
|
+
selectionColor?: import("@tamagui/web").ColorTokens;
|
|
170
|
+
onChangeText?: (text: string) => void;
|
|
171
|
+
onSubmitEditing?: (e: {
|
|
172
|
+
nativeEvent: {
|
|
173
|
+
text: string;
|
|
174
|
+
};
|
|
175
|
+
}) => void;
|
|
176
|
+
selection?: {
|
|
177
|
+
start: number;
|
|
178
|
+
end?: number;
|
|
179
|
+
};
|
|
180
|
+
onSelectionChange?: (e: {
|
|
181
|
+
nativeEvent: {
|
|
182
|
+
selection: {
|
|
183
|
+
start: number;
|
|
184
|
+
end: number;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
}) => void;
|
|
188
|
+
textContentType?: import("./types").InputTextContentType;
|
|
189
|
+
}, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
|
|
190
|
+
readonly placeholderTextColor?: import("@tamagui/web").Color | undefined;
|
|
191
|
+
readonly selectionColor?: import("@tamagui/web").Color | undefined;
|
|
192
|
+
readonly cursorColor?: import("@tamagui/web").Color | undefined;
|
|
193
|
+
readonly selectionHandleColor?: import("@tamagui/web").Color | undefined;
|
|
194
|
+
readonly underlineColorAndroid?: import("@tamagui/web").Color | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
disabled?: boolean | undefined;
|
|
197
|
+
size?: false | import("@tamagui/web").Size | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
readonly isInput: true;
|
|
200
|
+
readonly accept: {
|
|
201
|
+
readonly placeholderTextColor: 'color';
|
|
202
|
+
readonly selectionColor: 'color';
|
|
203
|
+
readonly cursorColor: 'color';
|
|
204
|
+
readonly selectionHandleColor: 'color';
|
|
205
|
+
readonly underlineColorAndroid: 'color';
|
|
206
|
+
};
|
|
207
|
+
readonly validStyles: {
|
|
208
|
+
[key: string]: boolean;
|
|
209
|
+
} | undefined;
|
|
210
|
+
} & import("@tamagui/web").StaticConfigPublic];
|
|
211
|
+
};
|
|
64
212
|
export type TextAreaProps = GetProps<typeof TextArea>;
|
|
65
213
|
//# sourceMappingURL=TextArea.d.ts.map
|
package/types/TextArea.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAA;AAIpD;;;GAGG;AACH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAA;AAIpD;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBnB,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
package/types/shared.d.ts
CHANGED
|
@@ -1,122 +1,37 @@
|
|
|
1
1
|
import type { SizeVariantSpreadFunction } from '@tamagui/core';
|
|
2
2
|
export declare const defaultStyles: {
|
|
3
|
-
readonly
|
|
4
|
-
readonly backgroundColor: "$background";
|
|
5
|
-
readonly minWidth: 0;
|
|
6
|
-
readonly hoverStyle: {
|
|
7
|
-
readonly borderColor: "$borderColorHover";
|
|
8
|
-
};
|
|
9
|
-
readonly focusStyle: {
|
|
10
|
-
readonly borderColor: "$borderColorFocus";
|
|
11
|
-
};
|
|
12
|
-
readonly focusVisibleStyle: {
|
|
13
|
-
readonly outlineColor: "$outlineColor";
|
|
14
|
-
readonly outlineWidth: 2;
|
|
15
|
-
readonly outlineStyle: "solid";
|
|
16
|
-
};
|
|
17
|
-
readonly tabIndex: 0;
|
|
18
|
-
readonly size: "$true";
|
|
19
|
-
readonly fontFamily: "$body";
|
|
20
|
-
readonly borderWidth: 1;
|
|
3
|
+
readonly size: true;
|
|
21
4
|
readonly outlineWidth: 0;
|
|
22
|
-
readonly
|
|
23
|
-
} | {
|
|
24
|
-
readonly borderColor: "$borderColor";
|
|
25
|
-
readonly backgroundColor: "$background";
|
|
5
|
+
readonly tabIndex: 0;
|
|
26
6
|
readonly minWidth: 0;
|
|
27
|
-
readonly hoverStyle: {
|
|
28
|
-
readonly borderColor: "$borderColorHover";
|
|
29
|
-
};
|
|
30
|
-
readonly focusStyle: {
|
|
31
|
-
readonly borderColor: "$borderColorFocus";
|
|
32
|
-
};
|
|
33
|
-
readonly focusVisibleStyle: {
|
|
34
|
-
readonly outlineColor: "$outlineColor";
|
|
35
|
-
readonly outlineWidth: 2;
|
|
36
|
-
readonly outlineStyle: "solid";
|
|
37
|
-
};
|
|
38
|
-
readonly focusable: boolean;
|
|
39
|
-
readonly size: "$true";
|
|
40
|
-
readonly fontFamily: "$body";
|
|
41
|
-
readonly borderWidth: 1;
|
|
42
|
-
readonly outlineWidth: 0;
|
|
43
|
-
readonly color: "$color";
|
|
44
7
|
};
|
|
45
8
|
export declare const inputSizeVariant: SizeVariantSpreadFunction<any>;
|
|
46
9
|
export declare const textAreaSizeVariant: SizeVariantSpreadFunction<any>;
|
|
47
10
|
export declare const INPUT_NAME = "Input";
|
|
48
11
|
export declare const styledBody: readonly [{
|
|
12
|
+
readonly size: true;
|
|
13
|
+
readonly outlineWidth: 0;
|
|
14
|
+
readonly tabIndex: 0;
|
|
15
|
+
readonly minWidth: 0;
|
|
49
16
|
readonly name: "Input";
|
|
50
|
-
readonly render:
|
|
17
|
+
readonly render: 'input';
|
|
51
18
|
readonly variants: {
|
|
52
|
-
readonly unstyled: {
|
|
53
|
-
readonly true: {
|
|
54
|
-
readonly outlineWidth: 0;
|
|
55
|
-
readonly borderWidth: 0;
|
|
56
|
-
readonly backgroundColor: "transparent";
|
|
57
|
-
};
|
|
58
|
-
readonly false: {
|
|
59
|
-
readonly borderColor: "$borderColor";
|
|
60
|
-
readonly backgroundColor: "$background";
|
|
61
|
-
readonly minWidth: 0;
|
|
62
|
-
readonly hoverStyle: {
|
|
63
|
-
readonly borderColor: "$borderColorHover";
|
|
64
|
-
};
|
|
65
|
-
readonly focusStyle: {
|
|
66
|
-
readonly borderColor: "$borderColorFocus";
|
|
67
|
-
};
|
|
68
|
-
readonly focusVisibleStyle: {
|
|
69
|
-
readonly outlineColor: "$outlineColor";
|
|
70
|
-
readonly outlineWidth: 2;
|
|
71
|
-
readonly outlineStyle: "solid";
|
|
72
|
-
};
|
|
73
|
-
readonly tabIndex: 0;
|
|
74
|
-
readonly size: "$true";
|
|
75
|
-
readonly fontFamily: "$body";
|
|
76
|
-
readonly borderWidth: 1;
|
|
77
|
-
readonly outlineWidth: 0;
|
|
78
|
-
readonly color: "$color";
|
|
79
|
-
} | {
|
|
80
|
-
readonly borderColor: "$borderColor";
|
|
81
|
-
readonly backgroundColor: "$background";
|
|
82
|
-
readonly minWidth: 0;
|
|
83
|
-
readonly hoverStyle: {
|
|
84
|
-
readonly borderColor: "$borderColorHover";
|
|
85
|
-
};
|
|
86
|
-
readonly focusStyle: {
|
|
87
|
-
readonly borderColor: "$borderColorFocus";
|
|
88
|
-
};
|
|
89
|
-
readonly focusVisibleStyle: {
|
|
90
|
-
readonly outlineColor: "$outlineColor";
|
|
91
|
-
readonly outlineWidth: 2;
|
|
92
|
-
readonly outlineStyle: "solid";
|
|
93
|
-
};
|
|
94
|
-
readonly focusable: boolean;
|
|
95
|
-
readonly size: "$true";
|
|
96
|
-
readonly fontFamily: "$body";
|
|
97
|
-
readonly borderWidth: 1;
|
|
98
|
-
readonly outlineWidth: 0;
|
|
99
|
-
readonly color: "$color";
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
19
|
readonly size: {
|
|
103
|
-
readonly
|
|
20
|
+
readonly true: SizeVariantSpreadFunction<any>;
|
|
21
|
+
readonly Size: SizeVariantSpreadFunction<any>;
|
|
104
22
|
};
|
|
105
23
|
readonly disabled: {
|
|
106
24
|
readonly true: {};
|
|
107
25
|
};
|
|
108
26
|
};
|
|
109
|
-
readonly defaultVariants: {
|
|
110
|
-
readonly unstyled: boolean;
|
|
111
|
-
};
|
|
112
27
|
}, {
|
|
113
28
|
readonly isInput: true;
|
|
114
29
|
readonly accept: {
|
|
115
|
-
readonly placeholderTextColor:
|
|
116
|
-
readonly selectionColor:
|
|
117
|
-
readonly cursorColor:
|
|
118
|
-
readonly selectionHandleColor:
|
|
119
|
-
readonly underlineColorAndroid:
|
|
30
|
+
readonly placeholderTextColor: 'color';
|
|
31
|
+
readonly selectionColor: 'color';
|
|
32
|
+
readonly cursorColor: 'color';
|
|
33
|
+
readonly selectionHandleColor: 'color';
|
|
34
|
+
readonly underlineColorAndroid: 'color';
|
|
120
35
|
};
|
|
121
36
|
readonly validStyles: {
|
|
122
37
|
[key: string]: boolean;
|
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,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAuB,MAAM,eAAe,CAAA;AAUnF,eAAO,MAAM,aAAa;aACxB,IAAI;aACJ,YAAY,EAAE,CAAC;aACf,QAAQ,EAAE,CAAC;aAGX,QAAQ,EAAE,CAAC;CACH,CAAA;AA+CV,eAAO,MAAM,gBAAgB,EAAE,yBAAyB,CAAC,GAAG,CAsB3D,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,yBAAyB,CAAC,GAAG,CAqB9D,CAAA;AACD,eAAO,MAAM,UAAU,UAAU,CAAA;AAEjC,eAAO,MAAM,UAAU;;2BApGP,CAAC;uBACL,CAAC;uBAGD,CAAC;;qBAmGD,OAAO;;iBAGb,IAAI;qBACF,IAAI;qBACJ,IAAI;;iBAGN,QAAQ;qBACN,IAAI;;;;;;iBAQN,oBAAoB,EAAE,OAAO;iBAC7B,cAAc,EAAE,OAAO;iBACvB,WAAW,EAAE,OAAO;iBACpB,oBAAoB,EAAE,OAAO;iBAC7B,qBAAqB,EAAE,OAAO;;;;;EAK1B,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { TextInput } from 'react-native';
|
|
|
3
3
|
import type { InputNativeProps } from './InputNativeProps';
|
|
4
4
|
/**
|
|
5
5
|
* Extra props that Input adds on top of the base styled component.
|
|
6
|
-
*
|
|
6
|
+
* Annotated on the createStyledHOC render fn - the StyledHOCMergedProps merge
|
|
7
7
|
* (`Omit<BaseProps, keyof CustomProps> & CustomProps`) automatically overrides
|
|
8
8
|
* base event handlers (HTMLDivElement) with these (HTMLInputElement).
|
|
9
9
|
* Consumer-facing InputProps is derived via GetProps<typeof Input>.
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
var import_vitest = require("vitest");
|
|
2
|
-
(0, import_vitest.describe)("Input event handler types", () => {
|
|
3
|
-
(0, import_vitest.test)("onChange event uses HTMLInputElement", () => {
|
|
4
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
5
|
-
});
|
|
6
|
-
(0, import_vitest.test)("onFocus event uses HTMLInputElement", () => {
|
|
7
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
8
|
-
});
|
|
9
|
-
(0, import_vitest.test)("onBlur event uses HTMLInputElement", () => {
|
|
10
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
11
|
-
});
|
|
12
|
-
(0, import_vitest.test)("onKeyDown event uses HTMLInputElement", () => {
|
|
13
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
14
|
-
});
|
|
15
|
-
(0, import_vitest.test)("onClick event uses HTMLInputElement", () => {
|
|
16
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
17
|
-
});
|
|
18
|
-
(0, import_vitest.test)("onChange event is NOT typed with HTMLDivElement", () => {
|
|
19
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
(0, import_vitest.describe)("Input HTML props", () => {
|
|
23
|
-
(0, import_vitest.test)("accepts type prop", () => {
|
|
24
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("type");
|
|
25
|
-
});
|
|
26
|
-
(0, import_vitest.test)("accepts placeholder prop", () => {
|
|
27
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
|
|
28
|
-
});
|
|
29
|
-
(0, import_vitest.test)("accepts value prop", () => {
|
|
30
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
31
|
-
});
|
|
32
|
-
(0, import_vitest.test)("accepts defaultValue prop", () => {
|
|
33
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("defaultValue");
|
|
34
|
-
});
|
|
35
|
-
(0, import_vitest.test)("accepts maxLength prop", () => {
|
|
36
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
|
|
37
|
-
});
|
|
38
|
-
(0, import_vitest.test)("accepts pattern prop", () => {
|
|
39
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("pattern");
|
|
40
|
-
});
|
|
41
|
-
(0, import_vitest.test)("accepts required prop", () => {
|
|
42
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("required");
|
|
43
|
-
});
|
|
44
|
-
(0, import_vitest.test)("accepts readOnly prop", () => {
|
|
45
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("readOnly");
|
|
46
|
-
});
|
|
47
|
-
(0, import_vitest.test)("accepts autoComplete prop", () => {
|
|
48
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("autoComplete");
|
|
49
|
-
});
|
|
50
|
-
(0, import_vitest.test)("accepts name prop", () => {
|
|
51
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("name");
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
(0, import_vitest.describe)("Input style props", () => {
|
|
55
|
-
(0, import_vitest.test)("accepts padding style prop", () => {
|
|
56
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding");
|
|
57
|
-
});
|
|
58
|
-
(0, import_vitest.test)("accepts backgroundColor style prop", () => {
|
|
59
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
|
|
60
|
-
});
|
|
61
|
-
(0, import_vitest.test)("accepts borderRadius style prop", () => {
|
|
62
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
|
|
63
|
-
});
|
|
64
|
-
(0, import_vitest.test)("accepts text style props", () => {
|
|
65
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
|
|
66
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight");
|
|
67
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("color");
|
|
68
|
-
});
|
|
69
|
-
(0, import_vitest.test)("accepts textAlign longhand", () => {
|
|
70
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
71
|
-
});
|
|
72
|
-
(0, import_vitest.test)("accepts size variant", () => {
|
|
73
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("size");
|
|
74
|
-
});
|
|
75
|
-
(0, import_vitest.test)("accepts unstyled variant", () => {
|
|
76
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("unstyled");
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
(0, import_vitest.describe)("Input cross-platform props", () => {
|
|
80
|
-
(0, import_vitest.test)("autoCorrect accepts boolean and string", () => {
|
|
81
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
82
|
-
});
|
|
83
|
-
(0, import_vitest.test)("autoCapitalize accepts native and web values", () => {
|
|
84
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
85
|
-
});
|
|
86
|
-
(0, import_vitest.test)("accepts onChangeText callback", () => {
|
|
87
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onChangeText");
|
|
88
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
89
|
-
});
|
|
90
|
-
(0, import_vitest.test)("accepts onSubmitEditing callback", () => {
|
|
91
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onSubmitEditing");
|
|
92
|
-
});
|
|
93
|
-
(0, import_vitest.test)("accepts placeholderTextColor", () => {
|
|
94
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholderTextColor");
|
|
95
|
-
});
|
|
96
|
-
(0, import_vitest.test)("accepts selection prop", () => {
|
|
97
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("selection");
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
(0, import_vitest.describe)("InputRef type", () => {
|
|
101
|
-
(0, import_vitest.test)("InputRef accepts TextInput", () => {
|
|
102
|
-
const _ref = {};
|
|
103
|
-
});
|
|
104
|
-
(0, import_vitest.test)("InputRef rejects plain HTMLDivElement", () => {
|
|
105
|
-
const _ref = {};
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
(0, import_vitest.describe)("TextArea types", () => {
|
|
109
|
-
(0, import_vitest.test)("TextArea has rows prop", () => {
|
|
110
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("rows");
|
|
111
|
-
});
|
|
112
|
-
(0, import_vitest.test)("TextArea accepts style props", () => {
|
|
113
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding");
|
|
114
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
|
|
115
|
-
});
|
|
116
|
-
(0, import_vitest.test)("TextArea accepts HTML input props", () => {
|
|
117
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
|
|
118
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
(0, import_vitest.describe)("InputProps derivation", () => {
|
|
122
|
-
(0, import_vitest.test)("InputProps equals GetProps<typeof Input>", () => {
|
|
123
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
124
|
-
});
|
|
125
|
-
(0, import_vitest.test)("TextAreaProps equals GetProps<typeof TextArea>", () => {
|
|
126
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
127
|
-
});
|
|
128
|
-
});
|