shadcn-zod-formkit 1.27.3 → 1.27.4

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
@@ -5563,6 +5563,7 @@ var StringValueListInput = class extends BaseInput {
5563
5563
  };
5564
5564
  var FieldStringValueList = ({ form, input, isSubmitting }) => {
5565
5565
  const fieldName = input.name;
5566
+ const withAddBtn = input.withAddBtn ?? false;
5566
5567
  React3.useEffect(() => {
5567
5568
  const current = form.getValues(fieldName);
5568
5569
  if (!Array.isArray(current)) {
@@ -5626,7 +5627,7 @@ var FieldStringValueList = ({ form, input, isSubmitting }) => {
5626
5627
  },
5627
5628
  index
5628
5629
  )),
5629
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end mt-2", children: /* @__PURE__ */ jsxRuntime.jsx(
5630
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-end mt-2", children: withAddBtn && /* @__PURE__ */ jsxRuntime.jsx(
5630
5631
  Button,
5631
5632
  {
5632
5633
  type: "button",