@spteck/react-controls-v2 2.6.0 → 2.6.1
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/hooks/index.d.ts +2 -1
- package/dist/hooks/useAppToast.d.ts +47 -0
- package/dist/hooks/useTimeZoneHelper.d.ts +13 -4
- package/dist/index.cjs +85 -85
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4610 -4433
- package/dist/models/IToastContent.d.ts +19 -0
- package/dist/models/IToastOptions.d.ts +14 -0
- package/package.json +1 -1
- package/dist/hooks/useTimeZone.d.ts +0 -12
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IToastContent {
|
|
3
|
+
title: string | React.ReactNode;
|
|
4
|
+
body?: string | React.ReactNode;
|
|
5
|
+
subtitle?: string | React.ReactNode;
|
|
6
|
+
actions?: Array<{
|
|
7
|
+
label: string | React.ReactNode;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
appearance?: "primary" | "secondary" | "outline" | "subtle" | "transparent";
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
media?: React.ReactNode;
|
|
13
|
+
avatar?: React.ReactNode;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
onStatusChange?: (e: Event, data: {
|
|
16
|
+
status: "queued" | "visible" | "dismissed";
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=IToastContent.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IToastOptions {
|
|
2
|
+
intent?: "success" | "error" | "warning" | "info";
|
|
3
|
+
appearance?: "inverted";
|
|
4
|
+
timeout?: number;
|
|
5
|
+
pauseOnHover?: boolean;
|
|
6
|
+
pauseOnWindowBlur?: boolean;
|
|
7
|
+
position?: "top-start" | "top" | "top-end" | "bottom-start" | "bottom" | "bottom-end";
|
|
8
|
+
priority?: number;
|
|
9
|
+
politeness?: "polite" | "assertive";
|
|
10
|
+
announce?: boolean;
|
|
11
|
+
imperativeRef?: React.Ref<HTMLElement>;
|
|
12
|
+
rootId?: string;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=IToastOptions.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hook for timezone helper functions
|
|
3
|
-
* Uses timezone information from the application context
|
|
4
|
-
*/
|
|
5
|
-
export declare const useTimeZoneHelper: () => {
|
|
6
|
-
timeZone: string;
|
|
7
|
-
convertToUserTimeZone: (date: Date, targetTimeZone?: string) => Date;
|
|
8
|
-
convertFromUserTimeZone: (date: Date, sourceTimeZone?: string) => Date;
|
|
9
|
-
formatInTimeZone: (date: Date, formatStr: string, targetTimeZone?: string) => string;
|
|
10
|
-
getUserTimeZone: () => string;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=useTimeZone.d.ts.map
|