mayak-common-library 0.0.97 → 0.0.99

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 CHANGED
@@ -55,13 +55,13 @@ interface SelectProProps {
55
55
  freeChildWidth?: boolean;
56
56
  disableCloseButton?: boolean;
57
57
  openUp?: boolean;
58
- collapse?: boolean;
59
58
  intermediateChild?: ReactElement;
60
59
  actionsComponent?: ReactElement;
61
60
  accentBgColor?: true;
62
61
  paperSx?: SystemStyleObject;
63
62
  childContainerSx?: SystemStyleObject;
64
63
  reverseAnimation?: boolean;
64
+ containerSx?: SystemStyleObject;
65
65
  }
66
66
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
67
67
 
package/dist/index.d.ts CHANGED
@@ -55,13 +55,13 @@ interface SelectProProps {
55
55
  freeChildWidth?: boolean;
56
56
  disableCloseButton?: boolean;
57
57
  openUp?: boolean;
58
- collapse?: boolean;
59
58
  intermediateChild?: ReactElement;
60
59
  actionsComponent?: ReactElement;
61
60
  accentBgColor?: true;
62
61
  paperSx?: SystemStyleObject;
63
62
  childContainerSx?: SystemStyleObject;
64
63
  reverseAnimation?: boolean;
64
+ containerSx?: SystemStyleObject;
65
65
  }
66
66
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
67
67
 
package/dist/index.js CHANGED
@@ -335,7 +335,7 @@ var SelectPro = ({
335
335
  childContainerSx,
336
336
  reverseAnimation = false,
337
337
  actionsComponent,
338
- collapse
338
+ containerSx
339
339
  }) => {
340
340
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
341
341
  const [open, setOpen] = (0, import_react2.useState)(false);
@@ -351,10 +351,6 @@ var SelectPro = ({
351
351
  (0, import_react2.useEffect)(() => {
352
352
  if (openUp) setOpen(true);
353
353
  }, [openUp]);
354
- (0, import_react2.useEffect)(() => {
355
- console.log(collapse, open);
356
- if (collapse) setOpen(false);
357
- }, [collapse]);
358
354
  const handleClose = () => {
359
355
  setOpen(false);
360
356
  setTimeout(() => {
@@ -367,7 +363,7 @@ var SelectPro = ({
367
363
  const actionsComponentWithHandleChange = (0, import_react2.isValidElement)(actionsComponent) ? (0, import_react2.cloneElement)(actionsComponent, {
368
364
  collapseParent: handleClose
369
365
  }) : actionsComponent;
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: [
366
+ 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", sx: __spreadValues({}, containerSx), children: [
371
367
  clickComponent ? (0, import_react2.cloneElement)(clickComponent, {
372
368
  ref: btn,
373
369
  onClick: handleClick,
package/dist/index.mjs CHANGED
@@ -276,7 +276,7 @@ var SelectPro = ({
276
276
  childContainerSx,
277
277
  reverseAnimation = false,
278
278
  actionsComponent,
279
- collapse
279
+ containerSx
280
280
  }) => {
281
281
  const [btn, setAnchorEl] = useState2(null);
282
282
  const [open, setOpen] = useState2(false);
@@ -292,10 +292,6 @@ var SelectPro = ({
292
292
  useEffect2(() => {
293
293
  if (openUp) setOpen(true);
294
294
  }, [openUp]);
295
- useEffect2(() => {
296
- console.log(collapse, open);
297
- if (collapse) setOpen(false);
298
- }, [collapse]);
299
295
  const handleClose = () => {
300
296
  setOpen(false);
301
297
  setTimeout(() => {
@@ -308,7 +304,7 @@ var SelectPro = ({
308
304
  const actionsComponentWithHandleChange = isValidElement(actionsComponent) ? cloneElement(actionsComponent, {
309
305
  collapseParent: handleClose
310
306
  }) : actionsComponent;
311
- return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", children: [
307
+ return /* @__PURE__ */ jsx7(ClickAwayListener, { onClickAway: handleClose, children: /* @__PURE__ */ jsxs3(Box, { width: fullWidth ? "100%" : "inherit", sx: __spreadValues({}, containerSx), children: [
312
308
  clickComponent ? cloneElement(clickComponent, {
313
309
  ref: btn,
314
310
  onClick: handleClick,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",