@bcgov/design-system-react-components 0.0.1 → 0.0.2

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.
@@ -0,0 +1,9 @@
1
+ import { ButtonProps as ReactAriaButtonProps } from "react-aria-components";
2
+ import "./Button.css";
3
+ export interface ButtonProps extends ReactAriaButtonProps {
4
+ size?: "small" | "medium";
5
+ variant?: "primary" | "secondary" | "tertiary" | "link";
6
+ danger?: boolean;
7
+ isIconButton?: boolean;
8
+ }
9
+ export default function Button({ size, variant, danger, isIconButton, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Button";
2
+ export type { ButtonProps } from "./Button";
@@ -1,10 +1,7 @@
1
- import { Key } from "react";
1
+ /// <reference types="react" />
2
2
  import { TagProps as ReactAriaTagProps } from "react-aria-components";
3
- import "@bcgov/design-tokens/css/variables.css";
4
- import "@bcgov/bc-sans/css/BC_Sans.css";
5
3
  import "./Tag.css";
6
4
  export interface TagProps extends ReactAriaTagProps {
7
- id: Key;
8
5
  icon?: React.ReactNode;
9
6
  color?: "bc-blue" | "bc-gold" | "blue" | "dark" | "gray" | "grey" | "green" | "red" | "yellow";
10
7
  }
@@ -1,3 +1,5 @@
1
+ import "@bcgov/design-tokens/css/variables.css";
2
+ export { default as Button } from "./Button";
1
3
  export { default as Tag } from "./Tag";
2
4
  export { default as TagGroup } from "./TagGroup";
3
5
  export { default as TagList } from "./TagList";