@dt-dds/react-toast 1.0.0-beta.61 → 1.0.0-beta.63
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/CHANGELOG.md +23 -0
- package/dist/index.d.mts +49 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @dt-ui/react-toast
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.63
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat: replace rounded with sharp icons
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @dt-dds/themes@1.0.0-beta.6
|
|
13
|
+
- @dt-dds/react-button@1.0.0-beta.46
|
|
14
|
+
- @dt-dds/react-core@1.0.0-beta.46
|
|
15
|
+
|
|
16
|
+
## 1.0.0-beta.62
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- chore(dependencies): upgrade builders versions
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
- @dt-dds/react-button@1.0.0-beta.45
|
|
23
|
+
- @dt-dds/react-core@1.0.0-beta.45
|
|
24
|
+
- @dt-dds/themes@1.0.0-beta.5
|
|
25
|
+
|
|
3
26
|
## 1.0.0-beta.61
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { CustomTheme } from '@dt-dds/themes';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { BaseProps } from '@dt-dds/react-core';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { ToasterProps, ToastOptions } from 'react-hot-toast';
|
|
6
|
+
|
|
7
|
+
declare enum ToastPosition {
|
|
8
|
+
TopLeft = "top-left",
|
|
9
|
+
TopCenter = "top-center",
|
|
10
|
+
TopRight = "top-right",
|
|
11
|
+
BottomLeft = "bottom-left",
|
|
12
|
+
BottomCenter = "bottom-center",
|
|
13
|
+
BottomRight = "bottom-right"
|
|
14
|
+
}
|
|
15
|
+
declare enum ToastType {
|
|
16
|
+
Success = "success",
|
|
17
|
+
Error = "error",
|
|
18
|
+
Info = "informative",
|
|
19
|
+
Warning = "warning"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface ToastProps extends BaseProps {
|
|
23
|
+
id: string;
|
|
24
|
+
type: ToastType;
|
|
25
|
+
title: string;
|
|
26
|
+
message: string;
|
|
27
|
+
onClose: () => void;
|
|
28
|
+
isVisible?: boolean;
|
|
29
|
+
dismissible?: boolean;
|
|
30
|
+
}
|
|
31
|
+
declare const Toast: ({ children, id, dataTestId, title, message, onClose, type, isVisible, dismissible, }: ToastProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
interface EmitToastProps extends ToastOptions {
|
|
34
|
+
type: ToastType;
|
|
35
|
+
title: string;
|
|
36
|
+
message: string;
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
dismissible?: boolean;
|
|
39
|
+
}
|
|
40
|
+
declare const dismissToast: (id: string) => void;
|
|
41
|
+
declare const emitToast: ({ type, title, message, children, dismissible, ...props }: EmitToastProps) => void;
|
|
42
|
+
declare const Toaster: ({ gutter, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
43
|
+
|
|
44
|
+
declare module '@emotion/react' {
|
|
45
|
+
interface Theme extends CustomTheme {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Toast, ToastPosition, type ToastProps, ToastType, Toaster, dismissToast, emitToast };
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -57,8 +57,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
57
57
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
58
58
|
|
|
59
59
|
// index.ts
|
|
60
|
-
var
|
|
61
|
-
__export(
|
|
60
|
+
var index_exports = {};
|
|
61
|
+
__export(index_exports, {
|
|
62
62
|
Toast: () => Toast_default,
|
|
63
63
|
ToastPosition: () => ToastPosition,
|
|
64
64
|
ToastType: () => ToastType,
|
|
@@ -66,7 +66,7 @@ __export(toast_exports, {
|
|
|
66
66
|
dismissToast: () => dismissToast,
|
|
67
67
|
emitToast: () => emitToast
|
|
68
68
|
});
|
|
69
|
-
module.exports = __toCommonJS(
|
|
69
|
+
module.exports = __toCommonJS(index_exports);
|
|
70
70
|
|
|
71
71
|
// ../../dt-dds-react/core/assets/svgs/AllOut.tsx
|
|
72
72
|
var import_jsx_runtime = require("react/jsx-runtime");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-dds/react-toast",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.63",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dist/index.js"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"test:update:snapshot": "jest -u"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dt-dds/react-button": "1.0.0-beta.
|
|
24
|
-
"@dt-dds/react-core": "1.0.0-beta.
|
|
25
|
-
"@dt-dds/themes": "1.0.0-beta.
|
|
23
|
+
"@dt-dds/react-button": "1.0.0-beta.46",
|
|
24
|
+
"@dt-dds/react-core": "1.0.0-beta.46",
|
|
25
|
+
"@dt-dds/themes": "1.0.0-beta.6",
|
|
26
26
|
"react-hot-toast": "^2.3.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react": "^18.1.0",
|
|
45
45
|
"react-dom": "^18.2.0",
|
|
46
46
|
"tsconfig": "*",
|
|
47
|
-
"tsup": "^
|
|
47
|
+
"tsup": "^8.5.0",
|
|
48
48
|
"typescript": "^4.5.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|