@oliasoft-open-source/react-ui-library 10.6.5 → 10.6.6

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1117,6 +1117,12 @@ var Option$2 = ({ actions, label, url, onClick, description, icon, selected, clo
1117
1117
  }
1118
1118
  onClick === null || onClick === void 0 || onClick(evt);
1119
1119
  };
1120
+ const handleClickCapture = (evt) => {
1121
+ if (disabled) {
1122
+ evt.preventDefault();
1123
+ evt.stopPropagation();
1124
+ }
1125
+ };
1120
1126
  const handleFileChange = (evt) => {
1121
1127
  var _evt$target;
1122
1128
  const { files } = (_evt$target = evt === null || evt === void 0 ? void 0 : evt.target) !== null && _evt$target !== void 0 ? _evt$target : {};
@@ -1141,6 +1147,7 @@ var Option$2 = ({ actions, label, url, onClick, description, icon, selected, clo
1141
1147
  isDisabled: disabled,
1142
1148
  shouldCloseOnSelect: upload ? false : closeOnOptionClick,
1143
1149
  onClick: handleClick,
1150
+ onClickCapture: handleClickCapture,
1144
1151
  "data-testid": testId,
1145
1152
  children: [
1146
1153
  icon ? /* @__PURE__ */ jsx("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "10.6.5",
3
+ "version": "10.6.6",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {