dce-reactkit 3.7.28 → 3.7.30
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 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Modal/ModalProps.d.ts +1 -0
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Modal/ModalProps.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/CheckboxButton.tsx +11 -5
- package/src/components/Modal/ModalProps.ts +2 -0
- package/src/components/Modal/index.tsx +6 -0
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -114,11 +114,17 @@ const CheckboxButton: React.FC<Props> = (props) => {
|
|
|
114
114
|
onChanged(!checked);
|
|
115
115
|
}}
|
|
116
116
|
>
|
|
117
|
-
<
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
117
|
+
<div className="d-flex">
|
|
118
|
+
<div className="align-items-center">
|
|
119
|
+
<FontAwesomeIcon
|
|
120
|
+
icon={icon}
|
|
121
|
+
className="me-1"
|
|
122
|
+
/>
|
|
123
|
+
</div>
|
|
124
|
+
<div className="flex-grow-1">
|
|
125
|
+
{text}
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
122
128
|
</button>
|
|
123
129
|
);
|
|
124
130
|
};
|
|
@@ -17,6 +17,8 @@ type ModalProps = {
|
|
|
17
17
|
size?: ModalSize,
|
|
18
18
|
// Title of the modal (if excluded, no header)
|
|
19
19
|
title?: React.ReactNode,
|
|
20
|
+
// If true, the title should be large
|
|
21
|
+
largeTitle?: boolean,
|
|
20
22
|
// The body of the modal
|
|
21
23
|
children?: React.ReactNode,
|
|
22
24
|
// Handler to call when modal is closed (if excluded, not closable)
|
|
@@ -247,6 +247,7 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
247
247
|
type = ModalType.NoButtons,
|
|
248
248
|
size = ModalSize.Large,
|
|
249
249
|
title,
|
|
250
|
+
largeTitle,
|
|
250
251
|
children,
|
|
251
252
|
onClose,
|
|
252
253
|
dontAllowBackdropExit,
|
|
@@ -480,6 +481,11 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
480
481
|
className="modal-title"
|
|
481
482
|
style={{
|
|
482
483
|
fontWeight: 'bold',
|
|
484
|
+
fontSize: (
|
|
485
|
+
largeTitle
|
|
486
|
+
? '1.6rem'
|
|
487
|
+
: undefined
|
|
488
|
+
),
|
|
483
489
|
}}
|
|
484
490
|
>
|
|
485
491
|
{title}
|