@betterstart/cli 0.1.43 → 0.1.44
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 +5 -10
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2347,10 +2347,10 @@ function generateFieldJSX(field) {
|
|
|
2347
2347
|
case "radio":
|
|
2348
2348
|
if (field.options && field.options.length > 0) {
|
|
2349
2349
|
const radioItems = field.options.map(
|
|
2350
|
-
(opt) => ` <
|
|
2350
|
+
(opt) => ` <label htmlFor="${name}-${opt.value}" className="flex items-center space-x-2 text-sm font-medium leading-none">
|
|
2351
2351
|
<RadioGroupItem value="${opt.value}" id="${name}-${opt.value}" />
|
|
2352
|
-
<
|
|
2353
|
-
</
|
|
2352
|
+
<span>${escapeJsx(opt.label)}</span>
|
|
2353
|
+
</label>`
|
|
2354
2354
|
).join("\n");
|
|
2355
2355
|
return ` <FormField
|
|
2356
2356
|
control={form.control}
|
|
@@ -2359,7 +2359,7 @@ function generateFieldJSX(field) {
|
|
|
2359
2359
|
<FormItem className="space-y-3">
|
|
2360
2360
|
<FormLabel>${label}${requiredStar}</FormLabel>
|
|
2361
2361
|
<FormControl>
|
|
2362
|
-
<RadioGroup onValueChange={field.onChange} defaultValue={field.value} className="flex
|
|
2362
|
+
<RadioGroup onValueChange={field.onChange} defaultValue={field.value} className="flex items-center space-x-2">
|
|
2363
2363
|
${radioItems}
|
|
2364
2364
|
</RadioGroup>
|
|
2365
2365
|
</FormControl>${hintJSX}
|
|
@@ -2565,7 +2565,6 @@ ${fieldsJSX}
|
|
|
2565
2565
|
const buttonImport = resolveUiImport(cwd, "button");
|
|
2566
2566
|
const formImport = resolveUiImport(cwd, "form");
|
|
2567
2567
|
const inputImport = resolveUiImport(cwd, "input");
|
|
2568
|
-
const labelImport = resolveUiImport(cwd, "label");
|
|
2569
2568
|
const textareaImport = resolveUiImport(cwd, "textarea");
|
|
2570
2569
|
const selectImport = resolveUiImport(cwd, "select");
|
|
2571
2570
|
const radioGroupImport = resolveUiImport(cwd, "radio-group");
|
|
@@ -2578,7 +2577,6 @@ ${fieldsJSX}
|
|
|
2578
2577
|
buttonImport,
|
|
2579
2578
|
formImport,
|
|
2580
2579
|
inputImport,
|
|
2581
|
-
labelImport,
|
|
2582
2580
|
textareaImport,
|
|
2583
2581
|
selectImport,
|
|
2584
2582
|
radioGroupImport,
|
|
@@ -2629,7 +2627,6 @@ import {
|
|
|
2629
2627
|
FormMessage,
|
|
2630
2628
|
} from '${p7.formImport}'
|
|
2631
2629
|
import { Input } from '${p7.inputImport}'
|
|
2632
|
-
import { Label } from '${p7.labelImport}'
|
|
2633
2630
|
import { Progress } from '${p7.progressImport}'${p7.hasRadio ? `
|
|
2634
2631
|
import { RadioGroup, RadioGroupItem } from '${p7.radioGroupImport}'` : ""}
|
|
2635
2632
|
import { Textarea } from '${p7.textareaImport}'
|
|
@@ -2829,7 +2826,6 @@ ${buildFieldArrayDecls(listFields)}
|
|
|
2829
2826
|
const buttonImport = resolveUiImport(cwd, "button");
|
|
2830
2827
|
const formImport = resolveUiImport(cwd, "form");
|
|
2831
2828
|
const inputImport = resolveUiImport(cwd, "input");
|
|
2832
|
-
const labelImport = resolveUiImport(cwd, "label");
|
|
2833
2829
|
const textareaImport = resolveUiImport(cwd, "textarea");
|
|
2834
2830
|
const selectImport = resolveUiImport(cwd, "select");
|
|
2835
2831
|
const radioGroupImport = resolveUiImport(cwd, "radio-group");
|
|
@@ -2850,8 +2846,7 @@ import {
|
|
|
2850
2846
|
FormLabel,
|
|
2851
2847
|
FormMessage,
|
|
2852
2848
|
} from '${formImport}'
|
|
2853
|
-
import { Input } from '${inputImport}'
|
|
2854
|
-
import { Label } from '${labelImport}'${hasRadio ? `
|
|
2849
|
+
import { Input } from '${inputImport}'${hasRadio ? `
|
|
2855
2850
|
import { RadioGroup, RadioGroupItem } from '${radioGroupImport}'` : ""}
|
|
2856
2851
|
import { Textarea } from '${textareaImport}'
|
|
2857
2852
|
import {
|