pne-ui 1.0.19 → 1.0.20
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from "react";
|
|
2
|
-
|
|
2
|
+
declare const useModal: () => {
|
|
3
3
|
open: boolean;
|
|
4
4
|
setOpen: Dispatch<SetStateAction<boolean>>;
|
|
5
5
|
handleOpen: () => void;
|
|
6
6
|
handleClose: () => void;
|
|
7
7
|
};
|
|
8
|
+
export default useModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
const useModal = () => {
|
|
3
3
|
const [open, setOpen] = React.useState(false);
|
|
4
4
|
const handleOpen = () => setOpen(true);
|
|
5
5
|
const handleClose = () => setOpen(false);
|
|
@@ -10,4 +10,5 @@ export const useModal = () => {
|
|
|
10
10
|
handleClose,
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
+
export default useModal;
|
|
13
14
|
//# sourceMappingURL=useModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useModal.js","sourceRoot":"","sources":["../../src/PneModal/useModal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,MAAM,
|
|
1
|
+
{"version":3,"file":"useModal.js","sourceRoot":"","sources":["../../src/PneModal/useModal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAEtD,MAAM,QAAQ,GAAG,GAKf,EAAE;IACA,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAC7C,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IACtC,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;IAExC,OAAO;QACH,IAAI;QACJ,OAAO;QACP,UAAU;QACV,WAAW;KACd,CAAA;AACL,CAAC,CAAA;AACD,eAAe,QAAQ,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PneButton from './PneButton/PneButton';
|
|
2
2
|
import PneTextField from './PneTextField/PneTextField';
|
|
3
3
|
import PneModal from './PneModal/PneModal';
|
|
4
|
+
import useModal from './PneModal/useModal';
|
|
4
5
|
import PneAutocomplete from './component/dropdown/PneAutocomplete';
|
|
5
6
|
import PneAsyncAutocomplete from './component/dropdown/PneAsyncAutocomplete';
|
|
6
7
|
import PneSelect from './component/dropdown/PneSelect';
|
|
@@ -45,5 +46,4 @@ declare module '@mui/material/Button' {
|
|
|
45
46
|
pneText: true;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
export
|
|
49
|
-
export { PneButton, PneTextField, PneModal, PneAutocomplete, PneAsyncAutocomplete, PneSelect, PneTable, PneTableRow, PneHeaderTableCell, PneTableCell, };
|
|
49
|
+
export { PneButton, PneTextField, PneModal, useModal, PneAutocomplete, PneAsyncAutocomplete, PneSelect, PneTable, PneTableRow, PneHeaderTableCell, PneTableCell, };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import PneButton from './PneButton/PneButton';
|
|
2
2
|
import PneTextField from './PneTextField/PneTextField';
|
|
3
3
|
import PneModal from './PneModal/PneModal';
|
|
4
|
+
import useModal from './PneModal/useModal';
|
|
4
5
|
import PneAutocomplete from './component/dropdown/PneAutocomplete';
|
|
5
6
|
import PneAsyncAutocomplete from './component/dropdown/PneAsyncAutocomplete';
|
|
6
7
|
import PneSelect from './component/dropdown/PneSelect';
|
|
@@ -8,6 +9,5 @@ import PneTable from './component/table/PneTable';
|
|
|
8
9
|
import PneTableRow from './component/table/PneTableRow';
|
|
9
10
|
import PneHeaderTableCell from './component/table/PneHeaderTableCell';
|
|
10
11
|
import PneTableCell from './component/table/PneTableCell';
|
|
11
|
-
export
|
|
12
|
-
export { PneButton, PneTextField, PneModal, PneAutocomplete, PneAsyncAutocomplete, PneSelect, PneTable, PneTableRow, PneHeaderTableCell, PneTableCell, };
|
|
12
|
+
export { PneButton, PneTextField, PneModal, useModal, PneAutocomplete, PneAsyncAutocomplete, PneSelect, PneTable, PneTableRow, PneHeaderTableCell, PneTableCell, };
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAC1C,OAAO,eAAe,MAAM,sCAAsC,CAAA;AAClE,OAAO,oBAAoB,MAAM,2CAA2C,CAAA;AAC5E,OAAO,SAAS,MAAM,gCAAgC,CAAA;AACtD,OAAO,QAAQ,MAAM,4BAA4B,CAAA;AACjD,OAAO,WAAW,MAAM,+BAA+B,CAAA;AACvD,OAAO,kBAAkB,MAAM,sCAAsC,CAAA;AACrE,OAAO,YAAY,MAAM,gCAAgC,CAAA;AA6CzD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,uBAAuB,CAAA;AAC7C,OAAO,YAAY,MAAM,6BAA6B,CAAA;AACtD,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAC1C,OAAO,QAAQ,MAAM,qBAAqB,CAAA;AAC1C,OAAO,eAAe,MAAM,sCAAsC,CAAA;AAClE,OAAO,oBAAoB,MAAM,2CAA2C,CAAA;AAC5E,OAAO,SAAS,MAAM,gCAAgC,CAAA;AACtD,OAAO,QAAQ,MAAM,4BAA4B,CAAA;AACjD,OAAO,WAAW,MAAM,+BAA+B,CAAA;AACvD,OAAO,kBAAkB,MAAM,sCAAsC,CAAA;AACrE,OAAO,YAAY,MAAM,gCAAgC,CAAA;AA6CzD,OAAO,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,oBAAoB,EACpB,SAAS,EACT,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,YAAY,GACf,CAAA"}
|