@bcgov/design-system-react-components 0.5.0 → 0.5.1-pr555
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/README.md +188 -185
- package/dist/cjs/index.cjs +2232 -1968
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Heading/Heading.d.ts +7 -0
- package/dist/cjs/types/components/Heading/index.d.ts +2 -0
- package/dist/cjs/types/components/Link/Link.d.ts +15 -0
- package/dist/cjs/types/components/Link/index.d.ts +2 -0
- package/dist/cjs/types/components/Text/Text.d.ts +8 -0
- package/dist/cjs/types/components/Text/index.d.ts +2 -0
- package/dist/cjs/types/components/index.d.ts +3 -0
- package/dist/esm/index.js +2228 -1967
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Heading/Heading.d.ts +7 -0
- package/dist/esm/types/components/Heading/index.d.ts +2 -0
- package/dist/esm/types/components/Link/Link.d.ts +15 -0
- package/dist/esm/types/components/Link/index.d.ts +2 -0
- package/dist/esm/types/components/Text/Text.d.ts +8 -0
- package/dist/esm/types/components/Text/index.d.ts +2 -0
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/index.d.ts +28 -2
- package/package.json +87 -86
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HeadingProps as ReactAriaHeadingProps } from "react-aria-components";
|
|
2
|
+
import "./Heading.css";
|
|
3
|
+
export interface HeadingProps extends ReactAriaHeadingProps {
|
|
4
|
+
color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
|
|
5
|
+
isUnstyled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default function Heading({ color, isUnstyled, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LinkProps as ReactAriaLinkProps } from "react-aria-components";
|
|
2
|
+
import "./Link.css";
|
|
3
|
+
import "../Button/Button.css";
|
|
4
|
+
export interface LinkProps extends ReactAriaLinkProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
size?: "small" | "medium" | "large";
|
|
7
|
+
isButton?: boolean;
|
|
8
|
+
buttonVariant?: "primary" | "secondary" | "tertiary";
|
|
9
|
+
ariaLabel?: string | undefined;
|
|
10
|
+
danger?: boolean;
|
|
11
|
+
isUnstyled?: boolean;
|
|
12
|
+
iconLeft?: React.ReactElement;
|
|
13
|
+
iconRight?: React.ReactElement;
|
|
14
|
+
}
|
|
15
|
+
export default function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextProps as ReactAriaTextProps } from "react-aria-components";
|
|
2
|
+
import "./Text.css";
|
|
3
|
+
export interface TextProps extends ReactAriaTextProps {
|
|
4
|
+
size?: "small" | "medium" | "large";
|
|
5
|
+
color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
|
|
6
|
+
isUnstyled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,9 @@ export { default as Dialog, DialogTrigger } from "./Dialog";
|
|
|
12
12
|
export { default as Footer, FooterLinks } from "./Footer";
|
|
13
13
|
export { default as Form } from "./Form";
|
|
14
14
|
export { default as Header } from "./Header";
|
|
15
|
+
export { default as Heading } from "./Heading";
|
|
15
16
|
export { default as InlineAlert } from "./InlineAlert";
|
|
17
|
+
export { default as Link } from "./Link";
|
|
16
18
|
export { default as Modal } from "./Modal";
|
|
17
19
|
export { default as Radio } from "./Radio";
|
|
18
20
|
export { default as RadioGroup } from "./RadioGroup";
|
|
@@ -33,6 +35,7 @@ export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
|
|
|
33
35
|
export { default as Tag } from "./Tag";
|
|
34
36
|
export { default as TagGroup } from "./TagGroup";
|
|
35
37
|
export { default as TagList } from "./TagList";
|
|
38
|
+
export { default as Text } from "./Text";
|
|
36
39
|
export { default as TextArea } from "./TextArea";
|
|
37
40
|
export { default as TextField } from "./TextField";
|
|
38
41
|
export { default as Switch } from "./Switch";
|