@nimbus-ds/components 5.23.0-rc.1 → 5.24.0-rc.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/CHANGELOG.md +14 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.d.ts +60 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Box/index.d.ts +6 -3
- package/dist/Button/index.d.ts +1 -1
- package/dist/CHANGELOG.md +14 -0
- package/dist/Chip/index.d.ts +59 -0
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.d.ts +98 -0
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.d.ts +120 -0
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.d.ts +7 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.d.ts +76 -0
- package/dist/Input/index.js +1 -1
- package/dist/Link/index.d.ts +115 -0
- package/dist/Modal/index.d.ts +232 -0
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.d.ts +107 -0
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.d.ts +41 -0
- package/dist/Pagination/index.js +1 -1
- package/dist/Popover/index.d.ts +165 -0
- package/dist/Radio/index.d.ts +62 -0
- package/dist/ScrollPane/index.d.ts +889 -0
- package/dist/SegmentedControl/index.d.ts +6 -3
- package/dist/Select/index.d.ts +81 -0
- package/dist/Select/index.js +1 -1
- package/dist/Skeleton/index.d.ts +31 -0
- package/dist/Spinner/index.d.ts +53 -0
- package/dist/Stepper/index.d.ts +869 -0
- package/dist/Stepper/index.js +1 -1
- package/dist/Thumbnail/index.d.ts +73 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.d.ts +56 -0
- package/dist/Toast/index.js +1 -1
- package/dist/Tooltip/index.d.ts +46 -0
- package/dist/index.d.ts +14 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface ToastProviderProperties {
|
|
7
|
+
/**
|
|
8
|
+
* @TJS-type React.ReactNode
|
|
9
|
+
*/
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export type ToastProviderProps = ToastProviderProperties;
|
|
13
|
+
export declare const ToastProvider: React.FC<ToastProviderProps>;
|
|
14
|
+
export interface ToastComponents {
|
|
15
|
+
Provider: typeof ToastProvider;
|
|
16
|
+
}
|
|
17
|
+
export type Types = "primary" | "success" | "danger" | "progress";
|
|
18
|
+
export interface ToastProperties {
|
|
19
|
+
/**
|
|
20
|
+
* Unique toast ID used when hiding or removing a toast.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* The text that should appear in the toast message.
|
|
25
|
+
*/
|
|
26
|
+
text: string;
|
|
27
|
+
/**
|
|
28
|
+
* Change the visual style of the toast.
|
|
29
|
+
* @default primary
|
|
30
|
+
*/
|
|
31
|
+
type?: Types;
|
|
32
|
+
/**
|
|
33
|
+
* The time in milliseconds that the toast message should persist.
|
|
34
|
+
* @default 4000
|
|
35
|
+
*/
|
|
36
|
+
duration?: 4000 | 8000 | 16000;
|
|
37
|
+
/**
|
|
38
|
+
* Tells you whether or not Toast should close automatically.
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
autoClose?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Tells the toast position when we are using multiple toasts.
|
|
44
|
+
* @default 0
|
|
45
|
+
*/
|
|
46
|
+
position?: number;
|
|
47
|
+
}
|
|
48
|
+
export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
|
|
49
|
+
export declare const Toast: React.FC<ToastProps> & ToastComponents;
|
|
50
|
+
export interface ToastContextProps {
|
|
51
|
+
closeToast: (id: string) => void;
|
|
52
|
+
addToast: (toast: Omit<ToastProps, "autoClose">) => void;
|
|
53
|
+
}
|
|
54
|
+
export declare const useToast: () => ToastContextProps;
|
|
55
|
+
|
|
56
|
+
export {};
|