@inntechcorp/it-design 2.0.91 → 2.0.93
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/index.cjs.js +1 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.esm.js +1 -1
- package/dist/modal/container/ModalContainer.d.ts +1 -1
- package/dist/modal/context/ModalContext.d.ts +14 -0
- package/dist/{output-DCvuWNga.css → output-BwpNST6S.css} +41 -41
- package/dist/{output-DfOH-aLb.css → output-Co64jyKL.css} +55 -55
- package/dist/types/ModalProps.d.ts +10 -1
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -495,6 +495,13 @@ type ModalContextType = {
|
|
|
495
495
|
* @returns
|
|
496
496
|
*/
|
|
497
497
|
showModal: (data: ModalProps$1) => void;
|
|
498
|
+
/**
|
|
499
|
+
* Dismisses the currently open modal with the ID of the modal to be hidden.
|
|
500
|
+
*
|
|
501
|
+
* @param id ID of the modal to be hide.
|
|
502
|
+
* @returns
|
|
503
|
+
*/
|
|
504
|
+
hideModal: (id: string) => void;
|
|
498
505
|
/**
|
|
499
506
|
* Dismisses the currently open modal with the ID of the modal to be closed.
|
|
500
507
|
*
|
|
@@ -979,6 +986,10 @@ type ModalProps = {
|
|
|
979
986
|
* Prevents modal from closing when ESC key is pressed.
|
|
980
987
|
*/
|
|
981
988
|
preventESC?: boolean;
|
|
989
|
+
/**
|
|
990
|
+
* Remove other open modals.
|
|
991
|
+
*/
|
|
992
|
+
removeOthers?: boolean;
|
|
982
993
|
/**
|
|
983
994
|
* Show/hide OK button.
|
|
984
995
|
*/
|
|
@@ -1089,12 +1100,17 @@ type ModalContentProps = {
|
|
|
1089
1100
|
* @param data Values for the new modal to be opened.
|
|
1090
1101
|
* @returns
|
|
1091
1102
|
*/
|
|
1092
|
-
showAnotherModal?: (data
|
|
1103
|
+
showAnotherModal?: (data: ModalProps) => void;
|
|
1093
1104
|
/**
|
|
1094
1105
|
* Closes itself from within the modal content.
|
|
1095
1106
|
* @returns
|
|
1096
1107
|
*/
|
|
1097
1108
|
hideCurrentModal?: () => void;
|
|
1109
|
+
/**
|
|
1110
|
+
* Destroy itself from within the modal content.
|
|
1111
|
+
* @returns
|
|
1112
|
+
*/
|
|
1113
|
+
removeCurrentModal?: () => void;
|
|
1098
1114
|
/**
|
|
1099
1115
|
* Changes the buttons disabling state.
|
|
1100
1116
|
* @param value `true` for regular, `false` for disabled.
|