@tamagui/input 2.7.7 → 3.0.0-beta.1091.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.
Files changed (169) hide show
  1. package/dist/cjs/Input.cjs +72 -163
  2. package/dist/cjs/Input.native.cjs +208 -0
  3. package/dist/cjs/Input.native.js +186 -283
  4. package/dist/cjs/Input.native.js.map +1 -1
  5. package/dist/cjs/InputNativeProps.cjs +9 -11
  6. package/dist/cjs/InputNativeProps.native.cjs +18 -0
  7. package/dist/cjs/InputNativeProps.native.js +9 -10
  8. package/dist/cjs/InputNativeProps.native.js.map +1 -1
  9. package/dist/cjs/TextArea.cjs +23 -39
  10. package/dist/cjs/TextArea.native.cjs +38 -0
  11. package/dist/cjs/TextArea.native.js +23 -38
  12. package/dist/cjs/TextArea.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +15 -17
  14. package/dist/cjs/index.native.cjs +32 -0
  15. package/dist/cjs/index.native.js +15 -16
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/cjs/shared.cjs +74 -124
  18. package/dist/cjs/shared.native.cjs +101 -0
  19. package/dist/cjs/shared.native.js +80 -129
  20. package/dist/cjs/shared.native.js.map +1 -1
  21. package/dist/cjs/types.cjs +9 -11
  22. package/dist/cjs/types.native.cjs +18 -0
  23. package/dist/cjs/types.native.js +9 -10
  24. package/dist/cjs/types.native.js.map +1 -1
  25. package/dist/esm/Input.mjs +59 -139
  26. package/dist/esm/Input.mjs.map +1 -1
  27. package/dist/esm/Input.native.js +174 -261
  28. package/dist/esm/Input.native.js.map +1 -1
  29. package/dist/esm/InputNativeProps.mjs +0 -2
  30. package/dist/esm/InputNativeProps.native.js +0 -2
  31. package/dist/esm/TextArea.mjs +12 -22
  32. package/dist/esm/TextArea.mjs.map +1 -1
  33. package/dist/esm/TextArea.native.js +12 -22
  34. package/dist/esm/TextArea.native.js.map +1 -1
  35. package/dist/esm/index.js +6 -4
  36. package/dist/esm/index.mjs +6 -4
  37. package/dist/esm/index.native.js +6 -4
  38. package/dist/esm/shared.mjs +59 -107
  39. package/dist/esm/shared.mjs.map +1 -1
  40. package/dist/esm/shared.native.js +64 -112
  41. package/dist/esm/shared.native.js.map +1 -1
  42. package/dist/esm/types.mjs +0 -2
  43. package/dist/esm/types.native.js +0 -2
  44. package/dist/jsx/Input.mjs +59 -139
  45. package/dist/jsx/Input.mjs.map +1 -1
  46. package/dist/jsx/Input.native.cjs +208 -0
  47. package/dist/jsx/Input.native.js +186 -283
  48. package/dist/jsx/Input.native.js.map +1 -1
  49. package/dist/jsx/InputNativeProps.mjs +0 -2
  50. package/dist/jsx/InputNativeProps.native.cjs +18 -0
  51. package/dist/jsx/InputNativeProps.native.js +9 -10
  52. package/dist/jsx/InputNativeProps.native.js.map +1 -1
  53. package/dist/jsx/TextArea.mjs +12 -22
  54. package/dist/jsx/TextArea.mjs.map +1 -1
  55. package/dist/jsx/TextArea.native.cjs +38 -0
  56. package/dist/jsx/TextArea.native.js +23 -38
  57. package/dist/jsx/TextArea.native.js.map +1 -1
  58. package/dist/jsx/index.js +6 -4
  59. package/dist/jsx/index.mjs +6 -4
  60. package/dist/jsx/index.native.cjs +32 -0
  61. package/dist/jsx/index.native.js +15 -16
  62. package/dist/jsx/index.native.js.map +1 -1
  63. package/dist/jsx/shared.mjs +59 -107
  64. package/dist/jsx/shared.mjs.map +1 -1
  65. package/dist/jsx/shared.native.cjs +101 -0
  66. package/dist/jsx/shared.native.js +80 -129
  67. package/dist/jsx/shared.native.js.map +1 -1
  68. package/dist/jsx/types.mjs +0 -2
  69. package/dist/jsx/types.native.cjs +18 -0
  70. package/dist/jsx/types.native.js +9 -10
  71. package/dist/jsx/types.native.js.map +1 -1
  72. package/package.json +17 -17
  73. package/src/Input.native.tsx +267 -242
  74. package/src/Input.tsx +150 -154
  75. package/src/TextArea.tsx +9 -18
  76. package/src/shared.tsx +56 -109
  77. package/src/types.ts +2 -2
  78. package/types/Input.d.ts +32 -50
  79. package/types/Input.d.ts.map +1 -1
  80. package/types/Input.native.d.ts +32 -50
  81. package/types/Input.native.d.ts.map +1 -1
  82. package/types/TextArea.d.ts +16 -34
  83. package/types/TextArea.d.ts.map +1 -1
  84. package/types/shared.d.ts +38 -109
  85. package/types/shared.d.ts.map +1 -1
  86. package/types/types.d.ts +2 -2
  87. package/types/types.d.ts.map +1 -1
  88. package/dist/cjs/inputTypes.test-d.cjs +0 -128
  89. package/dist/cjs/inputTypes.test-d.native.js +0 -131
  90. package/dist/cjs/inputTypes.test-d.native.js.map +0 -1
  91. package/dist/cjs/v1/Input.cjs +0 -200
  92. package/dist/cjs/v1/Input.native.js +0 -183
  93. package/dist/cjs/v1/Input.native.js.map +0 -1
  94. package/dist/cjs/v1/TextArea.cjs +0 -52
  95. package/dist/cjs/v1/TextArea.native.js +0 -55
  96. package/dist/cjs/v1/TextArea.native.js.map +0 -1
  97. package/dist/cjs/v1/index.cjs +0 -21
  98. package/dist/cjs/v1/index.native.js +0 -24
  99. package/dist/cjs/v1/index.native.js.map +0 -1
  100. package/dist/cjs/v1/types.cjs +0 -18
  101. package/dist/cjs/v1/types.native.js +0 -21
  102. package/dist/cjs/v1/types.native.js.map +0 -1
  103. package/dist/esm/InputNativeProps.mjs.map +0 -1
  104. package/dist/esm/InputNativeProps.native.js.map +0 -1
  105. package/dist/esm/index.js.map +0 -1
  106. package/dist/esm/index.mjs.map +0 -1
  107. package/dist/esm/index.native.js.map +0 -1
  108. package/dist/esm/inputTypes.test-d.mjs +0 -129
  109. package/dist/esm/inputTypes.test-d.mjs.map +0 -1
  110. package/dist/esm/inputTypes.test-d.native.js +0 -129
  111. package/dist/esm/inputTypes.test-d.native.js.map +0 -1
  112. package/dist/esm/types.mjs.map +0 -1
  113. package/dist/esm/types.native.js.map +0 -1
  114. package/dist/esm/v1/Input.mjs +0 -164
  115. package/dist/esm/v1/Input.mjs.map +0 -1
  116. package/dist/esm/v1/Input.native.js +0 -144
  117. package/dist/esm/v1/Input.native.js.map +0 -1
  118. package/dist/esm/v1/TextArea.mjs +0 -27
  119. package/dist/esm/v1/TextArea.mjs.map +0 -1
  120. package/dist/esm/v1/TextArea.native.js +0 -27
  121. package/dist/esm/v1/TextArea.native.js.map +0 -1
  122. package/dist/esm/v1/index.mjs +0 -3
  123. package/dist/esm/v1/index.mjs.map +0 -1
  124. package/dist/esm/v1/index.native.js +0 -3
  125. package/dist/esm/v1/index.native.js.map +0 -1
  126. package/dist/esm/v1/types.mjs +0 -2
  127. package/dist/esm/v1/types.mjs.map +0 -1
  128. package/dist/esm/v1/types.native.js +0 -2
  129. package/dist/esm/v1/types.native.js.map +0 -1
  130. package/dist/jsx/InputNativeProps.mjs.map +0 -1
  131. package/dist/jsx/index.js.map +0 -1
  132. package/dist/jsx/index.mjs.map +0 -1
  133. package/dist/jsx/inputTypes.test-d.mjs +0 -129
  134. package/dist/jsx/inputTypes.test-d.mjs.map +0 -1
  135. package/dist/jsx/inputTypes.test-d.native.js +0 -131
  136. package/dist/jsx/inputTypes.test-d.native.js.map +0 -1
  137. package/dist/jsx/types.mjs.map +0 -1
  138. package/dist/jsx/v1/Input.mjs +0 -164
  139. package/dist/jsx/v1/Input.mjs.map +0 -1
  140. package/dist/jsx/v1/Input.native.js +0 -183
  141. package/dist/jsx/v1/Input.native.js.map +0 -1
  142. package/dist/jsx/v1/TextArea.mjs +0 -27
  143. package/dist/jsx/v1/TextArea.mjs.map +0 -1
  144. package/dist/jsx/v1/TextArea.native.js +0 -55
  145. package/dist/jsx/v1/TextArea.native.js.map +0 -1
  146. package/dist/jsx/v1/index.mjs +0 -3
  147. package/dist/jsx/v1/index.mjs.map +0 -1
  148. package/dist/jsx/v1/index.native.js +0 -24
  149. package/dist/jsx/v1/index.native.js.map +0 -1
  150. package/dist/jsx/v1/types.mjs +0 -2
  151. package/dist/jsx/v1/types.mjs.map +0 -1
  152. package/dist/jsx/v1/types.native.js +0 -21
  153. package/dist/jsx/v1/types.native.js.map +0 -1
  154. package/src/inputTypes.test-d.ts +0 -245
  155. package/src/v1/Input.native.tsx +0 -153
  156. package/src/v1/Input.tsx +0 -190
  157. package/src/v1/TextArea.tsx +0 -35
  158. package/src/v1/index.ts +0 -3
  159. package/src/v1/types.ts +0 -65
  160. package/types/v1/Input.d.ts +0 -64
  161. package/types/v1/Input.d.ts.map +0 -1
  162. package/types/v1/Input.native.d.ts +0 -63
  163. package/types/v1/Input.native.d.ts.map +0 -1
  164. package/types/v1/TextArea.d.ts +0 -41
  165. package/types/v1/TextArea.d.ts.map +0 -1
  166. package/types/v1/index.d.ts +0 -4
  167. package/types/v1/index.d.ts.map +0 -1
  168. package/types/v1/types.d.ts +0 -39
  169. package/types/v1/types.d.ts.map +0 -1
@@ -1,20 +1,19 @@
1
1
  import { type GetProps } from '@tamagui/web';
2
- /**
3
- * A web-aligned textarea component (multi-line input).
4
- * @see — Docs https://tamagui.dev/ui/inputs#textarea
5
- */
6
- export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className" | ("autoCapitalize" | "autoCorrect" | "spellCheck")> & {
7
- color?: "unset" | import("react-native").OpaqueColorValue | import("@tamagui/web").GetThemeValueForKey<"color"> | undefined;
8
- fontFamily?: "unset" | import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined;
9
- fontSize?: "unset" | import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined;
10
- fontStyle?: "unset" | "normal" | "italic" | undefined;
11
- fontWeight?: "unset" | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | undefined;
12
- letterSpacing?: "unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined;
13
- textAlign?: "auto" | "unset" | "left" | "right" | "center" | "justify" | undefined;
14
- textTransform?: "unset" | "none" | "capitalize" | "uppercase" | "lowercase" | undefined;
2
+ export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase, {
3
+ disabled?: boolean | undefined;
4
+ size?: any;
5
+ }>, "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")> & {
6
+ fontFamily?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontFamily"> | undefined>;
7
+ fontSize?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"fontSize"> | undefined>;
8
+ fontStyle?: import("@tamagui/web").FlatStyleValue<"italic" | "normal" | "unset" | undefined>;
9
+ fontWeight?: import("@tamagui/web").FlatStyleValue<"unset" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | import("@tamagui/web").GetThemeValueForKey<"fontWeight"> | undefined>;
10
+ letterSpacing?: import("@tamagui/web").FlatStyleValue<"unset" | import("@tamagui/web").GetThemeValueForKey<"letterSpacing"> | undefined>;
11
+ textAlign?: import("@tamagui/web").FlatStyleValue<"auto" | "center" | "justify" | "left" | "right" | "unset" | undefined>;
12
+ textTransform?: import("@tamagui/web").FlatStyleValue<"capitalize" | "lowercase" | "none" | "unset" | "uppercase" | undefined>;
13
+ color?: import("@tamagui/web").FlatStyleValue<import("@tamagui/web").GetThemeValueForKey<"color"> | undefined>;
15
14
  } & Omit<import("./InputNativeProps").InputNativeProps, "autoCapitalize" | "autoCorrect" | "spellCheck"> & {
16
- autoCorrect?: boolean | "on" | "off";
17
- autoCapitalize?: "none" | "sentences" | "words" | "characters" | "off" | "on";
15
+ autoCorrect?: boolean | 'on' | 'off';
16
+ autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters' | 'off' | 'on';
18
17
  spellCheck?: boolean;
19
18
  rows?: number;
20
19
  placeholderTextColor?: import("@tamagui/web").ColorTokens;
@@ -38,28 +37,11 @@ export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@
38
37
  };
39
38
  }) => void;
40
39
  textContentType?: import("./types").InputTextContentType;
41
- }, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase & {
42
- readonly placeholderTextColor?: import("@tamagui/web").ColorTokens | undefined;
43
- readonly selectionColor?: import("@tamagui/web").ColorTokens | undefined;
44
- readonly cursorColor?: import("@tamagui/web").ColorTokens | undefined;
45
- readonly selectionHandleColor?: import("@tamagui/web").ColorTokens | undefined;
46
- readonly underlineColorAndroid?: import("@tamagui/web").ColorTokens | undefined;
47
- }, {
48
- size?: import("@tamagui/web").SizeTokens | undefined;
40
+ }, import("@tamagui/web").StackStyleBase & import("@tamagui/web").TextStylePropsBase, {
49
41
  disabled?: boolean | undefined;
50
- unstyled?: boolean | undefined;
42
+ size?: any;
51
43
  }, {
52
44
  readonly isInput: true;
53
- readonly accept: {
54
- readonly placeholderTextColor: "color";
55
- readonly selectionColor: "color";
56
- readonly cursorColor: "color";
57
- readonly selectionHandleColor: "color";
58
- readonly underlineColorAndroid: "color";
59
- };
60
- readonly validStyles: {
61
- [key: string]: boolean;
62
- } | undefined;
63
45
  } & import("@tamagui/web").StaticConfigPublic>;
64
46
  export type TextAreaProps = GetProps<typeof TextArea>;
65
47
  //# sourceMappingURL=TextArea.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;WA4BslF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAH1mF,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAU,MAAM,cAAc,CAAA;AAwBpD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAA6C,CAAA;AAElE,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA"}
package/types/shared.d.ts CHANGED
@@ -1,125 +1,54 @@
1
- import type { SizeVariantSpreadFunction } from '@tamagui/core';
2
1
  export declare const defaultStyles: {
3
- readonly borderColor: "$borderColor";
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;
2
+ readonly size: true;
21
3
  readonly outlineWidth: 0;
22
- readonly color: "$color";
23
- } | {
24
- readonly borderColor: "$borderColor";
25
- readonly backgroundColor: "$background";
4
+ readonly tabIndex: 0;
26
5
  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
6
  };
45
- export declare const inputSizeVariant: SizeVariantSpreadFunction<any>;
46
- export declare const textAreaSizeVariant: SizeVariantSpreadFunction<any>;
7
+ export declare const inputSizeVariant: import("@tamagui/web/types/types").StyledDynamicFn<any, Record<string, any>>;
8
+ export declare const textAreaSizeVariant: import("@tamagui/web/types/types").StyledDynamicFn<any, Record<string, any>>;
9
+ export declare const resolveTextAreaSize: (props: Record<string, any>, env: Parameters<typeof textAreaSizeVariant>[1]) => {
10
+ borderRadius: any;
11
+ color: any;
12
+ fontFamily: any;
13
+ fontSize: any;
14
+ fontStyle: any;
15
+ fontWeight: any;
16
+ letterSpacing: any;
17
+ lineHeight: any;
18
+ textTransform: any;
19
+ paddingVertical: any;
20
+ paddingHorizontal: any;
21
+ height: any;
22
+ };
23
+ export declare const resolveMultilineInputSize: (props: Record<string, any>, env: Parameters<typeof textAreaSizeVariant>[1]) => {
24
+ borderRadius: any;
25
+ color: any;
26
+ fontFamily: any;
27
+ fontSize: any;
28
+ fontStyle: any;
29
+ fontWeight: any;
30
+ letterSpacing: any;
31
+ lineHeight: any;
32
+ textTransform: any;
33
+ paddingVertical: any;
34
+ paddingHorizontal: any;
35
+ height: any;
36
+ } | undefined;
47
37
  export declare const INPUT_NAME = "Input";
48
38
  export declare const styledBody: readonly [{
39
+ readonly size: true;
40
+ readonly outlineWidth: 0;
41
+ readonly tabIndex: 0;
42
+ readonly minWidth: 0;
49
43
  readonly name: "Input";
50
- readonly render: "input";
44
+ readonly render: 'input';
51
45
  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
- readonly size: {
103
- readonly '...size': SizeVariantSpreadFunction<any>;
104
- };
46
+ readonly size: import("@tamagui/web/types/types").StyledDynamicFn<any, Record<string, any>>;
105
47
  readonly disabled: {
106
48
  readonly true: {};
107
49
  };
108
50
  };
109
- readonly defaultVariants: {
110
- readonly unstyled: boolean;
111
- };
112
51
  }, {
113
52
  readonly isInput: true;
114
- readonly accept: {
115
- readonly placeholderTextColor: "color";
116
- readonly selectionColor: "color";
117
- readonly cursorColor: "color";
118
- readonly selectionHandleColor: "color";
119
- readonly underlineColorAndroid: "color";
120
- };
121
- readonly validStyles: {
122
- [key: string]: boolean;
123
- } | undefined;
124
53
  }];
125
54
  //# sourceMappingURL=shared.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCb,CAAA"}
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.tsx"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa;aACxB,IAAI;aACJ,YAAY,EAAE,CAAC;aACf,QAAQ,EAAE,CAAC;aAGX,QAAQ,EAAE,CAAC;CACH,CAAA;AAEV,eAAO,MAAM,gBAAgB,8EAc3B,CAAA;AAEF,eAAO,MAAM,mBAAmB,8EAK9B,CAAA;AAEF,eAAO,MAAM,mBAAmB,UACvB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OACrB,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;CAuB/C,CAAA;AAED,eAAO,MAAM,yBAAyB,UAC7B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OACrB,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;aAI/C,CAAA;AACD,eAAO,MAAM,UAAU,UAAU,CAAA;AAEjC,eAAO,MAAM,UAAU;;2BAlEP,CAAC;uBACL,CAAC;uBAGD,CAAC;;qBAiED,OAAO;;iBAGb,IAAI;iBAEJ,QAAQ;qBACN,IAAI;;;;;EAQF,CAAA"}
package/types/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { ColorTokens, TextStyle, TamaguiElementMethods } from '@tamagui/web';
2
- import type { TextInput } from 'react-native';
2
+ import type { TextInput } from '@tamagui/react-native-types';
3
3
  import type { InputNativeProps } from './InputNativeProps';
4
4
  /**
5
5
  * Extra props that Input adds on top of the base styled component.
6
- * Used with .styleable<InputExtraProps>() - the Styleable merge
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 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D;;;;;;GAMG;AAEH,KAAK,cAAc,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAIjE,KAAK,mBAAmB,GAAG,IAAI,CAC7B,SAAS,EACP,OAAO,GACP,YAAY,GACZ,UAAU,GACV,WAAW,GACX,YAAY,GACZ,eAAe,GACf,WAAW,GACX,eAAe,CAClB,CAAA;AAGD,KAAK,sBAAsB,GAAG,aAAa,GAAG,g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CAAA;IAEV;;;;OAIG;IACH,eAAe,CAAC,EAAE,oBAAoB,CAAA;CACvC,CAAA;AAEH;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,gBAAgB,GAAG,qBAAqB,CAAC,GAAG,SAAS,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,MAAM,GACN,KAAK,GACL,aAAa,GACb,qBAAqB,GACrB,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,sBAAsB,GACtB,2BAA2B,GAC3B,0BAA0B,GAC1B,wBAAwB,GACxB,gBAAgB,GAChB,gBAAgB,GAChB,qBAAqB,GACrB,sBAAsB,GACtB,sBAAsB,GACtB,cAAc,GACd,YAAY,GACZ,mBAAmB,GACnB,WAAW,GACX,UAAU,GACV,UAAU,GACV,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,kBAAkB,GAClB,YAAY,GACZ,oBAAoB,GACpB,oBAAoB,GACpB,aAAa,GACb,iBAAiB,GACjB,UAAU,GACV,UAAU,GACV,aAAa,GACb,aAAa,GACb,WAAW,GACX,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,aAAa,GACb,cAAc,GACd,UAAU,GACV,cAAc,GACd,wBAAwB,CAAA"}
@@ -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
- });
@@ -1,131 +0,0 @@
1
- "use strict";
2
-
3
- var import_vitest = require("vitest");
4
- (0, import_vitest.describe)("Input event handler types", function () {
5
- (0, import_vitest.test)("onChange event uses HTMLInputElement", function () {
6
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
7
- });
8
- (0, import_vitest.test)("onFocus event uses HTMLInputElement", function () {
9
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
10
- });
11
- (0, import_vitest.test)("onBlur event uses HTMLInputElement", function () {
12
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
13
- });
14
- (0, import_vitest.test)("onKeyDown event uses HTMLInputElement", function () {
15
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
16
- });
17
- (0, import_vitest.test)("onClick event uses HTMLInputElement", function () {
18
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
19
- });
20
- (0, import_vitest.test)("onChange event is NOT typed with HTMLDivElement", function () {
21
- (0, import_vitest.expectTypeOf)().toEqualTypeOf();
22
- });
23
- });
24
- (0, import_vitest.describe)("Input HTML props", function () {
25
- (0, import_vitest.test)("accepts type prop", function () {
26
- (0, import_vitest.expectTypeOf)().toHaveProperty("type");
27
- });
28
- (0, import_vitest.test)("accepts placeholder prop", function () {
29
- (0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
30
- });
31
- (0, import_vitest.test)("accepts value prop", function () {
32
- (0, import_vitest.expectTypeOf)().toHaveProperty("value");
33
- });
34
- (0, import_vitest.test)("accepts defaultValue prop", function () {
35
- (0, import_vitest.expectTypeOf)().toHaveProperty("defaultValue");
36
- });
37
- (0, import_vitest.test)("accepts maxLength prop", function () {
38
- (0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
39
- });
40
- (0, import_vitest.test)("accepts pattern prop", function () {
41
- (0, import_vitest.expectTypeOf)().toHaveProperty("pattern");
42
- });
43
- (0, import_vitest.test)("accepts required prop", function () {
44
- (0, import_vitest.expectTypeOf)().toHaveProperty("required");
45
- });
46
- (0, import_vitest.test)("accepts readOnly prop", function () {
47
- (0, import_vitest.expectTypeOf)().toHaveProperty("readOnly");
48
- });
49
- (0, import_vitest.test)("accepts autoComplete prop", function () {
50
- (0, import_vitest.expectTypeOf)().toHaveProperty("autoComplete");
51
- });
52
- (0, import_vitest.test)("accepts name prop", function () {
53
- (0, import_vitest.expectTypeOf)().toHaveProperty("name");
54
- });
55
- });
56
- (0, import_vitest.describe)("Input style props", function () {
57
- (0, import_vitest.test)("accepts padding style prop", function () {
58
- (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
59
- });
60
- (0, import_vitest.test)("accepts backgroundColor style prop", function () {
61
- (0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
62
- });
63
- (0, import_vitest.test)("accepts borderRadius style prop", function () {
64
- (0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
65
- });
66
- (0, import_vitest.test)("accepts text style props", function () {
67
- (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
68
- (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight");
69
- (0, import_vitest.expectTypeOf)().toHaveProperty("color");
70
- });
71
- (0, import_vitest.test)("accepts textAlign longhand", function () {
72
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
73
- });
74
- (0, import_vitest.test)("accepts size variant", function () {
75
- (0, import_vitest.expectTypeOf)().toHaveProperty("size");
76
- });
77
- (0, import_vitest.test)("accepts unstyled variant", function () {
78
- (0, import_vitest.expectTypeOf)().toHaveProperty("unstyled");
79
- });
80
- });
81
- (0, import_vitest.describe)("Input cross-platform props", function () {
82
- (0, import_vitest.test)("autoCorrect accepts boolean and string", function () {
83
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
84
- });
85
- (0, import_vitest.test)("autoCapitalize accepts native and web values", function () {
86
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
87
- });
88
- (0, import_vitest.test)("accepts onChangeText callback", function () {
89
- (0, import_vitest.expectTypeOf)().toHaveProperty("onChangeText");
90
- (0, import_vitest.expectTypeOf)().toMatchTypeOf();
91
- });
92
- (0, import_vitest.test)("accepts onSubmitEditing callback", function () {
93
- (0, import_vitest.expectTypeOf)().toHaveProperty("onSubmitEditing");
94
- });
95
- (0, import_vitest.test)("accepts placeholderTextColor", function () {
96
- (0, import_vitest.expectTypeOf)().toHaveProperty("placeholderTextColor");
97
- });
98
- (0, import_vitest.test)("accepts selection prop", function () {
99
- (0, import_vitest.expectTypeOf)().toHaveProperty("selection");
100
- });
101
- });
102
- (0, import_vitest.describe)("InputRef type", function () {
103
- (0, import_vitest.test)("InputRef accepts TextInput", function () {
104
- var _ref = {};
105
- });
106
- (0, import_vitest.test)("InputRef rejects plain HTMLDivElement", function () {
107
- var _ref = {};
108
- });
109
- });
110
- (0, import_vitest.describe)("TextArea types", function () {
111
- (0, import_vitest.test)("TextArea has rows prop", function () {
112
- (0, import_vitest.expectTypeOf)().toHaveProperty("rows");
113
- });
114
- (0, import_vitest.test)("TextArea accepts style props", function () {
115
- (0, import_vitest.expectTypeOf)().toHaveProperty("padding");
116
- (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
117
- });
118
- (0, import_vitest.test)("TextArea accepts HTML input props", function () {
119
- (0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
120
- (0, import_vitest.expectTypeOf)().toHaveProperty("value");
121
- });
122
- });
123
- (0, import_vitest.describe)("InputProps derivation", function () {
124
- (0, import_vitest.test)("InputProps equals GetProps<typeof Input>", function () {
125
- (0, import_vitest.expectTypeOf)().toEqualTypeOf();
126
- });
127
- (0, import_vitest.test)("TextAreaProps equals GetProps<typeof TextArea>", function () {
128
- (0, import_vitest.expectTypeOf)().toEqualTypeOf();
129
- });
130
- });
131
- //# sourceMappingURL=inputTypes.test-d.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["import_vitest","require","describe","test","expectTypeOf","toMatchTypeOf","toEqualTypeOf","toHaveProperty","_ref"],"sources":["../../src/inputTypes.test-d.ts"],"sourcesContent":[null],"mappings":"AAaA;;AAA6C,IAmB7CA,aAAA,GAAAC,OAAA,CAAS;AACP,IAAAD,aAAA,CAAAE,QAAK,2CAAwC;EAG3C,IAAAF,aAAA,CAAAG,IAAA,wCAAuE;IACxE,IAAAH,aAAA,CAAAI,YAAA,IAAAC,aAAA;EAED;EAGE,IAAAL,aAAA,CAAAG,IAAA,uCAAuE;IACxE,IAAAH,aAAA,CAAAI,YAAA,IAAAC,aAAA;EAED;EAGE,IAAAL,aAAA,CAAAG,IAAA,sCAAuE;IACxE,IAAAH,aAAA,CAAAI,YAAA,IAAAC,aAAA;EAED;EAGE,IAAAL,aAAA,CAAAG,IAAA,yCAAuE;IACxE,IAAAH,aAAA,CAAAI,YAAA,IAAAC,aAAA;EAED;EAGE,IAAAL,aAAA,CAAAG,IAAA,uCAAuE;IACxE,IAAAH,aAAA,CAAAI,YAAA,IAAAC,aAAA;EAED;EAKE,IAAAL,aAAA,CAAAG,IAAA,mDAA6D;IAC9D,IAAAH,aAAA,CAAAI,YAAA,IAAAE,aAAA;EACF;AAAA;AAOC,IAAAN,aAAA,CAAAE,QA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