lecom-ui 5.2.60 → 5.2.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.
@@ -101,8 +101,6 @@ function CustomDivider({
101
101
  className,
102
102
  style
103
103
  }) {
104
- const formContext = useFormContext();
105
- const controlToUse = control ?? formContext.control;
106
104
  if (lineOnly) {
107
105
  return /* @__PURE__ */ React.createElement(
108
106
  DividerLine,
@@ -116,6 +114,8 @@ function CustomDivider({
116
114
  }
117
115
  );
118
116
  }
117
+ const formContext = useFormContext();
118
+ const controlToUse = control ?? formContext.control;
119
119
  const justifyMap = {
120
120
  left: "justify-start",
121
121
  center: "justify-center",
package/dist/index.d.ts CHANGED
@@ -1132,13 +1132,10 @@ interface CustomDividerProps<T extends FieldValues> {
1132
1132
  dashed?: boolean;
1133
1133
  plain?: boolean;
1134
1134
  lineOnly?: boolean;
1135
- /** Rótulo customizado para as duas opções [primeira, segunda] */
1136
1135
  optionLabels?: [React$1.ReactNode, React$1.ReactNode];
1137
- /** Componente de botão para renderizar as opções */
1138
1136
  ButtonComponent?: React$1.ComponentType<ButtonProps & {
1139
1137
  onClick(): void;
1140
1138
  }>;
1141
- /** Tamanho dos botões internos */
1142
1139
  buttonSize?: ButtonProps['size'];
1143
1140
  className?: string;
1144
1141
  style?: React$1.CSSProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.2.60",
3
+ "version": "5.2.61",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",