@bcgov/design-system-react-components 0.2.2-rc1 → 0.2.3-pr490
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/README.md +1 -0
- package/dist/cjs/index.cjs +445 -25
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Form/Form.d.ts +1 -2
- package/dist/cjs/types/components/Form/index.d.ts +1 -1
- package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +3 -0
- package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/index.d.ts +1 -0
- package/dist/cjs/types/components/Radio/Radio.d.ts +3 -0
- package/dist/cjs/types/components/Radio/Radio.test.d.ts +1 -0
- package/dist/cjs/types/components/Radio/index.d.ts +2 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.d.ts +12 -0
- package/dist/cjs/types/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/cjs/types/components/RadioGroup/index.d.ts +2 -0
- package/dist/cjs/types/components/Switch/Switch.d.ts +0 -1
- package/dist/cjs/types/components/index.d.ts +3 -0
- package/dist/esm/index.js +443 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Form/Form.d.ts +1 -2
- package/dist/esm/types/components/Form/index.d.ts +1 -1
- package/dist/esm/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +3 -0
- package/dist/esm/types/components/Icons/SvgTooltipArrowUp/index.d.ts +1 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +3 -0
- package/dist/esm/types/components/Radio/Radio.test.d.ts +1 -0
- package/dist/esm/types/components/Radio/index.d.ts +2 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.d.ts +12 -0
- package/dist/esm/types/components/RadioGroup/RadioGroup.test.d.ts +1 -0
- package/dist/esm/types/components/RadioGroup/index.d.ts +2 -0
- package/dist/esm/types/components/Switch/Switch.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +3 -0
- package/dist/index.d.ts +19 -4
- package/package.json +6 -3
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { FormProps as ReactAriaFormProps } from "react-aria-components";
|
|
2
|
-
export
|
|
3
|
-
export default function Form({ ...props }: FormProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Form({ ...props }: ReactAriaFormProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from "./Form";
|
|
2
|
-
export type { FormProps } from "
|
|
2
|
+
export type { FormProps } from "react-aria-components";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SvgTooltipArrowUp";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "@testing-library/jest-dom";
|
|
@@ -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";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SwitchProps as ReactAriaSwitchProps } from "react-aria-components";
|
|
2
2
|
import "./Switch.css";
|
|
3
3
|
export interface SwitchProps extends ReactAriaSwitchProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
4
|
labelPosition?: "left" | "right";
|
|
6
5
|
}
|
|
7
6
|
export default function Switch({ labelPosition, children, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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";
|
|
@@ -18,6 +20,7 @@ export { default as SvgChevronUpIcon } from "./Icons/SvgChevronUpIcon";
|
|
|
18
20
|
export { default as SvgChevronDownIcon } from "./Icons/SvgChevronDownIcon";
|
|
19
21
|
export { default as SvgCloseIcon } from "./Icons/SvgCloseIcon";
|
|
20
22
|
export { default as SvgInfoIcon } from "./Icons/SvgInfoIcon";
|
|
23
|
+
export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
|
|
21
24
|
export { default as Tag } from "./Tag";
|
|
22
25
|
export { default as TagGroup } from "./TagGroup";
|
|
23
26
|
export { default as TagList } from "./TagList";
|