UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

38 lines (36 loc) 1.1 kB
/** * VERSION: 2.230.0-alpha.0 * BUILD_TIMESTAMP: 1778694684677 * BUILD_DATE: Wed May 13 2026 17:51:24 GMT+0000 (Coordinated Universal Time) * BUILD_COMMIT: 7af1c105d5485ac4ed1190c56d492bb4590667a9 */ import { i as c, g as y, j as e, F as d } from "../sheerid.js"; import { F as m } from "./FormFieldText-CaWtYVur.js"; const u = ({ value: s, isErrored: a, onChange: l, intl: o, isRequired: r = !1, onKeyDown: i = void 0, placeholder: t = "", disabled: n = !1 }) => y("city")?.hidden ? null : /* @__PURE__ */ e.jsx( m, { fieldId: "city", value: s, onChange: l, placeholder: t || o.formatHTMLMessage({ id: "cityPlaceholder", defaultMessage: "City" }), label: /* @__PURE__ */ e.jsx(d, { id: "city", defaultMessage: "City" }), errorMessage: a && /* @__PURE__ */ e.jsx(d, { id: "errorId.invalidCity", defaultMessage: "Invalid city" }), showPlaceholderAndHideLabel: !!t, required: r, onKeyDown: typeof i == "function" ? (f) => i(f) : void 0, disabled: n, autoComplete: "address-level2" } ), M = c(u); export { M as C };