tamagui 1.61.2 → 1.62.0
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.js +10 -23
- package/dist/cjs/createTamagui.js.map +1 -1
- package/dist/cjs/createTamagui.native.js +73 -0
- package/dist/cjs/createTamagui.native.js.map +6 -0
- package/dist/cjs/helpers/inputHelpers.js +13 -33
- package/dist/cjs/helpers/inputHelpers.js.map +1 -1
- package/dist/cjs/helpers/inputHelpers.native.js +56 -0
- package/dist/cjs/helpers/inputHelpers.native.js.map +6 -0
- package/dist/cjs/index.js +6 -11
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +243 -0
- package/dist/cjs/index.native.js.map +6 -0
- package/dist/cjs/lib/linear-gradient.native.js +4 -7
- package/dist/cjs/lib/linear-gradient.native.js.map +1 -1
- package/dist/cjs/linear-gradient.js +4 -8
- package/dist/cjs/linear-gradient.js.map +1 -1
- package/dist/cjs/linear-gradient.native.js +20 -0
- package/dist/cjs/linear-gradient.native.js.map +6 -0
- package/dist/cjs/setup.js +17 -31
- package/dist/cjs/setup.js.map +1 -1
- package/dist/cjs/setup.native.js +51 -0
- package/dist/cjs/setup.native.js.map +6 -0
- package/dist/cjs/viewTypes.js +3 -6
- package/dist/cjs/viewTypes.js.map +1 -1
- package/dist/cjs/viewTypes.native.js +15 -0
- package/dist/cjs/viewTypes.native.js.map +6 -0
- package/dist/cjs/views/Anchor.js +22 -37
- package/dist/cjs/views/Anchor.js.map +1 -1
- package/dist/cjs/views/Anchor.native.js +47 -0
- package/dist/cjs/views/Anchor.native.js.map +6 -0
- package/dist/cjs/views/EnsureFlexed.js +6 -10
- package/dist/cjs/views/EnsureFlexed.js.map +1 -1
- package/dist/cjs/views/EnsureFlexed.native.js +39 -0
- package/dist/cjs/views/EnsureFlexed.native.js.map +6 -0
- package/dist/cjs/views/Fieldset.js +6 -11
- package/dist/cjs/views/Fieldset.js.map +1 -1
- package/dist/cjs/views/Fieldset.native.js +38 -0
- package/dist/cjs/views/Fieldset.native.js.map +6 -0
- package/dist/cjs/views/Input.js +14 -28
- package/dist/cjs/views/Input.js.map +1 -1
- package/dist/cjs/views/Input.native.js +96 -0
- package/dist/cjs/views/Input.native.js.map +6 -0
- package/dist/cjs/views/Layouts.js +11 -21
- package/dist/cjs/views/Layouts.js.map +1 -1
- package/dist/cjs/views/Layouts.native.js +72 -0
- package/dist/cjs/views/Layouts.native.js.map +6 -0
- package/dist/cjs/views/Skeleton.js +0 -1
- package/dist/cjs/views/Skeleton.native.js +2 -0
- package/dist/cjs/views/Skeleton.native.js.map +6 -0
- package/dist/cjs/views/Spinner.js +10 -24
- package/dist/cjs/views/Spinner.js.map +1 -1
- package/dist/cjs/views/Spinner.native.js +46 -0
- package/dist/cjs/views/Spinner.native.js.map +6 -0
- package/dist/cjs/views/TamaguiProvider.js +7 -15
- package/dist/cjs/views/TamaguiProvider.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.native.js +27 -0
- package/dist/cjs/views/TamaguiProvider.native.js.map +6 -0
- package/dist/cjs/views/TamaguiProvider.server.js +5 -9
- package/dist/cjs/views/TamaguiProvider.server.js.map +1 -1
- package/dist/cjs/views/TamaguiProvider.server.native.js +27 -0
- package/dist/cjs/views/TamaguiProvider.server.native.js.map +6 -0
- package/dist/cjs/views/TextArea.js +10 -19
- package/dist/cjs/views/TextArea.js.map +1 -1
- package/dist/cjs/views/TextArea.native.js +54 -0
- package/dist/cjs/views/TextArea.native.js.map +6 -0
- package/dist/cjs/views/VisuallyHidden.js +6 -10
- package/dist/cjs/views/VisuallyHidden.js.map +1 -1
- package/dist/cjs/views/VisuallyHidden.native.js +58 -0
- package/dist/cjs/views/VisuallyHidden.native.js.map +6 -0
- package/dist/esm/createTamagui.js +5 -14
- package/dist/esm/createTamagui.js.map +1 -1
- package/dist/esm/helpers/inputHelpers.js +7 -20
- package/dist/esm/helpers/inputHelpers.js.map +1 -1
- package/dist/esm/setup.js +9 -15
- package/dist/esm/setup.js.map +1 -1
- package/dist/esm/views/Anchor.js +17 -24
- package/dist/esm/views/Anchor.js.map +1 -1
- package/dist/esm/views/EnsureFlexed.js +1 -1
- package/dist/esm/views/EnsureFlexed.js.map +1 -1
- package/dist/esm/views/Input.js +9 -15
- package/dist/esm/views/Input.js.map +1 -1
- package/dist/esm/views/Layouts.js +6 -12
- package/dist/esm/views/Layouts.js.map +1 -1
- package/dist/esm/views/Spinner.js +3 -7
- package/dist/esm/views/Spinner.js.map +1 -1
- package/dist/esm/views/TamaguiProvider.js +2 -4
- package/dist/esm/views/TamaguiProvider.js.map +1 -1
- package/dist/esm/views/TextArea.js +5 -7
- package/dist/esm/views/TextArea.js.map +1 -1
- package/dist/esm/views/VisuallyHidden.js +1 -1
- package/dist/esm/views/VisuallyHidden.js.map +1 -1
- package/dist/jsx/createTamagui.js +5 -14
- package/dist/jsx/createTamagui.js.map +1 -1
- package/dist/jsx/createTamagui.native.js +52 -0
- package/dist/jsx/createTamagui.native.js.map +6 -0
- package/dist/jsx/helpers/inputHelpers.js +7 -20
- package/dist/jsx/helpers/inputHelpers.js.map +1 -1
- package/dist/jsx/helpers/inputHelpers.native.js +37 -0
- package/dist/jsx/helpers/inputHelpers.native.js.map +6 -0
- package/dist/jsx/index.native.js +173 -0
- package/dist/jsx/index.native.js.map +6 -0
- package/dist/jsx/linear-gradient.native.js +2 -0
- package/dist/{esm/lib → jsx}/linear-gradient.native.js.map +1 -1
- package/dist/jsx/setup.js +9 -15
- package/dist/jsx/setup.js.map +1 -1
- package/dist/jsx/setup.native.js +24 -0
- package/dist/jsx/setup.native.js.map +6 -0
- package/dist/jsx/viewTypes.native.js +1 -0
- package/dist/jsx/viewTypes.native.js.map +6 -0
- package/dist/jsx/views/Anchor.js +13 -19
- package/dist/jsx/views/Anchor.js.map +1 -1
- package/dist/jsx/views/Anchor.native.js +26 -0
- package/dist/jsx/views/Anchor.native.js.map +6 -0
- package/dist/jsx/views/EnsureFlexed.js +1 -1
- package/dist/jsx/views/EnsureFlexed.js.map +1 -1
- package/dist/jsx/views/EnsureFlexed.native.js +18 -0
- package/dist/jsx/views/EnsureFlexed.native.js.map +6 -0
- package/dist/jsx/views/Fieldset.native.js +18 -0
- package/dist/jsx/views/Fieldset.native.js.map +6 -0
- package/dist/jsx/views/Input.js +8 -13
- package/dist/jsx/views/Input.js.map +1 -1
- package/dist/jsx/views/Input.native.js +80 -0
- package/dist/jsx/views/Input.native.js.map +6 -0
- package/dist/jsx/views/Layouts.js +6 -12
- package/dist/jsx/views/Layouts.js.map +1 -1
- package/dist/jsx/views/Layouts.native.js +45 -0
- package/dist/jsx/views/Layouts.native.js.map +6 -0
- package/dist/jsx/views/Skeleton.native.js +1 -0
- package/dist/jsx/views/Skeleton.native.js.map +6 -0
- package/dist/jsx/views/Spinner.js +2 -6
- package/dist/jsx/views/Spinner.js.map +1 -1
- package/dist/jsx/views/Spinner.native.js +24 -0
- package/dist/jsx/views/Spinner.native.js.map +6 -0
- package/dist/jsx/views/TamaguiProvider.js +1 -3
- package/dist/jsx/views/TamaguiProvider.js.map +1 -1
- package/dist/jsx/views/TamaguiProvider.native.js +7 -0
- package/dist/jsx/views/TamaguiProvider.native.js.map +6 -0
- package/dist/jsx/views/TamaguiProvider.server.native.js +6 -0
- package/dist/jsx/views/TamaguiProvider.server.native.js.map +6 -0
- package/dist/jsx/views/TextArea.js +4 -6
- package/dist/jsx/views/TextArea.js.map +1 -1
- package/dist/jsx/views/TextArea.native.js +34 -0
- package/dist/jsx/views/TextArea.native.js.map +6 -0
- package/dist/jsx/views/VisuallyHidden.js +1 -1
- package/dist/jsx/views/VisuallyHidden.js.map +1 -1
- package/dist/jsx/views/VisuallyHidden.native.js +37 -0
- package/dist/jsx/views/VisuallyHidden.native.js.map +6 -0
- package/package.json +51 -51
- package/dist/cjs/views/Grid.js +0 -77
- package/dist/cjs/views/Grid.js.map +0 -6
- package/dist/esm/lib/linear-gradient.native.js +0 -2
- package/dist/esm/views/Grid.js +0 -43
- package/dist/esm/views/Grid.js.map +0 -6
- package/dist/jsx/views/Grid.js +0 -34
- package/dist/jsx/views/Grid.js.map +0 -6
- package/types/views/Grid.d.ts +0 -9
- package/types/views/Grid.d.ts.map +0 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 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 = {
|
|
25
|
+
TamaguiProvider
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=TamaguiProvider.server.js.map
|
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var TextArea_exports = {};
|
|
20
16
|
__export(TextArea_exports, {
|
|
21
17
|
TextArea: () => TextArea,
|
|
22
18
|
TextAreaFrame: () => TextAreaFrame
|
|
23
19
|
});
|
|
24
20
|
module.exports = __toCommonJS(TextArea_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_core = require("@tamagui/core");
|
|
27
|
-
var import_inputHelpers = require("../helpers/inputHelpers");
|
|
28
|
-
var import_Input = require("./Input");
|
|
21
|
+
var import_core = require("@tamagui/core"), import_inputHelpers = require("../helpers/inputHelpers"), import_Input = require("./Input"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
22
|
const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
30
23
|
name: "TextArea",
|
|
31
|
-
multiline:
|
|
24
|
+
multiline: !0,
|
|
32
25
|
// this attribute fixes firefox newline issue
|
|
33
26
|
whiteSpace: "pre-wrap",
|
|
34
27
|
variants: {
|
|
@@ -43,12 +36,10 @@ const TextAreaFrame = (0, import_core.styled)(import_Input.InputFrame, {
|
|
|
43
36
|
}
|
|
44
37
|
},
|
|
45
38
|
defaultVariants: {
|
|
46
|
-
unstyled:
|
|
39
|
+
unstyled: !1
|
|
47
40
|
}
|
|
48
|
-
})
|
|
49
|
-
const
|
|
50
|
-
const props = (0, import_Input.useInputProps)(propsIn, ref);
|
|
51
|
-
const linesProp = {
|
|
41
|
+
}), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
42
|
+
const props = (0, import_Input.useInputProps)(propsIn, ref), linesProp = {
|
|
52
43
|
// web uses rows now, but native not caught up :/
|
|
53
44
|
[import_core.isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
54
45
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B,0BAE9B,sBAAoC,oCACpC,eAAqE,oBAuC5D;AAjCF,MAAM,oBAAgB,oBAAO,yBAAY;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;AAAA,EACZ;AACF,CAAC,GAIY,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,YAAQ,4BAAc,SAAS,GAAG,GAElC,YAAY;AAAA;AAAA,IAEhB,CAAC,oBAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,4CAAC,iBAAe,GAAG,WAAY,GAAG,OAAO;AAClD,CAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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 TextArea_exports = {};
|
|
17
|
+
__export(TextArea_exports, {
|
|
18
|
+
TextArea: () => TextArea,
|
|
19
|
+
TextAreaFrame: () => TextAreaFrame
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(TextArea_exports);
|
|
22
|
+
var 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, {
|
|
24
|
+
name: "TextArea",
|
|
25
|
+
multiline: !0,
|
|
26
|
+
// this attribute fixes firefox newline issue
|
|
27
|
+
whiteSpace: "pre-wrap",
|
|
28
|
+
variants: {
|
|
29
|
+
unstyled: {
|
|
30
|
+
false: {
|
|
31
|
+
height: "auto",
|
|
32
|
+
...import_Input.defaultStyles
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
size: {
|
|
36
|
+
"...size": import_inputHelpers.textAreaSizeVariant
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
defaultVariants: {
|
|
40
|
+
unstyled: !1
|
|
41
|
+
}
|
|
42
|
+
}), TextArea = TextAreaFrame.styleable((propsIn, ref) => {
|
|
43
|
+
const props = (0, import_Input.useInputProps)(propsIn, ref), linesProp = {
|
|
44
|
+
// web uses rows now, but native not caught up :/
|
|
45
|
+
[import_core.isWeb ? "rows" : "numberOfLines"]: propsIn.unstyled ? void 0 : 4
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextAreaFrame, { ...linesProp, ...props });
|
|
48
|
+
});
|
|
49
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
50
|
+
0 && (module.exports = {
|
|
51
|
+
TextArea,
|
|
52
|
+
TextAreaFrame
|
|
53
|
+
});
|
|
54
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/TextArea.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B,0BAE9B,sBAAoC,oCACpC,eAAqE,oBAuC5D;AAjCF,MAAM,oBAAgB,oBAAO,yBAAY;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;AAAA,EACZ;AACF,CAAC,GAIY,WAAW,cAAc,UAAsB,CAAC,SAAS,QAAQ;AAC5E,QAAM,YAAQ,4BAAc,SAAS,GAAG,GAElC,YAAY;AAAA;AAAA,IAEhB,CAAC,oBAAQ,SAAS,eAAe,GAAG,QAAQ,WAAW,SAAY;AAAA,EACrE;AACA,SAAO,4CAAC,iBAAe,GAAG,WAAY,GAAG,OAAO;AAClD,CAAC;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
5
|
var __export = (target, all) => {
|
|
7
6
|
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable:
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
13
|
-
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
12
|
return to;
|
|
17
13
|
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value:
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
19
15
|
var VisuallyHidden_exports = {};
|
|
20
16
|
__export(VisuallyHidden_exports, {
|
|
21
17
|
VisuallyHidden: () => VisuallyHidden
|
|
@@ -53,7 +49,7 @@ const VisuallyHidden = (0, import_core.styled)(import_core.Stack, {
|
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
});
|
|
56
|
-
VisuallyHidden
|
|
52
|
+
VisuallyHidden.isVisuallyHidden = !0;
|
|
57
53
|
// Annotate the CommonJS export names for ESM import in node:
|
|
58
54
|
0 && (module.exports = {
|
|
59
55
|
VisuallyHidden
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/VisuallyHidden.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B;AAEvB,MAAM,qBAAiB,oBAAO,mBAAO;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
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
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, {
|
|
23
|
+
position: "absolute",
|
|
24
|
+
width: 1,
|
|
25
|
+
height: 1,
|
|
26
|
+
margin: -1,
|
|
27
|
+
zIndex: -1e4,
|
|
28
|
+
overflow: "hidden",
|
|
29
|
+
opacity: 1e-8,
|
|
30
|
+
pointerEvents: "none",
|
|
31
|
+
variants: {
|
|
32
|
+
preserveDimensions: {
|
|
33
|
+
true: {
|
|
34
|
+
position: "relative",
|
|
35
|
+
width: "auto",
|
|
36
|
+
height: "auto"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
visible: {
|
|
40
|
+
true: {
|
|
41
|
+
position: "relative",
|
|
42
|
+
width: "auto",
|
|
43
|
+
height: "auto",
|
|
44
|
+
margin: 0,
|
|
45
|
+
zIndex: 1,
|
|
46
|
+
overflow: "visible",
|
|
47
|
+
opacity: 1,
|
|
48
|
+
pointerEvents: "auto"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
VisuallyHidden.isVisuallyHidden = !0;
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
VisuallyHidden
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/views/VisuallyHidden.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B;AAEvB,MAAM,qBAAiB,oBAAO,mBAAO;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
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import { createTamagui as createTamaguiCore } from "@tamagui/core";
|
|
2
2
|
const createTamagui = process.env.NODE_ENV !== "development" ? createTamaguiCore : (conf) => {
|
|
3
|
-
const sizeTokenKeys = ["$true"];
|
|
4
|
-
const hasKeys = (expectedKeys, obj) => {
|
|
5
|
-
return expectedKeys.every((k) => typeof obj[k] !== "undefined");
|
|
6
|
-
};
|
|
7
|
-
const tamaguiConfig = createTamaguiCore(conf);
|
|
3
|
+
const sizeTokenKeys = ["$true"], hasKeys = (expectedKeys, obj) => expectedKeys.every((k) => typeof obj[k] < "u"), tamaguiConfig = createTamaguiCore(conf);
|
|
8
4
|
for (const name of ["size", "space"]) {
|
|
9
5
|
const tokenSet = tamaguiConfig.tokensParsed[name];
|
|
10
|
-
if (!tokenSet)
|
|
6
|
+
if (!tokenSet)
|
|
11
7
|
throw new Error(
|
|
12
8
|
`Expected tokens for "${name}" in ${Object.keys(
|
|
13
9
|
tamaguiConfig.tokensParsed
|
|
14
10
|
).join(", ")}`
|
|
15
11
|
);
|
|
16
|
-
|
|
17
|
-
if (!hasKeys(sizeTokenKeys, tokenSet)) {
|
|
12
|
+
if (!hasKeys(sizeTokenKeys, tokenSet))
|
|
18
13
|
throw new Error(`
|
|
19
14
|
createTamagui() missing expected tokens.${name}:
|
|
20
15
|
|
|
@@ -35,14 +30,11 @@ size: {
|
|
|
35
30
|
}
|
|
36
31
|
|
|
37
32
|
`);
|
|
38
|
-
}
|
|
39
33
|
}
|
|
40
34
|
const expected = Object.keys(tamaguiConfig.tokensParsed.size);
|
|
41
35
|
for (const name of ["radius", "zIndex"]) {
|
|
42
|
-
const tokenSet = tamaguiConfig.tokensParsed[name];
|
|
43
|
-
|
|
44
|
-
const hasSomeOverlap = received.some((rk) => expected.includes(rk));
|
|
45
|
-
if (!hasSomeOverlap) {
|
|
36
|
+
const tokenSet = tamaguiConfig.tokensParsed[name], received = Object.keys(tokenSet);
|
|
37
|
+
if (!received.some((rk) => expected.includes(rk)))
|
|
46
38
|
throw new Error(`
|
|
47
39
|
createTamagui() invalid tokens.${name}:
|
|
48
40
|
|
|
@@ -51,7 +43,6 @@ Received: ${received.join(", ")}
|
|
|
51
43
|
Expected a subset of: ${expected.join(", ")}
|
|
52
44
|
|
|
53
45
|
`);
|
|
54
|
-
}
|
|
55
46
|
}
|
|
56
47
|
return tamaguiConfig;
|
|
57
48
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/createTamagui.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,iBAAiB,yBAAyB;AAM5C,MAAM,gBACX,QAAQ,IAAI,aAAa,gBACrB,oBACA,CAAC,SAAS;AACR,QAAM,gBAAgB,CAAC,OAAO
|
|
4
|
+
"mappings": "AAAA,SAAS,iBAAiB,yBAAyB;AAM5C,MAAM,gBACX,QAAQ,IAAI,aAAa,gBACrB,oBACA,CAAC,SAAS;AACR,QAAM,gBAAgB,CAAC,OAAO,GAExB,UAAU,CAAC,cAAwB,QAChC,aAAa,MAAM,CAAC,MAAM,OAAO,IAAI,CAAC,IAAM,GAAW,GAG1D,gBAAgB,kBAAkB,IAAI;AAG5C,aAAW,QAAQ,CAAC,QAAQ,OAAO,GAAY;AAC7C,UAAM,WAAW,cAAc,aAAa,IAAI;AAChD,QAAI,CAAC;AACH,YAAM,IAAI;AAAA,QACR,wBAAwB,IAAI,QAAQ,OAAO;AAAA,UACzC,cAAc;AAAA,QAChB,EAAE,KAAK,IAAI,CAAC;AAAA,MACd;AAEF,QAAI,CAAC,QAAQ,eAAe,QAAQ;AAClC,YAAM,IAAI,MAAM;AAAA,0CACc,IAAI;AAAA;AAAA,YAElC,OAAO,KAAK,QAAQ,EAAE,KAAK,IAAI,CAAC;AAAA;AAAA,YAEhC,cAAc,KAAK,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAcnC;AAAA,EAEO;AAGA,QAAM,WAAW,OAAO,KAAK,cAAc,aAAa,IAAI;AAC5D,aAAW,QAAQ,CAAC,UAAU,QAAQ,GAAY;AAChD,UAAM,WAAW,cAAc,aAAa,IAAI,GAC1C,WAAW,OAAO,KAAK,QAAQ;AAErC,QAAI,CADmB,SAAS,KAAK,CAAC,OAAO,SAAS,SAAS,EAAE,CAAC;AAEhE,YAAM,IAAI,MAAM;AAAA,iCACK,IAAI;AAAA;AAAA,YAEzB,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,wBAEP,SAAS,KAAK,IAAI,CAAC;AAAA;AAAA,CAE1C;AAAA,EAEO;AAEA,SAAO;AACT;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -3,35 +3,22 @@ import { getButtonSized } from "@tamagui/get-button-sized";
|
|
|
3
3
|
import { getFontSized } from "@tamagui/get-font-sized";
|
|
4
4
|
import { getSpace } from "@tamagui/get-token";
|
|
5
5
|
const inputSizeVariant = (val = "$true", extras) => {
|
|
6
|
-
if (extras.props.multiline || extras.props.numberOfLines > 1)
|
|
6
|
+
if (extras.props.multiline || extras.props.numberOfLines > 1)
|
|
7
7
|
return textAreaSizeVariant(val, extras);
|
|
8
|
-
|
|
9
|
-
const buttonStyles = getButtonSized(val, extras);
|
|
10
|
-
const paddingHorizontal = getSpace(val, {
|
|
8
|
+
const buttonStyles = getButtonSized(val, extras), paddingHorizontal = getSpace(val, {
|
|
11
9
|
shift: -1,
|
|
12
10
|
bounds: [2]
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
if (!isWeb && fontStyle) {
|
|
16
|
-
delete fontStyle["lineHeight"];
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
11
|
+
}), fontStyle = getFontSized(val, extras);
|
|
12
|
+
return !isWeb && fontStyle && delete fontStyle.lineHeight, {
|
|
19
13
|
...fontStyle,
|
|
20
14
|
...buttonStyles,
|
|
21
15
|
paddingHorizontal
|
|
22
16
|
};
|
|
23
|
-
}
|
|
24
|
-
const
|
|
25
|
-
const { props } = extras;
|
|
26
|
-
const buttonStyles = getButtonSized(val, extras);
|
|
27
|
-
const fontStyle = getFontSized(val, extras);
|
|
28
|
-
const lines = props.rows ?? props.numberOfLines;
|
|
29
|
-
const height = typeof lines === "number" ? lines * getVariableValue(fontStyle.lineHeight) : "auto";
|
|
30
|
-
const paddingVertical = getSpace(val, {
|
|
17
|
+
}, textAreaSizeVariant = (val = "$true", extras) => {
|
|
18
|
+
const { props } = extras, buttonStyles = getButtonSized(val, extras), fontStyle = getFontSized(val, extras), lines = props.rows ?? props.numberOfLines, height = typeof lines == "number" ? lines * getVariableValue(fontStyle.lineHeight) : "auto", paddingVertical = getSpace(val, {
|
|
31
19
|
shift: -2,
|
|
32
20
|
bounds: [2]
|
|
33
|
-
})
|
|
34
|
-
const paddingHorizontal = getSpace(val, {
|
|
21
|
+
}), paddingHorizontal = getSpace(val, {
|
|
35
22
|
shift: -1,
|
|
36
23
|
bounds: [2]
|
|
37
24
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/helpers/inputHelpers.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAoC,kBAAkB,aAAa;AACnE,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AAElB,MAAM,mBAAmD,CAC9D,MAAM,SACN,WACG;AACH,MAAI,OAAO,MAAM,aAAa,OAAO,MAAM,gBAAgB
|
|
4
|
+
"mappings": "AAAA,SAAoC,kBAAkB,aAAa;AACnE,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AAElB,MAAM,mBAAmD,CAC9D,MAAM,SACN,WACG;AACH,MAAI,OAAO,MAAM,aAAa,OAAO,MAAM,gBAAgB;AACzD,WAAO,oBAAoB,KAAK,MAAM;AAExC,QAAM,eAAe,eAAe,KAAK,MAAM,GACzC,oBAAoB,SAAS,KAAK;AAAA,IACtC,OAAO;AAAA,IACP,QAAQ,CAAC,CAAC;AAAA,EACZ,CAAC,GACK,YAAY,aAAa,KAAY,MAAM;AAEjD,SAAI,CAAC,SAAS,aACZ,OAAO,UAAU,YAEZ;AAAA,IACL,GAAG;AAAA,IACH,GAAG;AAAA,IACH;AAAA,EACF;AACF,GAEa,sBAAsD,CACjE,MAAM,SACN,WACG;AACH,QAAM,EAAE,MAAM,IAAI,QACZ,eAAe,eAAe,KAAK,MAAM,GACzC,YAAY,aAAa,KAAY,MAAM,GAC3C,QAAQ,MAAM,QAAQ,MAAM,eAC5B,SACJ,OAAO,SAAU,WAAW,QAAQ,iBAAiB,UAAU,UAAU,IAAI,QACzE,kBAAkB,SAAS,KAAK;AAAA,IACpC,OAAO;AAAA,IACP,QAAQ,CAAC,CAAC;AAAA,EACZ,CAAC,GACK,oBAAoB,SAAS,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;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/setup.js
CHANGED
|
@@ -6,22 +6,16 @@ setupReactNative({
|
|
|
6
6
|
View,
|
|
7
7
|
Text
|
|
8
8
|
});
|
|
9
|
-
|
|
10
|
-
globalThis["requestAnimationFrame"] = setImmediate;
|
|
11
|
-
}
|
|
9
|
+
typeof requestAnimationFrame > "u" && (globalThis.requestAnimationFrame = setImmediate);
|
|
12
10
|
const cancelAnimationFrame = globalThis.cancelAnimationFrame;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} catch {
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
}
|
|
11
|
+
typeof globalThis > "u" ? console.warn(
|
|
12
|
+
"Warning: globalThis is undefined, are you overwriting it in your bundler?"
|
|
13
|
+
) : globalThis.cancelAnimationFrame = (x) => {
|
|
14
|
+
try {
|
|
15
|
+
cancelAnimationFrame(x);
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
};
|
|
25
19
|
const idFn = () => {
|
|
26
20
|
};
|
|
27
21
|
export {
|
package/dist/esm/setup.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/setup.ts"],
|
|
4
|
-
"mappings": "AAAA,SAAS,wBAAwB;AACjC,YAAY,WAAW;AACvB,SAAS,MAAM,YAAY;AAE3B,WAAW,QAAQ;AAEnB,iBAAiB;AAAA,EACf;AAAA,EACA;AACF,CAAC;
|
|
4
|
+
"mappings": "AAAA,SAAS,wBAAwB;AACjC,YAAY,WAAW;AACvB,SAAS,MAAM,YAAY;AAE3B,WAAW,QAAQ;AAEnB,iBAAiB;AAAA,EACf;AAAA,EACA;AACF,CAAC;AAGG,OAAO,wBAA0B,QACnC,WAAW,wBAA2B;AAGxC,MAAM,uBAAuB,WAAW;AAGpC,OAAO,aAAe,MACxB,QAAQ;AAAA,EACN;AACF,IAEA,WAAW,uBAAuB,CAAC,MAAc;AAC/C,MAAI;AACF,yBAAqB,CAAC;AAAA,EACxB,QAAQ;AAAA,EAER;AACF;AAIK,MAAM,OAAO,MAAM;AAAC;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/esm/views/Anchor.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import { isWeb, styled } from "@tamagui/core";
|
|
3
2
|
import { SizableText } from "@tamagui/text";
|
|
4
3
|
import { forwardRef } from "react";
|
|
5
4
|
import { Linking } from "react-native";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
const AnchorFrame = styled(SizableText, {
|
|
7
7
|
name: "Anchor",
|
|
8
8
|
tag: "a",
|
|
9
9
|
accessibilityRole: "link"
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
ref
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
})
|
|
10
|
+
}), Anchor = AnchorFrame.extractable(
|
|
11
|
+
forwardRef(({ href, target, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
12
|
+
AnchorFrame,
|
|
13
|
+
{
|
|
14
|
+
...props,
|
|
15
|
+
...isWeb ? {
|
|
16
|
+
href,
|
|
17
|
+
target
|
|
18
|
+
} : {
|
|
19
|
+
onPress: (event) => {
|
|
20
|
+
props.onPress?.(event), href !== void 0 && Linking.openURL(href);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
ref
|
|
24
|
+
}
|
|
25
|
+
))
|
|
33
26
|
);
|
|
34
27
|
export {
|
|
35
28
|
Anchor
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Anchor.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA,SAAgD,OAAO,cAAc;AACrE,SAAS,mBAAqC;AAC9C,SAAgB,kBAAkB;AAClC,SAAS,eAAe;AAkBhB;AAVR,MAAM,cAAc,OAAO,aAAa;AAAA,EACtC,MAAM;AAAA,EACN,KAAK;AAAA,EACL,mBAAmB;AACrB,CAAC,GAEY,SACX,YAAY;AAAA,EACV,WAAW,CAAC,EAAE,MAAM,QAAQ,GAAG,MAAM,GAAG,QAEpC;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACH,GAAI,QACD;AAAA,QACE;AAAA,QACA;AAAA,MACF,IACA;AAAA,QACE,SAAS,CAAC,UAAU;AAClB,gBAAM,UAAU,KAAK,GACjB,SAAS,UACX,QAAQ,QAAQ,IAAI;AAAA,QAExB;AAAA,MACF;AAAA,MACJ;AAAA;AAAA,EACF,CAEH;AACH;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/EnsureFlexed.tsx"],
|
|
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,
|
|
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
|
}
|
package/dist/esm/views/Input.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
1
|
import {
|
|
3
2
|
isWeb,
|
|
4
3
|
setupReactNative,
|
|
@@ -8,6 +7,7 @@ import {
|
|
|
8
7
|
import { useFocusable } from "@tamagui/focusable";
|
|
9
8
|
import { TextInput } from "react-native";
|
|
10
9
|
import { inputSizeVariant } from "../helpers/inputHelpers";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
setupReactNative({
|
|
12
12
|
TextInput
|
|
13
13
|
});
|
|
@@ -20,7 +20,7 @@ const defaultStyles = {
|
|
|
20
20
|
...isWeb ? {
|
|
21
21
|
tabIndex: 0
|
|
22
22
|
} : {
|
|
23
|
-
focusable:
|
|
23
|
+
focusable: !0
|
|
24
24
|
},
|
|
25
25
|
borderColor: "$borderColor",
|
|
26
26
|
backgroundColor: "$background",
|
|
@@ -35,8 +35,7 @@ const defaultStyles = {
|
|
|
35
35
|
outlineStyle: "solid",
|
|
36
36
|
borderColor: "$borderColorFocus"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
39
|
-
const InputFrame = styled(
|
|
38
|
+
}, InputFrame = styled(
|
|
40
39
|
TextInput,
|
|
41
40
|
{
|
|
42
41
|
name: "Input",
|
|
@@ -49,27 +48,22 @@ const InputFrame = styled(
|
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
50
|
defaultVariants: {
|
|
52
|
-
unstyled:
|
|
51
|
+
unstyled: !1
|
|
53
52
|
}
|
|
54
53
|
},
|
|
55
54
|
{
|
|
56
|
-
isInput:
|
|
55
|
+
isInput: !0
|
|
57
56
|
}
|
|
58
|
-
)
|
|
59
|
-
const Input = InputFrame.styleable((propsIn, ref) => {
|
|
57
|
+
), Input = InputFrame.styleable((propsIn, ref) => {
|
|
60
58
|
const props = useInputProps(propsIn, ref);
|
|
61
59
|
return /* @__PURE__ */ jsx(InputFrame, { ...props });
|
|
62
60
|
});
|
|
63
61
|
function useInputProps(props, ref) {
|
|
64
|
-
|
|
65
|
-
const theme = useTheme();
|
|
66
|
-
const { onChangeText, ref: combinedRef } = useFocusable({
|
|
62
|
+
const theme = useTheme(), { onChangeText, ref: combinedRef } = useFocusable({
|
|
67
63
|
props,
|
|
68
64
|
ref,
|
|
69
|
-
isInput:
|
|
70
|
-
});
|
|
71
|
-
const placeholderColorProp = props.placeholderTextColor;
|
|
72
|
-
const placeholderTextColor = ((_a = theme[placeholderColorProp]) == null ? void 0 : _a.get()) ?? placeholderColorProp ?? ((_b = theme.placeholderColor) == null ? void 0 : _b.get());
|
|
65
|
+
isInput: !0
|
|
66
|
+
}), placeholderColorProp = props.placeholderTextColor, placeholderTextColor = theme[placeholderColorProp]?.get() ?? placeholderColorProp ?? theme.placeholderColor?.get();
|
|
73
67
|
return {
|
|
74
68
|
ref: combinedRef,
|
|
75
69
|
editable: !props.disabled,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Input.tsx"],
|
|
4
|
-
"mappings": "
|
|
4
|
+
"mappings": "AAAA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAE1B,SAAS,wBAAwB;AAsExB;AApET,iBAAiB;AAAA,EACf;AACF,CAAC;AAEM,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,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS;AAAA,EACX;AACF,GAOa,QAAQ,WAAW,UAAsB,CAAC,SAAS,QAAQ;AACtE,QAAM,QAAQ,cAAc,SAAS,GAAG;AACxC,SAAO,oBAAC,cAAY,GAAG,OAAO;AAChC,CAAC;AAEM,SAAS,cAAc,OAAmB,KAAU;AACzD,QAAM,QAAQ,SAAS,GACjB,EAAE,cAAc,KAAK,YAAY,IAAI,aAAa;AAAA,IACtD;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,CAAC,GAEK,uBAAuB,MAAM,sBAC7B,uBACJ,MAAM,oBAA2B,GAAG,IAAI,KACxC,wBACA,MAAM,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU,CAAC,MAAM;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|