@opengov/form-utils
Advanced tools
+8
-2
@@ -63,2 +63,7 @@ import { FieldValues, Control } from 'react-hook-form'; | ||
| /** CONFIGURATION TYPES */ | ||
| type LabelConfiguration = { | ||
| placeholder?: string; | ||
| canEdit?: boolean; | ||
| maxLength?: number; | ||
| }; | ||
| export type SectionConfiguration<T extends FieldValues = FieldValues> = { | ||
@@ -70,3 +75,3 @@ type: 'singleEntry' | 'multiEntry'; | ||
| groups: ConfigurationGroup<T>[]; | ||
| omitLabelConfiguration?: boolean; | ||
| label?: LabelConfiguration; | ||
| restrictedFieldTypes?: string[]; | ||
@@ -140,3 +145,3 @@ layout: { | ||
| groups: ConfigurationGroup<T>[]; | ||
| omitLabelConfiguration?: boolean; | ||
| label?: LabelConfiguration; | ||
| fullWidth?: boolean; | ||
@@ -163,1 +168,2 @@ }; | ||
| export type FieldTypes = TypeConfig | TypeConfig<TextConfiguration> | TypeConfig<NumberConfiguration> | TypeConfig<DateConfiguration>; | ||
| export {}; |
+1
-1
| { | ||
| "name": "@opengov/form-utils", | ||
| "version": "0.6.0", | ||
| "version": "0.7.0", | ||
| "description": "OpenGov Smart Forms form utils", | ||
@@ -5,0 +5,0 @@ "type": "module", |
8832
1.18%226
2.73%