dce-reactkit 3.7.25 → 3.7.27

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.
@@ -4,6 +4,7 @@
4
4
  */
5
5
  import React from 'react';
6
6
  type Props = {
7
+ grayBackground?: boolean;
7
8
  customBackgroundColor?: string;
8
9
  children: React.ReactNode;
9
10
  };
package/dist/esm/index.js CHANGED
@@ -1828,7 +1828,7 @@ const Drawer = (props) => {
1828
1828
  /*------------------------------------------------------------------------*/
1829
1829
  /* -------------- Props ------------- */
1830
1830
  // Destructure all props
1831
- const { customBackgroundColor, children, } = props;
1831
+ const { grayBackground, customBackgroundColor, children, } = props;
1832
1832
  /*------------------------------------------------------------------------*/
1833
1833
  /* ------------------------------- Render ------------------------------- */
1834
1834
  /*------------------------------------------------------------------------*/
@@ -1836,7 +1836,9 @@ const Drawer = (props) => {
1836
1836
  /* --------------- Main UI -------------- */
1837
1837
  /*----------------------------------------*/
1838
1838
  return (React__default.createElement("div", { className: "Drawer-container", style: {
1839
- backgroundColor: (customBackgroundColor !== null && customBackgroundColor !== void 0 ? customBackgroundColor : undefined),
1839
+ backgroundColor: (grayBackground
1840
+ ? '#E2E3E5'
1841
+ : (customBackgroundColor !== null && customBackgroundColor !== void 0 ? customBackgroundColor : undefined)),
1840
1842
  } },
1841
1843
  React__default.createElement("style", null, style$6),
1842
1844
  children));