@akinon/ui-notification 0.4.0 → 0.5.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/dist/cjs/types.d.ts +22 -0
- package/dist/esm/types.d.ts +22 -0
- package/package.json +4 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type openNotificationParamsType = {
|
|
2
|
+
message: string;
|
|
3
|
+
type: notificationBoxType;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type notificationBoxType = 'success' | 'info' | 'error';
|
|
7
|
+
|
|
8
|
+
export type notificationIconType =
|
|
9
|
+
| 'katalogkontrol'
|
|
10
|
+
| 'info-outlined'
|
|
11
|
+
| 'warning_tri';
|
|
12
|
+
|
|
13
|
+
export type NotificationPlacement = (typeof NotificationPlacements)[number];
|
|
14
|
+
|
|
15
|
+
declare const NotificationPlacements: readonly [
|
|
16
|
+
'top',
|
|
17
|
+
'topLeft',
|
|
18
|
+
'topRight',
|
|
19
|
+
'bottom',
|
|
20
|
+
'bottomLeft',
|
|
21
|
+
'bottomRight'
|
|
22
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type openNotificationParamsType = {
|
|
2
|
+
message: string;
|
|
3
|
+
type: notificationBoxType;
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
export type notificationBoxType = 'success' | 'info' | 'error';
|
|
7
|
+
|
|
8
|
+
export type notificationIconType =
|
|
9
|
+
| 'katalogkontrol'
|
|
10
|
+
| 'info-outlined'
|
|
11
|
+
| 'warning_tri';
|
|
12
|
+
|
|
13
|
+
export type NotificationPlacement = (typeof NotificationPlacements)[number];
|
|
14
|
+
|
|
15
|
+
declare const NotificationPlacements: readonly [
|
|
16
|
+
'top',
|
|
17
|
+
'topLeft',
|
|
18
|
+
'topRight',
|
|
19
|
+
'bottom',
|
|
20
|
+
'bottomLeft',
|
|
21
|
+
'bottomRight'
|
|
22
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akinon/ui-notification",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"antd": "5.17.0",
|
|
13
|
-
"@akinon/icons": "0.
|
|
13
|
+
"@akinon/icons": "0.6.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"clean-package": "2.2.0",
|
|
17
17
|
"copyfiles": "^2.4.1",
|
|
18
18
|
"rimraf": "^5.0.5",
|
|
19
19
|
"typescript": "^5.2.2",
|
|
20
|
-
"@akinon/typescript-config": "0.
|
|
20
|
+
"@akinon/typescript-config": "0.4.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=18",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"build": "pnpm run build:esm && pnpm run build:commonjs && pnpm run copy:files",
|
|
38
38
|
"build:esm": "tsc --outDir dist/esm",
|
|
39
39
|
"build:commonjs": "tsc --module commonjs --outDir dist/cjs",
|
|
40
|
-
"copy:files": "copyfiles -u 1 src
|
|
40
|
+
"copy:files": "copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/esm && copyfiles -u 1 \"src/**/*.!(ts|tsx)\" dist/cjs",
|
|
41
41
|
"clean": "rimraf dist/",
|
|
42
42
|
"typecheck": "tsc --noEmit"
|
|
43
43
|
}
|