mayak-common-library 0.0.49 → 0.0.50

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 CHANGED
@@ -336,7 +336,9 @@ var SelectPro = ({
336
336
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { width: fullWidth ? "100%" : "inherit", children: [
337
337
  clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
338
338
  ref: btn,
339
- onClick: handleClick,
339
+ onClick: isOpen ? () => {
340
+ return;
341
+ } : handleClick,
340
342
  collapse: open
341
343
  }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
342
344
  import_material4.Button,
@@ -345,7 +347,9 @@ var SelectPro = ({
345
347
  "aria-controls": open ? "basic-menu" : void 0,
346
348
  "aria-haspopup": "true",
347
349
  "aria-expanded": open ? "true" : void 0,
348
- onClick: handleClick,
350
+ onClick: isOpen ? () => {
351
+ return;
352
+ } : handleClick,
349
353
  disableRipple: true,
350
354
  fullWidth: true,
351
355
  sx: {
package/dist/index.mjs CHANGED
@@ -276,7 +276,9 @@ var SelectPro = ({
276
276
  children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", children: [
277
277
  clickComponent ? cloneElement(clickComponent, {
278
278
  ref: btn,
279
- onClick: handleClick,
279
+ onClick: isOpen ? () => {
280
+ return;
281
+ } : handleClick,
280
282
  collapse: open
281
283
  }) : /* @__PURE__ */ jsxs3(
282
284
  Button2,
@@ -285,7 +287,9 @@ var SelectPro = ({
285
287
  "aria-controls": open ? "basic-menu" : void 0,
286
288
  "aria-haspopup": "true",
287
289
  "aria-expanded": open ? "true" : void 0,
288
- onClick: handleClick,
290
+ onClick: isOpen ? () => {
291
+ return;
292
+ } : handleClick,
289
293
  disableRipple: true,
290
294
  fullWidth: true,
291
295
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",