@abgov/react-components 5.4.0 → 5.5.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/index.js +4 -3
- package/index.js.map +1 -1
- package/index.mjs +4 -3
- package/index.mjs.map +1 -1
- package/lib/text/text.d.ts +3 -0
- package/package.json +1 -1
package/lib/text/text.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
|
|
|
5
5
|
as?: TextElement | HeadingElement;
|
|
6
6
|
size?: Size;
|
|
7
7
|
maxwidth?: MaxWidth;
|
|
8
|
+
color?: Color;
|
|
8
9
|
}
|
|
9
10
|
declare global {
|
|
10
11
|
namespace JSX {
|
|
@@ -18,10 +19,12 @@ export type TextElement = "span" | "div" | "p";
|
|
|
18
19
|
type HeadingSize = "heading-xl" | "heading-l" | "heading-m" | "heading-s" | "heading-xs";
|
|
19
20
|
type BodySize = "body-l" | "body-m" | "body-s" | "body-xs";
|
|
20
21
|
export type Size = HeadingSize | BodySize;
|
|
22
|
+
type Color = "primary" | "secondary";
|
|
21
23
|
interface GoATextProps extends Margins {
|
|
22
24
|
as?: TextElement | HeadingElement;
|
|
23
25
|
size?: Size;
|
|
24
26
|
maxWidth?: MaxWidth;
|
|
27
|
+
color?: Color;
|
|
25
28
|
children: ReactNode;
|
|
26
29
|
}
|
|
27
30
|
export declare function GoAText(props: GoATextProps): JSX.Element;
|