mayak-common-library 0.0.91 → 0.0.92
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 +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -338,7 +338,8 @@ var SelectPro = ({
|
|
|
338
338
|
accentBgColor,
|
|
339
339
|
paperSx,
|
|
340
340
|
childContainerSx,
|
|
341
|
-
reverseAnimation = false
|
|
341
|
+
reverseAnimation = false,
|
|
342
|
+
actionsComponent
|
|
342
343
|
}) => {
|
|
343
344
|
const [btn, setAnchorEl] = (0, import_react2.useState)(null);
|
|
344
345
|
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
@@ -363,6 +364,9 @@ var SelectPro = ({
|
|
|
363
364
|
const childrenWithHandleChange = (0, import_react2.isValidElement)(children) ? (0, import_react2.cloneElement)(children, {
|
|
364
365
|
collapseParent: handleClose
|
|
365
366
|
}) : children;
|
|
367
|
+
const actionsComponentWithHandleChange = (0, import_react2.isValidElement)(actionsComponent) ? (0, import_react2.cloneElement)(actionsComponent, {
|
|
368
|
+
collapseParent: handleClose
|
|
369
|
+
}) : actionsComponent;
|
|
366
370
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material4.ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { width: fullWidth ? "100%" : "inherit", children: [
|
|
367
371
|
clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
|
|
368
372
|
ref: btn,
|
|
@@ -437,7 +441,8 @@ var SelectPro = ({
|
|
|
437
441
|
}
|
|
438
442
|
) : null,
|
|
439
443
|
childTitle ? childTitle : null,
|
|
440
|
-
childrenWithHandleChange
|
|
444
|
+
childrenWithHandleChange,
|
|
445
|
+
actionsComponentWithHandleChange
|
|
441
446
|
]
|
|
442
447
|
}
|
|
443
448
|
)
|
|
@@ -1297,10 +1302,7 @@ var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
|
1297
1302
|
var StyledToggleButtonGroup = (0, import_material28.styled)(
|
|
1298
1303
|
import_material28.ToggleButtonGroup
|
|
1299
1304
|
)(() => ({
|
|
1300
|
-
// marginBottom: theme.spacing(-1),
|
|
1301
1305
|
[`& .${import_material28.toggleButtonGroupClasses.grouped}`]: {
|
|
1302
|
-
// marginRight: flexDirection === "col" ? "unset" : theme.spacing(1),
|
|
1303
|
-
// marginBottom: theme.spacing(1), //flexDirection === "col" ? theme.spacing(1) : "unset",
|
|
1304
1306
|
width: "fit-content"
|
|
1305
1307
|
},
|
|
1306
1308
|
[`& .${import_material28.toggleButtonGroupClasses.lastButton}`]: {
|
package/dist/index.mjs
CHANGED
|
@@ -279,7 +279,8 @@ var SelectPro = ({
|
|
|
279
279
|
accentBgColor,
|
|
280
280
|
paperSx,
|
|
281
281
|
childContainerSx,
|
|
282
|
-
reverseAnimation = false
|
|
282
|
+
reverseAnimation = false,
|
|
283
|
+
actionsComponent
|
|
283
284
|
}) => {
|
|
284
285
|
const [btn, setAnchorEl] = useState2(null);
|
|
285
286
|
const [open, setOpen] = useState2(false);
|
|
@@ -304,6 +305,9 @@ var SelectPro = ({
|
|
|
304
305
|
const childrenWithHandleChange = isValidElement(children) ? cloneElement(children, {
|
|
305
306
|
collapseParent: handleClose
|
|
306
307
|
}) : children;
|
|
308
|
+
const actionsComponentWithHandleChange = isValidElement(actionsComponent) ? cloneElement(actionsComponent, {
|
|
309
|
+
collapseParent: handleClose
|
|
310
|
+
}) : actionsComponent;
|
|
307
311
|
return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", children: [
|
|
308
312
|
clickComponent ? cloneElement(clickComponent, {
|
|
309
313
|
ref: btn,
|
|
@@ -378,7 +382,8 @@ var SelectPro = ({
|
|
|
378
382
|
}
|
|
379
383
|
) : null,
|
|
380
384
|
childTitle ? childTitle : null,
|
|
381
|
-
childrenWithHandleChange
|
|
385
|
+
childrenWithHandleChange,
|
|
386
|
+
actionsComponentWithHandleChange
|
|
382
387
|
]
|
|
383
388
|
}
|
|
384
389
|
)
|
|
@@ -1252,10 +1257,7 @@ import { jsx as jsx44 } from "react/jsx-runtime";
|
|
|
1252
1257
|
var StyledToggleButtonGroup = styled9(
|
|
1253
1258
|
MUIToggleButtonGroup
|
|
1254
1259
|
)(() => ({
|
|
1255
|
-
// marginBottom: theme.spacing(-1),
|
|
1256
1260
|
[`& .${toggleButtonGroupClasses.grouped}`]: {
|
|
1257
|
-
// marginRight: flexDirection === "col" ? "unset" : theme.spacing(1),
|
|
1258
|
-
// marginBottom: theme.spacing(1), //flexDirection === "col" ? theme.spacing(1) : "unset",
|
|
1259
1261
|
width: "fit-content"
|
|
1260
1262
|
},
|
|
1261
1263
|
[`& .${toggleButtonGroupClasses.lastButton}`]: {
|