@sudobility/components 4.0.110 → 4.0.111
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/index.esm.js +1859 -1752
- package/dist/index.umd.js +20 -11
- package/package.json +1 -1
- package/dist/ui/toast.d.ts +0 -47
- package/dist/ui/toast.d.ts.map +0 -1
package/package.json
CHANGED
package/dist/ui/toast.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ToastMessage {
|
|
3
|
-
id: string;
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
variant?: 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
7
|
-
duration?: number;
|
|
8
|
-
action?: {
|
|
9
|
-
label: string;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface ToastProps {
|
|
14
|
-
/** Toast message */
|
|
15
|
-
toast: ToastMessage;
|
|
16
|
-
/** Remove toast handler */
|
|
17
|
-
onRemove: (id: string) => void;
|
|
18
|
-
}
|
|
19
|
-
export interface ToastContextValue {
|
|
20
|
-
toasts: ToastMessage[];
|
|
21
|
-
addToast: (toast: Omit<ToastMessage, 'id'>) => void;
|
|
22
|
-
removeToast: (id: string) => void;
|
|
23
|
-
}
|
|
24
|
-
export declare const useToast: () => ToastContextValue;
|
|
25
|
-
/**
|
|
26
|
-
* Toast Component
|
|
27
|
-
*
|
|
28
|
-
* Individual toast notification with variants and actions.
|
|
29
|
-
*/
|
|
30
|
-
export declare const Toast: React.FC<ToastProps>;
|
|
31
|
-
/**
|
|
32
|
-
* ToastProvider Component
|
|
33
|
-
*
|
|
34
|
-
* Provider for toast notifications system.
|
|
35
|
-
* Wrap your app with this provider to enable toasts.
|
|
36
|
-
*
|
|
37
|
-
* @example
|
|
38
|
-
* ```tsx
|
|
39
|
-
* <ToastProvider>
|
|
40
|
-
* <App />
|
|
41
|
-
* </ToastProvider>
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
export declare const ToastProvider: React.FC<{
|
|
45
|
-
children: React.ReactNode;
|
|
46
|
-
}>;
|
|
47
|
-
//# sourceMappingURL=toast.d.ts.map
|
package/dist/ui/toast.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/ui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,IAAI,CAAC;KACrB,CAAC;CACH;AAED,MAAM,WAAW,UAAU;IACzB,oBAAoB;IACpB,KAAK,EAAE,YAAY,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAID,eAAO,MAAM,QAAQ,yBAMpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2HtC,CAAC;AAwBF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CA4BjE,CAAC"}
|