@particle-network/ui-react 0.7.0-beta.17 → 0.7.0-beta.19
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.
|
@@ -5,7 +5,10 @@ export type UXToastType = 'success' | 'error' | 'loading' | 'info';
|
|
|
5
5
|
export type UXToastProps = Partial<ToastProps> & {
|
|
6
6
|
type: UXToastType;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export interface UXToastProviderProps {
|
|
9
|
+
placement?: ToastProps['placement'];
|
|
10
|
+
}
|
|
11
|
+
export declare const UXToastProvider: ({ placement }: UXToastProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
12
|
export declare const toast: {
|
|
10
13
|
info: (message: ReactNode, props?: Partial<ToastProps>) => string | null;
|
|
11
14
|
success: (message: ReactNode, props?: Partial<ToastProps>) => string | null;
|
|
@@ -6,9 +6,9 @@ import CloseIcon from "@particle-network/icons/web/CloseIcon";
|
|
|
6
6
|
import { hasLongWord } from "../../utils/index.js";
|
|
7
7
|
import { UXSpinner } from "../UXSpinner/index.js";
|
|
8
8
|
import { WrapText } from "../WrapText/index.js";
|
|
9
|
-
const UXToastProvider = ()=>/*#__PURE__*/ jsx(ToastProvider, {
|
|
9
|
+
const UXToastProvider = ({ placement = 'top-center' })=>/*#__PURE__*/ jsx(ToastProvider, {
|
|
10
10
|
disableAnimation: true,
|
|
11
|
-
placement:
|
|
11
|
+
placement: placement,
|
|
12
12
|
maxVisibleToasts: 4,
|
|
13
13
|
toastProps: {
|
|
14
14
|
timeout: 4000
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@particle-network/ui-react",
|
|
3
|
-
"version": "0.7.0-beta.
|
|
3
|
+
"version": "0.7.0-beta.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@rslib/core": "^0.12.3",
|
|
38
38
|
"@types/react": "^19.1.10",
|
|
39
39
|
"react": "^19.1.0",
|
|
40
|
-
"@particle-network/
|
|
41
|
-
"@particle-network/
|
|
40
|
+
"@particle-network/lintstaged-config": "0.1.0",
|
|
41
|
+
"@particle-network/eslint-config": "0.3.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": ">=16.9.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"values.js": "^2.1.1",
|
|
60
60
|
"zustand": "^5.0.8",
|
|
61
61
|
"@particle-network/ui-shared": "0.6.0-beta.0",
|
|
62
|
-
"@particle-network/icons": "0.7.0-beta.
|
|
62
|
+
"@particle-network/icons": "0.7.0-beta.7"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "rslib build",
|