tamagui 1.135.4-1761749240853 → 1.135.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/createTamagui.native.js +43 -40
- package/dist/cjs/createTamagui.native.js.map +6 -1
- package/dist/cjs/helpers/inputHelpers.native.js +49 -63
- package/dist/cjs/helpers/inputHelpers.native.js.map +6 -1
- package/dist/cjs/index.native.js +138 -29
- package/dist/cjs/index.native.js.map +6 -1
- package/dist/cjs/lib/linear-gradient.native.js +10 -11
- package/dist/cjs/lib/linear-gradient.native.js.map +6 -1
- package/dist/cjs/linear-gradient.native.js +14 -17
- package/dist/cjs/linear-gradient.native.js.map +6 -1
- package/dist/cjs/react-native-web/Dimensions.native.js +32 -38
- package/dist/cjs/react-native-web/Dimensions.native.js.map +6 -1
- package/dist/cjs/setup.native.js +13 -20
- package/dist/cjs/setup.native.js.map +6 -1
- package/dist/cjs/viewTypes.native.js +5 -9
- package/dist/cjs/viewTypes.native.js.map +6 -1
- package/dist/cjs/views/Anchor.native.js +32 -45
- package/dist/cjs/views/Anchor.native.js.map +6 -1
- package/dist/cjs/views/EnsureFlexed.native.js +23 -27
- package/dist/cjs/views/EnsureFlexed.native.js.map +6 -1
- package/dist/cjs/views/Fieldset.native.js +26 -31
- package/dist/cjs/views/Fieldset.native.js.map +6 -1
- package/dist/cjs/views/Input.native.js +88 -99
- package/dist/cjs/views/Input.native.js.map +6 -1
- package/dist/cjs/views/Skeleton.native.js +1 -1
- package/dist/cjs/views/Skeleton.native.js.map +6 -1
- package/dist/cjs/views/Spinner.native.js +30 -47
- package/dist/cjs/views/Spinner.native.js.map +6 -1
- package/dist/cjs/views/TamaguiProvider.native.js +26 -36
- package/dist/cjs/views/TamaguiProvider.native.js.map +6 -1
- package/dist/cjs/views/TamaguiProvider.server.native.js +15 -19
- package/dist/cjs/views/TamaguiProvider.server.native.js.map +6 -1
- package/dist/cjs/views/Text.native.js +24 -28
- package/dist/cjs/views/Text.native.js.map +6 -1
- package/dist/cjs/views/TextArea.cjs +2 -2
- package/dist/cjs/views/TextArea.js +1 -1
- package/dist/cjs/views/TextArea.js.map +1 -1
- package/dist/cjs/views/TextArea.native.js +43 -58
- package/dist/cjs/views/TextArea.native.js.map +6 -1
- package/dist/cjs/views/VisuallyHidden.native.js +43 -47
- package/dist/cjs/views/VisuallyHidden.native.js.map +6 -1
- package/dist/esm/views/TextArea.js +1 -1
- package/dist/esm/views/TextArea.js.map +1 -1
- package/dist/esm/views/TextArea.mjs +1 -1
- package/dist/esm/views/TextArea.mjs.map +1 -1
- package/dist/esm/views/TextArea.native.js +1 -1
- package/dist/esm/views/TextArea.native.js.map +1 -1
- package/dist/jsx/createTamagui.native.js +33 -50
- package/dist/jsx/createTamagui.native.js.map +6 -1
- package/dist/jsx/helpers/inputHelpers.native.js +42 -74
- package/dist/jsx/helpers/inputHelpers.native.js.map +6 -1
- package/dist/jsx/index.native.js +181 -144
- package/dist/jsx/index.native.js.map +6 -1
- package/dist/jsx/lib/linear-gradient.native.js +1 -20
- package/dist/jsx/lib/linear-gradient.native.js.map +6 -1
- package/dist/jsx/linear-gradient.native.js +5 -29
- package/dist/jsx/linear-gradient.native.js.map +6 -1
- package/dist/jsx/react-native-web/Dimensions.native.js +22 -49
- package/dist/jsx/react-native-web/Dimensions.native.js.map +6 -1
- package/dist/jsx/setup.native.js +4 -29
- package/dist/jsx/setup.native.js.map +6 -1
- package/dist/jsx/viewTypes.native.js +1 -19
- package/dist/jsx/viewTypes.native.js.map +6 -1
- package/dist/jsx/views/Anchor.native.js +27 -56
- package/dist/jsx/views/Anchor.native.js.map +6 -1
- package/dist/jsx/views/EnsureFlexed.native.js +13 -37
- package/dist/jsx/views/EnsureFlexed.native.js.map +6 -1
- package/dist/jsx/views/Fieldset.native.js +18 -42
- package/dist/jsx/views/Fieldset.native.js.map +6 -1
- package/dist/jsx/views/Input.native.js +81 -117
- package/dist/jsx/views/Input.native.js.map +6 -1
- package/dist/jsx/views/Skeleton.native.js +1 -2
- package/dist/jsx/views/Skeleton.native.js.map +6 -1
- package/dist/jsx/views/Spinner.native.js +22 -63
- package/dist/jsx/views/Spinner.native.js.map +6 -1
- package/dist/jsx/views/TamaguiProvider.native.js +20 -47
- package/dist/jsx/views/TamaguiProvider.native.js.map +6 -1
- package/dist/jsx/views/TamaguiProvider.server.native.js +6 -30
- package/dist/jsx/views/TamaguiProvider.server.native.js.map +6 -1
- package/dist/jsx/views/Text.native.js +15 -39
- package/dist/jsx/views/Text.native.js.map +6 -1
- package/dist/jsx/views/TextArea.js +1 -1
- package/dist/jsx/views/TextArea.js.map +1 -1
- package/dist/jsx/views/TextArea.mjs +1 -1
- package/dist/jsx/views/TextArea.mjs.map +1 -1
- package/dist/jsx/views/TextArea.native.js +36 -75
- package/dist/jsx/views/TextArea.native.js.map +6 -1
- package/dist/jsx/views/VisuallyHidden.native.js +34 -58
- package/dist/jsx/views/VisuallyHidden.native.js.map +6 -1
- package/dist/native.js +31572 -0
- package/dist/native.js.map +6 -0
- package/dist/test.native.js +30829 -0
- package/dist/test.native.js.map +6 -0
- package/package.json +61 -58
- package/src/views/TextArea.tsx +2 -1
- package/types/views/TextArea.d.ts.map +1 -1
- package/dist/native.cjs +0 -17565
- package/dist/test.cjs +0 -17705
|
@@ -1,58 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var Anchor_exports = {};
|
|
24
|
-
__export(Anchor_exports, {
|
|
25
|
-
Anchor: () => Anchor
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Anchor_exports);
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
-
import_constants = require("@tamagui/constants"),
|
|
30
|
-
import_core = require("@tamagui/core"),
|
|
31
|
-
import_text = require("@tamagui/text"),
|
|
32
|
-
import_react_native = require("react-native"),
|
|
33
|
-
AnchorFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
34
|
-
name: "Anchor",
|
|
35
|
-
tag: "a",
|
|
36
|
-
accessibilityRole: "link"
|
|
37
|
-
}),
|
|
38
|
-
Anchor = AnchorFrame.styleable(function (param, ref) {
|
|
39
|
-
var {
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { isWeb } from "@tamagui/constants";
|
|
3
|
+
import { styled } from "@tamagui/core";
|
|
4
|
+
import { SizableText } from "@tamagui/text";
|
|
5
|
+
import { Linking } from "react-native";
|
|
6
|
+
var AnchorFrame = styled(SizableText, {
|
|
7
|
+
name: "Anchor",
|
|
8
|
+
tag: "a",
|
|
9
|
+
accessibilityRole: "link"
|
|
10
|
+
}), Anchor = AnchorFrame.styleable(function(param, ref) {
|
|
11
|
+
var { href, target, ...props } = param;
|
|
12
|
+
return /* @__PURE__ */ _jsx(AnchorFrame, {
|
|
13
|
+
...props,
|
|
14
|
+
...isWeb ? {
|
|
40
15
|
href,
|
|
41
|
-
target
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} : {
|
|
50
|
-
onPress: function (event) {
|
|
51
|
-
var _props_onPress;
|
|
52
|
-
(_props_onPress = props.onPress) === null || _props_onPress === void 0 || _props_onPress.call(props, event), href !== void 0 && import_react_native.Linking.openURL(href);
|
|
53
|
-
}
|
|
54
|
-
}),
|
|
55
|
-
ref
|
|
56
|
-
});
|
|
16
|
+
target
|
|
17
|
+
} : {
|
|
18
|
+
onPress: function(event) {
|
|
19
|
+
var _props_onPress;
|
|
20
|
+
(_props_onPress = props.onPress) === null || _props_onPress === void 0 || _props_onPress.call(props, event), href !== void 0 && Linking.openURL(href);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
ref
|
|
57
24
|
});
|
|
58
|
-
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
Anchor
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=Anchor.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/Anchor.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,YAAY;AAC5B,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,IAAI,cAAc,OAAO,aAAa;AAAA,EAClC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,mBAAmB;AACvB,CAAC,GACU,SAAS,YAAY,UAAU,SAAS,OAAO,KAAK;AAC3D,MAAI,EAAE,MAAM,QAAQ,GAAG,MAAM,IAAI;AACjC,SAAqB,qBAAK,aAAa;AAAA,IACnC,GAAG;AAAA,IACH,GAAG,QAAQ;AAAA,MACP;AAAA,MACA;AAAA,IACJ,IAAI;AAAA,MACA,SAAS,SAAS,OAAO;AACrB,YAAI;AACJ,SAAC,iBAAiB,MAAM,aAAa,QAAQ,mBAAmB,UAAkB,eAAe,KAAK,OAAO,KAAK,GAC9G,SAAS,UACT,QAAQ,QAAQ,IAAI;AAAA,MAE5B;AAAA,IACJ;AAAA,IACA;AAAA,EACJ,CAAC;AACL,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,39 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
},
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var EnsureFlexed_exports = {};
|
|
24
|
-
__export(EnsureFlexed_exports, {
|
|
25
|
-
EnsureFlexed: () => EnsureFlexed
|
|
1
|
+
import { Text, styled } from "@tamagui/core";
|
|
2
|
+
var EnsureFlexed = styled(Text, {
|
|
3
|
+
opacity: 0,
|
|
4
|
+
lineHeight: 0,
|
|
5
|
+
height: 0,
|
|
6
|
+
display: "flex",
|
|
7
|
+
fontSize: 200,
|
|
8
|
+
children: "wwwwwwwwwwwwwwwwwww",
|
|
9
|
+
pointerEvents: "none"
|
|
26
10
|
});
|
|
27
|
-
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
28
|
-
var import_core = require("@tamagui/core"),
|
|
29
|
-
EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
30
|
-
opacity: 0,
|
|
31
|
-
lineHeight: 0,
|
|
32
|
-
height: 0,
|
|
33
|
-
display: "flex",
|
|
34
|
-
fontSize: 200,
|
|
35
|
-
children: "wwwwwwwwwwwwwwwwwww",
|
|
36
|
-
pointerEvents: "none"
|
|
37
|
-
});
|
|
38
11
|
EnsureFlexed.isVisuallyHidden = !0;
|
|
39
|
-
|
|
12
|
+
export {
|
|
13
|
+
EnsureFlexed
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=EnsureFlexed.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/EnsureFlexed.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,MAAM,cAAc;AAEtB,IAAI,eAAe,OAAO,MAAM;AAAA,EACnC,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,eAAe;AACnB,CAAC;AAGD,aAAa,mBAAsB;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,44 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
-
});
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: !0
|
|
22
|
-
}), mod);
|
|
23
|
-
var Fieldset_exports = {};
|
|
24
|
-
__export(Fieldset_exports, {
|
|
25
|
-
Fieldset: () => Fieldset
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Fieldset_exports);
|
|
28
|
-
var import_core = require("@tamagui/core"),
|
|
29
|
-
import_stacks = require("@tamagui/stacks"),
|
|
30
|
-
Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
31
|
-
name: "Fieldset",
|
|
32
|
-
tag: "fieldset",
|
|
33
|
-
// remove browser default styling
|
|
34
|
-
borderWidth: 0,
|
|
35
|
-
variants: {
|
|
36
|
-
horizontal: {
|
|
37
|
-
true: {
|
|
38
|
-
flexDirection: "row",
|
|
39
|
-
alignItems: "center"
|
|
40
|
-
}
|
|
1
|
+
import { styled } from "@tamagui/core";
|
|
2
|
+
import { YStack } from "@tamagui/stacks";
|
|
3
|
+
var Fieldset = styled(YStack, {
|
|
4
|
+
name: "Fieldset",
|
|
5
|
+
tag: "fieldset",
|
|
6
|
+
// remove browser default styling
|
|
7
|
+
borderWidth: 0,
|
|
8
|
+
variants: {
|
|
9
|
+
horizontal: {
|
|
10
|
+
true: {
|
|
11
|
+
flexDirection: "row",
|
|
12
|
+
alignItems: "center"
|
|
41
13
|
}
|
|
42
14
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
Fieldset
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/Fieldset.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,cAAc;AACvB,SAAS,cAAc;AAChB,IAAI,WAAW,OAAO,QAAQ;AAAA,EACjC,MAAM;AAAA,EACN,KAAK;AAAA;AAAA,EAEL,aAAa;AAAA,EACb,UAAU;AAAA,IACN,YAAY;AAAA,MACR,MAAM;AAAA,QACF,eAAe;AAAA,QACf,YAAY;AAAA,MAChB;AAAA,IACJ;AAAA,EACJ;AACJ,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,125 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { isWeb } from "@tamagui/constants";
|
|
4
|
+
import { styled, useComposedRefs, useTheme } from "@tamagui/core";
|
|
5
|
+
import { useFocusable } from "@tamagui/focusable";
|
|
6
|
+
import { TextInput } from "react-native";
|
|
7
|
+
import { inputSizeVariant } from "../helpers/inputHelpers";
|
|
8
|
+
var defaultStyles = {
|
|
9
|
+
size: "$true",
|
|
10
|
+
fontFamily: "$body",
|
|
11
|
+
borderWidth: 1,
|
|
12
|
+
outlineWidth: 0,
|
|
13
|
+
color: "$color",
|
|
14
|
+
...isWeb ? {
|
|
15
|
+
tabIndex: 0
|
|
16
|
+
} : {
|
|
17
|
+
focusable: !0
|
|
14
18
|
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
__export(Input_exports, {
|
|
36
|
-
Input: () => Input,
|
|
37
|
-
InputFrame: () => InputFrame,
|
|
38
|
-
defaultStyles: () => defaultStyles,
|
|
39
|
-
useInputProps: () => useInputProps
|
|
40
|
-
});
|
|
41
|
-
module.exports = __toCommonJS(Input_exports);
|
|
42
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
43
|
-
import_react = __toESM(require("react")),
|
|
44
|
-
import_constants = require("@tamagui/constants"),
|
|
45
|
-
import_core = require("@tamagui/core"),
|
|
46
|
-
import_focusable = require("@tamagui/focusable"),
|
|
47
|
-
import_react_native = require("react-native"),
|
|
48
|
-
import_inputHelpers = require("../helpers/inputHelpers.native.js"),
|
|
49
|
-
defaultStyles = {
|
|
50
|
-
size: "$true",
|
|
51
|
-
fontFamily: "$body",
|
|
52
|
-
borderWidth: 1,
|
|
53
|
-
outlineWidth: 0,
|
|
54
|
-
color: "$color",
|
|
55
|
-
...(import_constants.isWeb ? {
|
|
56
|
-
tabIndex: 0
|
|
57
|
-
} : {
|
|
58
|
-
focusable: !0
|
|
59
|
-
}),
|
|
60
|
-
borderColor: "$borderColor",
|
|
61
|
-
backgroundColor: "$background",
|
|
62
|
-
// this fixes a flex bug where it overflows container
|
|
63
|
-
minWidth: 0,
|
|
64
|
-
hoverStyle: {
|
|
65
|
-
borderColor: "$borderColorHover"
|
|
19
|
+
borderColor: "$borderColor",
|
|
20
|
+
backgroundColor: "$background",
|
|
21
|
+
// this fixes a flex bug where it overflows container
|
|
22
|
+
minWidth: 0,
|
|
23
|
+
hoverStyle: {
|
|
24
|
+
borderColor: "$borderColorHover"
|
|
25
|
+
},
|
|
26
|
+
focusStyle: {
|
|
27
|
+
borderColor: "$borderColorFocus"
|
|
28
|
+
},
|
|
29
|
+
focusVisibleStyle: {
|
|
30
|
+
outlineColor: "$outlineColor",
|
|
31
|
+
outlineWidth: 2,
|
|
32
|
+
outlineStyle: "solid"
|
|
33
|
+
}
|
|
34
|
+
}, InputFrame = styled(TextInput, {
|
|
35
|
+
name: "Input",
|
|
36
|
+
variants: {
|
|
37
|
+
unstyled: {
|
|
38
|
+
false: defaultStyles
|
|
66
39
|
},
|
|
67
|
-
|
|
68
|
-
|
|
40
|
+
size: {
|
|
41
|
+
"...size": inputSizeVariant
|
|
69
42
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
outlineWidth: 2,
|
|
73
|
-
outlineStyle: "solid"
|
|
43
|
+
disabled: {
|
|
44
|
+
true: {}
|
|
74
45
|
}
|
|
75
46
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
defaultVariants: {
|
|
90
|
-
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
91
|
-
}
|
|
92
|
-
}, {
|
|
93
|
-
isInput: !0,
|
|
94
|
-
accept: {
|
|
95
|
-
placeholderTextColor: "color",
|
|
96
|
-
selectionColor: "color"
|
|
97
|
-
}
|
|
98
|
-
}),
|
|
99
|
-
Input = InputFrame.styleable(function (propsIn, forwardedRef) {
|
|
100
|
-
var ref = import_react.default.useRef(null),
|
|
101
|
-
composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref),
|
|
102
|
-
props = useInputProps(propsIn, composedRefs);
|
|
103
|
-
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(InputFrame, {
|
|
104
|
-
...props
|
|
105
|
-
});
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
49
|
+
}
|
|
50
|
+
}, {
|
|
51
|
+
isInput: !0,
|
|
52
|
+
accept: {
|
|
53
|
+
placeholderTextColor: "color",
|
|
54
|
+
selectionColor: "color"
|
|
55
|
+
}
|
|
56
|
+
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
57
|
+
var ref = React.useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
58
|
+
return /* @__PURE__ */ _jsx(InputFrame, {
|
|
59
|
+
...props
|
|
106
60
|
});
|
|
61
|
+
});
|
|
107
62
|
function useInputProps(props, ref) {
|
|
108
|
-
var theme = (
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return (_ref = (_theme_placeholderColorProp_get = (_theme_placeholderColorProp = theme[placeholderColorProp]) === null || _theme_placeholderColorProp === void 0 ? void 0 : _theme_placeholderColorProp.get()) !== null && _theme_placeholderColorProp_get !== void 0 ? _theme_placeholderColorProp_get : placeholderColorProp) !== null && _ref !== void 0 ? _ref : (_theme_placeholderColor = theme.placeholderColor) === null || _theme_placeholderColor === void 0 ? void 0 : _theme_placeholderColor.get();
|
|
121
|
-
}, [props.placeholderTextColor, theme]);
|
|
122
|
-
return import_react.default.useMemo(function () {
|
|
63
|
+
var theme = useTheme(), focusableProps = useFocusable({
|
|
64
|
+
props,
|
|
65
|
+
ref,
|
|
66
|
+
isInput: !0
|
|
67
|
+
}), placeholderTextColor = React.useMemo(function() {
|
|
68
|
+
var _theme_placeholderColorProp, _theme_placeholderColor, placeholderColorProp = props.placeholderTextColor, _theme_placeholderColorProp_get, _ref;
|
|
69
|
+
return (_ref = (_theme_placeholderColorProp_get = (_theme_placeholderColorProp = theme[placeholderColorProp]) === null || _theme_placeholderColorProp === void 0 ? void 0 : _theme_placeholderColorProp.get()) !== null && _theme_placeholderColorProp_get !== void 0 ? _theme_placeholderColorProp_get : placeholderColorProp) !== null && _ref !== void 0 ? _ref : (_theme_placeholderColor = theme.placeholderColor) === null || _theme_placeholderColor === void 0 ? void 0 : _theme_placeholderColor.get();
|
|
70
|
+
}, [
|
|
71
|
+
props.placeholderTextColor,
|
|
72
|
+
theme
|
|
73
|
+
]);
|
|
74
|
+
return React.useMemo(function() {
|
|
123
75
|
return {
|
|
124
76
|
ref: focusableProps.ref,
|
|
125
77
|
readOnly: props.disabled,
|
|
@@ -127,6 +79,18 @@ function useInputProps(props, ref) {
|
|
|
127
79
|
placeholderTextColor,
|
|
128
80
|
onChangeText: focusableProps.onChangeText
|
|
129
81
|
};
|
|
130
|
-
}, [
|
|
82
|
+
}, [
|
|
83
|
+
focusableProps.ref,
|
|
84
|
+
focusableProps.onChangeText,
|
|
85
|
+
props.disabled,
|
|
86
|
+
props,
|
|
87
|
+
placeholderTextColor
|
|
88
|
+
]);
|
|
131
89
|
}
|
|
132
|
-
|
|
90
|
+
export {
|
|
91
|
+
Input,
|
|
92
|
+
InputFrame,
|
|
93
|
+
defaultStyles,
|
|
94
|
+
useInputProps
|
|
95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|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: !0
|
|
30
|
-
}) : target, mod)),
|
|
31
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: !0
|
|
33
|
-
}), mod);
|
|
34
|
-
var Spinner_exports = {};
|
|
35
|
-
__export(Spinner_exports, {
|
|
36
|
-
Spinner: () => Spinner
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(Spinner_exports);
|
|
39
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
-
import_core = require("@tamagui/core"),
|
|
41
|
-
import_stacks = require("@tamagui/stacks"),
|
|
42
|
-
React = __toESM(require("react")),
|
|
43
|
-
import_react_native = require("react-native"),
|
|
44
|
-
Spinner = import_stacks.YStack.extractable((0, import_core.themeable)(/* @__PURE__ */React.forwardRef(function (props, ref) {
|
|
45
|
-
var {
|
|
46
|
-
size,
|
|
47
|
-
color: colorProp,
|
|
48
|
-
...stackProps
|
|
49
|
-
} = props,
|
|
50
|
-
theme = (0, import_core.useTheme)(),
|
|
51
|
-
color = colorProp;
|
|
52
|
-
return color && color[0] === "$" && (color = (0, import_core.variableToString)(theme[color])), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_stacks.YStack, {
|
|
53
|
-
ref,
|
|
54
|
-
...stackProps,
|
|
55
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react_native.ActivityIndicator, {
|
|
56
|
-
size,
|
|
57
|
-
color
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
}), {
|
|
61
|
-
componentName: "Spinner"
|
|
62
|
-
}));
|
|
63
|
-
//# sourceMappingURL=Spinner.native.js.map
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { themeable, useTheme, variableToString } from "@tamagui/core";
|
|
3
|
+
import { YStack } from "@tamagui/stacks";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { ActivityIndicator } from "react-native";
|
|
6
|
+
var Spinner = YStack.extractable(themeable(/* @__PURE__ */ React.forwardRef(function(props, ref) {
|
|
7
|
+
var { size, color: colorProp, ...stackProps } = props, theme = useTheme(), color = colorProp;
|
|
8
|
+
return color && color[0] === "$" && (color = variableToString(theme[color])), /* @__PURE__ */ _jsx(YStack, {
|
|
9
|
+
ref,
|
|
10
|
+
...stackProps,
|
|
11
|
+
children: /* @__PURE__ */ _jsx(ActivityIndicator, {
|
|
12
|
+
size,
|
|
13
|
+
color
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
}), {
|
|
17
|
+
componentName: "Spinner"
|
|
18
|
+
}));
|
|
19
|
+
export {
|
|
20
|
+
Spinner
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/Spinner.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,YAAY;AAC5B,SAAS,WAAW,UAAU,wBAAwB;AACtD,SAAS,cAAc;AACvB,YAAY,WAAW;AACvB,SAAS,yBAAyB;AAC3B,IAAI,UAAU,OAAO,YAAY,UAAwB,sBAAM,WAAW,SAAS,OAAO,KAAK;AAClG,MAAI,EAAE,MAAM,OAAO,WAAW,GAAG,WAAW,IAAI,OAC5C,QAAQ,SAAS,GACjB,QAAQ;AACZ,SAAI,SAAS,MAAM,CAAC,MAAM,QACtB,QAAQ,iBAAiB,MAAM,KAAK,CAAC,IAEpB,qBAAK,QAAQ;AAAA,IAC9B;AAAA,IACA,GAAG;AAAA,IACH,UAAwB,qBAAK,mBAAmB;AAAA,MAC5C;AAAA,MACA;AAAA,IACJ,CAAC;AAAA,EACL,CAAC;AACL,CAAC,GAAG;AAAA,EACA,eAAe;AACnB,CAAC,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|