@oliasoft-open-source/react-ui-library 4.16.0 → 4.16.1-beta-1
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.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4077,7 +4077,7 @@ const Button$1 = ({
|
|
|
4077
4077
|
active: active2 = false,
|
|
4078
4078
|
basic: basic2 = false,
|
|
4079
4079
|
colored: colored2 = false,
|
|
4080
|
-
disabled: disabled2
|
|
4080
|
+
disabled: disabled2,
|
|
4081
4081
|
groupOrder = null,
|
|
4082
4082
|
icon: icon2 = null,
|
|
4083
4083
|
label: label2 = "",
|
|
@@ -4133,6 +4133,7 @@ const Button$1 = ({
|
|
|
4133
4133
|
}
|
|
4134
4134
|
return "";
|
|
4135
4135
|
})();
|
|
4136
|
+
const isDisabled = disabled2 || disabledContext && disabled2 !== false;
|
|
4136
4137
|
return /* @__PURE__ */ jsx(ButtonTooltipWrapper, { tooltip: tooltip2, children: /* @__PURE__ */ jsxs(
|
|
4137
4138
|
Component2,
|
|
4138
4139
|
{
|
|
@@ -4142,7 +4143,7 @@ const Button$1 = ({
|
|
|
4142
4143
|
active2 ? buttonStyles.active : "",
|
|
4143
4144
|
basic2 ? buttonStyles.basic : "",
|
|
4144
4145
|
color2,
|
|
4145
|
-
|
|
4146
|
+
isDisabled ? buttonStyles.disabled : "",
|
|
4146
4147
|
(icon2 || loading) && !label2 ? buttonStyles.iconOnly : "",
|
|
4147
4148
|
inverted2 ? buttonStyles.inverted : "",
|
|
4148
4149
|
order2,
|
|
@@ -4151,7 +4152,7 @@ const Button$1 = ({
|
|
|
4151
4152
|
small2 ? buttonStyles.small : "",
|
|
4152
4153
|
styles2
|
|
4153
4154
|
),
|
|
4154
|
-
disabled:
|
|
4155
|
+
disabled: isDisabled,
|
|
4155
4156
|
name: name2 ?? "",
|
|
4156
4157
|
onClick,
|
|
4157
4158
|
...title2 ? { title: title2 } : {},
|
|
@@ -6688,7 +6689,8 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
6688
6689
|
small: true,
|
|
6689
6690
|
colored: "muted",
|
|
6690
6691
|
onClick: onClose,
|
|
6691
|
-
testId: testId && `${testId}-dismiss
|
|
6692
|
+
testId: testId && `${testId}-dismiss`,
|
|
6693
|
+
disabled: false
|
|
6692
6694
|
}
|
|
6693
6695
|
) }) : null
|
|
6694
6696
|
] }),
|