import { Input } from "./Input";
import { jsx, jsxs } from "react/jsx-runtime";
function TextField({
  label,
  supportingText,
  value,
  trailingIcon,
  onChangeText,
  multiline,
  endAdornment,
  keyboardType,
  tooltip,
  ...props
}) {
  return /* @__PURE__ */ jsxs(Input, { ...props, children: [
    /* @__PURE__ */ jsxs(Input.Container, { children: [
      !!label && !props?.bare && /* @__PURE__ */ jsx(Input.Label, { children: label }),
      /* @__PURE__ */ jsx(
        Input.Text,
        {
          value,
          onChangeText,
          multiline,
          keyboardType
        }
      ),
      endAdornment && /* @__PURE__ */ jsx(Input.Adornment, { children: endAdornment }),
      tooltip && /* @__PURE__ */ jsx(Input.Tooltip, { label: tooltip }),
      trailingIcon && /* @__PURE__ */ jsx(Input.TrailingIcon, { Icon: trailingIcon }),
      /* @__PURE__ */ jsx(Input.Spinner, {})
    ] }),
    supportingText && !props?.bare && /* @__PURE__ */ jsx(Input.SupportingText, { children: supportingText })
  ] });
}
export {
  TextField
};
//# sourceMappingURL=TextField.js.map
