@delightui/components 0.1.164 → 0.1.165
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/components/atoms/ToastNotification/ToastNotification.types.d.ts +8 -0
- package/dist/cjs/library.css +1 -1
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/cjs/modules/notification/index.d.ts +2 -2
- package/dist/cjs/modules/notification/types.d.ts +13 -2
- package/dist/esm/components/atoms/ToastNotification/ToastNotification.types.d.ts +8 -0
- package/dist/esm/library.css +1 -1
- package/dist/esm/library.js +1 -1
- package/dist/esm/library.js.map +1 -1
- package/dist/esm/modules/notification/index.d.ts +2 -2
- package/dist/esm/modules/notification/types.d.ts +13 -2
- package/dist/index.d.ts +14 -3
- package/package.json +1 -1
|
@@ -36,6 +36,14 @@ export type ToastNotificationProps = Omit<HTMLAttributes<HTMLDivElement>, 'style
|
|
|
36
36
|
* Duration before the toast auto-closes (in milliseconds).
|
|
37
37
|
*/
|
|
38
38
|
duration?: number;
|
|
39
|
+
/**
|
|
40
|
+
* Custom renderer for the inner content area inside the toast wrapper.
|
|
41
|
+
* When provided, it replaces the default layout (leading icon + text + trailing icon).
|
|
42
|
+
* It receives `removeToast` (always defined) so your custom component can close the toast.
|
|
43
|
+
*/
|
|
44
|
+
renderContent?: (helpers: {
|
|
45
|
+
removeToast: () => void;
|
|
46
|
+
}) => ReactNode;
|
|
39
47
|
/**
|
|
40
48
|
* Additional class for styling.
|
|
41
49
|
*/
|
package/dist/cjs/library.css
CHANGED
|
@@ -35777,7 +35777,7 @@ span.flatpickr-weekday {
|
|
|
35777
35777
|
}
|
|
35778
35778
|
.ToastNotification-module_toastNotification__LCpoq {
|
|
35779
35779
|
display: flex;
|
|
35780
|
-
position:
|
|
35780
|
+
position: relative;
|
|
35781
35781
|
flex-direction: row;
|
|
35782
35782
|
align-items: center;
|
|
35783
35783
|
justify-content: center;
|