@bcgov/design-system-react-components 0.2.3 → 0.2.4-rc2

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,13 @@
1
+ import { DialogTrigger, DialogProps as ReactAriaDialogProps } from "react-aria-components";
2
+ import "./AlertDialog.css";
3
+ import React from "react";
4
+ export interface AlertDialogProps extends ReactAriaDialogProps {
5
+ variant?: "info" | "confirmation" | "warning" | "error" | "destructive";
6
+ title?: string;
7
+ description?: string;
8
+ isIconHidden?: boolean;
9
+ isCloseable?: boolean;
10
+ buttons?: React.ReactNode;
11
+ }
12
+ export default function AlertDialog({ variant, role, title, isCloseable, isIconHidden, description, buttons, ...props }: AlertDialogProps): import("react/jsx-runtime").JSX.Element;
13
+ export { DialogTrigger };
@@ -0,0 +1,2 @@
1
+ export { default, DialogTrigger } from "./AlertDialog";
2
+ export type { AlertDialogProps } from "./AlertDialog";
@@ -0,0 +1,7 @@
1
+ import { DialogTrigger, DialogProps as ReactAriaDialogProps } from "react-aria-components";
2
+ import "./Dialog.css";
3
+ export interface DialogProps extends ReactAriaDialogProps {
4
+ isCloseable?: boolean;
5
+ }
6
+ export default function Dialog({ isCloseable, role, children, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
7
+ export { DialogTrigger };
@@ -0,0 +1,2 @@
1
+ export { default, DialogTrigger } from "./Dialog";
2
+ export type { DialogProps } from "./Dialog";
@@ -0,0 +1,3 @@
1
+ import { ModalOverlayProps } from "react-aria-components";
2
+ import "./Modal.css";
3
+ export default function Modal({ children, isDismissable, isKeyboardDismissDisabled, isOpen, defaultOpen, shouldCloseOnInteractOutside, ...props }: ModalOverlayProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Modal";
2
+ export type { ModalOverlayProps } from "react-aria-components";
@@ -1,12 +1,15 @@
1
1
  import "@bcgov/design-tokens/css/variables.css";
2
- export { default as InlineAlert } from "./InlineAlert";
2
+ export { default as AlertDialog } from "./AlertDialog";
3
3
  export { default as Button } from "./Button";
4
4
  export { default as ButtonGroup } from "./ButtonGroup";
5
5
  export { default as Checkbox } from "./Checkbox";
6
6
  export { default as CheckboxGroup } from "./CheckboxGroup";
7
- export { default as Header } from "./Header";
7
+ export { default as Dialog, DialogTrigger } from "./Dialog";
8
8
  export { default as Footer, FooterLinks } from "./Footer";
9
9
  export { default as Form } from "./Form";
10
+ export { default as Header } from "./Header";
11
+ export { default as InlineAlert } from "./InlineAlert";
12
+ export { default as Modal } from "./Modal";
10
13
  export { default as Radio } from "./Radio";
11
14
  export { default as RadioGroup } from "./RadioGroup";
12
15
  export { default as Select } from "./Select";