mayak-common-library 0.0.52 → 0.0.54
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 +2 -6
- package/dist/index.mjs +2 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -303,14 +303,12 @@ var SelectPro = ({
|
|
|
303
303
|
small = false,
|
|
304
304
|
fullWidth = false,
|
|
305
305
|
freeChildWidth = false,
|
|
306
|
-
isOpen,
|
|
306
|
+
// isOpen,
|
|
307
307
|
intermediateChild
|
|
308
308
|
}) => {
|
|
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
|
-
event.persist();
|
|
314
312
|
if (open)
|
|
315
313
|
setTimeout(() => {
|
|
316
314
|
setAnchorEl(null);
|
|
@@ -387,9 +385,7 @@ var SelectPro = ({
|
|
|
387
385
|
IconButton_default,
|
|
388
386
|
{
|
|
389
387
|
className: "bg-accent-silver p-1 self-end absolute",
|
|
390
|
-
onClick:
|
|
391
|
-
return;
|
|
392
|
-
} : handleClose,
|
|
388
|
+
onClick: handleClose,
|
|
393
389
|
children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
|
|
394
390
|
}
|
|
395
391
|
) : null,
|
package/dist/index.mjs
CHANGED
|
@@ -243,14 +243,12 @@ var SelectPro = ({
|
|
|
243
243
|
small = false,
|
|
244
244
|
fullWidth = false,
|
|
245
245
|
freeChildWidth = false,
|
|
246
|
-
isOpen,
|
|
246
|
+
// isOpen,
|
|
247
247
|
intermediateChild
|
|
248
248
|
}) => {
|
|
249
249
|
const [btn, setAnchorEl] = useState2(null);
|
|
250
250
|
const [open, setOpen] = useState2(false);
|
|
251
251
|
const handleClick = (event) => {
|
|
252
|
-
if (isOpen) return;
|
|
253
|
-
event.persist();
|
|
254
252
|
if (open)
|
|
255
253
|
setTimeout(() => {
|
|
256
254
|
setAnchorEl(null);
|
|
@@ -327,9 +325,7 @@ var SelectPro = ({
|
|
|
327
325
|
IconButton_default,
|
|
328
326
|
{
|
|
329
327
|
className: "bg-accent-silver p-1 self-end absolute",
|
|
330
|
-
onClick:
|
|
331
|
-
return;
|
|
332
|
-
} : handleClose,
|
|
328
|
+
onClick: handleClose,
|
|
333
329
|
children: /* @__PURE__ */ jsx7(close_default, {})
|
|
334
330
|
}
|
|
335
331
|
) : null,
|