lecom-ui 5.4.11 → 5.4.12
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.
|
@@ -96,13 +96,14 @@ function DataTable({
|
|
|
96
96
|
const lastColumnFixed = rowsElem.length - 1 === rowElemIndex;
|
|
97
97
|
const lastRow = listRows.length - 1 === listRowIndex;
|
|
98
98
|
const currentElemIsTh = currentElem.tagName === "TH";
|
|
99
|
+
const hasTruncate = currentElem.style.overflow === "hidden" && currentElem.style.textOverflow === "ellipsis";
|
|
99
100
|
const boxShadowWidth = currentElemIsTh ? "-1.5px" : "-0.5px";
|
|
100
101
|
const boxShadow = `#c9c9c9 0px ${lastRow ? "0px" : boxShadowWidth} 0px inset`;
|
|
101
102
|
currentElem.style.position = "sticky";
|
|
102
103
|
currentElem.style.left = `${beforeElemWidth + beforeElemLeft}px`;
|
|
103
104
|
currentElem.style.boxShadow = boxShadow;
|
|
104
|
-
if (currentElemIsTh) {
|
|
105
|
-
currentElem.style.backgroundColor = "#f9fafb";
|
|
105
|
+
if (currentElemIsTh || hasTruncate) {
|
|
106
|
+
currentElem.style.backgroundColor = currentElemIsTh ? "#f9fafb" : "#ffffff";
|
|
106
107
|
}
|
|
107
108
|
currentElem.style.zIndex = "1";
|
|
108
109
|
if (lastColumnFixed) {
|
package/dist/index.d.ts
CHANGED
|
@@ -785,9 +785,9 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
declare const inputVariants: (props?: ({
|
|
788
|
-
variant?: "
|
|
789
|
-
size?: "
|
|
790
|
-
radius?: "
|
|
788
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
789
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
790
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
791
791
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
792
792
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
793
793
|
sufix?: React$1.ReactNode;
|
|
@@ -992,7 +992,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
992
992
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
993
993
|
|
|
994
994
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
995
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement |
|
|
995
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSpanElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLLIElement | HTMLAnchorElement | 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 | HTMLOListElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
996
996
|
className?: string;
|
|
997
997
|
collapsedSize?: number | undefined;
|
|
998
998
|
collapsible?: boolean | undefined;
|
|
@@ -1158,10 +1158,10 @@ declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1158
1158
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1159
1159
|
|
|
1160
1160
|
declare const textareaVariants: (props?: ({
|
|
1161
|
-
variant?: "
|
|
1162
|
-
size?: "
|
|
1163
|
-
radius?: "
|
|
1164
|
-
resize?: "
|
|
1161
|
+
variant?: "filled" | "default" | "borderless" | null | undefined;
|
|
1162
|
+
size?: "small" | "large" | "default" | null | undefined;
|
|
1163
|
+
radius?: "small" | "large" | "default" | "full" | null | undefined;
|
|
1164
|
+
resize?: "both" | "horizontal" | "vertical" | "default" | "vertical-limited" | null | undefined;
|
|
1165
1165
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1166
1166
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|
|
1167
1167
|
}
|
|
@@ -1300,7 +1300,7 @@ declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.Dial
|
|
|
1300
1300
|
declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
1301
1301
|
declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1302
1302
|
declare const sheetVariants: (props?: ({
|
|
1303
|
-
side?: "
|
|
1303
|
+
side?: "top" | "bottom" | "right" | "left" | null | undefined;
|
|
1304
1304
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1305
1305
|
interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
1306
1306
|
}
|
|
@@ -1344,7 +1344,7 @@ interface DateInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputEleme
|
|
|
1344
1344
|
declare const DateInput: React$1.ForwardRefExoticComponent<DateInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1345
1345
|
|
|
1346
1346
|
declare const badgeVariants: (props?: ({
|
|
1347
|
-
variant?: "
|
|
1347
|
+
variant?: "destructive" | "default" | "outline" | "secondary" | null | undefined;
|
|
1348
1348
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1349
1349
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
1350
1350
|
}
|