shadcn-zod-formkit 1.1.0 → 1.2.0

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.
package/dist/index.cjs CHANGED
@@ -4382,20 +4382,22 @@ var TextInput = class extends BaseInput {
4382
4382
  }
4383
4383
  };
4384
4384
  var FieldText = ({ input, form, isSubmitting }) => {
4385
+ const hidden = input.hidden ?? input.inputType === "hidden" /* HIDDEN */;
4386
+ const type = hidden ? "hidden" : input.keyboardType || "text";
4385
4387
  return /* @__PURE__ */ jsxRuntime.jsx(
4386
4388
  FormField,
4387
4389
  {
4388
4390
  control: form.control,
4389
4391
  name: input.name,
4390
4392
  render: ({ field }) => /* @__PURE__ */ jsxRuntime.jsxs(FormItem, { className: input.className, children: [
4391
- /* @__PURE__ */ jsxRuntime.jsx(FormLabel, { children: /* @__PURE__ */ jsxRuntime.jsx("b", { children: input.label }) }),
4393
+ !hidden && /* @__PURE__ */ jsxRuntime.jsx(FormLabel, { children: /* @__PURE__ */ jsxRuntime.jsx("b", { children: input.label }) }),
4392
4394
  /* @__PURE__ */ jsxRuntime.jsx(FormControl, { className: "shadow-lg", children: /* @__PURE__ */ jsxRuntime.jsx(
4393
4395
  Input,
4394
4396
  {
4395
4397
  className: "min-w-[180px]",
4396
4398
  placeholder: input.placeHolder,
4397
4399
  ...field,
4398
- type: input.keyboardType,
4400
+ type,
4399
4401
  disabled: input.disabled || isSubmitting
4400
4402
  }
4401
4403
  ) }),