@bcgov/design-system-react-components 0.2.1-pr478 → 0.2.1-pr482
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/dist/cjs/index.cjs +492 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/cjs/types/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/cjs/types/components/Checkbox/index.d.ts +2 -0
- package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
- package/dist/cjs/types/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/cjs/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +3 -0
- package/dist/cjs/types/components/Icons/SvgCheckIcon/index.d.ts +1 -0
- package/dist/cjs/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +3 -0
- package/dist/cjs/types/components/Icons/SvgDashIcon/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +4 -0
- package/dist/esm/index.js +490 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
- package/dist/esm/types/components/Checkbox/Checkbox.test.d.ts +1 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
- package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
- package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
- package/dist/esm/types/components/CheckboxGroup/index.d.ts +2 -0
- package/dist/esm/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +3 -0
- package/dist/esm/types/components/Icons/SvgCheckIcon/index.d.ts +1 -0
- package/dist/esm/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +3 -0
- package/dist/esm/types/components/Icons/SvgDashIcon/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +4 -0
- package/dist/index.d.ts +22 -2
- package/package.json +16 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CheckboxGroupProps as ReactAriaCheckboxGroupProps, ValidationResult } from "react-aria-components";
|
|
2
|
+
import "./CheckboxGroup.css";
|
|
3
|
+
export interface CheckboxGroupProps extends ReactAriaCheckboxGroupProps {
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
label?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
8
|
+
/** `flex-wrap` style property, defaults to `nowrap` */
|
|
9
|
+
flexWrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
10
|
+
}
|
|
11
|
+
export default function CheckboxGroup({ orientation, label, description, errorMessage, flexWrap, children, ...props }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SvgCheckIcon";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SvgDashIcon";
|
|
@@ -2,12 +2,16 @@ import "@bcgov/design-tokens/css/variables.css";
|
|
|
2
2
|
export { default as InlineAlert } from "./InlineAlert";
|
|
3
3
|
export { default as Button } from "./Button";
|
|
4
4
|
export { default as ButtonGroup } from "./ButtonGroup";
|
|
5
|
+
export { default as Checkbox } from "./Checkbox";
|
|
6
|
+
export { default as CheckboxGroup } from "./CheckboxGroup";
|
|
5
7
|
export { default as Header } from "./Header";
|
|
6
8
|
export { default as Footer, FooterLinks } from "./Footer";
|
|
7
9
|
export { default as Form } from "./Form";
|
|
8
10
|
export { default as Select } from "./Select";
|
|
9
11
|
export { default as SvgBcLogo } from "./Icons/SvgBcLogo";
|
|
12
|
+
export { default as SvgCheckIcon } from "./Icons/SvgCheckIcon";
|
|
10
13
|
export { default as SvgCheckCircleIcon } from "./Icons/SvgCheckCircleIcon";
|
|
14
|
+
export { default as SvgDashIcon } from "./Icons/SvgDashIcon";
|
|
11
15
|
export { default as SvgExclamationIcon } from "./Icons/SvgExclamationIcon";
|
|
12
16
|
export { default as SvgExclamationCircleIcon } from "./Icons/SvgExclamationCircleIcon";
|
|
13
17
|
export { default as SvgChevronUpIcon } from "./Icons/SvgChevronUpIcon";
|