dce-reactkit 3.7.25 → 3.7.28
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/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/CheckboxButton.d.ts +1 -1
- package/dist/cjs/types/components/Drawer.d.ts +1 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/CheckboxButton.d.ts +1 -1
- package/dist/esm/types/components/Drawer.d.ts +1 -0
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/CheckboxButton.tsx +1 -1
- package/src/components/Drawer.tsx +8 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1855,7 +1855,7 @@ const Drawer = (props) => {
|
|
|
1855
1855
|
/*------------------------------------------------------------------------*/
|
|
1856
1856
|
/* -------------- Props ------------- */
|
|
1857
1857
|
// Destructure all props
|
|
1858
|
-
const { customBackgroundColor, children, } = props;
|
|
1858
|
+
const { grayBackground, customBackgroundColor, children, } = props;
|
|
1859
1859
|
/*------------------------------------------------------------------------*/
|
|
1860
1860
|
/* ------------------------------- Render ------------------------------- */
|
|
1861
1861
|
/*------------------------------------------------------------------------*/
|
|
@@ -1863,7 +1863,9 @@ const Drawer = (props) => {
|
|
|
1863
1863
|
/* --------------- Main UI -------------- */
|
|
1864
1864
|
/*----------------------------------------*/
|
|
1865
1865
|
return (React__default["default"].createElement("div", { className: "Drawer-container", style: {
|
|
1866
|
-
backgroundColor: (
|
|
1866
|
+
backgroundColor: (grayBackground
|
|
1867
|
+
? '#E2E3E5'
|
|
1868
|
+
: (customBackgroundColor !== null && customBackgroundColor !== void 0 ? customBackgroundColor : undefined)),
|
|
1867
1869
|
} },
|
|
1868
1870
|
React__default["default"].createElement("style", null, style$6),
|
|
1869
1871
|
children));
|