{"version":3,"file":"Input.js","names":["UiInput","UiTextArea"],"sources":["esm/components/Input.js"],"sourcesContent":["import {\n  createStyledHOC,\n  isWeb,\n  styled,\n  Theme\n} from \"@tamagui/core\";\nimport { Input as UiInput, TextArea as UiTextArea } from \"@tamagui/input\";\nimport { jsx } from \"react/jsx-runtime\";\nconst inputSize = {\n  xs: {\n    paddingInline: \"2\",\n    paddingBlock: \"1\",\n    borderRadius: \"sm\",\n    fontSize: \"xs\",\n    lineHeight: isWeb ? \"xs\" : void 0\n  },\n  sm: {\n    paddingInline: \"3\",\n    paddingBlock: \"1.5\",\n    borderRadius: \"md\",\n    fontSize: \"sm\",\n    lineHeight: isWeb ? \"sm\" : void 0\n  },\n  md: {\n    paddingInline: \"4\",\n    paddingBlock: \"2\",\n    borderRadius: \"md\",\n    fontSize: \"sm\",\n    lineHeight: isWeb ? \"sm\" : void 0\n  },\n  lg: {\n    paddingInline: \"6\",\n    paddingBlock: \"2\",\n    borderRadius: \"md\",\n    fontSize: \"base\",\n    lineHeight: isWeb ? \"base\" : void 0\n  },\n  xl: {\n    paddingInline: \"8\",\n    paddingBlock: \"2.5\",\n    borderRadius: \"lg\",\n    fontSize: \"lg\",\n    lineHeight: isWeb ? \"lg\" : void 0\n  }\n};\nconst inputSkin = {\n  fontFamily: \"body\",\n  lineHeight: isWeb ? \"sm\" : void 0,\n  color: \"color\",\n  backgroundColor: \"background\",\n  borderColor: \"border-color hover:border-color-hover focus:border-color-focus\",\n  borderWidth: 1,\n  outlineColor: \"focus-visible:outline-color\",\n  outlineWidth: \"focus-visible:2px\",\n  outlineStyle: \"focus-visible:solid\"\n};\nconst InputFrame = styled(UiInput, {\n  displayName: \"Input\",\n  className: \"is_Input\",\n  ...inputSkin,\n  variants: {\n    size: {\n      ...inputSize,\n      true: inputSize.md\n    }\n  },\n  defaultVariants: {\n    size: \"md\"\n  }\n});\nconst TextAreaFrame = styled(UiTextArea, {\n  displayName: \"TextArea\",\n  className: \"is_TextArea\",\n  ...inputSkin,\n  variants: {\n    size: {\n      ...inputSize,\n      true: inputSize.md\n    }\n  },\n  defaultVariants: {\n    size: \"md\"\n  }\n});\nconst Input = createStyledHOC(\n  InputFrame,\n  function Input2({ theme, ...props }, ref) {\n    const input = /* @__PURE__ */ jsx(Theme, { name: \"Input\", children: /* @__PURE__ */ jsx(InputFrame, { ref, ...props }) });\n    return theme ? /* @__PURE__ */ jsx(Theme, { name: theme, children: input }) : input;\n  },\n  { disableTheme: true }\n);\nconst TextArea = createStyledHOC(\n  TextAreaFrame,\n  function TextArea2({ theme, ...props }, ref) {\n    const textArea = /* @__PURE__ */ jsx(Theme, { name: \"TextArea\", children: /* @__PURE__ */ jsx(TextAreaFrame, { ref, ...props }) });\n    return theme ? /* @__PURE__ */ jsx(Theme, { name: theme, children: textArea }) : textArea;\n  },\n  { disableTheme: true }\n);\nexport {\n  Input,\n  TextArea\n};\n//# sourceMappingURL=Input.js.map\n"],"mappings":";;;;;AAQA,MAAM,YAAY;CAChB,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,UAAU;EACV,YAAY,QAAQ,OAAO,KAAK;CAClC;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,UAAU;EACV,YAAY,QAAQ,OAAO,KAAK;CAClC;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,UAAU;EACV,YAAY,QAAQ,OAAO,KAAK;CAClC;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,UAAU;EACV,YAAY,QAAQ,SAAS,KAAK;CACpC;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,UAAU;EACV,YAAY,QAAQ,OAAO,KAAK;CAClC;AACF;AACA,MAAM,YAAY;CAChB,YAAY;CACZ,YAAY,QAAQ,OAAO,KAAK;CAChC,OAAO;CACP,iBAAiB;CACjB,aAAa;CACb,aAAa;CACb,cAAc;CACd,cAAc;CACd,cAAc;AAChB;AACA,MAAM,aAAa,OAAO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