plataforma-fundacao-componentes 2.23.8 → 2.23.9
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/dist/index.css +7 -6
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -8549,13 +8549,16 @@ var Doughnut$1 = memo(Doughnut);
|
|
|
8549
8549
|
var rootClassName$27 = 'component-dropdown-item';
|
|
8550
8550
|
|
|
8551
8551
|
function DropdownItem(props) {
|
|
8552
|
+
var classNames = useMemo(function () {
|
|
8553
|
+
return getMergedClassNames([rootClassName$27, props.alignRight ? 'right' : '', props.loading ? 'loading' : '']);
|
|
8554
|
+
}, [props.alignRight, props.loading]);
|
|
8552
8555
|
return React.createElement("button", {
|
|
8553
8556
|
id: props.id,
|
|
8554
|
-
disabled: props.disabled
|
|
8557
|
+
disabled: props.disabled,
|
|
8555
8558
|
"aria-disabled": props.disabled,
|
|
8556
|
-
className:
|
|
8559
|
+
className: classNames,
|
|
8557
8560
|
onClick: function onClick(evt) {
|
|
8558
|
-
if (typeof props.onClick === 'function' && !props.disabled) {
|
|
8561
|
+
if (typeof props.onClick === 'function' && !props.loading && !props.disabled) {
|
|
8559
8562
|
props.onClick(evt);
|
|
8560
8563
|
}
|
|
8561
8564
|
}
|