@lifesg/react-design-system 2.0.0-canary.7 → 2.0.0
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/cjs/index.js +10 -4
- package/cjs/index.js.map +1 -1
- package/file-upload/index.js +228 -222
- package/file-upload/index.js.map +1 -1
- package/form/index.js +189 -183
- package/form/index.js.map +1 -1
- package/index.js +10 -4
- package/index.js.map +1 -1
- package/input-group/index.js +1 -1
- package/input-group/index.js.map +1 -1
- package/input-multi-select/index.js +5 -5
- package/input-multi-select/index.js.map +1 -1
- package/input-range-select/index.js +12 -12
- package/input-range-select/index.js.map +1 -1
- package/input-select/index.js +1 -1
- package/input-select/index.js.map +1 -1
- package/otp-input/index.js +11 -5
- package/otp-input/index.js.map +1 -1
- package/package.json +1 -1
- package/pagination/index.js +1 -1
- package/pagination/index.js.map +1 -1
- package/phone-number-input/index.js +1 -1
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -1
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -0
- package/predictive-text-input/index.js +1 -1
- package/predictive-text-input/index.js.map +1 -1
- package/toast/index.js +1 -1
- package/toast/index.js.map +1 -1
- package/toast/toast.d.ts +1 -1
- package/toast/types.d.ts +2 -0
package/toast/toast.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ToastProps } from "./types";
|
|
3
|
-
export declare const Toast: ({ type, title, label, autoDismiss, onDismiss, ...otherProps }: ToastProps) => JSX.Element;
|
|
3
|
+
export declare const Toast: ({ type, title, label, autoDismiss, autoDismissTime, onDismiss, ...otherProps }: ToastProps) => JSX.Element;
|
package/toast/types.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
title?: string | undefined;
|
|
10
10
|
/** If specified, the Toast will be automatically dismissed after 4 seconds */
|
|
11
11
|
autoDismiss?: boolean | undefined;
|
|
12
|
+
/** Time until auto dismissal in milliseconds. Requires `autoDismiss` to be `true` */
|
|
13
|
+
autoDismissTime?: number | undefined;
|
|
12
14
|
/** If given, the function will be called when the Toast is dismissed */
|
|
13
15
|
onDismiss?: () => void;
|
|
14
16
|
}
|