lecom-ui 5.3.71 → 5.3.72
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.
|
@@ -67,11 +67,17 @@ const comboboxItemVariants = cva(
|
|
|
67
67
|
disabled: {
|
|
68
68
|
true: "text-grey-400 pointer-events-none",
|
|
69
69
|
false: ""
|
|
70
|
+
},
|
|
71
|
+
// nova variante para destacar o item selecionado
|
|
72
|
+
selected: {
|
|
73
|
+
true: "bg-grey-100 font-medium text-grey-900",
|
|
74
|
+
false: ""
|
|
70
75
|
}
|
|
71
76
|
},
|
|
72
77
|
defaultVariants: {
|
|
73
78
|
size: "medium",
|
|
74
|
-
disabled: false
|
|
79
|
+
disabled: false,
|
|
80
|
+
selected: false
|
|
75
81
|
}
|
|
76
82
|
}
|
|
77
83
|
);
|
|
@@ -103,12 +109,21 @@ const ComboboxItemContent = ({
|
|
|
103
109
|
className: cn(
|
|
104
110
|
comboboxItemVariants({
|
|
105
111
|
size,
|
|
106
|
-
disabled: isDisabled
|
|
112
|
+
disabled: isDisabled,
|
|
113
|
+
selected: isSelected
|
|
107
114
|
}),
|
|
108
115
|
itemsClassName
|
|
109
|
-
)
|
|
116
|
+
),
|
|
117
|
+
"aria-current": isSelected ? "true" : void 0
|
|
110
118
|
},
|
|
111
|
-
/* @__PURE__ */ React.createElement(Typography, { className: "w-4 h-4 flex items-center justify-center shrink-0 py-1" }, option.value === value && /* @__PURE__ */ React.createElement(
|
|
119
|
+
/* @__PURE__ */ React.createElement(Typography, { className: "w-4 h-4 flex items-center justify-center shrink-0 py-1" }, option.value === value && /* @__PURE__ */ React.createElement(
|
|
120
|
+
Check,
|
|
121
|
+
{
|
|
122
|
+
className: cn(textColor, isSelected ? "text-primary-600" : ""),
|
|
123
|
+
size: checkIconSize,
|
|
124
|
+
strokeWidth: isSelected ? 2.5 : 2
|
|
125
|
+
}
|
|
126
|
+
)),
|
|
112
127
|
option.prefix && /* @__PURE__ */ React.createElement(
|
|
113
128
|
Typography,
|
|
114
129
|
{
|
package/dist/index.d.ts
CHANGED
|
@@ -961,7 +961,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
|
|
|
961
961
|
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
962
962
|
|
|
963
963
|
declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => React$1.JSX.Element;
|
|
964
|
-
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement |
|
|
964
|
+
declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLButtonElement | HTMLHeadingElement | HTMLParagraphElement | HTMLSpanElement | HTMLLabelElement | HTMLInputElement | HTMLUListElement | HTMLLIElement | HTMLOListElement | 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 | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
965
965
|
className?: string;
|
|
966
966
|
collapsedSize?: number | undefined;
|
|
967
967
|
collapsible?: boolean | undefined;
|