@dismissible/react-client 0.3.2-canary.2.38782c4 → 0.3.2-canary.3.c1b8c41
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/README.md +302 -156
- package/dist/components/Dismissible.d.ts +3 -4
- package/dist/dismissible-client.es.js +367 -341
- package/dist/dismissible-client.umd.js +1 -1
- package/dist/hooks/useDismissibleItem.d.ts +2 -1
- package/dist/root.d.ts +0 -1
- package/dist/types/dismissible.types.d.ts +3 -3
- package/dist/utils/auth.utils.d.ts +0 -6
- package/package.json +1 -2
|
@@ -4,23 +4,22 @@ import { default as React } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export interface DismissibleProps {
|
|
6
6
|
/** Unique identifier for the dismissible item */
|
|
7
|
-
|
|
7
|
+
itemId: string;
|
|
8
8
|
/** Content to render when the item is not dismissed */
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
/** Optional callback when item is dismissed */
|
|
11
11
|
onDismiss?: () => void;
|
|
12
12
|
/** Optional custom loading component */
|
|
13
13
|
LoadingComponent?: React.ComponentType<{
|
|
14
|
-
|
|
14
|
+
itemId: string;
|
|
15
15
|
}> | null;
|
|
16
16
|
/** Optional custom error component */
|
|
17
17
|
ErrorComponent?: React.ComponentType<{
|
|
18
|
-
|
|
18
|
+
itemId: string;
|
|
19
19
|
error: Error;
|
|
20
20
|
}> | null;
|
|
21
21
|
/** Optional custom dismiss button component */
|
|
22
22
|
DismissButtonComponent?: React.ComponentType<{
|
|
23
|
-
id: string;
|
|
24
23
|
onDismiss: () => Promise<void>;
|
|
25
24
|
ariaLabel: string;
|
|
26
25
|
}> | null;
|