lecom-ui 5.2.68 → 5.2.70
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.
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { cn } from '../../lib/utils.js';
|
|
3
3
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
|
+
import { ChevronRight } from 'lucide-react';
|
|
5
6
|
|
|
6
7
|
const collapseTriggerVariants = cva(
|
|
7
8
|
"flex items-center justify-between w-full transition-all text-left outline-none data-[state=open]:font-semibold",
|
|
@@ -30,7 +31,6 @@ const CollapsePanel = React.forwardRef(
|
|
|
30
31
|
header,
|
|
31
32
|
children,
|
|
32
33
|
extra,
|
|
33
|
-
expandIcon,
|
|
34
34
|
expandIconPosition = "start",
|
|
35
35
|
size = "large",
|
|
36
36
|
ghost = false,
|
|
@@ -65,7 +65,13 @@ const CollapsePanel = React.forwardRef(
|
|
|
65
65
|
expandIconPosition === "end" ? "flex-row-reverse" : ""
|
|
66
66
|
)
|
|
67
67
|
},
|
|
68
|
-
/* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2 truncate" }, /* @__PURE__ */ React.createElement(
|
|
68
|
+
/* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2 truncate" }, /* @__PURE__ */ React.createElement(
|
|
69
|
+
"span",
|
|
70
|
+
{
|
|
71
|
+
className: "flex items-center justify-center flex-shrink-0 min-w-4 min-h-4 transition-transform duration-300 group-data-[state=open]:rotate-90 text-grey-700 text-lg select-none font-normal"
|
|
72
|
+
},
|
|
73
|
+
/* @__PURE__ */ React.createElement(ChevronRight, { className: "size-4" })
|
|
74
|
+
), /* @__PURE__ */ React.createElement("span", { className: "font-normal" }, header)),
|
|
69
75
|
extra && /* @__PURE__ */ React.createElement("div", { className: "text-sm text-grey-500" }, extra)
|
|
70
76
|
)
|
|
71
77
|
)),
|
package/dist/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<Accordion
|
|
|
55
55
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
56
56
|
|
|
57
57
|
declare const buttonVariants: (props?: ({
|
|
58
|
-
variant?: "
|
|
58
|
+
variant?: "filled" | "outlined" | "tonal" | "ghost" | null | undefined;
|
|
59
59
|
size?: "small" | "medium" | "large" | "extraLarge" | null | undefined;
|
|
60
60
|
color?: "blue" | "grey" | "destructive" | null | undefined;
|
|
61
61
|
iconButton?: boolean | null | undefined;
|
|
@@ -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<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement |
|
|
901
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement | HTMLLabelElement | 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"> & {
|
|
902
902
|
className?: string;
|
|
903
903
|
collapsedSize?: number | undefined;
|
|
904
904
|
collapsible?: boolean | undefined;
|