@instructure/ui-alerts 10.26.1 → 11.0.1-snapshot-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/CHANGELOG.md +30 -1
- package/es/Alert/index.js +2 -2
- package/es/Alert/props.js +1 -19
- package/lib/Alert/index.js +1 -1
- package/lib/Alert/props.js +1 -20
- package/package.json +19 -20
- package/src/Alert/index.tsx +1 -2
- package/src/Alert/props.ts +2 -25
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/index.d.ts +0 -17
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Alert/props.d.ts +2 -3
- package/types/Alert/props.d.ts.map +1 -1
package/types/Alert/index.d.ts
CHANGED
|
@@ -9,23 +9,6 @@ category: components
|
|
|
9
9
|
**/
|
|
10
10
|
declare class Alert extends Component<AlertProps, AlertState> {
|
|
11
11
|
static readonly componentId = "Alert";
|
|
12
|
-
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
13
|
-
children?: import("react").ReactNode;
|
|
14
|
-
variant?: "info" | "success" | "warning" | "error";
|
|
15
|
-
variantScreenReaderLabel?: string;
|
|
16
|
-
liveRegion?: Element | null | (() => Element | null | undefined);
|
|
17
|
-
liveRegionPoliteness?: "polite" | "assertive";
|
|
18
|
-
isLiveRegionAtomic?: boolean;
|
|
19
|
-
screenReaderOnly?: boolean;
|
|
20
|
-
timeout?: number;
|
|
21
|
-
margin?: import("@instructure/emotion").Spacing;
|
|
22
|
-
renderCloseButtonLabel?: import("@instructure/shared-types").Renderable;
|
|
23
|
-
onDismiss?: () => void;
|
|
24
|
-
transition?: "none" | "fade";
|
|
25
|
-
open?: boolean;
|
|
26
|
-
hasShadow: boolean;
|
|
27
|
-
renderCustomIcon?: import("@instructure/shared-types").Renderable;
|
|
28
|
-
}>;
|
|
29
12
|
static allowedProps: readonly (keyof {
|
|
30
13
|
children?: import("react").ReactNode;
|
|
31
14
|
variant?: "info" | "success" | "warning" | "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAS9B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;GAIG;AACH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Alert/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAY,SAAS,EAAE,MAAM,OAAO,CAAA;AAW3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAS9B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAErD;;;;GAIG;AACH,cAEM,KAAM,SAAQ,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IACnD,MAAM,CAAC,QAAQ,CAAC,WAAW,WAAU;IAErC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;MAWlB;gBAEW,KAAK,EAAE,UAAU;IAS7B,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,EAAE,CAAK;IAC/C,IAAI,EAAE,MAAM,CAAA;IAEZ,SAAS;;;;;MAKR;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,SAAS,GAAI,IAAI,OAAO,GAAG,IAAI,UAE9B;IAED,aAAa,aAQZ;IAED,aAAa;IAKb,gBAAgB,aAIf;IAED,KAAK,aAWJ;IAGD,SAAS,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS;IAIvC,aAAa;IASb,cAAc,CAAC,UAAU,EAAE,OAAO;IAmBlC,6BAA6B;IAQ7B,uBAAuB;IAUvB,uBAAuB;IAkBvB,WAAW,GAAI,OAAO,KAAK,CAAC,aAAa,CAAC,YAAY,CAAC,UAOtD;IAED,iBAAiB;IAUjB,oBAAoB;IAIpB,kBAAkB,CAAC,SAAS,EAAE,UAAU;IASxC,UAAU;IAUV,iBAAiB;IAgBjB,WAAW;IAkCX,wBAAwB,CAAC,UAAU,EAAE,OAAO;IAW5C,MAAM;CAsCP;AAED,eAAe,KAAK,CAAA;AACpB,OAAO,EAAE,KAAK,EAAE,CAAA"}
|
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,
|
|
3
|
+
import type { AlertTheme, Renderable } from '@instructure/shared-types';
|
|
4
4
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
5
|
type AlertOwnProps = {
|
|
6
6
|
/**
|
|
@@ -83,11 +83,10 @@ type PropKeys = keyof AlertOwnProps;
|
|
|
83
83
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
84
84
|
type AlertProps = AlertOwnProps & WithStyleProps<AlertTheme, AlertStyle> & WithDeterministicIdProps;
|
|
85
85
|
type AlertStyle = ComponentStyle<'alert' | 'icon' | 'closeButton' | 'content' | 'variantScreenReaderLabel'>;
|
|
86
|
-
declare const propTypes: PropValidators<PropKeys>;
|
|
87
86
|
declare const allowedProps: AllowedPropKeys;
|
|
88
87
|
type AlertState = {
|
|
89
88
|
open: boolean;
|
|
90
89
|
};
|
|
91
90
|
export type { AlertProps, AlertStyle, AlertState };
|
|
92
|
-
export {
|
|
91
|
+
export { allowedProps };
|
|
93
92
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/Alert/props.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAA;AAE3E,KAAK,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,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,CAAC,MAAM,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAChE;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC7C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OA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