mayak-common-library 0.0.80 → 0.0.82

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);
@@ -378,6 +379,7 @@ var SelectPro = ({
378
379
  import_material4.Paper,
379
380
  {
380
381
  sx: (theme2) => ({
382
+ backgroundColor: accentBgColor ? "#F5F5F5" : "#fff",
381
383
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%",
382
384
  // left: fullContainerWidth ? 0 : "initial",
383
385
  right: fullContainerWidth ? 0 : "initial",
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);
@@ -319,6 +320,7 @@ var SelectPro = ({
319
320
  Paper,
320
321
  {
321
322
  sx: (theme2) => ({
323
+ backgroundColor: accentBgColor ? "#F5F5F5" : "#fff",
322
324
  width: freeChildWidth ? "fit-content" : !fullContainerWidth && btn ? btn.offsetWidth : "100%",
323
325
  // left: fullContainerWidth ? 0 : "initial",
324
326
  right: fullContainerWidth ? 0 : "initial",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mayak-common-library",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",