@instructure/ui-alerts 8.26.2 → 8.26.4-snapshot-3
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 +15 -0
- package/package.json +18 -18
- package/src/Alert/props.ts +9 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/index.d.ts +2 -2
- package/types/Alert/props.d.ts +2 -2
- package/types/Alert/props.d.ts.map +1 -1
package/types/Alert/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class Alert extends Component<AlertProps, AlertState> {
|
|
|
21
21
|
screenReaderOnly?: boolean | undefined;
|
|
22
22
|
timeout?: number | undefined;
|
|
23
23
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
24
|
-
renderCloseButtonLabel?:
|
|
24
|
+
renderCloseButtonLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
25
25
|
onDismiss?: (() => void) | undefined;
|
|
26
26
|
transition?: "none" | "fade" | undefined;
|
|
27
27
|
open?: boolean | undefined;
|
|
@@ -36,7 +36,7 @@ declare class Alert extends Component<AlertProps, AlertState> {
|
|
|
36
36
|
screenReaderOnly?: boolean | undefined;
|
|
37
37
|
timeout?: number | undefined;
|
|
38
38
|
margin?: import("@instructure/emotion/types/styleUtils/ThemeablePropValues").Spacing | undefined;
|
|
39
|
-
renderCloseButtonLabel?:
|
|
39
|
+
renderCloseButtonLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
40
40
|
onDismiss?: (() => void) | undefined;
|
|
41
41
|
transition?: "none" | "fade" | undefined;
|
|
42
42
|
open?: boolean | undefined;
|
package/types/Alert/props.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { Spacing, WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
3
|
-
import type { AlertTheme, PropValidators } from '@instructure/shared-types';
|
|
3
|
+
import type { AlertTheme, PropValidators, Renderable } from '@instructure/shared-types';
|
|
4
4
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
5
|
declare type AlertOwnProps = {
|
|
6
6
|
/**
|
|
@@ -40,7 +40,7 @@ declare type AlertOwnProps = {
|
|
|
40
40
|
/**
|
|
41
41
|
* Close button label. Can be a React component
|
|
42
42
|
*/
|
|
43
|
-
renderCloseButtonLabel?:
|
|
43
|
+
renderCloseButtonLabel?: Renderable;
|
|
44
44
|
/**
|
|
45
45
|
* Callback after the alert is closed
|
|
46
46
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Alert/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Alert/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKjC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EACV,UAAU,EACV,cAAc,EACd,UAAU,EACX,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAE3E,aAAK,aAAa,GAAG;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAA;IAClD;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,OAAO,CAAA;IAC1B;;OAEG;IACH,oBAAoB,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC7C;;OAEG;IACH,k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