mayak-common-library 0.0.83 → 0.0.84

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
@@ -57,6 +57,7 @@ interface SelectProProps {
57
57
  intermediateChild?: ReactElement;
58
58
  accentBgColor?: true;
59
59
  paperSx?: SystemStyleObject;
60
+ childContainerSx?: SystemStyleObject;
60
61
  }
61
62
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
62
63
 
package/dist/index.d.ts CHANGED
@@ -57,6 +57,7 @@ interface SelectProProps {
57
57
  intermediateChild?: ReactElement;
58
58
  accentBgColor?: true;
59
59
  paperSx?: SystemStyleObject;
60
+ childContainerSx?: SystemStyleObject;
60
61
  }
61
62
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
62
63
 
package/dist/index.js CHANGED
@@ -308,7 +308,8 @@ var SelectPro = ({
308
308
  openUp,
309
309
  intermediateChild,
310
310
  accentBgColor,
311
- paperSx
311
+ paperSx,
312
+ childContainerSx
312
313
  }) => {
313
314
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
314
315
  const [open, setOpen] = (0, import_react2.useState)(false);
@@ -392,18 +393,25 @@ var SelectPro = ({
392
393
  className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
393
394
  children: [
394
395
  intermediateChild ? intermediateChild : null,
395
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
396
- overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
397
- IconButton_default,
398
- {
399
- className: "bg-accent-silver p-1 self-end absolute",
400
- onClick: handleClose,
401
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
402
- }
403
- ) : null,
404
- childTitle ? childTitle : null,
405
- childrenWithHandleChange
406
- ] })
396
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
397
+ import_material4.Box,
398
+ {
399
+ className: `flex flex-col py-3 px-4 gap-2 shadow-sm`,
400
+ sx: childContainerSx,
401
+ children: [
402
+ overButton ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
403
+ IconButton_default,
404
+ {
405
+ className: "bg-accent-silver p-1 self-end absolute",
406
+ onClick: handleClose,
407
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(close_default, {})
408
+ }
409
+ ) : null,
410
+ childTitle ? childTitle : null,
411
+ childrenWithHandleChange
412
+ ]
413
+ }
414
+ )
407
415
  ]
408
416
  }
409
417
  ) : null
package/dist/index.mjs CHANGED
@@ -249,7 +249,8 @@ var SelectPro = ({
249
249
  openUp,
250
250
  intermediateChild,
251
251
  accentBgColor,
252
- paperSx
252
+ paperSx,
253
+ childContainerSx
253
254
  }) => {
254
255
  const [btn, setAnchorEl] = useState2(null);
255
256
  const [open, setOpen] = useState2(false);
@@ -333,18 +334,25 @@ var SelectPro = ({
333
334
  className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
334
335
  children: [
335
336
  intermediateChild ? intermediateChild : null,
336
- /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
337
- overButton ? /* @__PURE__ */ jsx7(
338
- IconButton_default,
339
- {
340
- className: "bg-accent-silver p-1 self-end absolute",
341
- onClick: handleClose,
342
- children: /* @__PURE__ */ jsx7(close_default, {})
343
- }
344
- ) : null,
345
- childTitle ? childTitle : null,
346
- childrenWithHandleChange
347
- ] })
337
+ /* @__PURE__ */ jsxs3(
338
+ Box,
339
+ {
340
+ className: `flex flex-col py-3 px-4 gap-2 shadow-sm`,
341
+ sx: childContainerSx,
342
+ children: [
343
+ overButton ? /* @__PURE__ */ jsx7(
344
+ IconButton_default,
345
+ {
346
+ className: "bg-accent-silver p-1 self-end absolute",
347
+ onClick: handleClose,
348
+ children: /* @__PURE__ */ jsx7(close_default, {})
349
+ }
350
+ ) : null,
351
+ childTitle ? childTitle : null,
352
+ childrenWithHandleChange
353
+ ]
354
+ }
355
+ )
348
356
  ]
349
357
  }
350
358
  ) : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",