@tamagui/input 2.0.0-rc.26 → 2.0.0-rc.26-1773452370596
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 +14 -14
- package/dist/cjs/Input.js +0 -143
- package/dist/cjs/Input.js.map +0 -6
- package/dist/cjs/InputNativeProps.js +0 -14
- package/dist/cjs/InputNativeProps.js.map +0 -6
- package/dist/cjs/TextArea.js +0 -43
- package/dist/cjs/TextArea.js.map +0 -6
- package/dist/cjs/inputTypes.test-d.js +0 -93
- package/dist/cjs/inputTypes.test-d.js.map +0 -6
- package/dist/cjs/shared.js +0 -111
- package/dist/cjs/shared.js.map +0 -6
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/types.js.map +0 -6
- package/dist/cjs/v1/Input.js +0 -171
- package/dist/cjs/v1/Input.js.map +0 -6
- package/dist/cjs/v1/TextArea.js +0 -43
- package/dist/cjs/v1/TextArea.js.map +0 -6
- package/dist/cjs/v1/index.js +0 -16
- package/dist/cjs/v1/index.js.map +0 -6
- package/dist/cjs/v1/types.js +0 -14
- package/dist/cjs/v1/types.js.map +0 -6
- package/dist/esm/Input.js +0 -124
- package/dist/esm/Input.js.map +0 -6
- package/dist/esm/InputNativeProps.js +0 -1
- package/dist/esm/InputNativeProps.js.map +0 -6
- package/dist/esm/TextArea.js +0 -29
- package/dist/esm/TextArea.js.map +0 -6
- package/dist/esm/inputTypes.test-d.js +0 -93
- package/dist/esm/inputTypes.test-d.js.map +0 -6
- package/dist/esm/shared.js +0 -99
- package/dist/esm/shared.js.map +0 -6
- package/dist/esm/types.js +0 -1
- package/dist/esm/types.js.map +0 -6
- package/dist/esm/v1/Input.js +0 -152
- package/dist/esm/v1/Input.js.map +0 -6
- package/dist/esm/v1/TextArea.js +0 -29
- package/dist/esm/v1/TextArea.js.map +0 -6
- package/dist/esm/v1/index.js +0 -3
- package/dist/esm/v1/index.js.map +0 -6
- package/dist/esm/v1/types.js +0 -1
- package/dist/esm/v1/types.js.map +0 -6
- package/dist/jsx/Input.js +0 -124
- package/dist/jsx/Input.js.map +0 -6
- package/dist/jsx/InputNativeProps.js +0 -1
- package/dist/jsx/InputNativeProps.js.map +0 -6
- package/dist/jsx/TextArea.js +0 -29
- package/dist/jsx/TextArea.js.map +0 -6
- package/dist/jsx/inputTypes.test-d.js +0 -93
- package/dist/jsx/inputTypes.test-d.js.map +0 -6
- package/dist/jsx/shared.js +0 -99
- package/dist/jsx/shared.js.map +0 -6
- package/dist/jsx/types.js +0 -1
- package/dist/jsx/types.js.map +0 -6
- package/dist/jsx/v1/Input.js +0 -152
- package/dist/jsx/v1/Input.js.map +0 -6
- package/dist/jsx/v1/TextArea.js +0 -29
- package/dist/jsx/v1/TextArea.js.map +0 -6
- package/dist/jsx/v1/index.js +0 -3
- package/dist/jsx/v1/index.js.map +0 -6
- package/dist/jsx/v1/types.js +0 -1
- package/dist/jsx/v1/types.js.map +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/input",
|
|
3
|
-
"version": "2.0.0-rc.26",
|
|
3
|
+
"version": "2.0.0-rc.26-1773452370596",
|
|
4
4
|
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"test:web": "vitest --typecheck --run"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@tamagui/core": "2.0.0-rc.26",
|
|
42
|
-
"@tamagui/element": "2.0.0-rc.26",
|
|
43
|
-
"@tamagui/focusable": "2.0.0-rc.26",
|
|
44
|
-
"@tamagui/font-size": "2.0.0-rc.26",
|
|
45
|
-
"@tamagui/get-button-sized": "2.0.0-rc.26",
|
|
46
|
-
"@tamagui/get-font-sized": "2.0.0-rc.26",
|
|
47
|
-
"@tamagui/get-token": "2.0.0-rc.26",
|
|
48
|
-
"@tamagui/helpers": "2.0.0-rc.26",
|
|
49
|
-
"@tamagui/helpers-tamagui": "2.0.0-rc.26",
|
|
50
|
-
"@tamagui/stacks": "2.0.0-rc.26",
|
|
51
|
-
"@tamagui/text": "2.0.0-rc.26",
|
|
52
|
-
"@tamagui/web": "2.0.0-rc.26"
|
|
41
|
+
"@tamagui/core": "2.0.0-rc.26-1773452370596",
|
|
42
|
+
"@tamagui/element": "2.0.0-rc.26-1773452370596",
|
|
43
|
+
"@tamagui/focusable": "2.0.0-rc.26-1773452370596",
|
|
44
|
+
"@tamagui/font-size": "2.0.0-rc.26-1773452370596",
|
|
45
|
+
"@tamagui/get-button-sized": "2.0.0-rc.26-1773452370596",
|
|
46
|
+
"@tamagui/get-font-sized": "2.0.0-rc.26-1773452370596",
|
|
47
|
+
"@tamagui/get-token": "2.0.0-rc.26-1773452370596",
|
|
48
|
+
"@tamagui/helpers": "2.0.0-rc.26-1773452370596",
|
|
49
|
+
"@tamagui/helpers-tamagui": "2.0.0-rc.26-1773452370596",
|
|
50
|
+
"@tamagui/stacks": "2.0.0-rc.26-1773452370596",
|
|
51
|
+
"@tamagui/text": "2.0.0-rc.26-1773452370596",
|
|
52
|
+
"@tamagui/web": "2.0.0-rc.26-1773452370596"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@tamagui/build": "2.0.0-rc.26",
|
|
55
|
+
"@tamagui/build": "2.0.0-rc.26-1773452370596",
|
|
56
56
|
"react": ">=19",
|
|
57
57
|
"react-native": "0.81.5",
|
|
58
58
|
"vitest": "4.0.4"
|
package/dist/cjs/Input.js
DELETED
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var Input_exports = {};
|
|
24
|
-
__export(Input_exports, {
|
|
25
|
-
Input: () => Input
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Input_exports);
|
|
28
|
-
var import_core = require("@tamagui/core"), import_focusable = require("@tamagui/focusable"), import_element = require("@tamagui/element"), import_react = __toESM(require("react"), 1), import_shared = require("./shared"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
const StyledInput = (0, import_core.styled)(import_core.View, import_shared.styledBody[0], import_shared.styledBody[1]), Input = StyledInput.styleable((props, _forwardedRef) => {
|
|
30
|
-
const {
|
|
31
|
-
disabled,
|
|
32
|
-
id,
|
|
33
|
-
onChangeText,
|
|
34
|
-
onSubmitEditing,
|
|
35
|
-
onSelectionChange,
|
|
36
|
-
selection,
|
|
37
|
-
placeholderTextColor,
|
|
38
|
-
selectionColor,
|
|
39
|
-
rows,
|
|
40
|
-
// Native-only props (ignored on web)
|
|
41
|
-
keyboardAppearance,
|
|
42
|
-
returnKeyType,
|
|
43
|
-
submitBehavior,
|
|
44
|
-
blurOnSubmit,
|
|
45
|
-
caretHidden,
|
|
46
|
-
contextMenuHidden,
|
|
47
|
-
selectTextOnFocus,
|
|
48
|
-
secureTextEntry,
|
|
49
|
-
maxFontSizeMultiplier,
|
|
50
|
-
allowFontScaling,
|
|
51
|
-
multiline,
|
|
52
|
-
keyboardType,
|
|
53
|
-
autoCapitalize: autoCapitalizeProp,
|
|
54
|
-
autoCorrect: autoCorrectProp,
|
|
55
|
-
autoFocusNative,
|
|
56
|
-
textContentType,
|
|
57
|
-
onEndEditing,
|
|
58
|
-
onContentSizeChange,
|
|
59
|
-
onScroll,
|
|
60
|
-
onKeyPress,
|
|
61
|
-
// iOS-only props (ignored on web)
|
|
62
|
-
clearButtonMode,
|
|
63
|
-
clearTextOnFocus,
|
|
64
|
-
enablesReturnKeyAutomatically,
|
|
65
|
-
dataDetectorTypes,
|
|
66
|
-
scrollEnabled,
|
|
67
|
-
passwordRules,
|
|
68
|
-
rejectResponderTermination,
|
|
69
|
-
spellCheck,
|
|
70
|
-
lineBreakStrategyIOS,
|
|
71
|
-
lineBreakModeIOS,
|
|
72
|
-
smartInsertDelete,
|
|
73
|
-
inputAccessoryViewID,
|
|
74
|
-
inputAccessoryViewButtonLabel,
|
|
75
|
-
disableKeyboardShortcuts,
|
|
76
|
-
// Android-only props (ignored on web)
|
|
77
|
-
cursorColor,
|
|
78
|
-
selectionHandleColor,
|
|
79
|
-
underlineColorAndroid,
|
|
80
|
-
importantForAutofill,
|
|
81
|
-
disableFullscreenUI,
|
|
82
|
-
inlineImageLeft,
|
|
83
|
-
inlineImagePadding,
|
|
84
|
-
returnKeyLabel,
|
|
85
|
-
textBreakStrategy,
|
|
86
|
-
textAlignVertical,
|
|
87
|
-
verticalAlign,
|
|
88
|
-
showSoftInputOnFocus,
|
|
89
|
-
numberOfLines,
|
|
90
|
-
...rest
|
|
91
|
-
} = props, { ref, composedRef } = (0, import_element.useWebRef)(_forwardedRef), theme = (0, import_core.useTheme)(), autoCorrect = autoCorrectProp === !0 ? "on" : autoCorrectProp === !1 ? "off" : autoCorrectProp, autoCapitalize = autoCapitalizeProp === "sentences" || autoCapitalizeProp === "words" ? "on" : autoCapitalizeProp === "none" || autoCapitalizeProp === "characters" ? "off" : autoCapitalizeProp;
|
|
92
|
-
import_react.default.useEffect(() => {
|
|
93
|
-
if (!onSelectionChange) return;
|
|
94
|
-
const node = ref.current;
|
|
95
|
-
if (!node) return;
|
|
96
|
-
const handleSelectionChange = () => {
|
|
97
|
-
onSelectionChange({
|
|
98
|
-
nativeEvent: {
|
|
99
|
-
selection: {
|
|
100
|
-
start: node.selectionStart ?? 0,
|
|
101
|
-
end: node.selectionEnd ?? 0
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
};
|
|
106
|
-
return node.addEventListener("select", handleSelectionChange), () => node.removeEventListener("select", handleSelectionChange);
|
|
107
|
-
}, [onSelectionChange]), import_react.default.useEffect(() => {
|
|
108
|
-
selection && ref.current && ref.current.setSelectionRange(selection.start, selection.end ?? selection.start);
|
|
109
|
-
}, [selection?.start, selection?.end]), import_react.default.useEffect(() => {
|
|
110
|
-
if (!(!id || disabled))
|
|
111
|
-
return (0, import_focusable.registerFocusable)(id, {
|
|
112
|
-
focusAndSelect: () => ref.current?.focus(),
|
|
113
|
-
focus: () => ref.current?.focus()
|
|
114
|
-
});
|
|
115
|
-
}, [id, disabled]);
|
|
116
|
-
const handleKeyDown = (e) => {
|
|
117
|
-
e.key === "Enter" && onSubmitEditing && onSubmitEditing({
|
|
118
|
-
nativeEvent: { text: e.target.value }
|
|
119
|
-
}), rest.onKeyDown?.(e);
|
|
120
|
-
}, handleChange = (e) => {
|
|
121
|
-
onChangeText?.(e.target.value), rest.onChange?.(e);
|
|
122
|
-
}, finalProps = {
|
|
123
|
-
...rest,
|
|
124
|
-
disabled,
|
|
125
|
-
id,
|
|
126
|
-
rows,
|
|
127
|
-
autoCorrect,
|
|
128
|
-
autoCapitalize,
|
|
129
|
-
onKeyDown: onSubmitEditing ? handleKeyDown : rest.onKeyDown,
|
|
130
|
-
onChange: onChangeText ? handleChange : rest.onChange,
|
|
131
|
-
style: {
|
|
132
|
-
...rest.style,
|
|
133
|
-
...placeholderTextColor && {
|
|
134
|
-
"--placeholderColor": theme[placeholderTextColor]?.variable || placeholderTextColor
|
|
135
|
-
},
|
|
136
|
-
...selectionColor && {
|
|
137
|
-
"--selectionColor": theme[selectionColor]?.variable || selectionColor
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledInput, { ref: composedRef, ...finalProps });
|
|
142
|
-
});
|
|
143
|
-
//# sourceMappingURL=Input.js.map
|
package/dist/cjs/Input.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/Input.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAsD,0BACtD,mBAAkC,+BAClC,iBAA0B,6BAC1B,eAAkB,8BAClB,gBAA2B,qBAqKlB;AAlKT,MAAM,kBAAc,oBAAO,kBAAM,yBAAW,CAAC,GAAG,yBAAW,CAAC,CAAC,GAMhD,QAAQ,YAAY,UAA2B,CAAC,OAAO,kBAAkB;AACpF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA,IAGA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA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AG,CAAC,WAAW,OAAO,WAAW,GAAG,CAAC,GAGrC,aAAAA,QAAM,UAAU,MAAM;AACpB,QAAI,GAAC,MAAM;AACX,iBAAO,oCAAkB,IAAI;AAAA,QAC3B,gBAAgB,MAAM,IAAI,SAAS,MAAM;AAAA,QACzC,OAAO,MAAM,IAAI,SAAS,MAAM;AAAA,MAClC,CAAC;AAAA,EACH,GAAG,CAAC,IAAI,QAAQ,CAAC;AAGjB,QAAM,gBAAgB,CAAC,MAA6C;AAClE,IAAI,EAAE,QAAQ,WAAW,mBACvB,gBAAgB;AAAA,MACd,aAAa,EAAE,MAAO,EAAE,OAA4B,MAAM;AAAA,IAC5D,CAAC,GAEH,KAAK,YAAY,CAAC;AAAA,EACpB,GAGM,eAAe,CAAC,MAA2C;AAC/D,mBAAe,EAAE,OAAO,KAAK,GAC7B,KAAK,WAAW,CAAC;AAAA,EACnB,GAEM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,WAAW,kBAAkB,gBAAgB,KAAK;AAAA,IAClD,UAAU,eAAe,eAAe,KAAK;AAAA,IAC7C,OAAO;AAAA,MACL,GAAI,KAAK;AAAA,MACT,GAAI,wBAAwB;AAAA,QAC1B,sBACE,MAAM,oBAAoB,GAAG,YAAY;AAAA,MAC7C;AAAA,MACA,GAAI,kBAAkB;AAAA,QACpB,oBAAoB,MAAM,cAAc,GAAG,YAAY;AAAA,MACzD;AAAA,IACF;AAAA,EACF;AAEA,SAAO,4CAAC,eAAY,KAAK,aAAc,GAAG,YAAY;AACxD,CAAC;",
|
|
5
|
-
"names": ["React"]
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
};
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var InputNativeProps_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(InputNativeProps_exports);
|
|
14
|
-
//# sourceMappingURL=InputNativeProps.js.map
|
package/dist/cjs/TextArea.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var TextArea_exports = {};
|
|
16
|
-
__export(TextArea_exports, {
|
|
17
|
-
TextArea: () => TextArea
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(TextArea_exports);
|
|
20
|
-
var import_web = require("@tamagui/web"), import_Input = require("./Input"), import_shared = require("./shared");
|
|
21
|
-
const TextArea = (0, import_web.styled)(import_Input.Input, {
|
|
22
|
-
name: "TextArea",
|
|
23
|
-
render: "textarea",
|
|
24
|
-
// this attribute fixes firefox newline issue
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
whiteSpace: "pre-wrap",
|
|
27
|
-
variants: {
|
|
28
|
-
unstyled: {
|
|
29
|
-
false: {
|
|
30
|
-
height: "auto",
|
|
31
|
-
...import_shared.defaultStyles,
|
|
32
|
-
rows: 3
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
"...size": import_shared.textAreaSizeVariant
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=TextArea.js.map
|
package/dist/cjs/TextArea.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/TextArea.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAsC,yBACtC,eAAsB,oBACtB,gBAAmD;AAM5C,MAAM,eAAW,mBAAO,oBAAO;AAAA,EACpC,MAAM;AAAA,EACN,QAAQ;AAAA;AAAA;AAAA,EAIR,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG;AAAA,QACH,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
@@ -1,93 +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
|
-
}), (0, import_vitest.test)("onFocus event uses HTMLInputElement", () => {
|
|
6
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
7
|
-
}), (0, import_vitest.test)("onBlur event uses HTMLInputElement", () => {
|
|
8
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
9
|
-
}), (0, import_vitest.test)("onKeyDown event uses HTMLInputElement", () => {
|
|
10
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
11
|
-
}), (0, import_vitest.test)("onClick event uses HTMLInputElement", () => {
|
|
12
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
13
|
-
}), (0, import_vitest.test)("onChange event is NOT typed with HTMLDivElement", () => {
|
|
14
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
(0, import_vitest.describe)("Input HTML props", () => {
|
|
18
|
-
(0, import_vitest.test)("accepts type prop", () => {
|
|
19
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("type");
|
|
20
|
-
}), (0, import_vitest.test)("accepts placeholder prop", () => {
|
|
21
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
|
|
22
|
-
}), (0, import_vitest.test)("accepts value prop", () => {
|
|
23
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
24
|
-
}), (0, import_vitest.test)("accepts defaultValue prop", () => {
|
|
25
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("defaultValue");
|
|
26
|
-
}), (0, import_vitest.test)("accepts maxLength prop", () => {
|
|
27
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
|
|
28
|
-
}), (0, import_vitest.test)("accepts pattern prop", () => {
|
|
29
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("pattern");
|
|
30
|
-
}), (0, import_vitest.test)("accepts required prop", () => {
|
|
31
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("required");
|
|
32
|
-
}), (0, import_vitest.test)("accepts readOnly prop", () => {
|
|
33
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("readOnly");
|
|
34
|
-
}), (0, import_vitest.test)("accepts autoComplete prop", () => {
|
|
35
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("autoComplete");
|
|
36
|
-
}), (0, import_vitest.test)("accepts name prop", () => {
|
|
37
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("name");
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
(0, import_vitest.describe)("Input style props", () => {
|
|
41
|
-
(0, import_vitest.test)("accepts padding style prop", () => {
|
|
42
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding");
|
|
43
|
-
}), (0, import_vitest.test)("accepts backgroundColor style prop", () => {
|
|
44
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
|
|
45
|
-
}), (0, import_vitest.test)("accepts borderRadius style prop", () => {
|
|
46
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
|
|
47
|
-
}), (0, import_vitest.test)("accepts text style props", () => {
|
|
48
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontSize"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight"), (0, import_vitest.expectTypeOf)().toHaveProperty("color");
|
|
49
|
-
}), (0, import_vitest.test)("accepts size variant", () => {
|
|
50
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("size");
|
|
51
|
-
}), (0, import_vitest.test)("accepts unstyled variant", () => {
|
|
52
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("unstyled");
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
(0, import_vitest.describe)("Input cross-platform props", () => {
|
|
56
|
-
(0, import_vitest.test)("autoCorrect accepts boolean and string", () => {
|
|
57
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
58
|
-
}), (0, import_vitest.test)("autoCapitalize accepts native and web values", () => {
|
|
59
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
60
|
-
}), (0, import_vitest.test)("accepts onChangeText callback", () => {
|
|
61
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onChangeText"), (0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
62
|
-
}), (0, import_vitest.test)("accepts onSubmitEditing callback", () => {
|
|
63
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onSubmitEditing");
|
|
64
|
-
}), (0, import_vitest.test)("accepts placeholderTextColor", () => {
|
|
65
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholderTextColor");
|
|
66
|
-
}), (0, import_vitest.test)("accepts selection prop", () => {
|
|
67
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("selection");
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
(0, import_vitest.describe)("InputRef type", () => {
|
|
71
|
-
(0, import_vitest.test)("InputRef accepts TextInput", () => {
|
|
72
|
-
const _ref = {};
|
|
73
|
-
}), (0, import_vitest.test)("InputRef rejects plain HTMLDivElement", () => {
|
|
74
|
-
const _ref = {};
|
|
75
|
-
});
|
|
76
|
-
});
|
|
77
|
-
(0, import_vitest.describe)("TextArea types", () => {
|
|
78
|
-
(0, import_vitest.test)("TextArea has rows prop", () => {
|
|
79
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("rows");
|
|
80
|
-
}), (0, import_vitest.test)("TextArea accepts style props", () => {
|
|
81
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding"), (0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
|
|
82
|
-
}), (0, import_vitest.test)("TextArea accepts HTML input props", () => {
|
|
83
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder"), (0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
(0, import_vitest.describe)("InputProps derivation", () => {
|
|
87
|
-
(0, import_vitest.test)("InputProps equals GetProps<typeof Input>", () => {
|
|
88
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
89
|
-
}), (0, import_vitest.test)("TextAreaProps equals GetProps<typeof TextArea>", () => {
|
|
90
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=inputTypes.test-d.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/inputTypes.test-d.ts"],
|
|
4
|
-
"mappings": "AAaA,oBAA6C;AAAA,IAmB7C,wBAAS,6BAA6B,MAAM;AAC1C,0BAAK,wCAAwC,MAAM;AAGjD,oCAAqC,EAAE,cAAgC;AAAA,EACzE,CAAC,OAED,oBAAK,uCAAuC,MAAM;AAGhD,oCAAqC,EAAE,cAAgC;AAAA,EACzE,CAAC,OAED,oBAAK,sCAAsC,MAAM;AAG/C,oCAAqC,EAAE,cAAgC;AAAA,EACzE,CAAC,OAED,oBAAK,yCAAyC,MAAM;AAGlD,oCAAqC,EAAE,cAAgC;AAAA,EACzE,CAAC,OAED,oBAAK,uCAAuC,MAAM;AAGhD,oCAAqC,EAAE,cAAgC;AAAA,EACzE,CAAC,OAED,oBAAK,mDAAmD,MAAM;AAK5D,oCAAsC,EAAE,cAAqB;AAAA,EAC/D,CAAC;AACH,CAAC;AAAA,IAMD,wBAAS,oBAAoB,MAAM;AACjC,0BAAK,qBAAqB,MAAM;AAC9B,oCAAyB,EAAE,eAAe,MAAM;AAAA,EAClD,CAAC,OAED,oBAAK,4BAA4B,MAAM;AACrC,oCAAyB,EAAE,eAAe,aAAa;AAAA,EACzD,CAAC,OAED,oBAAK,sBAAsB,MAAM;AAC/B,oCAAyB,EAAE,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ist/cjs/shared.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
-
for (let key of __getOwnPropNames(from))
|
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
-
var shared_exports = {};
|
|
16
|
-
__export(shared_exports, {
|
|
17
|
-
INPUT_NAME: () => INPUT_NAME,
|
|
18
|
-
defaultStyles: () => defaultStyles,
|
|
19
|
-
inputSizeVariant: () => inputSizeVariant,
|
|
20
|
-
styledBody: () => styledBody,
|
|
21
|
-
textAreaSizeVariant: () => textAreaSizeVariant
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(shared_exports);
|
|
24
|
-
var import_core = require("@tamagui/core"), import_core2 = require("@tamagui/core"), import_get_button_sized = require("@tamagui/get-button-sized"), import_get_font_sized = require("@tamagui/get-font-sized"), import_get_token = require("@tamagui/get-token");
|
|
25
|
-
const defaultStyles = {
|
|
26
|
-
size: "$true",
|
|
27
|
-
fontFamily: "$body",
|
|
28
|
-
borderWidth: 1,
|
|
29
|
-
outlineWidth: 0,
|
|
30
|
-
color: "$color",
|
|
31
|
-
...import_core2.isWeb ? {
|
|
32
|
-
tabIndex: 0
|
|
33
|
-
} : {
|
|
34
|
-
focusable: !0
|
|
35
|
-
},
|
|
36
|
-
borderColor: "$borderColor",
|
|
37
|
-
backgroundColor: "$background",
|
|
38
|
-
// this fixes a flex bug where it overflows container
|
|
39
|
-
minWidth: 0,
|
|
40
|
-
hoverStyle: {
|
|
41
|
-
borderColor: "$borderColorHover"
|
|
42
|
-
},
|
|
43
|
-
focusStyle: {
|
|
44
|
-
borderColor: "$borderColorFocus"
|
|
45
|
-
},
|
|
46
|
-
focusVisibleStyle: {
|
|
47
|
-
outlineColor: "$outlineColor",
|
|
48
|
-
outlineWidth: 2,
|
|
49
|
-
outlineStyle: "solid"
|
|
50
|
-
}
|
|
51
|
-
}, inputSizeVariant = (val = "$true", extras) => {
|
|
52
|
-
if (extras.props.tag === "textarea" || extras.props.rows > 1 || extras.props.multiline || extras.props.numberOfLines > 1)
|
|
53
|
-
return textAreaSizeVariant(val, extras);
|
|
54
|
-
const buttonStyles = (0, import_get_button_sized.getButtonSized)(val, extras), paddingHorizontal = (0, import_get_token.getSpace)(val, {
|
|
55
|
-
shift: -1,
|
|
56
|
-
bounds: [2]
|
|
57
|
-
}), fontStyle = (0, import_get_font_sized.getFontSized)(val, extras);
|
|
58
|
-
return !import_core2.isWeb && fontStyle && delete fontStyle.lineHeight, {
|
|
59
|
-
...fontStyle,
|
|
60
|
-
...buttonStyles,
|
|
61
|
-
paddingHorizontal
|
|
62
|
-
};
|
|
63
|
-
}, textAreaSizeVariant = (val = "$true", extras) => {
|
|
64
|
-
const { props } = extras, buttonStyles = (0, import_get_button_sized.getButtonSized)(val, extras), fontStyle = (0, import_get_font_sized.getFontSized)(val, extras), lines = props.rows ?? props.numberOfLines, height = typeof lines == "number" ? lines * (0, import_core2.getVariableValue)(fontStyle.lineHeight) : "auto";
|
|
65
|
-
!import_core2.isWeb && fontStyle && delete fontStyle.lineHeight;
|
|
66
|
-
const paddingVertical = (0, import_get_token.getSpace)(val, {
|
|
67
|
-
shift: -2,
|
|
68
|
-
bounds: [2]
|
|
69
|
-
}), paddingHorizontal = (0, import_get_token.getSpace)(val, {
|
|
70
|
-
shift: -1,
|
|
71
|
-
bounds: [2]
|
|
72
|
-
});
|
|
73
|
-
return {
|
|
74
|
-
...buttonStyles,
|
|
75
|
-
...fontStyle,
|
|
76
|
-
paddingVertical,
|
|
77
|
-
paddingHorizontal,
|
|
78
|
-
height
|
|
79
|
-
};
|
|
80
|
-
}, INPUT_NAME = "Input", styledBody = [
|
|
81
|
-
{
|
|
82
|
-
name: INPUT_NAME,
|
|
83
|
-
render: "input",
|
|
84
|
-
variants: {
|
|
85
|
-
unstyled: {
|
|
86
|
-
false: defaultStyles
|
|
87
|
-
},
|
|
88
|
-
size: {
|
|
89
|
-
"...size": inputSizeVariant
|
|
90
|
-
},
|
|
91
|
-
disabled: {
|
|
92
|
-
true: {}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
defaultVariants: {
|
|
96
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
isInput: !0,
|
|
101
|
-
accept: {
|
|
102
|
-
placeholderTextColor: "color",
|
|
103
|
-
selectionColor: "color",
|
|
104
|
-
cursorColor: "color",
|
|
105
|
-
selectionHandleColor: "color",
|
|
106
|
-
underlineColorAndroid: "color"
|
|
107
|
-
},
|
|
108
|
-
validStyles: import_core.Text.staticConfig.validStyles
|
|
109
|
-
}
|
|
110
|
-
];
|
|
111
|
-
//# sourceMappingURL=shared.js.map
|
package/dist/cjs/shared.js.map
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/shared.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAAqB,0BACrBA,eAAwC,0BACxC,0BAA+B,sCAC/B,wBAA6B,oCAC7B,mBAAyB;AAElB,MAA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A,EACZ,CAAC,GACK,wBAAoB,2BAAS,KAAK;AAAA,IACtC,OAAO;AAAA,IACP,QAAQ,CAAC,CAAC;AAAA,EACZ,CAAC;AACD,SAAO;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF,GACa,aAAa,SAEb,aAAa;AAAA,EACxB;AAAA,IACE,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,MACR,UAAU;AAAA,QACR,OAAO;AAAA,MACT;AAAA,MAEA,MAAM;AAAA,QACJ,WAAW;AAAA,MACb;AAAA,MAEA,UAAU;AAAA,QACR,MAAM,CAAC;AAAA,MACT;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,IAC7C;AAAA,EACF;AAAA,EAEA;AAAA,IACE,SAAS;AAAA,IACT,QAAQ;AAAA,MACN,sBAAsB;AAAA,MACtB,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,sBAAsB;AAAA,MACtB,uBAAuB;AAAA,IACzB;AAAA,IAEA,aAAa,iBAAK,aAAa;AAAA,EACjC;AACF;",
|
|
5
|
-
"names": ["import_core"]
|
|
6
|
-
}
|
package/dist/cjs/types.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __copyProps = (to, from, except, desc) => {
|
|
6
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
7
|
-
for (let key of __getOwnPropNames(from))
|
|
8
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
|
-
return to;
|
|
10
|
-
};
|
|
11
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
12
|
-
var types_exports = {};
|
|
13
|
-
module.exports = __toCommonJS(types_exports);
|
|
14
|
-
//# sourceMappingURL=types.js.map
|