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.css
CHANGED
|
@@ -8499,13 +8499,13 @@ h5 {
|
|
|
8499
8499
|
outline: none;
|
|
8500
8500
|
position: relative;
|
|
8501
8501
|
transition: color 0.3s ease, background-color 0.3s ease; }
|
|
8502
|
-
.component-dropdown-item:not(:disabled) {
|
|
8502
|
+
.component-dropdown-item:not(:disabled):not(.loading) {
|
|
8503
8503
|
cursor: pointer; }
|
|
8504
|
-
.component-dropdown-item:not(:disabled):hover {
|
|
8504
|
+
.component-dropdown-item:not(:disabled):not(.loading):hover {
|
|
8505
8505
|
background-color: #f3f3f3; }
|
|
8506
|
-
.component-dropdown-item:disabled {
|
|
8506
|
+
.component-dropdown-item:disabled, .component-dropdown-item.loading {
|
|
8507
8507
|
color: #cdd3cd; }
|
|
8508
|
-
.component-dropdown-item:disabled .component-dropdown-item-loader {
|
|
8508
|
+
.component-dropdown-item:disabled .component-dropdown-item-loader, .component-dropdown-item.loading .component-dropdown-item-loader {
|
|
8509
8509
|
color: #828a82; }
|
|
8510
8510
|
.component-dropdown-item .component-dropdown-item-content {
|
|
8511
8511
|
width: 100%;
|
|
@@ -8548,13 +8548,13 @@ h5 {
|
|
|
8548
8548
|
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-enter {
|
|
8549
8549
|
width: 0;
|
|
8550
8550
|
opacity: 0; }
|
|
8551
|
-
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-enter-active {
|
|
8551
|
+
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-enter-active, .component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-enter-done {
|
|
8552
8552
|
opacity: 1;
|
|
8553
8553
|
width: 30px; }
|
|
8554
8554
|
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-exit {
|
|
8555
8555
|
opacity: 1;
|
|
8556
8556
|
width: 30px; }
|
|
8557
|
-
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-exit-active {
|
|
8557
|
+
.component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-exit-active, .component-dropdown-item .component-dropdown-item-loader.component-dropdown-item-fade-exit-done {
|
|
8558
8558
|
opacity: 0;
|
|
8559
8559
|
width: 0px; }
|
|
8560
8560
|
|
|
@@ -12677,6 +12677,7 @@ h5 {
|
|
|
12677
12677
|
.component-menu.component-menu-hamburger-menu {
|
|
12678
12678
|
transition: width 0.3s ease; }
|
|
12679
12679
|
.component-menu.component-menu-hamburger-menu .component-menu-close-button {
|
|
12680
|
+
z-index: +1;
|
|
12680
12681
|
position: absolute;
|
|
12681
12682
|
right: 12px;
|
|
12682
12683
|
top: 14px; }
|
package/dist/index.js
CHANGED
|
@@ -8531,13 +8531,16 @@ var Doughnut$1 = React.memo(Doughnut);
|
|
|
8531
8531
|
var rootClassName$27 = 'component-dropdown-item';
|
|
8532
8532
|
|
|
8533
8533
|
function DropdownItem(props) {
|
|
8534
|
+
var classNames = React.useMemo(function () {
|
|
8535
|
+
return getMergedClassNames([rootClassName$27, props.alignRight ? 'right' : '', props.loading ? 'loading' : '']);
|
|
8536
|
+
}, [props.alignRight, props.loading]);
|
|
8534
8537
|
return React__default.createElement("button", {
|
|
8535
8538
|
id: props.id,
|
|
8536
|
-
disabled: props.disabled
|
|
8539
|
+
disabled: props.disabled,
|
|
8537
8540
|
"aria-disabled": props.disabled,
|
|
8538
|
-
className:
|
|
8541
|
+
className: classNames,
|
|
8539
8542
|
onClick: function onClick(evt) {
|
|
8540
|
-
if (typeof props.onClick === 'function' && !props.disabled) {
|
|
8543
|
+
if (typeof props.onClick === 'function' && !props.loading && !props.disabled) {
|
|
8541
8544
|
props.onClick(evt);
|
|
8542
8545
|
}
|
|
8543
8546
|
}
|