mayak-common-library 0.0.50 → 0.0.51

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