@glob-ui/toast 0.1.0 → 0.2.0
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/package.json +3 -3
- package/dist/toaster.d.mts +0 -19
- package/dist/toaster.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glob-ui/toast",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"react-dom": "^19"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@glob-ui/alert": "0.
|
|
31
|
-
"@glob-ui/utils": "0.
|
|
30
|
+
"@glob-ui/alert": "0.2.0",
|
|
31
|
+
"@glob-ui/utils": "0.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"tsup": "^8.5.1"
|
package/dist/toaster.d.mts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
|
|
3
|
-
type ToasterPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
4
|
-
interface ToasterProps {
|
|
5
|
-
position?: ToasterPosition;
|
|
6
|
-
/** Toasts on screen at once. The rest wait in a queue. */
|
|
7
|
-
max?: number;
|
|
8
|
-
/** Accessible name of each toast's close button. */
|
|
9
|
-
closeLabel?: string;
|
|
10
|
-
/** Accessible name of the notification list. */
|
|
11
|
-
label?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
declare function Toaster({ position, max, closeLabel, label, className, }: ToasterProps): react.ReactPortal | null;
|
|
15
|
-
declare namespace Toaster {
|
|
16
|
-
var displayName: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { Toaster, type ToasterPosition, type ToasterProps };
|
package/dist/toaster.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
|
|
3
|
-
type ToasterPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
4
|
-
interface ToasterProps {
|
|
5
|
-
position?: ToasterPosition;
|
|
6
|
-
/** Toasts on screen at once. The rest wait in a queue. */
|
|
7
|
-
max?: number;
|
|
8
|
-
/** Accessible name of each toast's close button. */
|
|
9
|
-
closeLabel?: string;
|
|
10
|
-
/** Accessible name of the notification list. */
|
|
11
|
-
label?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
declare function Toaster({ position, max, closeLabel, label, className, }: ToasterProps): react.ReactPortal | null;
|
|
15
|
-
declare namespace Toaster {
|
|
16
|
-
var displayName: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { Toaster, type ToasterPosition, type ToasterProps };
|