import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Input } from "./Input.native.js";
function TextField(param) {
  var {
    label,
    supportingText,
    value,
    trailingIcon,
    onChangeText,
    multiline,
    endAdornment,
    keyboardType,
    tooltip,
    ...props
  } = param;
  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.native.js.map
