@bcgov/design-system-react-components 0.2.1-rc1 → 0.2.2-pr486

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.
Files changed (39) hide show
  1. package/README.md +15 -13
  2. package/dist/cjs/index.cjs +499 -16
  3. package/dist/cjs/index.cjs.map +1 -1
  4. package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +3 -0
  5. package/dist/cjs/types/components/Checkbox/Checkbox.test.d.ts +1 -0
  6. package/dist/cjs/types/components/Checkbox/index.d.ts +2 -0
  7. package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  8. package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
  9. package/dist/cjs/types/components/CheckboxGroup/index.d.ts +2 -0
  10. package/dist/cjs/types/components/Form/Form.d.ts +1 -2
  11. package/dist/cjs/types/components/Form/index.d.ts +1 -1
  12. package/dist/cjs/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +3 -0
  13. package/dist/cjs/types/components/Icons/SvgCheckIcon/index.d.ts +1 -0
  14. package/dist/cjs/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +3 -0
  15. package/dist/cjs/types/components/Icons/SvgDashIcon/index.d.ts +1 -0
  16. package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +3 -0
  17. package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/index.d.ts +1 -0
  18. package/dist/cjs/types/components/Switch/Switch.d.ts +0 -1
  19. package/dist/cjs/types/components/index.d.ts +5 -0
  20. package/dist/esm/index.js +496 -18
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +3 -0
  23. package/dist/esm/types/components/Checkbox/Checkbox.test.d.ts +1 -0
  24. package/dist/esm/types/components/Checkbox/index.d.ts +2 -0
  25. package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.d.ts +11 -0
  26. package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +1 -0
  27. package/dist/esm/types/components/CheckboxGroup/index.d.ts +2 -0
  28. package/dist/esm/types/components/Form/Form.d.ts +1 -2
  29. package/dist/esm/types/components/Form/index.d.ts +1 -1
  30. package/dist/esm/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +3 -0
  31. package/dist/esm/types/components/Icons/SvgCheckIcon/index.d.ts +1 -0
  32. package/dist/esm/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +3 -0
  33. package/dist/esm/types/components/Icons/SvgDashIcon/index.d.ts +1 -0
  34. package/dist/esm/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +3 -0
  35. package/dist/esm/types/components/Icons/SvgTooltipArrowUp/index.d.ts +1 -0
  36. package/dist/esm/types/components/Switch/Switch.d.ts +0 -1
  37. package/dist/esm/types/components/index.d.ts +5 -0
  38. package/dist/index.d.ts +26 -4
  39. package/package.json +16 -16
@@ -0,0 +1,3 @@
1
+ import { CheckboxProps } from "react-aria-components";
2
+ import "./Checkbox.css";
3
+ export default function Checkbox({ value, children, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ import "@testing-library/jest-dom";
@@ -0,0 +1,2 @@
1
+ export { default } from "./Checkbox";
2
+ export type { CheckboxProps } from "react-aria-components";
@@ -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,2 @@
1
+ export { default } from "./CheckboxGroup";
2
+ export type { CheckboxGroupProps } from "./CheckboxGroup";
@@ -1,3 +1,2 @@
1
1
  import { FormProps as ReactAriaFormProps } from "react-aria-components";
2
- export type FormProps = ReactAriaFormProps;
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 "./Form";
2
+ export type { FormProps } from "react-aria-components";
@@ -0,0 +1,3 @@
1
+ export default function SvgCheckIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgCheckIcon";
@@ -0,0 +1,3 @@
1
+ export default function SvgDashIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgDashIcon";
@@ -0,0 +1,3 @@
1
+ export default function SvgTooltipArrowUp({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgTooltipArrowUp";
@@ -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;
@@ -2,18 +2,23 @@ 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";
14
18
  export { default as SvgChevronDownIcon } from "./Icons/SvgChevronDownIcon";
15
19
  export { default as SvgCloseIcon } from "./Icons/SvgCloseIcon";
16
20
  export { default as SvgInfoIcon } from "./Icons/SvgInfoIcon";
21
+ export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
17
22
  export { default as Tag } from "./Tag";
18
23
  export { default as TagGroup } from "./TagGroup";
19
24
  export { default as TagList } from "./TagList";