@bcgov/design-system-react-components 0.1.1-pr437 → 0.1.1-pr446

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,7 @@
1
+ import "./ButtonGroup.css";
2
+ export interface ButtonGroupProps extends React.PropsWithChildren {
3
+ orientation?: "horizontal" | "vertical";
4
+ alignment?: "start" | "center" | "end";
5
+ ariaLabel?: string | undefined;
6
+ }
7
+ export default function ButtonGroup({ orientation, alignment, ariaLabel, children, ...props }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./ButtonGroup";
2
+ export type { ButtonGroupProps } from "./ButtonGroup";
@@ -4,9 +4,10 @@ export interface InlineAlertProps extends React.PropsWithChildren {
4
4
  variant?: "info" | "success" | "warning" | "danger";
5
5
  title?: string;
6
6
  description?: string;
7
+ buttons?: React.ReactNode;
7
8
  isCloseable?: boolean;
8
9
  isIconHidden?: boolean;
9
10
  role?: React.AriaRole | undefined;
10
11
  onClose?: () => void;
11
12
  }
12
- export default function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, children, onClose, ...props }: InlineAlertProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, buttons, children, onClose, ...props }: InlineAlertProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { SwitchProps as ReactAriaSwitchProps } from "react-aria-components";
2
+ import "./Switch.css";
3
+ export interface SwitchProps extends ReactAriaSwitchProps {
4
+ children?: React.ReactNode;
5
+ labelPosition?: "left" | "right";
6
+ }
7
+ export default function Switch({ labelPosition, children, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Switch";
2
+ export type { SwitchProps } from "./Switch";
@@ -1,6 +1,7 @@
1
1
  import "@bcgov/design-tokens/css/variables.css";
2
2
  export { default as InlineAlert } from "./InlineAlert";
3
3
  export { default as Button } from "./Button";
4
+ export { default as ButtonGroup } from "./ButtonGroup";
4
5
  export { default as Header } from "./Header";
5
6
  export { default as Footer, FooterLinks } from "./Footer";
6
7
  export { default as Form } from "./Form";
@@ -16,4 +17,5 @@ export { default as TagGroup } from "./TagGroup";
16
17
  export { default as TagList } from "./TagList";
17
18
  export { default as TextArea } from "./TextArea";
18
19
  export { default as TextField } from "./TextField";
20
+ export { default as Switch } from "./Switch";
19
21
  export { default as Tooltip, TooltipTrigger } from "./Tooltip";