@delightui/components 0.1.160 → 0.1.161
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/components/molecules/Modal/DemoModal.d.ts +1 -0
- package/dist/cjs/components/molecules/Modal/ModalContext/ModalContext.types.d.ts +24 -1
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/Modal/DemoModal.d.ts +1 -0
- package/dist/esm/components/molecules/Modal/ModalContext/ModalContext.types.d.ts +24 -1
- package/dist/esm/library.js +3 -3
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1544,6 +1544,13 @@ type UseModalReturn<T extends ModalComponentProps> = {
|
|
|
1544
1544
|
closeModal: () => void;
|
|
1545
1545
|
/** The unique identifier for this modal instance */
|
|
1546
1546
|
modalId: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Updates the props of the modal instance managed by this hook.
|
|
1549
|
+
*
|
|
1550
|
+
* @param newProps - The new props to merge with the existing props
|
|
1551
|
+
* @returns void
|
|
1552
|
+
*/
|
|
1553
|
+
updateModal: (newProps: Partial<T>) => void;
|
|
1547
1554
|
};
|
|
1548
1555
|
|
|
1549
1556
|
/**
|