lecom-ui 5.2.62 → 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.
@@ -58,6 +58,7 @@ function OptionButtons({
58
58
  /* @__PURE__ */ React.createElement(
59
59
  Btn,
60
60
  {
61
+ type: "button",
61
62
  variant: "ghost",
62
63
  color: "grey",
63
64
  size: buttonSize,
@@ -74,6 +75,7 @@ function OptionButtons({
74
75
  /* @__PURE__ */ React.createElement(
75
76
  Btn,
76
77
  {
78
+ type: "button",
77
79
  variant: "ghost",
78
80
  color: "grey",
79
81
  size: buttonSize,
@@ -118,6 +120,11 @@ function CustomDivider({
118
120
  }
119
121
  );
120
122
  }
123
+ if (!name) {
124
+ throw new Error(
125
+ "CustomDivider: prop `name` is required when `lineOnly` is false."
126
+ );
127
+ }
121
128
  const formContext = useFormContext();
122
129
  const controlToUse = control ?? formContext.control;
123
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
- name: FieldPath<T>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.2.62",
3
+ "version": "5.2.64",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",