mayak-common-library 0.0.41 → 0.0.42
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -302,11 +302,13 @@ var SelectPro = ({
|
|
|
302
302
|
overButton = false,
|
|
303
303
|
small = false,
|
|
304
304
|
fullWidth = false,
|
|
305
|
-
freeChildWidth = false
|
|
305
|
+
freeChildWidth = false,
|
|
306
|
+
isOpen
|
|
306
307
|
}) => {
|
|
307
308
|
const [btn, setAnchorEl] = (0, import_react2.useState)(null);
|
|
308
309
|
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
309
310
|
const handleClick = (event) => {
|
|
311
|
+
if (isOpen) return;
|
|
310
312
|
event.persist();
|
|
311
313
|
if (open)
|
|
312
314
|
setTimeout(() => {
|
|
@@ -316,6 +318,7 @@ var SelectPro = ({
|
|
|
316
318
|
setOpen(!open);
|
|
317
319
|
};
|
|
318
320
|
const handleClose = () => {
|
|
321
|
+
if (isOpen) return;
|
|
319
322
|
setOpen(false);
|
|
320
323
|
setTimeout(() => {
|
|
321
324
|
setAnchorEl(null);
|
|
@@ -668,8 +671,8 @@ var SearchInput = (props) => {
|
|
|
668
671
|
startAdornment: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material12.Stack, { direction: "row", alignItems: "center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material12.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(search_default, {}) }) }),
|
|
669
672
|
disableUnderline: true,
|
|
670
673
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
671
|
-
className: `w-full border rounded-none border-solid normal-case text-accent-dark hover:bg-white
|
|
672
|
-
${collapse ? "bg-white border-transparent" : "
|
|
674
|
+
className: `w-full border rounded-none border-solid normal-case text-accent-dark hover:bg-white gap-x-2 px-5 h-[38px]
|
|
675
|
+
${collapse ? "bg-white border-transparent" : "border-accent-beige"} `
|
|
673
676
|
})
|
|
674
677
|
);
|
|
675
678
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -242,11 +242,13 @@ var SelectPro = ({
|
|
|
242
242
|
overButton = false,
|
|
243
243
|
small = false,
|
|
244
244
|
fullWidth = false,
|
|
245
|
-
freeChildWidth = false
|
|
245
|
+
freeChildWidth = false,
|
|
246
|
+
isOpen
|
|
246
247
|
}) => {
|
|
247
248
|
const [btn, setAnchorEl] = useState2(null);
|
|
248
249
|
const [open, setOpen] = useState2(false);
|
|
249
250
|
const handleClick = (event) => {
|
|
251
|
+
if (isOpen) return;
|
|
250
252
|
event.persist();
|
|
251
253
|
if (open)
|
|
252
254
|
setTimeout(() => {
|
|
@@ -256,6 +258,7 @@ var SelectPro = ({
|
|
|
256
258
|
setOpen(!open);
|
|
257
259
|
};
|
|
258
260
|
const handleClose = () => {
|
|
261
|
+
if (isOpen) return;
|
|
259
262
|
setOpen(false);
|
|
260
263
|
setTimeout(() => {
|
|
261
264
|
setAnchorEl(null);
|
|
@@ -608,8 +611,8 @@ var SearchInput = (props) => {
|
|
|
608
611
|
startAdornment: /* @__PURE__ */ jsx20(Stack3, { direction: "row", alignItems: "center", children: /* @__PURE__ */ jsx20(InputAdornment2, { position: "start", children: /* @__PURE__ */ jsx20(search_default, {}) }) }),
|
|
609
612
|
disableUnderline: true,
|
|
610
613
|
placeholder: "\u041F\u043E\u0448\u0443\u043A \u043F\u043E \u0440\u0430\u0439\u043E\u043D\u0443, \u0432\u0443\u043B\u0438\u0446\u0456, \u0416\u041A",
|
|
611
|
-
className: `w-full border rounded-none border-solid normal-case text-accent-dark hover:bg-white
|
|
612
|
-
${collapse ? "bg-white border-transparent" : "
|
|
614
|
+
className: `w-full border rounded-none border-solid normal-case text-accent-dark hover:bg-white gap-x-2 px-5 h-[38px]
|
|
615
|
+
${collapse ? "bg-white border-transparent" : "border-accent-beige"} `
|
|
613
616
|
})
|
|
614
617
|
);
|
|
615
618
|
};
|