tamagui 1.88.21 → 1.88.23
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/esm/createTamagui.native.js +5 -26
- package/dist/esm/createTamagui.native.js.map +2 -2
- package/dist/esm/helpers/inputHelpers.native.js +11 -30
- package/dist/esm/helpers/inputHelpers.native.js.map +1 -1
- package/dist/esm/index.native.js +117 -189
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/lib/linear-gradient.native.js +1 -19
- package/dist/esm/lib/linear-gradient.native.js.map +1 -1
- package/dist/esm/linear-gradient.native.js +1 -19
- package/dist/esm/linear-gradient.native.js.map +1 -1
- package/dist/esm/setup.native.js +2 -21
- package/dist/esm/setup.native.js.map +1 -1
- package/dist/esm/viewTypes.native.js +0 -14
- package/dist/esm/viewTypes.native.js.map +2 -2
- package/dist/esm/views/Anchor.native.js +11 -28
- package/dist/esm/views/Anchor.native.js.map +1 -1
- package/dist/esm/views/EnsureFlexed.native.js +4 -25
- package/dist/esm/views/EnsureFlexed.native.js.map +1 -1
- package/dist/esm/views/Fieldset.native.js +5 -25
- package/dist/esm/views/Fieldset.native.js.map +1 -1
- package/dist/esm/views/Input.native.js +14 -33
- package/dist/esm/views/Input.native.js.map +1 -1
- package/dist/esm/views/Skeleton.native.js +0 -1
- package/dist/esm/views/Spinner.native.js +11 -36
- package/dist/esm/views/Spinner.native.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.native.js +6 -25
- package/dist/esm/views/TamaguiProvider.native.js.map +2 -2
- package/dist/esm/views/TamaguiProvider.server.native.js +4 -25
- package/dist/esm/views/TamaguiProvider.server.native.js.map +2 -2
- package/dist/esm/views/Text.native.js +4 -25
- package/dist/esm/views/Text.native.js.map +2 -2
- package/dist/esm/views/TextArea.native.js +13 -31
- package/dist/esm/views/TextArea.native.js.map +1 -1
- package/dist/esm/views/VisuallyHidden.native.js +4 -25
- package/dist/esm/views/VisuallyHidden.native.js.map +1 -1
- package/dist/jsx/createTamagui.native.js +5 -26
- package/dist/jsx/createTamagui.native.js.map +2 -2
- package/dist/jsx/helpers/inputHelpers.native.js +11 -30
- package/dist/jsx/helpers/inputHelpers.native.js.map +1 -1
- package/dist/jsx/index.native.js +117 -189
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/lib/linear-gradient.native.js +1 -19
- package/dist/jsx/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/linear-gradient.native.js +1 -19
- package/dist/jsx/linear-gradient.native.js.map +1 -1
- package/dist/jsx/setup.native.js +2 -21
- package/dist/jsx/setup.native.js.map +1 -1
- package/dist/jsx/viewTypes.native.js +0 -14
- package/dist/jsx/viewTypes.native.js.map +2 -2
- package/dist/jsx/views/Anchor.native.js +11 -28
- package/dist/jsx/views/Anchor.native.js.map +1 -1
- package/dist/jsx/views/EnsureFlexed.native.js +4 -25
- package/dist/jsx/views/EnsureFlexed.native.js.map +1 -1
- package/dist/jsx/views/Fieldset.native.js +5 -25
- package/dist/jsx/views/Fieldset.native.js.map +1 -1
- package/dist/jsx/views/Input.native.js +14 -33
- package/dist/jsx/views/Input.native.js.map +1 -1
- package/dist/jsx/views/Skeleton.native.js +0 -1
- package/dist/jsx/views/Spinner.native.js +11 -36
- package/dist/jsx/views/Spinner.native.js.map +1 -1
- package/dist/jsx/views/TamaguiProvider.native.js +6 -25
- package/dist/jsx/views/TamaguiProvider.native.js.map +2 -2
- package/dist/jsx/views/TamaguiProvider.server.native.js +4 -25
- package/dist/jsx/views/TamaguiProvider.server.native.js.map +2 -2
- package/dist/jsx/views/Text.native.js +4 -25
- package/dist/jsx/views/Text.native.js.map +2 -2
- package/dist/jsx/views/TextArea.native.js +13 -31
- package/dist/jsx/views/TextArea.native.js.map +1 -1
- package/dist/jsx/views/VisuallyHidden.native.js +4 -25
- package/dist/jsx/views/VisuallyHidden.native.js.map +1 -1
- package/dist/native.js +9 -5
- package/dist/native.js.map +1 -1
- package/dist/test.native.js +9 -5
- package/dist/test.native.js.map +1 -1
- package/package.json +54 -54
|
@@ -1,48 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Anchor_exports = {};
|
|
17
|
-
__export(Anchor_exports, {
|
|
18
|
-
Anchor: () => Anchor
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(Anchor_exports);
|
|
21
|
-
var import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_text = require("@tamagui/text"), import_react_native = require("react-native"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
-
const AnchorFrame = (0, import_core.styled)(import_text.SizableText, {
|
|
1
|
+
import { isWeb } from "@tamagui/constants";
|
|
2
|
+
import { styled } from "@tamagui/core";
|
|
3
|
+
import { SizableText } from "@tamagui/text";
|
|
4
|
+
import { Linking } from "react-native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
const AnchorFrame = styled(SizableText, {
|
|
23
7
|
name: "Anchor",
|
|
24
8
|
tag: "a",
|
|
25
9
|
accessibilityRole: "link"
|
|
26
10
|
}), Anchor = AnchorFrame.styleable(
|
|
27
|
-
({ href, target, ...props }, ref) => /* @__PURE__ */
|
|
11
|
+
({ href, target, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
28
12
|
AnchorFrame,
|
|
29
13
|
{
|
|
30
14
|
...props,
|
|
31
|
-
...
|
|
15
|
+
...isWeb ? {
|
|
32
16
|
href,
|
|
33
17
|
target
|
|
34
18
|
} : {
|
|
35
19
|
onPress: (event) => {
|
|
36
20
|
var _a;
|
|
37
|
-
(_a = props.onPress) == null || _a.call(props, event), href !== void 0 &&
|
|
21
|
+
(_a = props.onPress) == null || _a.call(props, event), href !== void 0 && Linking.openURL(href);
|
|
38
22
|
}
|
|
39
23
|
},
|
|
40
24
|
ref
|
|
41
25
|
}
|
|
42
26
|
)
|
|
43
27
|
);
|
|
44
|
-
|
|
45
|
-
0 && (module.exports = {
|
|
28
|
+
export {
|
|
46
29
|
Anchor
|
|
47
|
-
}
|
|
30
|
+
};
|
|
48
31
|
//# sourceMappingURL=Anchor.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Anchor.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,aAAa;AACtB,SAAS,cAAc;AAEvB,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AAmBlB;AATN,MAAM,cAAc,OAAO,aAAa;AAAA,EACtC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,mBAAmB;AACrB,CAAC,GAEY,SAAS,YAAY;AAAA,EAChC,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,QAEzB;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAI,QACD;AAAA,QACE;AAAA,QACA;AAAA,MACF,IACA;AAAA,QACE,SAAS,CAAC,UAAU;AA/BlC;AAgCgB,sBAAM,YAAN,uBAAgB,QACZ,SAAS,UACX,QAAQ,QAAQ,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,MACJ;AAAA;AAAA,EACF;AAGN;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var EnsureFlexed_exports = {};
|
|
17
|
-
__export(EnsureFlexed_exports, {
|
|
18
|
-
EnsureFlexed: () => EnsureFlexed
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(EnsureFlexed_exports);
|
|
21
|
-
var import_core = require("@tamagui/core");
|
|
22
|
-
const EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
1
|
+
import { Text, styled } from "@tamagui/core";
|
|
2
|
+
const EnsureFlexed = styled(Text, {
|
|
23
3
|
opacity: 0,
|
|
24
4
|
lineHeight: 0,
|
|
25
5
|
height: 0,
|
|
@@ -32,8 +12,7 @@ const EnsureFlexed = (0, import_core.styled)(import_core.Text, {
|
|
|
32
12
|
pointerEvents: "none"
|
|
33
13
|
});
|
|
34
14
|
EnsureFlexed.isVisuallyHidden = !0;
|
|
35
|
-
|
|
36
|
-
0 && (module.exports = {
|
|
15
|
+
export {
|
|
37
16
|
EnsureFlexed
|
|
38
|
-
}
|
|
17
|
+
};
|
|
39
18
|
//# sourceMappingURL=EnsureFlexed.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/EnsureFlexed.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,MAAM,cAAc;AAItB,MAAM,eAAe,OAAO,MAAM;AAAA,EACvC,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EAEV,YAAY;AAAA,IACV,iBAAiB;AAAA,EACnB;AAAA,EAEA,eAAe;AACjB,CAAC;AAGD,aAAa,mBAAsB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,25 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Fieldset_exports = {};
|
|
17
|
-
__export(Fieldset_exports, {
|
|
18
|
-
Fieldset: () => Fieldset
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(Fieldset_exports);
|
|
21
|
-
var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks");
|
|
22
|
-
const Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
1
|
+
import { styled } from "@tamagui/core";
|
|
2
|
+
import { YStack } from "@tamagui/stacks";
|
|
3
|
+
const Fieldset = styled(YStack, {
|
|
23
4
|
name: "Fieldset",
|
|
24
5
|
tag: "fieldset",
|
|
25
6
|
variants: {
|
|
@@ -31,8 +12,7 @@ const Fieldset = (0, import_core.styled)(import_stacks.YStack, {
|
|
|
31
12
|
}
|
|
32
13
|
}
|
|
33
14
|
});
|
|
34
|
-
|
|
35
|
-
0 && (module.exports = {
|
|
15
|
+
export {
|
|
36
16
|
Fieldset
|
|
37
|
-
}
|
|
17
|
+
};
|
|
38
18
|
//# sourceMappingURL=Fieldset.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Fieldset.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AACA,SAAS,cAAc;AACvB,SAAS,cAAc;AAEhB,MAAM,WAAW,OAAO,QAAQ;AAAA,EACrC,MAAM;AAAA,EACN,KAAK;AAAA,EAEL,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,eAAe;AAAA,QACf,YAAY;AAAA,MACd;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Input_exports = {};
|
|
17
|
-
__export(Input_exports, {
|
|
18
|
-
Input: () => Input,
|
|
19
|
-
InputFrame: () => InputFrame,
|
|
20
|
-
defaultStyles: () => defaultStyles,
|
|
21
|
-
useInputProps: () => useInputProps
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(Input_exports);
|
|
24
|
-
var import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_focusable = require("@tamagui/focusable"), import_react_native = require("react-native"), import_inputHelpers = require("../helpers/inputHelpers"), import_jsx_runtime = require("react/jsx-runtime");
|
|
1
|
+
import { isWeb } from "@tamagui/constants";
|
|
2
|
+
import { styled, useTheme } from "@tamagui/core";
|
|
3
|
+
import { useFocusable } from "@tamagui/focusable";
|
|
4
|
+
import { TextInput } from "react-native";
|
|
5
|
+
import { inputSizeVariant } from "../helpers/inputHelpers";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
25
7
|
const defaultStyles = {
|
|
26
8
|
size: "$true",
|
|
27
9
|
fontFamily: "$body",
|
|
28
10
|
borderWidth: 1,
|
|
29
11
|
outlineWidth: 0,
|
|
30
12
|
color: "$color",
|
|
31
|
-
...
|
|
13
|
+
...isWeb ? {
|
|
32
14
|
tabIndex: 0
|
|
33
15
|
} : {
|
|
34
16
|
focusable: !0
|
|
@@ -46,8 +28,8 @@ const defaultStyles = {
|
|
|
46
28
|
outlineStyle: "solid",
|
|
47
29
|
borderColor: "$borderColorFocus"
|
|
48
30
|
}
|
|
49
|
-
}, InputFrame =
|
|
50
|
-
|
|
31
|
+
}, InputFrame = styled(
|
|
32
|
+
TextInput,
|
|
51
33
|
{
|
|
52
34
|
name: "Input",
|
|
53
35
|
variants: {
|
|
@@ -55,7 +37,7 @@ const defaultStyles = {
|
|
|
55
37
|
false: defaultStyles
|
|
56
38
|
},
|
|
57
39
|
size: {
|
|
58
|
-
"...size":
|
|
40
|
+
"...size": inputSizeVariant
|
|
59
41
|
},
|
|
60
42
|
disabled: {
|
|
61
43
|
true: {}
|
|
@@ -73,11 +55,11 @@ const defaultStyles = {
|
|
|
73
55
|
}
|
|
74
56
|
), Input = InputFrame.styleable((propsIn, ref) => {
|
|
75
57
|
const props = useInputProps(propsIn, ref);
|
|
76
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ jsx(InputFrame, { ...props });
|
|
77
59
|
});
|
|
78
60
|
function useInputProps(props, ref) {
|
|
79
61
|
var _a, _b;
|
|
80
|
-
const theme =
|
|
62
|
+
const theme = useTheme(), { onChangeText, ref: combinedRef } = useFocusable({
|
|
81
63
|
// @ts-ignore
|
|
82
64
|
props,
|
|
83
65
|
ref,
|
|
@@ -91,11 +73,10 @@ function useInputProps(props, ref) {
|
|
|
91
73
|
onChangeText
|
|
92
74
|
};
|
|
93
75
|
}
|
|
94
|
-
|
|
95
|
-
0 && (module.exports = {
|
|
76
|
+
export {
|
|
96
77
|
Input,
|
|
97
78
|
InputFrame,
|
|
98
79
|
defaultStyles,
|
|
99
80
|
useInputProps
|
|
100
|
-
}
|
|
81
|
+
};
|
|
101
82
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Input.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,aAAa;AAEtB,SAAS,QAAQ,gBAAgB;AACjC,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAE1B,SAAS,wBAAwB;AA8ExB;AA5EF,MAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EAEP,GAAI,QACA;AAAA,IACE,UAAU;AAAA,EACZ,IACA;AAAA,IACE,WAAW;AAAA,EACb;AAAA,EAEJ,aAAa;AAAA,EACb,iBAAiB;AAAA;AAAA,EAGjB,UAAU;AAAA,EAEV,YAAY;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EAEA,YAAY;AAAA,IACV,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,IACd,aAAa;AAAA,EACf;AACF,GAEa,aAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IAEN,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,EACA;AAAA,IACE,SAAS;AAAA,IACT,cAAc;AAAA,MACZ,sBAAsB;AAAA,IACxB;AAAA,EACF;AACF,GAYa,QAAQ,WAAW,UAA2B,CAAC,SAAS,QAAQ;AAC3E,QAAM,QAAQ,cAAc,SAAS,GAAG;AACxC,SAAO,oBAAC,cAAY,GAAG,OAAO;AAChC,CAAC;AAEM,SAAS,cAAc,OAAmB,KAAU;AAvF3D;AAwFE,QAAM,QAAQ,SAAS,GACjB,EAAE,cAAc,KAAK,YAAY,IAAI,aAAa;AAAA;AAAA,IAEtD;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,CAAC,GAEK,uBAAuB,MAAM,sBAC7B,yBACJ,WAAM,oBAA2B,MAAjC,mBAAoC,UACpC,0BACA,WAAM,qBAAN,mBAAwB;AAE1B,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU,MAAM;AAAA,IAChB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,46 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
10
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
return to;
|
|
15
|
-
};
|
|
16
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
|
-
var Spinner_exports = {};
|
|
25
|
-
__export(Spinner_exports, {
|
|
26
|
-
Spinner: () => Spinner
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(Spinner_exports);
|
|
29
|
-
var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), React = __toESM(require("react")), import_react_native = require("react-native"), import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
const Spinner = import_stacks.YStack.extractable(
|
|
31
|
-
(0, import_core.themeable)(
|
|
1
|
+
import { themeable, useTheme, variableToString } from "@tamagui/core";
|
|
2
|
+
import { YStack } from "@tamagui/stacks";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { ActivityIndicator } from "react-native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
const Spinner = YStack.extractable(
|
|
7
|
+
themeable(
|
|
32
8
|
React.forwardRef((props, ref) => {
|
|
33
|
-
const { size, color: colorProp, ...stackProps } = props, theme =
|
|
9
|
+
const { size, color: colorProp, ...stackProps } = props, theme = useTheme();
|
|
34
10
|
let color = colorProp;
|
|
35
|
-
return color && color[0] === "$" && (color =
|
|
11
|
+
return color && color[0] === "$" && (color = variableToString(theme[color])), /* @__PURE__ */ jsx(YStack, { ref, ...stackProps, children: /* @__PURE__ */ jsx(ActivityIndicator, { size, color }) });
|
|
36
12
|
}),
|
|
37
13
|
{
|
|
38
14
|
componentName: "Spinner"
|
|
39
15
|
}
|
|
40
16
|
)
|
|
41
17
|
);
|
|
42
|
-
|
|
43
|
-
0 && (module.exports = {
|
|
18
|
+
export {
|
|
44
19
|
Spinner
|
|
45
|
-
}
|
|
20
|
+
};
|
|
46
21
|
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Spinner.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AACA,SAAS,WAAW,UAAU,wBAAwB;AAEtD,SAAS,cAAc;AACvB,YAAY,WAAW;AACvB,SAAS,yBAAyB;AAoBxB;AAbH,MAAM,UAET,OAAO;AAAA,EACT;AAAA,IACE,MAAM,WAA2B,CAAC,OAAqB,QAAQ;AAC7D,YAAM,EAAE,MAAM,OAAO,WAAW,GAAG,WAAW,IAAI,OAC5C,QAAQ,SAAS;AACvB,UAAI,QAAQ;AACZ,aAAI,SAAS,MAAM,CAAC,MAAM,QACxB,QAAQ,iBAAiB,MAAM,KAAK,CAAC,IAGrC,oBAAC,UAAO,KAAW,GAAG,YACpB,8BAAC,qBAAkB,MAAY,OAAc,GAC/C;AAAA,IAEJ,CAAC;AAAA,IACD;AAAA,MACE,eAAe;AAAA,IACjB;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var TamaguiProvider_exports = {};
|
|
17
|
-
__export(TamaguiProvider_exports, {
|
|
18
|
-
TamaguiProvider: () => TamaguiProvider
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(TamaguiProvider_exports);
|
|
21
|
-
var import_core = require("@tamagui/core"), import_portal = require("@tamagui/portal"), import_jsx_runtime = require("react/jsx-runtime");
|
|
22
|
-
const TamaguiProvider = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.TamaguiProvider, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_portal.PortalProvider, { shouldAddRootHost: !0, children }) });
|
|
23
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
-
0 && (module.exports = {
|
|
1
|
+
import { TamaguiProvider as OGProvider } from "@tamagui/core";
|
|
2
|
+
import { PortalProvider } from "@tamagui/portal";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
const TamaguiProvider = ({ children, ...props }) => /* @__PURE__ */ jsx(OGProvider, { ...props, children: /* @__PURE__ */ jsx(PortalProvider, { shouldAddRootHost: !0, children }) });
|
|
5
|
+
export {
|
|
25
6
|
TamaguiProvider
|
|
26
|
-
}
|
|
7
|
+
};
|
|
27
8
|
//# sourceMappingURL=TamaguiProvider.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TamaguiProvider.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AACA,SAAS,mBAAmB,kBAAkB;AAC9C,SAAS,sBAAsB;AAKzB;AAHC,MAAM,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,MAEjD,oBAAC,cAAY,GAAG,OACd,8BAAC,kBAAe,mBAAiB,IAAE,UAAS,GAC9C;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var TamaguiProvider_server_exports = {};
|
|
17
|
-
__export(TamaguiProvider_server_exports, {
|
|
18
|
-
TamaguiProvider: () => TamaguiProvider
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(TamaguiProvider_server_exports);
|
|
21
|
-
var import_core = require("@tamagui/core");
|
|
22
|
-
const TamaguiProvider = import_core.TamaguiProvider;
|
|
23
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
-
0 && (module.exports = {
|
|
1
|
+
import { TamaguiProvider as OGProvider } from "@tamagui/core";
|
|
2
|
+
const TamaguiProvider = OGProvider;
|
|
3
|
+
export {
|
|
25
4
|
TamaguiProvider
|
|
26
|
-
}
|
|
5
|
+
};
|
|
27
6
|
//# sourceMappingURL=TamaguiProvider.server.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TamaguiProvider.server.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB,kBAAkB;AAEvC,MAAM,kBAAkB;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var Text_exports = {};
|
|
17
|
-
__export(Text_exports, {
|
|
18
|
-
Text: () => Text
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(Text_exports);
|
|
21
|
-
var import_core = require("@tamagui/core");
|
|
22
|
-
const Text = (0, import_core.styled)(import_core.Text, {
|
|
1
|
+
import { Text as TamaguiText, styled } from "@tamagui/core";
|
|
2
|
+
const Text = styled(TamaguiText, {
|
|
23
3
|
variants: {
|
|
24
4
|
unstyled: {
|
|
25
5
|
false: {
|
|
@@ -31,8 +11,7 @@ const Text = (0, import_core.styled)(import_core.Text, {
|
|
|
31
11
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
32
12
|
}
|
|
33
13
|
});
|
|
34
|
-
|
|
35
|
-
0 && (module.exports = {
|
|
14
|
+
export {
|
|
36
15
|
Text
|
|
37
|
-
}
|
|
16
|
+
};
|
|
38
17
|
//# sourceMappingURL=Text.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Text.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": [
|
|
4
|
+
"mappings": "AAAA,SAAS,QAAQ,aAAa,cAAc;AAErC,MAAM,OAAO,OAAO,aAAa;AAAA,EACtC,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var TextArea_exports = {};
|
|
17
|
-
__export(TextArea_exports, {
|
|
18
|
-
TextArea: () => TextArea,
|
|
19
|
-
TextAreaFrame: () => TextAreaFrame
|
|
20
|
-
});
|
|
21
|
-
module.exports = __toCommonJS(TextArea_exports);
|
|
22
|
-
var import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core"), import_inputHelpers = require("../helpers/inputHelpers"), import_Input = require("./Input"), import_jsx_runtime = require("react/jsx-runtime");
|
|
23
|
-
const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
1
|
+
import { isWeb } from "@tamagui/constants";
|
|
2
|
+
import { styled } from "@tamagui/core";
|
|
3
|
+
import { textAreaSizeVariant } from "../helpers/inputHelpers";
|
|
4
|
+
import { InputFrame, defaultStyles, useInputProps } from "./Input";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
const TextAreaFrame = styled(InputFrame, {
|
|
24
7
|
name: "TextArea",
|
|
25
8
|
multiline: !0,
|
|
26
9
|
// this attribute fixes firefox newline issue
|
|
@@ -29,26 +12,25 @@ const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
|
29
12
|
unstyled: {
|
|
30
13
|
false: {
|
|
31
14
|
height: "auto",
|
|
32
|
-
...
|
|
15
|
+
...defaultStyles
|
|
33
16
|
}
|
|
34
17
|
},
|
|
35
18
|
size: {
|
|
36
|
-
"...size":
|
|
19
|
+
"...size": textAreaSizeVariant
|
|
37
20
|
}
|
|
38
21
|
},
|
|
39
22
|
defaultVariants: {
|
|
40
23
|
unstyled: process.env.TAMAGUI_HEADLESS === "1"
|
|
41
24
|
}
|
|
42
25
|
}), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
43
|
-
const props =
|
|
26
|
+
const props = useInputProps(propsIn, ref), linesProp = {
|
|
44
27
|
// web uses rows now, but native not caught up :/
|
|
45
|
-
[
|
|
28
|
+
[isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
46
29
|
};
|
|
47
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ jsx(TextAreaFrame, { ...linesProp, ...props });
|
|
48
31
|
});
|
|
49
|
-
|
|
50
|
-
0 && (module.exports = {
|
|
32
|
+
export {
|
|
51
33
|
TextArea,
|
|
52
34
|
TextAreaFrame
|
|
53
|
-
}
|
|
35
|
+
};
|
|
54
36
|
//# sourceMappingURL=TextArea.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,aAAa;AACtB,SAAS,cAAc;AAEvB,SAAS,2BAA2B;AAEpC,SAAS,YAAY,eAAe,qBAAqB;AAuChD;AAjCF,MAAM,gBAAgB,OAAO,YAAY;AAAA,EAC9C,MAAM;AAAA,EACN,WAAW;AAAA;AAAA,EAEX,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG;AAAA,MACL;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,GAIY,WAAW,cAAc,UAA2B,CAAC,SAAS,QAAQ;AACjF,QAAM,QAAQ,cAAc,SAAS,GAAG,GAElC,YAAY;AAAA;AAAA,IAEhB,CAAC,QAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,oBAAC,iBAAe,GAAG,WAAY,GAAG,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,25 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __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 __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
16
|
-
var VisuallyHidden_exports = {};
|
|
17
|
-
__export(VisuallyHidden_exports, {
|
|
18
|
-
VisuallyHidden: () => VisuallyHidden
|
|
19
|
-
});
|
|
20
|
-
module.exports = __toCommonJS(VisuallyHidden_exports);
|
|
21
|
-
var import_core = require("@tamagui/core");
|
|
22
|
-
const VisuallyHidden = (0, import_core.styled)(import_core.Stack, {
|
|
1
|
+
import { Stack, styled } from "@tamagui/core";
|
|
2
|
+
const VisuallyHidden = styled(Stack, {
|
|
23
3
|
position: "absolute",
|
|
24
4
|
width: 1,
|
|
25
5
|
height: 1,
|
|
@@ -51,8 +31,7 @@ const VisuallyHidden = (0, import_core.styled)(import_core.Stack, {
|
|
|
51
31
|
}
|
|
52
32
|
});
|
|
53
33
|
VisuallyHidden.isVisuallyHidden = !0;
|
|
54
|
-
|
|
55
|
-
0 && (module.exports = {
|
|
34
|
+
export {
|
|
56
35
|
VisuallyHidden
|
|
57
|
-
}
|
|
36
|
+
};
|
|
58
37
|
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/VisuallyHidden.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,cAAc;AAEvB,MAAM,iBAAiB,OAAO,OAAO;AAAA,EAC1C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,oBAAoB;AAAA,MAClB,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAGD,eAAe,mBAAsB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|