@uxf/core-react 11.119.0 → 11.120.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.
@@ -14,10 +14,12 @@ function useAnchorProps(props, options = {}) {
14
14
  const isSubmitType = type === "submit";
15
15
  const isButton = isSubmitType || (0, is_not_nil_1.isNotNil)(onClick);
16
16
  const tabIndexInteractive = isBusyOrDisabled ? -1 : tabIndex;
17
+ const isClickable = !isBusyOrDisabled && isButton;
18
+ const isHyperlink = !isBusyOrDisabled && Boolean(href);
17
19
  const simulatedButton = (0, _use_simulated_button_1._useSimulatedButton)({
18
20
  analyticsCallback,
19
- isClickable: !isBusyOrDisabled || isButton,
20
- isHyperlink: !isBusyOrDisabled || Boolean(href),
21
+ isClickable,
22
+ isHyperlink,
21
23
  onClick,
22
24
  onKeyDown,
23
25
  onKeyUp,
@@ -13,9 +13,10 @@ function useClickableProps(props, options = {}) {
13
13
  const isBusyOrDisabled = isBusy || isDisabledOrAriaDisabled;
14
14
  const isSubmitType = type === "submit";
15
15
  const isButton = isSubmitType || (0, is_not_nil_1.isNotNil)(onClick);
16
+ const isClickable = !isBusyOrDisabled && isButton;
16
17
  const simulatedButton = (0, _use_simulated_button_1._useSimulatedButton)({
17
18
  analyticsCallback,
18
- isClickable: !isBusyOrDisabled || isButton,
19
+ isClickable,
19
20
  isHyperlink: false,
20
21
  onClick,
21
22
  onKeyDown,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/core-react",
3
- "version": "11.119.0",
3
+ "version": "11.120.0",
4
4
  "description": "UXF Core",
5
5
  "author": "UX Fans s.r.o",
6
6
  "license": "MIT",