@betterstart/cli 0.1.45 → 0.1.46

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/cli.js CHANGED
@@ -2355,10 +2355,10 @@ function generateFieldJSX(field) {
2355
2355
  case "radio":
2356
2356
  if (field.options && field.options.length > 0) {
2357
2357
  const radioItems = field.options.map(
2358
- (opt) => ` <label htmlFor="${name}-${opt.value}" className="flex items-center space-x-2 text-sm font-medium leading-none">
2358
+ (opt) => ` <FormLabel htmlFor="${name}-${opt.value}" className="flex items-center space-x-2 text-sm font-medium leading-none">
2359
2359
  <RadioGroupItem value="${opt.value}" id="${name}-${opt.value}" />
2360
2360
  <span>${escapeJsx(opt.label)}</span>
2361
- </label>`
2361
+ </FormLabel>`
2362
2362
  ).join("\n");
2363
2363
  return ` <FormField
2364
2364
  control={form.control}
@@ -2513,7 +2513,7 @@ ${selectItems}
2513
2513
  return `${nf.name}: ''`;
2514
2514
  }).join(", ");
2515
2515
  return ` <div className="space-y-4">
2516
- <label className="text-sm font-medium leading-none">${label}${requiredStar}</label>${hintJSX}
2516
+ <FormLabel className="text-sm font-medium leading-none">${label}${requiredStar}</FormLabel>${hintJSX}
2517
2517
  {${name}FieldArray.fields.map((item, index) => (
2518
2518
  <div key={item.id} className="flex items-end gap-2 rounded-lg border p-4">
2519
2519
  <div className="flex-1 space-y-4">