@betterstart/cli 0.1.59 → 0.1.61
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 +6 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
- package/templates/ui/rich-text-editor.tsx +1 -1
package/dist/cli.js
CHANGED
|
@@ -2536,7 +2536,7 @@ ${selectItems}
|
|
|
2536
2536
|
if (nf.type === "number") return `${nf.name}: undefined`;
|
|
2537
2537
|
return `${nf.name}: ''`;
|
|
2538
2538
|
}).join(", ");
|
|
2539
|
-
return ` <div className="space-y-
|
|
2539
|
+
return ` <div className="space-y-2">
|
|
2540
2540
|
<FormLabel className="text-sm font-medium leading-none">${label}${requiredStar}</FormLabel>${hintJSX}
|
|
2541
2541
|
{${name}FieldArray.fields.map((item, index) => (
|
|
2542
2542
|
<div key={item.id} className="relative rounded-lg border p-4">
|
|
@@ -2545,7 +2545,7 @@ ${selectItems}
|
|
|
2545
2545
|
onClick={() => ${name}FieldArray.remove(index)}
|
|
2546
2546
|
className="absolute right-2 top-2 inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-destructive/10 hover:text-destructive"
|
|
2547
2547
|
>
|
|
2548
|
-
<Trash2 className="
|
|
2548
|
+
<Trash2 className="size-4" />
|
|
2549
2549
|
<span className="sr-only">Remove</span>
|
|
2550
2550
|
</button>
|
|
2551
2551
|
<div className="space-y-4 pr-8">
|
|
@@ -2771,7 +2771,7 @@ ${p7.fieldArraySetup}${p7.watchSetup}
|
|
|
2771
2771
|
|
|
2772
2772
|
return (
|
|
2773
2773
|
<Form {...form}>
|
|
2774
|
-
<form onSubmit={
|
|
2774
|
+
<form onSubmit={(e) => e.preventDefault()} className="space-y-8">
|
|
2775
2775
|
{/* Step header */}
|
|
2776
2776
|
<div>
|
|
2777
2777
|
<h3 className="text-lg font-semibold">{STEPS[currentStep].label}</h3>
|
|
@@ -2797,16 +2797,16 @@ ${p7.stepContentBlocks}
|
|
|
2797
2797
|
onClick={handleBack}
|
|
2798
2798
|
disabled={currentStep === 0}
|
|
2799
2799
|
>
|
|
2800
|
-
<ChevronLeft className="mr-2
|
|
2800
|
+
<ChevronLeft className="mr-2 size-4" />
|
|
2801
2801
|
Back
|
|
2802
2802
|
</Button>
|
|
2803
2803
|
{currentStep < STEPS.length - 1 ? (
|
|
2804
2804
|
<Button type="button" onClick={handleNext}>
|
|
2805
2805
|
Next
|
|
2806
|
-
<ChevronRight className="ml-2
|
|
2806
|
+
<ChevronRight className="ml-2 size-4" />
|
|
2807
2807
|
</Button>
|
|
2808
2808
|
) : (
|
|
2809
|
-
<Button type="
|
|
2809
|
+
<Button type="button" disabled={submitting} onClick={() => onSubmit(form.getValues())}>
|
|
2810
2810
|
{submitting ? 'Submitting...' : '${p7.submitText}'}
|
|
2811
2811
|
</Button>
|
|
2812
2812
|
)}
|