@cambly/syntax-core 9.4.0 → 9.6.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/dist/index.css +9 -8
- package/dist/index.css.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1511,7 +1511,7 @@ var import_classnames13 = __toESM(require_classnames());
|
|
|
1511
1511
|
import { forwardRef as forwardRef6, useReducer } from "react";
|
|
1512
1512
|
|
|
1513
1513
|
// css-module:./TapArea.module.css#css-module
|
|
1514
|
-
var TapArea_module_default = { "tapArea": "
|
|
1514
|
+
var TapArea_module_default = { "tapArea": "_tapArea_g6gkz_1", "fullWidth": "_fullWidth_g6gkz_5", "disabled": "_disabled_g6gkz_9", "enabled": "_enabled_g6gkz_16", "overlay": "_overlay_g6gkz_29", "hoveredOrFocussed": "_hoveredOrFocussed_g6gkz_39" };
|
|
1515
1515
|
|
|
1516
1516
|
// src/TapArea/TapArea.tsx
|
|
1517
1517
|
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
@@ -1546,7 +1546,13 @@ var TapArea = forwardRef6(
|
|
|
1546
1546
|
hovered: false,
|
|
1547
1547
|
focussed: false
|
|
1548
1548
|
});
|
|
1549
|
-
const handleClick = (event) =>
|
|
1549
|
+
const handleClick = (event) => {
|
|
1550
|
+
if (disabled) {
|
|
1551
|
+
} else {
|
|
1552
|
+
event.currentTarget.blur();
|
|
1553
|
+
onClick(event);
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1550
1556
|
const handleKeyDown = (event) => {
|
|
1551
1557
|
if (disabled)
|
|
1552
1558
|
return;
|