lecom-ui 5.3.51 → 5.3.52
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.
|
@@ -11,7 +11,7 @@ import { initializeI18n } from '../../i18n/index.js';
|
|
|
11
11
|
initializeI18n();
|
|
12
12
|
const MultiSelect = React.forwardRef(
|
|
13
13
|
({
|
|
14
|
-
options,
|
|
14
|
+
options = [],
|
|
15
15
|
onValueChange,
|
|
16
16
|
value = [],
|
|
17
17
|
placeholder = "Select options",
|
|
@@ -378,8 +378,7 @@ const MultiSelect = React.forwardRef(
|
|
|
378
378
|
"aria-expanded": isPopoverOpen
|
|
379
379
|
},
|
|
380
380
|
selectedValues.length > 0 ? /* @__PURE__ */ React.createElement("div", { className: "flex justify-between items-center w-full" }, /* @__PURE__ */ React.createElement("div", { className: "flex flex-wrap items-center gap-1" }, selectedValues.slice(0, maxCount).map((value2) => {
|
|
381
|
-
const
|
|
382
|
-
const label = option?.label || findTreeLabel(value2) || value2;
|
|
381
|
+
const label = findTreeLabel(value2) || options.find((o) => o.value === value2)?.label || value2;
|
|
383
382
|
return /* @__PURE__ */ React.createElement(Tag, { key: value2, color: "blue", className: "focus:ring-0" }, label, /* @__PURE__ */ React.createElement(
|
|
384
383
|
X,
|
|
385
384
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -756,8 +756,8 @@ interface HeaderProps extends React$1.HTMLAttributes<HTMLElement>, VariantProps<
|
|
|
756
756
|
|
|
757
757
|
declare const inputVariants: (props?: ({
|
|
758
758
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
759
|
-
size?: "
|
|
760
|
-
radius?: "
|
|
759
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
760
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
761
761
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
762
762
|
interface InputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'size' | 'sufix' | 'prefix'>, VariantProps<typeof inputVariants> {
|
|
763
763
|
sufix?: React$1.ReactNode;
|
|
@@ -799,7 +799,7 @@ declare const Layout: {
|
|
|
799
799
|
};
|
|
800
800
|
|
|
801
801
|
interface MultiSelectProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
802
|
-
options
|
|
802
|
+
options?: {
|
|
803
803
|
label: string;
|
|
804
804
|
value: string;
|
|
805
805
|
}[];
|
|
@@ -944,7 +944,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
944
944
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
945
945
|
|
|
946
946
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
947
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<
|
|
947
|
+
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"> & {
|
|
948
948
|
className?: string;
|
|
949
949
|
collapsedSize?: number | undefined;
|
|
950
950
|
collapsible?: boolean | undefined;
|
|
@@ -1100,8 +1100,8 @@ declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.
|
|
|
1100
1100
|
|
|
1101
1101
|
declare const textareaVariants: (props?: ({
|
|
1102
1102
|
variant?: "default" | "filled" | "borderless" | null | undefined;
|
|
1103
|
-
size?: "
|
|
1104
|
-
radius?: "
|
|
1103
|
+
size?: "default" | "small" | "large" | null | undefined;
|
|
1104
|
+
radius?: "default" | "small" | "large" | "full" | null | undefined;
|
|
1105
1105
|
resize?: "default" | "both" | "horizontal" | "vertical" | "vertical-limited" | null | undefined;
|
|
1106
1106
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1107
1107
|
interface TextareaProps extends React$1.ComponentProps<'textarea'>, VariantProps<typeof textareaVariants> {
|