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/index.d.ts
CHANGED
|
@@ -223,7 +223,7 @@ declare const RadioButton: React$1.FC<Props$h>;
|
|
|
223
223
|
*/
|
|
224
224
|
|
|
225
225
|
type Props$g = {
|
|
226
|
-
text:
|
|
226
|
+
text: React$1.ReactNode;
|
|
227
227
|
onChanged: (checked: boolean) => void;
|
|
228
228
|
ariaLabel: string;
|
|
229
229
|
title?: string;
|
|
@@ -283,6 +283,7 @@ declare const SimpleDateChooser: React$1.FC<Props$e>;
|
|
|
283
283
|
*/
|
|
284
284
|
|
|
285
285
|
type Props$d = {
|
|
286
|
+
grayBackground?: boolean;
|
|
286
287
|
customBackgroundColor?: string;
|
|
287
288
|
children: React$1.ReactNode;
|
|
288
289
|
};
|
package/package.json
CHANGED
|
@@ -12,6 +12,8 @@ import React from 'react';
|
|
|
12
12
|
|
|
13
13
|
// Props definition
|
|
14
14
|
type Props = {
|
|
15
|
+
// If true, the background color is gray
|
|
16
|
+
grayBackground?: boolean,
|
|
15
17
|
// Custom background color
|
|
16
18
|
customBackgroundColor?: string,
|
|
17
19
|
// Children to display
|
|
@@ -51,6 +53,7 @@ const Drawer: React.FC<Props> = (props) => {
|
|
|
51
53
|
|
|
52
54
|
// Destructure all props
|
|
53
55
|
const {
|
|
56
|
+
grayBackground,
|
|
54
57
|
customBackgroundColor,
|
|
55
58
|
children,
|
|
56
59
|
} = props;
|
|
@@ -67,7 +70,11 @@ const Drawer: React.FC<Props> = (props) => {
|
|
|
67
70
|
<div
|
|
68
71
|
className="Drawer-container"
|
|
69
72
|
style={{
|
|
70
|
-
backgroundColor: (
|
|
73
|
+
backgroundColor: (
|
|
74
|
+
grayBackground
|
|
75
|
+
? '#E2E3E5'
|
|
76
|
+
: (customBackgroundColor ?? undefined)
|
|
77
|
+
),
|
|
71
78
|
}}
|
|
72
79
|
>
|
|
73
80
|
<style>{style}</style>
|