dce-reactkit 3.7.10-beta.0 → 3.7.10-beta.2
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 +139 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/index.d.ts +1 -1
- package/dist/esm/index.js +139 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/index.d.ts +1 -2
- package/package.json +1 -1
- package/src/components/AppWrapper.tsx +6 -6
- package/src/components/Modal/ModalForWrapper.tsx +4 -4
- package/src/index.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import AppWrapper, { alert, confirm, showFatalError, addFatalErrorHandler, leaveToURL } from './components/AppWrapper';
|
|
2
2
|
import LoadingSpinner from './components/LoadingSpinner';
|
|
3
3
|
import ErrorBox from './components/ErrorBox';
|
|
4
|
-
import Modal from './components/Modal
|
|
4
|
+
import Modal from './components/Modal';
|
|
5
5
|
import TabBox from './components/TabBox';
|
|
6
6
|
import RadioButton from './components/RadioButton';
|
|
7
7
|
import CheckboxButton from './components/CheckboxButton';
|
package/dist/index.d.ts
CHANGED
|
@@ -178,8 +178,7 @@ type Props$j = {
|
|
|
178
178
|
declare const ErrorBox: React$1.FC<Props$j>;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
*
|
|
182
|
-
* wrapper, not the one that the programmer renders)
|
|
181
|
+
* General use modal component
|
|
183
182
|
* @author Gabe Abrams
|
|
184
183
|
*/
|
|
185
184
|
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ import ModalProps from './Modal/ModalProps';
|
|
|
24
24
|
// Import shared components
|
|
25
25
|
// TODO: fix dependency cycle
|
|
26
26
|
// eslint-disable-next-line import/no-cycle
|
|
27
|
-
import
|
|
27
|
+
import ModalForWrapper from './Modal/ModalForWrapper';
|
|
28
28
|
|
|
29
29
|
// Import custom errors
|
|
30
30
|
import ErrorWithCode from '../errors/ErrorWithCode';
|
|
@@ -580,7 +580,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
|
|
|
580
580
|
|
|
581
581
|
if (alertInfo) {
|
|
582
582
|
modal = (
|
|
583
|
-
<
|
|
583
|
+
<ModalForWrapper
|
|
584
584
|
key={`alert-${alertInfo.title}-${alertInfo.text}`}
|
|
585
585
|
title={alertInfo.title}
|
|
586
586
|
type={ModalType.Okay}
|
|
@@ -594,7 +594,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
|
|
|
594
594
|
onTopOfOtherModals
|
|
595
595
|
>
|
|
596
596
|
{alertInfo.text}
|
|
597
|
-
</
|
|
597
|
+
</ModalForWrapper>
|
|
598
598
|
);
|
|
599
599
|
}
|
|
600
600
|
|
|
@@ -602,7 +602,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
|
|
|
602
602
|
|
|
603
603
|
if (confirmInfo) {
|
|
604
604
|
modal = (
|
|
605
|
-
<
|
|
605
|
+
<ModalForWrapper
|
|
606
606
|
key={`confirm-${confirmInfo.title}-${confirmInfo.text}`}
|
|
607
607
|
title={confirmInfo.title}
|
|
608
608
|
type={ModalType.OkayCancel}
|
|
@@ -619,7 +619,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
|
|
|
619
619
|
dontAllowBackdropExit
|
|
620
620
|
>
|
|
621
621
|
{confirmInfo.text}
|
|
622
|
-
</
|
|
622
|
+
</ModalForWrapper>
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
625
|
|
|
@@ -631,7 +631,7 @@ const AppWrapper: React.FC<Props> = (props: Props): React.ReactElement => {
|
|
|
631
631
|
// Add custom modals
|
|
632
632
|
modalsFromState.forEach((modalTuple) => {
|
|
633
633
|
customModals.push(
|
|
634
|
-
<
|
|
634
|
+
<ModalForWrapper
|
|
635
635
|
key={String(modalTuple.props.key ?? modalTuple.id)}
|
|
636
636
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
637
637
|
{...modalTuple.props}
|
|
@@ -361,8 +361,8 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
361
361
|
style={{
|
|
362
362
|
zIndex: (
|
|
363
363
|
onTopOfOtherModals
|
|
364
|
-
?
|
|
365
|
-
:
|
|
364
|
+
? 2000000001
|
|
365
|
+
: 2000000000
|
|
366
366
|
),
|
|
367
367
|
display: 'block',
|
|
368
368
|
margin: 'auto',
|
|
@@ -374,7 +374,7 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
374
374
|
<div
|
|
375
375
|
className={`ModalForWrapper-backdrop ${backdropAnimationClass}`}
|
|
376
376
|
style={{
|
|
377
|
-
zIndex:
|
|
377
|
+
zIndex: 2000000003,
|
|
378
378
|
}}
|
|
379
379
|
onClick={async () => {
|
|
380
380
|
// Skip if exit via backdrop not allowed
|
|
@@ -396,7 +396,7 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
396
396
|
<div
|
|
397
397
|
className={`modal-dialog modal-${size} ${animationClass} modal-dialog-scrollable modal-dialog-centered`}
|
|
398
398
|
style={{
|
|
399
|
-
zIndex:
|
|
399
|
+
zIndex: 2000000002,
|
|
400
400
|
}}
|
|
401
401
|
>
|
|
402
402
|
<div
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ import AppWrapper, {
|
|
|
8
8
|
} from './components/AppWrapper';
|
|
9
9
|
import LoadingSpinner from './components/LoadingSpinner';
|
|
10
10
|
import ErrorBox from './components/ErrorBox';
|
|
11
|
-
import Modal from './components/Modal
|
|
11
|
+
import Modal from './components/Modal';
|
|
12
12
|
import TabBox from './components/TabBox';
|
|
13
13
|
import RadioButton from './components/RadioButton';
|
|
14
14
|
import CheckboxButton from './components/CheckboxButton';
|