lecom-ui 5.2.79 → 5.2.80

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.
@@ -55,15 +55,10 @@ function buildColumns({
55
55
  }
56
56
  const hasSort = !!externalColumn.onSort || !!externalColumn.onSortClient;
57
57
  const isFilterable = !!externalColumn.filterable;
58
- const isFilterInputControlled = externalColumn.filterProps?.value !== void 0;
59
- const filterInputValue = isFilterInputControlled ? externalColumn.filterProps?.value : column.getFilterValue() ?? "";
58
+ const filterInputValue = column.getFilterValue() ?? "";
60
59
  const handleFilterInputChange = (event) => {
61
60
  const updatedValue = event.target.value;
62
- if (isFilterInputControlled && externalColumn.filterProps?.onChange) {
63
- externalColumn.filterProps.onChange(updatedValue);
64
- } else {
65
- column.setFilterValue(updatedValue);
66
- }
61
+ column.setFilterValue(updatedValue);
67
62
  };
68
63
  const title = typeof externalColumn.title === "function" ? externalColumn.title({ table, column }) : externalColumn.title;
69
64
  function renderFilterInput() {
package/dist/index.d.ts CHANGED
@@ -352,8 +352,8 @@ declare const SairModoTeste: ({ color, strokeWidth, width, height, ...props }: R
352
352
 
353
353
  declare const inputVariants: (props?: ({
354
354
  variant?: "default" | "filled" | "borderless" | null | undefined;
355
- size?: "small" | "default" | "large" | null | undefined;
356
- radius?: "small" | "default" | "large" | "full" | null | undefined;
355
+ size?: "default" | "small" | "large" | null | undefined;
356
+ radius?: "default" | "small" | "large" | "full" | null | undefined;
357
357
  } & class_variance_authority_types.ClassProp) | undefined) => string;
358
358
  interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
359
359
  sufix?: React$1.ReactNode;
@@ -479,8 +479,7 @@ interface FilterProps {
479
479
  className?: string;
480
480
  placeholder?: string;
481
481
  value?: string;
482
- onChange?: (value: string) => void;
483
- inputProps?: InputProps;
482
+ inputProps?: Omit<InputProps, 'value' | 'onChange'>;
484
483
  }
485
484
  interface Column<TData, TValue> {
486
485
  key: string;
@@ -882,7 +881,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
882
881
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
883
882
 
884
883
  declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
885
- declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement | HTMLButtonElement | HTMLLabelElement | HTMLParagraphElement | HTMLHeadingElement | HTMLInputElement | HTMLUListElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
884
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLUListElement | HTMLInputElement | HTMLLabelElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLImageElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
886
885
  className?: string;
887
886
  collapsedSize?: number | undefined;
888
887
  collapsible?: boolean | undefined;
@@ -1034,7 +1033,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
1034
1033
 
1035
1034
  declare const textareaVariants: (props?: ({
1036
1035
  variant?: "default" | "filled" | "borderless" | null | undefined;
1037
- radius?: "small" | "default" | "large" | null | undefined;
1036
+ radius?: "default" | "small" | "large" | null | undefined;
1038
1037
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1039
1038
  interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
1040
1039
  resize?: 'none' | 'both' | 'horizontal' | 'vertical';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "5.2.79",
3
+ "version": "5.2.80",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",