@lumx/react 4.13.0-next.5 → 4.14.0-next.0
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.
- package/index.js +13 -10
- package/index.js.map +1 -1
- package/package.json +7 -7
package/index.js
CHANGED
|
@@ -7177,21 +7177,24 @@ const ComboboxButton$1 = (props, {
|
|
|
7177
7177
|
|
|
7178
7178
|
// Hide tooltip if the displayed content equals the label or when open
|
|
7179
7179
|
const hideTooltip = label === content || isOpen;
|
|
7180
|
-
const
|
|
7180
|
+
const componentProps = {
|
|
7181
|
+
ref,
|
|
7182
|
+
...forwardedProps,
|
|
7183
|
+
className: classnames(className, CLASSNAME$1f),
|
|
7184
|
+
role: 'combobox',
|
|
7185
|
+
'aria-controls': listboxId,
|
|
7186
|
+
'aria-haspopup': 'listbox',
|
|
7187
|
+
'aria-expanded': isOpen,
|
|
7188
|
+
'aria-activedescendant': '',
|
|
7189
|
+
children: content
|
|
7190
|
+
};
|
|
7181
7191
|
return /*#__PURE__*/jsx(Tooltip, {
|
|
7182
7192
|
className: hideTooltip ? visuallyHidden() : undefined,
|
|
7183
7193
|
label: label,
|
|
7184
7194
|
closeMode: "hide",
|
|
7185
7195
|
ariaLinkMode: "aria-labelledby",
|
|
7186
|
-
children: /*#__PURE__*/jsx(
|
|
7187
|
-
|
|
7188
|
-
...forwardedProps,
|
|
7189
|
-
className: classnames(className, CLASSNAME$1f),
|
|
7190
|
-
role: "combobox",
|
|
7191
|
-
"aria-controls": listboxId,
|
|
7192
|
-
"aria-haspopup": "listbox",
|
|
7193
|
-
"aria-expanded": isOpen,
|
|
7194
|
-
"aria-activedescendant": "",
|
|
7196
|
+
children: renderButton ? renderButton(componentProps) : /*#__PURE__*/jsx(Button, {
|
|
7197
|
+
...componentProps,
|
|
7195
7198
|
children: content
|
|
7196
7199
|
})
|
|
7197
7200
|
});
|