@tamagui/input 2.0.0-1768263318220 → 2.0.0-1768263773228
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/package.json +13 -13
- package/src/types.ts +3 -2
- package/types/Input.d.ts +16 -16
- package/types/Input.d.ts.map +1 -1
- package/types/Input.native.d.ts +16 -16
- package/types/Input.native.d.ts.map +1 -1
- package/types/TextArea.d.ts +8 -8
- package/types/TextArea.d.ts.map +1 -1
- package/types/types.d.ts +2 -2
- package/types/types.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/input",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-1768263773228",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@tamagui/core": "2.0.0-
|
|
43
|
-
"@tamagui/focusable": "2.0.0-
|
|
44
|
-
"@tamagui/font-size": "2.0.0-
|
|
45
|
-
"@tamagui/get-button-sized": "2.0.0-
|
|
46
|
-
"@tamagui/get-font-sized": "2.0.0-
|
|
47
|
-
"@tamagui/get-token": "2.0.0-
|
|
48
|
-
"@tamagui/helpers": "2.0.0-
|
|
49
|
-
"@tamagui/helpers-tamagui": "2.0.0-
|
|
50
|
-
"@tamagui/stacks": "2.0.0-
|
|
51
|
-
"@tamagui/text": "2.0.0-
|
|
52
|
-
"@tamagui/web": "2.0.0-
|
|
42
|
+
"@tamagui/core": "2.0.0-1768263773228",
|
|
43
|
+
"@tamagui/focusable": "2.0.0-1768263773228",
|
|
44
|
+
"@tamagui/font-size": "2.0.0-1768263773228",
|
|
45
|
+
"@tamagui/get-button-sized": "2.0.0-1768263773228",
|
|
46
|
+
"@tamagui/get-font-sized": "2.0.0-1768263773228",
|
|
47
|
+
"@tamagui/get-token": "2.0.0-1768263773228",
|
|
48
|
+
"@tamagui/helpers": "2.0.0-1768263773228",
|
|
49
|
+
"@tamagui/helpers-tamagui": "2.0.0-1768263773228",
|
|
50
|
+
"@tamagui/stacks": "2.0.0-1768263773228",
|
|
51
|
+
"@tamagui/text": "2.0.0-1768263773228",
|
|
52
|
+
"@tamagui/web": "2.0.0-1768263773228"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@tamagui/build": "2.0.0-
|
|
55
|
+
"@tamagui/build": "2.0.0-1768263773228",
|
|
56
56
|
"react": "*",
|
|
57
57
|
"react-native": "0.81.5",
|
|
58
58
|
"vitest": "^4.0.4"
|
package/src/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorTokens, StackProps,
|
|
1
|
+
import type { ColorTokens, StackProps, TextStylePropsBase } from '@tamagui/web'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Web-aligned Input props
|
|
@@ -8,8 +8,9 @@ import type { ColorTokens, StackProps, TextProps } from '@tamagui/web'
|
|
|
8
8
|
type HTMLInputProps = React.InputHTMLAttributes<HTMLInputElement>
|
|
9
9
|
|
|
10
10
|
// Text style props supported by RN TextInput
|
|
11
|
+
// Using TextStylePropsBase (not TextProps) to avoid Pick issues with mapped types
|
|
11
12
|
type InputTextStyleProps = Pick<
|
|
12
|
-
|
|
13
|
+
TextStylePropsBase,
|
|
13
14
|
| 'color'
|
|
14
15
|
| 'fontFamily'
|
|
15
16
|
| 'fontSize'
|
package/types/Input.d.ts
CHANGED
|
@@ -8,14 +8,14 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
unstyled?: boolean | undefined;
|
|
10
10
|
}>, "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "rel" | "dir" | "selectionColor" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "list" | "max" | "min" | "form" | "slot" | "title" | "hidden" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "placeholderTextColor" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "keyboardAppearance" | "textContentType" | keyof import("@tamagui/core").StackNonStyleProps | "rows"> & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className"> & {
|
|
11
|
-
color?:
|
|
12
|
-
fontFamily?:
|
|
13
|
-
fontSize?:
|
|
14
|
-
fontStyle?: "
|
|
15
|
-
fontWeight?: "
|
|
16
|
-
letterSpacing?:
|
|
17
|
-
textAlign?: "auto" | "
|
|
18
|
-
textTransform?: "
|
|
11
|
+
color?: import("react-native").ColorValue | undefined;
|
|
12
|
+
fontFamily?: string | undefined | undefined;
|
|
13
|
+
fontSize?: number | undefined | undefined;
|
|
14
|
+
fontStyle?: "normal" | "italic" | undefined | undefined;
|
|
15
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
16
|
+
letterSpacing?: number | undefined | undefined;
|
|
17
|
+
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined | undefined;
|
|
18
|
+
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined | undefined;
|
|
19
19
|
} & {
|
|
20
20
|
rows?: number;
|
|
21
21
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
@@ -41,14 +41,14 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
41
41
|
keyboardAppearance?: "default" | "light" | "dark";
|
|
42
42
|
textContentType?: "none" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "name" | "namePrefix" | "nameSuffix" | "nickname" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "username" | "password" | "newPassword" | "oneTimeCode";
|
|
43
43
|
}, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className"> & {
|
|
44
|
-
color?:
|
|
45
|
-
fontFamily?:
|
|
46
|
-
fontSize?:
|
|
47
|
-
fontStyle?: "
|
|
48
|
-
fontWeight?: "
|
|
49
|
-
letterSpacing?:
|
|
50
|
-
textAlign?: "auto" | "
|
|
51
|
-
textTransform?: "
|
|
44
|
+
color?: import("react-native").ColorValue | undefined;
|
|
45
|
+
fontFamily?: string | undefined | undefined;
|
|
46
|
+
fontSize?: number | undefined | undefined;
|
|
47
|
+
fontStyle?: "normal" | "italic" | undefined | undefined;
|
|
48
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
49
|
+
letterSpacing?: number | undefined | undefined;
|
|
50
|
+
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined | undefined;
|
|
51
|
+
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined | undefined;
|
|
52
52
|
} & {
|
|
53
53
|
rows?: number;
|
|
54
54
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
package/types/Input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;WAoDJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDb,CAAA"}
|
package/types/Input.native.d.ts
CHANGED
|
@@ -9,14 +9,14 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
unstyled?: boolean | undefined;
|
|
11
11
|
}>, "color" | `$${string}` | `$${number}` | import("@tamagui/core").GroupMediaKeys | `$theme-${string}` | `$theme-${number}` | "rel" | "dir" | "selectionColor" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "list" | "max" | "min" | "form" | "slot" | "title" | "hidden" | "name" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "maxLength" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "required" | "src" | "step" | "type" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-level" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-setsize" | "aria-sort" | "onCopyCapture" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInputCapture" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEndCapture" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeaveCapture" | "onDragOverCapture" | "onDragStartCapture" | "onDropCapture" | "onMouseDownCapture" | "onMouseMoveCapture" | "onMouseOutCapture" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancelCapture" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "placeholderTextColor" | keyof import("@tamagui/core").StackStyleBase | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | "onChangeText" | "onSelectionChange" | "onSubmitEditing" | "selection" | "keyboardAppearance" | "textContentType" | keyof import("@tamagui/core").StackNonStyleProps | "rows"> & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className"> & {
|
|
12
|
-
color?:
|
|
13
|
-
fontFamily?:
|
|
14
|
-
fontSize?:
|
|
15
|
-
fontStyle?: "
|
|
16
|
-
fontWeight?: "
|
|
17
|
-
letterSpacing?:
|
|
18
|
-
textAlign?: "auto" | "
|
|
19
|
-
textTransform?: "
|
|
12
|
+
color?: import("react-native").ColorValue | undefined;
|
|
13
|
+
fontFamily?: string | undefined | undefined;
|
|
14
|
+
fontSize?: number | undefined | undefined;
|
|
15
|
+
fontStyle?: "normal" | "italic" | undefined | undefined;
|
|
16
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
17
|
+
letterSpacing?: number | undefined | undefined;
|
|
18
|
+
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined | undefined;
|
|
19
|
+
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
rows?: number;
|
|
22
22
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
@@ -42,14 +42,14 @@ export declare const Input: import("@tamagui/core").TamaguiComponent<Omit<import
|
|
|
42
42
|
keyboardAppearance?: "default" | "light" | "dark";
|
|
43
43
|
textContentType?: "none" | "URL" | "addressCity" | "addressCityAndState" | "addressState" | "countryName" | "creditCardNumber" | "emailAddress" | "familyName" | "fullStreetAddress" | "givenName" | "jobTitle" | "location" | "middleName" | "name" | "namePrefix" | "nameSuffix" | "nickname" | "organizationName" | "postalCode" | "streetAddressLine1" | "streetAddressLine2" | "sublocality" | "telephoneNumber" | "username" | "password" | "newPassword" | "oneTimeCode";
|
|
44
44
|
}, TextInput, import("@tamagui/core").TamaguiComponentPropsBaseBase & RNTextInputProps & import("@tamagui/core").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className"> & {
|
|
45
|
-
color?:
|
|
46
|
-
fontFamily?:
|
|
47
|
-
fontSize?:
|
|
48
|
-
fontStyle?: "
|
|
49
|
-
fontWeight?: "
|
|
50
|
-
letterSpacing?:
|
|
51
|
-
textAlign?: "auto" | "
|
|
52
|
-
textTransform?: "
|
|
45
|
+
color?: import("react-native").ColorValue | undefined;
|
|
46
|
+
fontFamily?: string | undefined | undefined;
|
|
47
|
+
fontSize?: number | undefined | undefined;
|
|
48
|
+
fontStyle?: "normal" | "italic" | undefined | undefined;
|
|
49
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
50
|
+
letterSpacing?: number | undefined | undefined;
|
|
51
|
+
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined | undefined;
|
|
52
|
+
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined | undefined;
|
|
53
53
|
} & {
|
|
54
54
|
rows?: number;
|
|
55
55
|
placeholderTextColor?: import("@tamagui/core").ColorTokens;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../src/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAQjF;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Input.native.d.ts","sourceRoot":"","sources":["../src/Input.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,IAAI,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAQjF;;;GAGG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;WA8DV,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgHP,CAAA"}
|
package/types/TextArea.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ export type { InputProps as TextAreaProps } from './types';
|
|
|
4
4
|
* @see — Docs https://tamagui.dev/ui/inputs#textarea
|
|
5
5
|
*/
|
|
6
6
|
export declare const TextArea: import("@tamagui/web").TamaguiComponent<import("@tamagui/web").TamaDefer, import("@tamagui/web").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("@tamagui/web").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "color" | "size" | "children" | "style" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "textAlign" | "textTransform" | "className"> & {
|
|
7
|
-
color?:
|
|
8
|
-
fontFamily?:
|
|
9
|
-
fontSize?:
|
|
10
|
-
fontStyle?: "
|
|
11
|
-
fontWeight?: "
|
|
12
|
-
letterSpacing?:
|
|
13
|
-
textAlign?: "auto" | "
|
|
14
|
-
textTransform?: "
|
|
7
|
+
color?: import("react-native").ColorValue | undefined;
|
|
8
|
+
fontFamily?: string | undefined | undefined;
|
|
9
|
+
fontSize?: number | undefined | undefined;
|
|
10
|
+
fontStyle?: "normal" | "italic" | undefined | undefined;
|
|
11
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
12
|
+
letterSpacing?: number | undefined | undefined;
|
|
13
|
+
textAlign?: "auto" | "left" | "right" | "center" | "justify" | undefined | undefined;
|
|
14
|
+
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase" | undefined | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
rows?: number;
|
|
17
17
|
placeholderTextColor?: import("@tamagui/web").ColorTokens;
|
package/types/TextArea.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAIA,YAAY,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAE1D;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../src/TextArea.tsx"],"names":[],"mappings":"AAIA,YAAY,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,SAAS,CAAA;AAE1D;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;WA0Bg7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CADp8B,CAAA"}
|
package/types/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { ColorTokens, StackProps,
|
|
1
|
+
import type { ColorTokens, StackProps, TextStylePropsBase } from '@tamagui/web';
|
|
2
2
|
/**
|
|
3
3
|
* Web-aligned Input props
|
|
4
4
|
* Follows standard HTML input API as primary, with RN compatibility for native
|
|
5
5
|
*/
|
|
6
6
|
type HTMLInputProps = React.InputHTMLAttributes<HTMLInputElement>;
|
|
7
|
-
type InputTextStyleProps = Pick<
|
|
7
|
+
type InputTextStyleProps = Pick<TextStylePropsBase, 'color' | 'fontFamily' | 'fontSize' | 'fontStyle' | 'fontWeight' | 'letterSpacing' | 'textAlign' | 'textTransform'>;
|
|
8
8
|
export type InputProps = StackProps & Omit<HTMLInputProps, 'size' | 'color' | 'style' | 'children' | 'className' | keyof InputTextStyleProps> & InputTextStyleProps & {
|
|
9
9
|
/**
|
|
10
10
|
* Rows for textarea (when tag="textarea")
|
package/types/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAE/E;;;GAGG;AAEH,KAAK,cAAc,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAIjE,KAAK,mBAAmB,GAAG,IAAI,CAC7B,kBAAkB,EAChB,OAAO,GACP,YAAY,GACZ,UAAU,GACV,WAAW,GACX,YAAY,GACZ,eAAe,GACf,WAAW,GACX,eAAe,CAClB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GACjC,IAAI,CACF,cAAc,EACd,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,mBAAmB,CAClF,GACD,mBAAmB,GAAG;IAMpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAA;IAElC;;OAEG;IACH,cAAc,CAAC,EAAE,WAAW,CAAA;IAE5B;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAErC;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC,EAAE;QAAE,WAAW,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,KAAK,IAAI,CAAA;IAEhE;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAE3C;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE;QACtB,WAAW,EAAE;YAAE,SAAS,EAAE;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,GAAG,EAAE,MAAM,CAAA;aAAE,CAAA;SAAE,CAAA;KAC3D,KAAK,IAAI,CAAA;IAIV;;OAEG;IACH,kBAAkB,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IAEjD;;OAEG;IACH,eAAe,CAAC,EACZ,MAAM,GACN,KAAK,GACL,aAAa,GACb,qBAAqB,GACrB,cAAc,GACd,aAAa,GACb,kBAAkB,GAClB,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,CAAA;CAClB,CAAA"}
|