lecom-ui 5.3.12 → 5.3.13
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.
|
@@ -63,12 +63,13 @@ function buildColumns({
|
|
|
63
63
|
{
|
|
64
64
|
size: 16,
|
|
65
65
|
className: "ml-1 text-grey-400 group-hover:text-grey-950 hover:cursor-pointer",
|
|
66
|
-
onClick: (
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
else if (externalColumn.onSort) {
|
|
66
|
+
onClick: (event) => {
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
const sortingHandler = column.getToggleSortingHandler?.();
|
|
69
|
+
if (externalColumn.onSort) {
|
|
71
70
|
externalColumn.onSort({ table, column });
|
|
71
|
+
} else if (sortingHandler) {
|
|
72
|
+
sortingHandler(event);
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
75
|
}
|
|
@@ -56,8 +56,7 @@ function Table({
|
|
|
56
56
|
style: {
|
|
57
57
|
...styleColumn(header.column.columnDef.meta, "th"),
|
|
58
58
|
...header.column.columnDef.meta?.headerStyle
|
|
59
|
-
}
|
|
60
|
-
onClick: header.column.getToggleSortingHandler()
|
|
59
|
+
}
|
|
61
60
|
},
|
|
62
61
|
header.isPlaceholder ? null : flexRender(
|
|
63
62
|
header.column.columnDef.header,
|
package/dist/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<Accordion
|
|
|
69
69
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
70
70
|
|
|
71
71
|
declare const buttonVariants: (props?: ({
|
|
72
|
-
variant?: "
|
|
72
|
+
variant?: "filled" | "outlined" | "tonal" | "ghost" | null | undefined;
|
|
73
73
|
size?: "small" | "medium" | "large" | "extraLarge" | null | undefined;
|
|
74
74
|
color?: "blue" | "grey" | "destructive" | null | undefined;
|
|
75
75
|
iconButton?: boolean | null | undefined;
|
|
@@ -738,8 +738,8 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
738
738
|
|
|
739
739
|
declare const inputVariants: (props?: ({
|
|
740
740
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
741
|
-
size?: "
|
|
742
|
-
radius?: "
|
|
741
|
+
size?: "small" | "default" | "large" | null | undefined;
|
|
742
|
+
radius?: "small" | "default" | "large" | "full" | null | undefined;
|
|
743
743
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
744
744
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
745
745
|
sufix?: React$1.ReactNode;
|
|
@@ -898,7 +898,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
898
898
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
899
899
|
|
|
900
900
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
901
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<
|
|
901
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement | HTMLInputElement | HTMLLabelElement | 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"> & {
|
|
902
902
|
className?: string;
|
|
903
903
|
collapsedSize?: number | undefined;
|
|
904
904
|
collapsible?: boolean | undefined;
|
|
@@ -1054,7 +1054,7 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1054
1054
|
|
|
1055
1055
|
declare const textareaVariants: (props?: ({
|
|
1056
1056
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
1057
|
-
radius?: "
|
|
1057
|
+
radius?: "small" | "default" | "large" | null | undefined;
|
|
1058
1058
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1059
1059
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
1060
1060
|
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|