@betterstart/cli 0.1.72 → 0.1.73

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
@@ -6978,6 +6978,7 @@ function parseCardGroups(allFormFields, schemaLabel) {
6978
6978
  {
6979
6979
  title,
6980
6980
  description: "",
6981
+ hint: "",
6981
6982
  varPrefix: toCamelCase(nonSections[0]?.name || "form"),
6982
6983
  componentName: `${toPascalCase(nonSections[0]?.name || "form")}Card`,
6983
6984
  fields: nonSections,
@@ -6990,7 +6991,8 @@ function parseCardGroups(allFormFields, schemaLabel) {
6990
6991
  const innerFields = section.fields || [];
6991
6992
  groups.push({
6992
6993
  title: section.label || section.name,
6993
- description: section.description || section.hint || "",
6994
+ description: section.description || "",
6995
+ hint: section.hint || "",
6994
6996
  varPrefix: toCamelCase(section.name),
6995
6997
  componentName: `${toPascalCase(section.name)}Card`,
6996
6998
  fields: innerFields,
@@ -7002,6 +7004,7 @@ function parseCardGroups(allFormFields, schemaLabel) {
7002
7004
  groups.unshift({
7003
7005
  title,
7004
7006
  description: "",
7007
+ hint: "",
7005
7008
  varPrefix: toCamelCase(nonSections[0]?.name || "general"),
7006
7009
  componentName: `${toPascalCase(nonSections[0]?.name || "General")}Card`,
7007
7010
  fields: nonSections,
@@ -7136,8 +7139,9 @@ ${fieldArrayHooks}
7136
7139
  <CardContent className="space-y-6">
7137
7140
  ${fieldsJSX}
7138
7141
  </CardContent>
7139
- <CardFooter>
7140
- <Button type="submit" disabled={isPending} size="sm">
7142
+ <CardFooter>${group3.hint ? `
7143
+ <p className="text-sm text-muted-foreground">${group3.hint}</p>` : ""}
7144
+ <Button type="submit" disabled={isPending} size="sm" className="ml-auto">
7141
7145
  {isPending ? 'Saving...' : 'Save'}
7142
7146
  </Button>
7143
7147
  </CardFooter>