lecom-ui 5.2.63 → 5.2.64
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.
|
@@ -120,6 +120,11 @@ function CustomDivider({
|
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
+
if (!name) {
|
|
124
|
+
throw new Error(
|
|
125
|
+
"CustomDivider: prop `name` is required when `lineOnly` is false."
|
|
126
|
+
);
|
|
127
|
+
}
|
|
123
128
|
const formContext = useFormContext();
|
|
124
129
|
const controlToUse = control ?? formContext.control;
|
|
125
130
|
const justifyMap = {
|
package/dist/index.d.ts
CHANGED
|
@@ -1124,7 +1124,8 @@ declare function Combobox({ options, value, onChange, placeholder, disabled, not
|
|
|
1124
1124
|
|
|
1125
1125
|
type Orientation = 'left' | 'center' | 'right';
|
|
1126
1126
|
interface CustomDividerProps<T extends FieldValues> {
|
|
1127
|
-
|
|
1127
|
+
/** Nome do campo no formulário (necessário se não for `lineOnly`) */
|
|
1128
|
+
name?: FieldPath<T>;
|
|
1128
1129
|
control?: Control<T>;
|
|
1129
1130
|
isActive?: boolean;
|
|
1130
1131
|
isGroupDivider?: boolean;
|