@bcgov/design-system-react-components 0.2.2 → 0.2.3-rc1

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,3 @@
1
+ import { RadioProps } from "react-aria-components";
2
+ import "./Radio.css";
3
+ export default function Radio({ value, children, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,2 @@
1
+ export { default } from "./Radio";
2
+ export type { RadioProps } from "react-aria-components";
@@ -0,0 +1,12 @@
1
+ import { RadioGroupProps as ReactAriaRadioGroupProps, ValidationResult } from "react-aria-components";
2
+ import "./RadioGroup.css";
3
+ export interface RadioGroupProps extends ReactAriaRadioGroupProps {
4
+ children?: React.ReactNode;
5
+ orientation?: "vertical" | "horizontal";
6
+ label?: string;
7
+ description?: string;
8
+ errorMessage?: string | ((validation: ValidationResult) => string);
9
+ /** `flex-wrap` style property, defaults to `nowrap` */
10
+ flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
11
+ }
12
+ export default function RadioGroup({ orientation, label, description, children, errorMessage, flexWrap, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,2 @@
1
+ export { default } from "./RadioGroup";
2
+ export type { RadioGroupProps } from "./RadioGroup";
@@ -7,6 +7,8 @@ export { default as CheckboxGroup } from "./CheckboxGroup";
7
7
  export { default as Header } from "./Header";
8
8
  export { default as Footer, FooterLinks } from "./Footer";
9
9
  export { default as Form } from "./Form";
10
+ export { default as Radio } from "./Radio";
11
+ export { default as RadioGroup } from "./RadioGroup";
10
12
  export { default as Select } from "./Select";
11
13
  export { default as SvgBcLogo } from "./Icons/SvgBcLogo";
12
14
  export { default as SvgCheckIcon } from "./Icons/SvgCheckIcon";