@tamagui/input 3.0.0-beta.1313.1 → 3.0.0-beta.1341.1

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.
Files changed (52) hide show
  1. package/dist/cjs/TextArea.cjs +1 -2
  2. package/dist/cjs/TextArea.native.cjs +1 -2
  3. package/dist/cjs/TextArea.native.js +1 -2
  4. package/dist/cjs/TextArea.native.js.map +1 -1
  5. package/dist/cjs/index.cjs +0 -11
  6. package/dist/cjs/index.native.cjs +0 -11
  7. package/dist/cjs/index.native.js +0 -11
  8. package/dist/cjs/index.native.js.map +1 -1
  9. package/dist/cjs/shared.cjs +13 -47
  10. package/dist/cjs/shared.native.cjs +16 -51
  11. package/dist/cjs/shared.native.js +16 -51
  12. package/dist/cjs/shared.native.js.map +1 -1
  13. package/dist/esm/TextArea.mjs +2 -3
  14. package/dist/esm/TextArea.mjs.map +1 -1
  15. package/dist/esm/TextArea.native.js +2 -3
  16. package/dist/esm/TextArea.native.js.map +1 -1
  17. package/dist/esm/index.js +0 -4
  18. package/dist/esm/index.mjs +0 -4
  19. package/dist/esm/index.native.js +0 -4
  20. package/dist/esm/shared.mjs +14 -46
  21. package/dist/esm/shared.mjs.map +1 -1
  22. package/dist/esm/shared.native.js +17 -50
  23. package/dist/esm/shared.native.js.map +1 -1
  24. package/dist/jsx/TextArea.mjs +2 -3
  25. package/dist/jsx/TextArea.mjs.map +1 -1
  26. package/dist/jsx/TextArea.native.cjs +1 -2
  27. package/dist/jsx/TextArea.native.js +1 -2
  28. package/dist/jsx/TextArea.native.js.map +1 -1
  29. package/dist/jsx/index.js +0 -4
  30. package/dist/jsx/index.mjs +0 -4
  31. package/dist/jsx/index.native.cjs +0 -11
  32. package/dist/jsx/index.native.js +0 -11
  33. package/dist/jsx/index.native.js.map +1 -1
  34. package/dist/jsx/shared.mjs +14 -46
  35. package/dist/jsx/shared.mjs.map +1 -1
  36. package/dist/jsx/shared.native.cjs +16 -51
  37. package/dist/jsx/shared.native.js +16 -51
  38. package/dist/jsx/shared.native.js.map +1 -1
  39. package/package.json +13 -13
  40. package/src/TextArea.tsx +1 -5
  41. package/src/index.ts +0 -1
  42. package/src/shared.tsx +34 -50
  43. package/types/Input.d.ts +1 -5
  44. package/types/Input.d.ts.map +1 -1
  45. package/types/Input.native.d.ts +1 -5
  46. package/types/Input.native.d.ts.map +1 -1
  47. package/types/TextArea.d.ts +0 -2
  48. package/types/TextArea.d.ts.map +1 -1
  49. package/types/index.d.ts +0 -1
  50. package/types/index.d.ts.map +1 -1
  51. package/types/shared.d.ts +13 -31
  52. package/types/shared.d.ts.map +1 -1
@@ -30,7 +30,6 @@ const TextAreaFrame = (0, import_web.styled)(import_Input.Input, {
30
30
  whiteSpace: "pre-wrap",
31
31
  height: "auto",
32
32
  ...import_shared.defaultStyles,
33
- rows: 3,
34
- variants: { size: import_shared.textAreaSizeVariant }
33
+ rows: 3
35
34
  });
36
35
  const TextArea = TextAreaFrame.resolve(import_shared.resolveTextAreaSize);
@@ -32,7 +32,6 @@ var TextAreaFrame = (0, import_web.styled)(import_Input.Input, {
32
32
  whiteSpace: "pre-wrap",
33
33
  height: "auto",
34
34
  ...import_shared.defaultStyles,
35
- rows: 3,
36
- variants: { size: import_shared.textAreaSizeVariant }
35
+ rows: 3
37
36
  });
38
37
  var TextArea = TextAreaFrame.resolve(import_shared.resolveTextAreaSize);
@@ -32,8 +32,7 @@ var TextAreaFrame = (0, import_web.styled)(import_Input.Input, {
32
32
  whiteSpace: "pre-wrap",
33
33
  height: "auto",
34
34
  ...import_shared.defaultStyles,
35
- rows: 3,
36
- variants: { size: import_shared.textAreaSizeVariant }
35
+ rows: 3
37
36
  });
38
37
  var TextArea = TextAreaFrame.resolve(import_shared.resolveTextAreaSize);
39
38
 
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.native.js","names":[],"sources":["cjs/TextArea.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar TextArea_exports = {};\n__export(TextArea_exports, {\n TextArea: () => TextArea\n});\nmodule.exports = __toCommonJS(TextArea_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_Input = require(\"./Input\");\nvar import_shared = require(\"./shared\");\nvar TextAreaFrame = (0, import_web.styled)(import_Input.Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...import_shared.defaultStyles,\n rows: 3,\n variants: {\n size: import_shared.textAreaSizeVariant\n }\n});\nvar TextArea = TextAreaFrame.resolve(import_shared.resolveTextAreaSize);\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB,EACzB,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,eAAe,QAAQ,mBAAS;AACpC,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,iBAAiB,GAAG,WAAW,OAAM,CAAE,aAAa,OAAO;CAC7D,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG,cAAc;CACjB,MAAM;CACN,UAAU,EACR,MAAM,cAAc,oBACtB;AACF,CAAC;AACD,IAAI,WAAW,cAAc,QAAQ,cAAc,mBAAmB"}
1
+ {"version":3,"file":"TextArea.native.js","names":[],"sources":["cjs/TextArea.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar TextArea_exports = {};\n__export(TextArea_exports, {\n TextArea: () => TextArea\n});\nmodule.exports = __toCommonJS(TextArea_exports);\nvar import_web = require(\"@tamagui/web\");\nvar import_Input = require(\"./Input\");\nvar import_shared = require(\"./shared\");\nvar TextAreaFrame = (0, import_web.styled)(import_Input.Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...import_shared.defaultStyles,\n rows: 3\n});\nvar TextArea = TextAreaFrame.resolve(import_shared.resolveTextAreaSize);\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,mBAAmB,CAAC;AACxB,SAAS,kBAAkB,EACzB,gBAAgB,SAClB,CAAC;AACD,OAAO,UAAU,aAAa,gBAAgB;AAC9C,IAAI,aAAa,QAAQ,cAAc;AACvC,IAAI,eAAe,QAAQ,mBAAS;AACpC,IAAI,gBAAgB,QAAQ,oBAAU;AACtC,IAAI,iBAAiB,GAAG,WAAW,OAAM,CAAE,aAAa,OAAO;CAC7D,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG,cAAc;CACjB,MAAM;AACR,CAAC;AACD,IAAI,WAAW,cAAc,QAAQ,cAAc,mBAAmB"}
@@ -2,12 +2,6 @@ var __defProp = Object.defineProperty;
2
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
10
- };
11
5
  var __copyProps = (to, from, except, desc) => {
12
6
  if (from && typeof from === "object" || typeof from === "function") {
13
7
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -20,11 +14,6 @@ var __copyProps = (to, from, except, desc) => {
20
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
16
  var index_exports = {};
23
- __export(index_exports, {
24
- inputSizeVariant: () => import_shared.inputSizeVariant,
25
- textAreaSizeVariant: () => import_shared.textAreaSizeVariant
26
- });
27
17
  module.exports = __toCommonJS(index_exports);
28
18
  __reExport(index_exports, require("./Input.cjs"), module.exports);
29
19
  __reExport(index_exports, require("./TextArea.cjs"), module.exports);
30
- var import_shared = require("./shared.cjs");
@@ -4,12 +4,6 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
7
  var __copyProps = (to, from, except, desc) => {
14
8
  if (from && typeof from === "object" || typeof from === "function") {
15
9
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -22,11 +16,6 @@ var __copyProps = (to, from, except, desc) => {
22
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
18
  var index_exports = {};
25
- __export(index_exports, {
26
- inputSizeVariant: () => import_shared.inputSizeVariant,
27
- textAreaSizeVariant: () => import_shared.textAreaSizeVariant
28
- });
29
19
  module.exports = __toCommonJS(index_exports);
30
20
  __reExport(index_exports, require("./Input.native.js"), module.exports);
31
21
  __reExport(index_exports, require("./TextArea.native.js"), module.exports);
32
- var import_shared = require("./shared.native.js");
@@ -4,12 +4,6 @@ var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
12
- };
13
7
  var __copyProps = (to, from, except, desc) => {
14
8
  if (from && typeof from === "object" || typeof from === "function") {
15
9
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
@@ -22,13 +16,8 @@ var __copyProps = (to, from, except, desc) => {
22
16
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
18
  var index_exports = {};
25
- __export(index_exports, {
26
- inputSizeVariant: () => import_shared.inputSizeVariant,
27
- textAreaSizeVariant: () => import_shared.textAreaSizeVariant
28
- });
29
19
  module.exports = __toCommonJS(index_exports);
30
20
  __reExport(index_exports, require("./Input.native.js"), module.exports);
31
21
  __reExport(index_exports, require("./TextArea.native.js"), module.exports);
32
- var import_shared = require("./shared.native.js");
33
22
 
34
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n inputSizeVariant: () => import_shared.inputSizeVariant,\n textAreaSizeVariant: () => import_shared.textAreaSizeVariant\n});\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Input\"), module.exports);\n__reExport(index_exports, require(\"./TextArea\"), module.exports);\nvar import_shared = require(\"./shared\");\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,wBAAwB,cAAc;CACtC,2BAA2B,cAAc;AAC3C,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO;AAC5D,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO;AAC/D,IAAI,gBAAgB,QAAQ,oBAAU"}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Input\"), module.exports);\n__reExport(index_exports, require(\"./TextArea\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,mBAAS,GAAG,OAAO,OAAO;AAC5D,WAAW,eAAe,QAAQ,sBAAY,GAAG,OAAO,OAAO"}
@@ -22,61 +22,30 @@ var shared_exports = {};
22
22
  __export(shared_exports, {
23
23
  INPUT_NAME: () => INPUT_NAME,
24
24
  defaultStyles: () => defaultStyles,
25
- inputSizeVariant: () => inputSizeVariant,
26
25
  resolveMultilineInputSize: () => resolveMultilineInputSize,
27
26
  resolveTextAreaSize: () => resolveTextAreaSize,
28
- styledBody: () => styledBody,
29
- textAreaSizeVariant: () => textAreaSizeVariant
27
+ styledBody: () => styledBody
30
28
  });
31
29
  module.exports = __toCommonJS(shared_exports);
32
30
  var import_core = require("@tamagui/core");
33
- var import_get_font_sized = require("@tamagui/get-font-sized");
34
31
  const defaultStyles = {
35
- size: true,
36
32
  outlineWidth: 0,
37
33
  tabIndex: 0,
38
34
  minWidth: 0
39
35
  };
40
- const inputSizeVariant = import_core.styled.dynamic((val = true, env) => {
41
- const { frame } = (0, import_core.resolveSize)(val, env);
42
- const fontStyle = (0, import_get_font_sized.getFontSized)(val, env);
43
- return {
44
- color: fontStyle?.color,
45
- fontFamily: fontStyle?.fontFamily,
46
- fontSize: fontStyle?.fontSize,
47
- fontStyle: fontStyle?.fontStyle,
48
- fontWeight: fontStyle?.fontWeight,
49
- letterSpacing: fontStyle?.letterSpacing,
50
- lineHeight: import_core.isWeb ? fontStyle?.lineHeight : void 0,
51
- textTransform: fontStyle?.textTransform,
52
- ...frame
53
- };
54
- });
55
- const textAreaSizeVariant = import_core.styled.dynamic((val = true, env) => {
56
- return {
57
- ...inputSizeVariant(val, env),
58
- height: "auto"
59
- };
60
- });
61
36
  const resolveTextAreaSize = (props, env) => {
62
- const sized = textAreaSizeVariant(props.size ?? true, env);
63
- const fontStyle = (0, import_get_font_sized.getFontSized)(props.size ?? true, env);
37
+ const font = props.fontFamily ? env.fonts[props.fontFamily] : env.font;
38
+ const defaultKey = font && "sm" in font.size ? "sm" : "4";
39
+ const fontSize = props.fontSize ?? defaultKey;
40
+ const lineHeight = props.lineHeight ?? font?.lineHeight?.[defaultKey];
41
+ const configuredSize = typeof fontSize === "string" ? font?.size[fontSize] : void 0;
42
+ const configuredLeading = typeof lineHeight === "string" ? font?.lineHeight?.[lineHeight] : void 0;
43
+ const metrics = { fontSize: Number.parseFloat(String((0, import_core.getVariableValue)(configuredSize ?? fontSize))) };
44
+ const leading = configuredLeading ?? lineHeight;
45
+ (0, import_core.resolveTextMetrics)(metrics, (props.lineHeight == null || configuredLeading !== void 0) && typeof leading === "number" ? `${leading}px` : leading);
64
46
  const lines = props.rows ?? props.numberOfLines;
65
- const height = typeof lines === "number" ? lines * (0, import_core.getVariableValue)(fontStyle?.lineHeight) : sized?.height;
66
- return {
67
- borderRadius: sized?.borderRadius,
68
- color: sized?.color,
69
- fontFamily: sized?.fontFamily,
70
- fontSize: sized?.fontSize,
71
- fontStyle: sized?.fontStyle,
72
- fontWeight: sized?.fontWeight,
73
- letterSpacing: sized?.letterSpacing,
74
- lineHeight: sized?.lineHeight,
75
- textTransform: sized?.textTransform,
76
- paddingVertical: sized?.paddingVertical,
77
- paddingHorizontal: sized?.paddingHorizontal,
78
- height
79
- };
47
+ const height = typeof lines === "number" && typeof metrics.lineHeight === "number" ? lines * metrics.lineHeight : void 0;
48
+ return { height };
80
49
  };
81
50
  const resolveMultilineInputSize = (props, env) => {
82
51
  if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;
@@ -87,8 +56,5 @@ const styledBody = [{
87
56
  name: INPUT_NAME,
88
57
  render: "input",
89
58
  ...defaultStyles,
90
- variants: {
91
- size: inputSizeVariant,
92
- disabled: { true: {} }
93
- }
59
+ variants: { disabled: { true: {} } }
94
60
  }, { isInput: true }];
@@ -24,66 +24,34 @@ var shared_exports = {};
24
24
  __export(shared_exports, {
25
25
  INPUT_NAME: () => INPUT_NAME,
26
26
  defaultStyles: () => defaultStyles,
27
- inputSizeVariant: () => inputSizeVariant,
28
27
  resolveMultilineInputSize: () => resolveMultilineInputSize,
29
28
  resolveTextAreaSize: () => resolveTextAreaSize,
30
- styledBody: () => styledBody,
31
- textAreaSizeVariant: () => textAreaSizeVariant
29
+ styledBody: () => styledBody
32
30
  });
33
31
  module.exports = __toCommonJS(shared_exports);
34
32
  var import_core = require("@tamagui/core");
35
- var import_get_font_sized = require("@tamagui/get-font-sized");
36
33
  var defaultStyles = {
37
- size: true,
38
34
  outlineWidth: 0,
39
35
  tabIndex: 0,
40
36
  minWidth: 0
41
37
  };
42
- var inputSizeVariant = import_core.styled.dynamic(function() {
43
- var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;
44
- var { frame } = (0, import_core.resolveSize)(val, env);
45
- var fontStyle = (0, import_get_font_sized.getFontSized)(val, env);
46
- return {
47
- color: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.color,
48
- fontFamily: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontFamily,
49
- fontSize: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontSize,
50
- fontStyle: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontStyle,
51
- fontWeight: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontWeight,
52
- letterSpacing: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.letterSpacing,
53
- lineHeight: import_core.isWeb ? fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight : void 0,
54
- textTransform: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.textTransform,
55
- ...frame
56
- };
57
- });
58
- var textAreaSizeVariant = import_core.styled.dynamic(function() {
59
- var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;
60
- return {
61
- ...inputSizeVariant(val, env),
62
- height: "auto"
63
- };
64
- });
65
38
  var resolveTextAreaSize = function(props, env) {
66
- var _props_size;
67
- var sized = textAreaSizeVariant((_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true, env);
68
- var _props_size1;
69
- var fontStyle = (0, import_get_font_sized.getFontSized)((_props_size1 = props.size) !== null && _props_size1 !== void 0 ? _props_size1 : true, env);
39
+ var _font_lineHeight, _font_lineHeight1;
40
+ var font = props.fontFamily ? env.fonts[props.fontFamily] : env.font;
41
+ var defaultKey = font && "sm" in font.size ? "sm" : "4";
42
+ var _props_fontSize;
43
+ var fontSize = (_props_fontSize = props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : defaultKey;
44
+ var _props_lineHeight;
45
+ var lineHeight = (_props_lineHeight = props.lineHeight) !== null && _props_lineHeight !== void 0 ? _props_lineHeight : font === null || font === void 0 ? void 0 : (_font_lineHeight = font.lineHeight) === null || _font_lineHeight === void 0 ? void 0 : _font_lineHeight[defaultKey];
46
+ var configuredSize = typeof fontSize === "string" ? font === null || font === void 0 ? void 0 : font.size[fontSize] : void 0;
47
+ var configuredLeading = typeof lineHeight === "string" ? font === null || font === void 0 ? void 0 : (_font_lineHeight1 = font.lineHeight) === null || _font_lineHeight1 === void 0 ? void 0 : _font_lineHeight1[lineHeight] : void 0;
48
+ var metrics = { fontSize: Number.parseFloat(String((0, import_core.getVariableValue)(configuredSize !== null && configuredSize !== void 0 ? configuredSize : fontSize))) };
49
+ var leading = configuredLeading !== null && configuredLeading !== void 0 ? configuredLeading : lineHeight;
50
+ (0, import_core.resolveTextMetrics)(metrics, (props.lineHeight == null || configuredLeading !== void 0) && typeof leading === "number" ? `${leading}px` : leading);
70
51
  var _props_rows;
71
52
  var lines = (_props_rows = props.rows) !== null && _props_rows !== void 0 ? _props_rows : props.numberOfLines;
72
- var height = typeof lines === "number" ? lines * (0, import_core.getVariableValue)(fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight) : sized === null || sized === void 0 ? void 0 : sized.height;
73
- return {
74
- borderRadius: sized === null || sized === void 0 ? void 0 : sized.borderRadius,
75
- color: sized === null || sized === void 0 ? void 0 : sized.color,
76
- fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
77
- fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
78
- fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
79
- fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
80
- letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
81
- lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
82
- textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform,
83
- paddingVertical: sized === null || sized === void 0 ? void 0 : sized.paddingVertical,
84
- paddingHorizontal: sized === null || sized === void 0 ? void 0 : sized.paddingHorizontal,
85
- height
86
- };
53
+ var height = typeof lines === "number" && typeof metrics.lineHeight === "number" ? lines * metrics.lineHeight : void 0;
54
+ return { height };
87
55
  };
88
56
  var resolveMultilineInputSize = function(props, env) {
89
57
  if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;
@@ -94,8 +62,5 @@ var styledBody = [{
94
62
  name: INPUT_NAME,
95
63
  render: "input",
96
64
  ...defaultStyles,
97
- variants: {
98
- size: inputSizeVariant,
99
- disabled: { true: {} }
100
- }
65
+ variants: { disabled: { true: {} } }
101
66
  }, { isInput: true }];
@@ -24,66 +24,34 @@ var shared_exports = {};
24
24
  __export(shared_exports, {
25
25
  INPUT_NAME: () => INPUT_NAME,
26
26
  defaultStyles: () => defaultStyles,
27
- inputSizeVariant: () => inputSizeVariant,
28
27
  resolveMultilineInputSize: () => resolveMultilineInputSize,
29
28
  resolveTextAreaSize: () => resolveTextAreaSize,
30
- styledBody: () => styledBody,
31
- textAreaSizeVariant: () => textAreaSizeVariant
29
+ styledBody: () => styledBody
32
30
  });
33
31
  module.exports = __toCommonJS(shared_exports);
34
32
  var import_core = require("@tamagui/core");
35
- var import_get_font_sized = require("@tamagui/get-font-sized");
36
33
  var defaultStyles = {
37
- size: true,
38
34
  outlineWidth: 0,
39
35
  tabIndex: 0,
40
36
  minWidth: 0
41
37
  };
42
- var inputSizeVariant = import_core.styled.dynamic(function() {
43
- var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;
44
- var { frame } = (0, import_core.resolveSize)(val, env);
45
- var fontStyle = (0, import_get_font_sized.getFontSized)(val, env);
46
- return {
47
- color: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.color,
48
- fontFamily: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontFamily,
49
- fontSize: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontSize,
50
- fontStyle: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontStyle,
51
- fontWeight: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontWeight,
52
- letterSpacing: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.letterSpacing,
53
- lineHeight: import_core.isWeb ? fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight : void 0,
54
- textTransform: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.textTransform,
55
- ...frame
56
- };
57
- });
58
- var textAreaSizeVariant = import_core.styled.dynamic(function() {
59
- var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;
60
- return {
61
- ...inputSizeVariant(val, env),
62
- height: "auto"
63
- };
64
- });
65
38
  var resolveTextAreaSize = function(props, env) {
66
- var _props_size;
67
- var sized = textAreaSizeVariant((_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true, env);
68
- var _props_size1;
69
- var fontStyle = (0, import_get_font_sized.getFontSized)((_props_size1 = props.size) !== null && _props_size1 !== void 0 ? _props_size1 : true, env);
39
+ var _font_lineHeight, _font_lineHeight1;
40
+ var font = props.fontFamily ? env.fonts[props.fontFamily] : env.font;
41
+ var defaultKey = font && "sm" in font.size ? "sm" : "4";
42
+ var _props_fontSize;
43
+ var fontSize = (_props_fontSize = props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : defaultKey;
44
+ var _props_lineHeight;
45
+ var lineHeight = (_props_lineHeight = props.lineHeight) !== null && _props_lineHeight !== void 0 ? _props_lineHeight : font === null || font === void 0 ? void 0 : (_font_lineHeight = font.lineHeight) === null || _font_lineHeight === void 0 ? void 0 : _font_lineHeight[defaultKey];
46
+ var configuredSize = typeof fontSize === "string" ? font === null || font === void 0 ? void 0 : font.size[fontSize] : void 0;
47
+ var configuredLeading = typeof lineHeight === "string" ? font === null || font === void 0 ? void 0 : (_font_lineHeight1 = font.lineHeight) === null || _font_lineHeight1 === void 0 ? void 0 : _font_lineHeight1[lineHeight] : void 0;
48
+ var metrics = { fontSize: Number.parseFloat(String((0, import_core.getVariableValue)(configuredSize !== null && configuredSize !== void 0 ? configuredSize : fontSize))) };
49
+ var leading = configuredLeading !== null && configuredLeading !== void 0 ? configuredLeading : lineHeight;
50
+ (0, import_core.resolveTextMetrics)(metrics, (props.lineHeight == null || configuredLeading !== void 0) && typeof leading === "number" ? `${leading}px` : leading);
70
51
  var _props_rows;
71
52
  var lines = (_props_rows = props.rows) !== null && _props_rows !== void 0 ? _props_rows : props.numberOfLines;
72
- var height = typeof lines === "number" ? lines * (0, import_core.getVariableValue)(fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight) : sized === null || sized === void 0 ? void 0 : sized.height;
73
- return {
74
- borderRadius: sized === null || sized === void 0 ? void 0 : sized.borderRadius,
75
- color: sized === null || sized === void 0 ? void 0 : sized.color,
76
- fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,
77
- fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,
78
- fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,
79
- fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,
80
- letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,
81
- lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,
82
- textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform,
83
- paddingVertical: sized === null || sized === void 0 ? void 0 : sized.paddingVertical,
84
- paddingHorizontal: sized === null || sized === void 0 ? void 0 : sized.paddingHorizontal,
85
- height
86
- };
53
+ var height = typeof lines === "number" && typeof metrics.lineHeight === "number" ? lines * metrics.lineHeight : void 0;
54
+ return { height };
87
55
  };
88
56
  var resolveMultilineInputSize = function(props, env) {
89
57
  if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;
@@ -94,10 +62,7 @@ var styledBody = [{
94
62
  name: INPUT_NAME,
95
63
  render: "input",
96
64
  ...defaultStyles,
97
- variants: {
98
- size: inputSizeVariant,
99
- disabled: { true: {} }
100
- }
65
+ variants: { disabled: { true: {} } }
101
66
  }, { isInput: true }];
102
67
 
103
68
  //# sourceMappingURL=shared.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.native.js","names":[],"sources":["cjs/shared.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar shared_exports = {};\n__export(shared_exports, {\n INPUT_NAME: () => INPUT_NAME,\n defaultStyles: () => defaultStyles,\n inputSizeVariant: () => inputSizeVariant,\n resolveMultilineInputSize: () => resolveMultilineInputSize,\n resolveTextAreaSize: () => resolveTextAreaSize,\n styledBody: () => styledBody,\n textAreaSizeVariant: () => textAreaSizeVariant\n});\nmodule.exports = __toCommonJS(shared_exports);\nvar import_core = require(\"@tamagui/core\");\nvar import_get_font_sized = require(\"@tamagui/get-font-sized\");\nvar defaultStyles = {\n size: true,\n outlineWidth: 0,\n tabIndex: 0,\n // this fixes a flex bug where it overflows container\n minWidth: 0\n};\nvar inputSizeVariant = import_core.styled.dynamic(function() {\n var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;\n var { frame } = (0, import_core.resolveSize)(val, env);\n var fontStyle = (0, import_get_font_sized.getFontSized)(val, env);\n return {\n color: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.color,\n fontFamily: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontFamily,\n fontSize: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontSize,\n fontStyle: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontStyle,\n fontWeight: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.fontWeight,\n letterSpacing: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.letterSpacing,\n lineHeight: import_core.isWeb ? fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight : void 0,\n textTransform: fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.textTransform,\n ...frame\n };\n});\nvar textAreaSizeVariant = import_core.styled.dynamic(function() {\n var val = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true, env = arguments.length > 1 ? arguments[1] : void 0;\n return {\n ...inputSizeVariant(val, env),\n height: \"auto\"\n };\n});\nvar resolveTextAreaSize = function(props, env) {\n var _props_size;\n var sized = textAreaSizeVariant((_props_size = props.size) !== null && _props_size !== void 0 ? _props_size : true, env);\n var _props_size1;\n var fontStyle = (0, import_get_font_sized.getFontSized)((_props_size1 = props.size) !== null && _props_size1 !== void 0 ? _props_size1 : true, env);\n var _props_rows;\n var lines = (_props_rows = props.rows) !== null && _props_rows !== void 0 ? _props_rows : props.numberOfLines;\n var height = typeof lines === \"number\" ? lines * (0, import_core.getVariableValue)(fontStyle === null || fontStyle === void 0 ? void 0 : fontStyle.lineHeight) : sized === null || sized === void 0 ? void 0 : sized.height;\n return {\n borderRadius: sized === null || sized === void 0 ? void 0 : sized.borderRadius,\n color: sized === null || sized === void 0 ? void 0 : sized.color,\n fontFamily: sized === null || sized === void 0 ? void 0 : sized.fontFamily,\n fontSize: sized === null || sized === void 0 ? void 0 : sized.fontSize,\n fontStyle: sized === null || sized === void 0 ? void 0 : sized.fontStyle,\n fontWeight: sized === null || sized === void 0 ? void 0 : sized.fontWeight,\n letterSpacing: sized === null || sized === void 0 ? void 0 : sized.letterSpacing,\n lineHeight: sized === null || sized === void 0 ? void 0 : sized.lineHeight,\n textTransform: sized === null || sized === void 0 ? void 0 : sized.textTransform,\n paddingVertical: sized === null || sized === void 0 ? void 0 : sized.paddingVertical,\n paddingHorizontal: sized === null || sized === void 0 ? void 0 : sized.paddingHorizontal,\n height\n };\n};\nvar resolveMultilineInputSize = function(props, env) {\n if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;\n return resolveTextAreaSize(props, env);\n};\nvar INPUT_NAME = \"Input\";\nvar styledBody = [\n {\n name: INPUT_NAME,\n render: \"input\",\n ...defaultStyles,\n variants: {\n size: inputSizeVariant,\n disabled: {\n true: {}\n }\n }\n },\n {\n isInput: true\n }\n];\n//# sourceMappingURL=shared.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAA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AI,KAAK,IAAI,MAAM;EAChE,eAAe,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EACnE,iBAAiB,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EACrE,mBAAmB,UAAU,QAAQ,UAAU,KAAK,IAAI,KAAK,IAAI,MAAM;EACvE;CACF;AACF;AACA,IAAI,4BAA4B,SAAS,OAAO,KAAK;CACnD,IAAI,EAAE,MAAM,OAAO,KAAK,MAAM,aAAa,MAAM,gBAAgB,IAAI;CACrE,OAAO,oBAAoB,OAAO,GAAG;AACvC;AACA,IAAI,aAAa;AACjB,IAAI,aAAa,CACf;CACE,MAAM;CACN,QAAQ;CACR,GAAG;CACH,UAAU;EACR,MAAM;EACN,UAAU,EACR,MAAM,CAAC,EACT;CACF;AACF,GACA,EACE,SAAS,KACX,CACF"}
1
+ {"version":3,"file":"shared.native.js","names":[],"sources":["cjs/shared.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar shared_exports = {};\n__export(shared_exports, {\n INPUT_NAME: () => INPUT_NAME,\n defaultStyles: () => defaultStyles,\n resolveMultilineInputSize: () => resolveMultilineInputSize,\n resolveTextAreaSize: () => resolveTextAreaSize,\n styledBody: () => styledBody\n});\nmodule.exports = __toCommonJS(shared_exports);\nvar import_core = require(\"@tamagui/core\");\nvar defaultStyles = {\n outlineWidth: 0,\n tabIndex: 0,\n // this fixes a flex bug where it overflows container\n minWidth: 0\n};\nvar resolveTextAreaSize = function(props, env) {\n var _font_lineHeight, _font_lineHeight1;\n var font = props.fontFamily ? env.fonts[props.fontFamily] : env.font;\n var defaultKey = font && \"sm\" in font.size ? \"sm\" : \"4\";\n var _props_fontSize;\n var fontSize = (_props_fontSize = props.fontSize) !== null && _props_fontSize !== void 0 ? _props_fontSize : defaultKey;\n var _props_lineHeight;\n var lineHeight = (_props_lineHeight = props.lineHeight) !== null && _props_lineHeight !== void 0 ? _props_lineHeight : font === null || font === void 0 ? void 0 : (_font_lineHeight = font.lineHeight) === null || _font_lineHeight === void 0 ? void 0 : _font_lineHeight[defaultKey];\n var configuredSize = typeof fontSize === \"string\" ? font === null || font === void 0 ? void 0 : font.size[fontSize] : void 0;\n var configuredLeading = typeof lineHeight === \"string\" ? font === null || font === void 0 ? void 0 : (_font_lineHeight1 = font.lineHeight) === null || _font_lineHeight1 === void 0 ? void 0 : _font_lineHeight1[lineHeight] : void 0;\n var metrics = {\n fontSize: Number.parseFloat(String((0, import_core.getVariableValue)(configuredSize !== null && configuredSize !== void 0 ? configuredSize : fontSize)))\n };\n var leading = configuredLeading !== null && configuredLeading !== void 0 ? configuredLeading : lineHeight;\n (0, import_core.resolveTextMetrics)(metrics, (props.lineHeight == null || configuredLeading !== void 0) && typeof leading === \"number\" ? `${leading}px` : leading);\n var _props_rows;\n var lines = (_props_rows = props.rows) !== null && _props_rows !== void 0 ? _props_rows : props.numberOfLines;\n var height = typeof lines === \"number\" && typeof metrics.lineHeight === \"number\" ? lines * metrics.lineHeight : void 0;\n return {\n height\n };\n};\nvar resolveMultilineInputSize = function(props, env) {\n if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;\n return resolveTextAreaSize(props, env);\n};\nvar INPUT_NAME = \"Input\";\nvar styledBody = [\n {\n name: INPUT_NAME,\n render: \"input\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aAAa,CACf;CACE,MAAM;CACN,QAAQ;CACR,GAAG;CACH,UAAU,EACR,UAAU,EACR,MAAM,CAAC,EACT,EACF;AACF,GACA,EACE,SAAS,KACX,CACF"}
@@ -1,6 +1,6 @@
1
1
  import { styled } from "@tamagui/web";
2
2
  import { Input } from "./Input.mjs";
3
- import { defaultStyles, resolveTextAreaSize, textAreaSizeVariant } from "./shared.mjs";
3
+ import { defaultStyles, resolveTextAreaSize } from "./shared.mjs";
4
4
 
5
5
  const TextAreaFrame = styled(Input, {
6
6
  displayName: "TextArea",
@@ -8,8 +8,7 @@ const TextAreaFrame = styled(Input, {
8
8
  whiteSpace: "pre-wrap",
9
9
  height: "auto",
10
10
  ...defaultStyles,
11
- rows: 3,
12
- variants: { size: textAreaSizeVariant }
11
+ rows: 3
13
12
  });
14
13
  const TextArea = TextAreaFrame.resolve(resolveTextAreaSize);
15
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.js","names":[],"sources":["esm/TextArea.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Input } from \"./Input\";\nimport { defaultStyles, resolveTextAreaSize, textAreaSizeVariant } from \"./shared\";\nconst TextAreaFrame = styled(Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...defaultStyles,\n rows: 3,\n variants: {\n size: textAreaSizeVariant\n }\n});\nconst TextArea = TextAreaFrame.resolve(resolveTextAreaSize);\nexport {\n TextArea\n};\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;;;AAGA,MAAM,gBAAgB,OAAO,OAAO;CAClC,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG;CACH,MAAM;CACN,UAAU,EACR,MAAM,oBACR;AACF,CAAC;AACD,MAAM,WAAW,cAAc,QAAQ,mBAAmB"}
1
+ {"version":3,"file":"TextArea.js","names":[],"sources":["esm/TextArea.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Input } from \"./Input\";\nimport { defaultStyles, resolveTextAreaSize } from \"./shared\";\nconst TextAreaFrame = styled(Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...defaultStyles,\n rows: 3\n});\nconst TextArea = TextAreaFrame.resolve(resolveTextAreaSize);\nexport {\n TextArea\n};\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;;;AAGA,MAAM,gBAAgB,OAAO,OAAO;CAClC,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG;CACH,MAAM;AACR,CAAC;AACD,MAAM,WAAW,cAAc,QAAQ,mBAAmB"}
@@ -1,6 +1,6 @@
1
1
  import { styled } from "@tamagui/web";
2
2
  import { Input } from "./Input.native.js";
3
- import { defaultStyles, resolveTextAreaSize, textAreaSizeVariant } from "./shared.native.js";
3
+ import { defaultStyles, resolveTextAreaSize } from "./shared.native.js";
4
4
 
5
5
  var TextAreaFrame = styled(Input, {
6
6
  displayName: "TextArea",
@@ -8,8 +8,7 @@ var TextAreaFrame = styled(Input, {
8
8
  whiteSpace: "pre-wrap",
9
9
  height: "auto",
10
10
  ...defaultStyles,
11
- rows: 3,
12
- variants: { size: textAreaSizeVariant }
11
+ rows: 3
13
12
  });
14
13
  var TextArea = TextAreaFrame.resolve(resolveTextAreaSize);
15
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.native.js","names":[],"sources":["esm/TextArea.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Input } from \"./Input\";\nimport { defaultStyles, resolveTextAreaSize, textAreaSizeVariant } from \"./shared\";\nvar TextAreaFrame = styled(Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...defaultStyles,\n rows: 3,\n variants: {\n size: textAreaSizeVariant\n }\n});\nvar TextArea = TextAreaFrame.resolve(resolveTextAreaSize);\nexport {\n TextArea\n};\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;;;AAGA,IAAI,gBAAgB,OAAO,OAAO;CAChC,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG;CACH,MAAM;CACN,UAAU,EACR,MAAM,oBACR;AACF,CAAC;AACD,IAAI,WAAW,cAAc,QAAQ,mBAAmB"}
1
+ {"version":3,"file":"TextArea.native.js","names":[],"sources":["esm/TextArea.native.js"],"sourcesContent":["import { styled } from \"@tamagui/web\";\nimport { Input } from \"./Input\";\nimport { defaultStyles, resolveTextAreaSize } from \"./shared\";\nvar TextAreaFrame = styled(Input, {\n displayName: \"TextArea\",\n render: \"textarea\",\n // this attribute fixes firefox newline issue\n // @ts-ignore\n whiteSpace: \"pre-wrap\",\n height: \"auto\",\n ...defaultStyles,\n rows: 3\n});\nvar TextArea = TextAreaFrame.resolve(resolveTextAreaSize);\nexport {\n TextArea\n};\n//# sourceMappingURL=TextArea.js.map\n"],"mappings":";;;;;AAGA,IAAI,gBAAgB,OAAO,OAAO;CAChC,aAAa;CACb,QAAQ;CAGR,YAAY;CACZ,QAAQ;CACR,GAAG;CACH,MAAM;AACR,CAAC;AACD,IAAI,WAAW,cAAc,QAAQ,mBAAmB"}
package/dist/esm/index.js CHANGED
@@ -1,7 +1,3 @@
1
- import { inputSizeVariant, textAreaSizeVariant } from "./shared.mjs";
2
-
3
1
  export * from "./Input.mjs"
4
2
 
5
3
  export * from "./TextArea.mjs"
6
-
7
- export { inputSizeVariant, textAreaSizeVariant };
@@ -1,7 +1,3 @@
1
- import { inputSizeVariant, textAreaSizeVariant } from "./shared.mjs";
2
-
3
1
  export * from "./Input.mjs"
4
2
 
5
3
  export * from "./TextArea.mjs"
6
-
7
- export { inputSizeVariant, textAreaSizeVariant };
@@ -1,7 +1,3 @@
1
- import { inputSizeVariant, textAreaSizeVariant } from "./shared.native.js";
2
-
3
1
  export * from "./Input.native.js"
4
2
 
5
3
  export * from "./TextArea.native.js"
6
-
7
- export { inputSizeVariant, textAreaSizeVariant };
@@ -1,52 +1,23 @@
1
- import { getVariableValue, isWeb, resolveSize, styled } from "@tamagui/core";
2
- import { getFontSized } from "@tamagui/get-font-sized";
1
+ import { getVariableValue, resolveTextMetrics } from "@tamagui/core";
3
2
 
4
3
  const defaultStyles = {
5
- size: true,
6
4
  outlineWidth: 0,
7
5
  tabIndex: 0,
8
6
  minWidth: 0
9
7
  };
10
- const inputSizeVariant = styled.dynamic((val = true, env) => {
11
- const { frame } = resolveSize(val, env);
12
- const fontStyle = getFontSized(val, env);
13
- return {
14
- color: fontStyle?.color,
15
- fontFamily: fontStyle?.fontFamily,
16
- fontSize: fontStyle?.fontSize,
17
- fontStyle: fontStyle?.fontStyle,
18
- fontWeight: fontStyle?.fontWeight,
19
- letterSpacing: fontStyle?.letterSpacing,
20
- lineHeight: isWeb ? fontStyle?.lineHeight : void 0,
21
- textTransform: fontStyle?.textTransform,
22
- ...frame
23
- };
24
- });
25
- const textAreaSizeVariant = styled.dynamic((val = true, env) => {
26
- return {
27
- ...inputSizeVariant(val, env),
28
- height: "auto"
29
- };
30
- });
31
8
  const resolveTextAreaSize = (props, env) => {
32
- const sized = textAreaSizeVariant(props.size ?? true, env);
33
- const fontStyle = getFontSized(props.size ?? true, env);
9
+ const font = props.fontFamily ? env.fonts[props.fontFamily] : env.font;
10
+ const defaultKey = font && "sm" in font.size ? "sm" : "4";
11
+ const fontSize = props.fontSize ?? defaultKey;
12
+ const lineHeight = props.lineHeight ?? font?.lineHeight?.[defaultKey];
13
+ const configuredSize = typeof fontSize === "string" ? font?.size[fontSize] : void 0;
14
+ const configuredLeading = typeof lineHeight === "string" ? font?.lineHeight?.[lineHeight] : void 0;
15
+ const metrics = { fontSize: Number.parseFloat(String(getVariableValue(configuredSize ?? fontSize))) };
16
+ const leading = configuredLeading ?? lineHeight;
17
+ resolveTextMetrics(metrics, (props.lineHeight == null || configuredLeading !== void 0) && typeof leading === "number" ? `${leading}px` : leading);
34
18
  const lines = props.rows ?? props.numberOfLines;
35
- const height = typeof lines === "number" ? lines * getVariableValue(fontStyle?.lineHeight) : sized?.height;
36
- return {
37
- borderRadius: sized?.borderRadius,
38
- color: sized?.color,
39
- fontFamily: sized?.fontFamily,
40
- fontSize: sized?.fontSize,
41
- fontStyle: sized?.fontStyle,
42
- fontWeight: sized?.fontWeight,
43
- letterSpacing: sized?.letterSpacing,
44
- lineHeight: sized?.lineHeight,
45
- textTransform: sized?.textTransform,
46
- paddingVertical: sized?.paddingVertical,
47
- paddingHorizontal: sized?.paddingHorizontal,
48
- height
49
- };
19
+ const height = typeof lines === "number" && typeof metrics.lineHeight === "number" ? lines * metrics.lineHeight : void 0;
20
+ return { height };
50
21
  };
51
22
  const resolveMultilineInputSize = (props, env) => {
52
23
  if (!(props.rows > 1 || props.multiline || props.numberOfLines > 1)) return;
@@ -57,11 +28,8 @@ const styledBody = [{
57
28
  name: INPUT_NAME,
58
29
  render: "input",
59
30
  ...defaultStyles,
60
- variants: {
61
- size: inputSizeVariant,
62
- disabled: { true: {} }
63
- }
31
+ variants: { disabled: { true: {} } }
64
32
  }, { isInput: true }];
65
33
 
66
- export { INPUT_NAME, defaultStyles, inputSizeVariant, resolveMultilineInputSize, resolveTextAreaSize, styledBody, textAreaSizeVariant };
34
+ export { INPUT_NAME, defaultStyles, resolveMultilineInputSize, resolveTextAreaSize, styledBody };
67
35
  //# sourceMappingURL=shared.mjs.map