mayak-common-library 0.0.79 → 0.0.81

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
@@ -54,6 +54,7 @@ interface SelectProProps {
54
54
  freeChildWidth?: boolean;
55
55
  openUp?: boolean;
56
56
  intermediateChild?: ReactElement;
57
+ accentBgColor?: true;
57
58
  }
58
59
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
59
60
 
package/dist/index.d.ts CHANGED
@@ -54,6 +54,7 @@ interface SelectProProps {
54
54
  freeChildWidth?: boolean;
55
55
  openUp?: boolean;
56
56
  intermediateChild?: ReactElement;
57
+ accentBgColor?: true;
57
58
  }
58
59
  declare const SelectPro: FC<PropsWithChildren & SelectProProps>;
59
60
 
package/dist/index.js CHANGED
@@ -306,7 +306,8 @@ var SelectPro = ({
306
306
  fullWidth = false,
307
307
  freeChildWidth = false,
308
308
  openUp,
309
- intermediateChild
309
+ intermediateChild,
310
+ accentBgColor
310
311
  }) => {
311
312
  const [btn, setAnchorEl] = (0, import_react2.useState)(null);
312
313
  const [open, setOpen] = (0, import_react2.useState)(false);
@@ -379,14 +380,14 @@ var SelectPro = ({
379
380
  {
380
381
  sx: (theme2) => ({
381
382
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%",
382
- left: fullContainerWidth ? 0 : "initial",
383
+ // left: fullContainerWidth ? 0 : "initial",
383
384
  right: fullContainerWidth ? 0 : "initial",
384
385
  top: overButton ? 0 : "initial",
385
386
  [theme2.breakpoints.up("sm")]: {
386
387
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
387
388
  }
388
389
  }),
389
- className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
390
+ className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}${accentBgColor ? "bg-accent-silver" : "bg-accent-white"}`,
390
391
  children: [
391
392
  intermediateChild ? intermediateChild : null,
392
393
  /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material4.Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
package/dist/index.mjs CHANGED
@@ -247,7 +247,8 @@ var SelectPro = ({
247
247
  fullWidth = false,
248
248
  freeChildWidth = false,
249
249
  openUp,
250
- intermediateChild
250
+ intermediateChild,
251
+ accentBgColor
251
252
  }) => {
252
253
  const [btn, setAnchorEl] = useState2(null);
253
254
  const [open, setOpen] = useState2(false);
@@ -320,14 +321,14 @@ var SelectPro = ({
320
321
  {
321
322
  sx: (theme2) => ({
322
323
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%",
323
- left: fullContainerWidth ? 0 : "initial",
324
+ // left: fullContainerWidth ? 0 : "initial",
324
325
  right: fullContainerWidth ? 0 : "initial",
325
326
  top: overButton ? 0 : "initial",
326
327
  [theme2.breakpoints.up("sm")]: {
327
328
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "115%"
328
329
  }
329
330
  }),
330
- className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}`,
331
+ className: `absolute select ${open ? "select--open" : "select--close"} z-50 rounded-none shadow-none ${intermediateChild ? "mt-[1px]" : "m-0"}${accentBgColor ? "bg-accent-silver" : "bg-accent-white"}`,
331
332
  children: [
332
333
  intermediateChild ? intermediateChild : null,
333
334
  /* @__PURE__ */ jsxs3(Box, { className: `flex flex-col py-3 px-4 gap-2 shadow-sm`, children: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.79",
3
+ "version": "0.0.81",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",