@bcgov/design-system-react-components 0.5.2-pr587 → 0.5.2-pr604
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 +31 -1
- package/dist/cjs/index.cjs +787 -708
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +788 -709
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +52 -39
- package/dist/cjs/types/components/Accordion/Accordion.d.ts +0 -6
- package/dist/cjs/types/components/Accordion/index.d.ts +0 -2
- package/dist/cjs/types/components/AccordionGroup/AccordionGroup.d.ts +0 -7
- package/dist/cjs/types/components/AccordionGroup/index.d.ts +0 -2
- package/dist/cjs/types/components/AlertBanner/AlertBanner.d.ts +0 -10
- package/dist/cjs/types/components/AlertBanner/index.d.ts +0 -2
- package/dist/cjs/types/components/AlertDialog/AlertDialog.d.ts +0 -11
- package/dist/cjs/types/components/AlertDialog/AlertDialog.test.d.ts +0 -1
- package/dist/cjs/types/components/AlertDialog/index.d.ts +0 -2
- package/dist/cjs/types/components/Button/Button.d.ts +0 -21
- package/dist/cjs/types/components/Button/Button.test.d.ts +0 -1
- package/dist/cjs/types/components/Button/index.d.ts +0 -2
- package/dist/cjs/types/components/ButtonGroup/ButtonGroup.d.ts +0 -7
- package/dist/cjs/types/components/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/cjs/types/components/ButtonGroup/index.d.ts +0 -2
- package/dist/cjs/types/components/Callout/Callout.d.ts +0 -10
- package/dist/cjs/types/components/Callout/index.d.ts +0 -2
- package/dist/cjs/types/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/cjs/types/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/cjs/types/components/Checkbox/index.d.ts +0 -2
- package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.d.ts +0 -11
- package/dist/cjs/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +0 -1
- package/dist/cjs/types/components/CheckboxGroup/index.d.ts +0 -2
- package/dist/cjs/types/components/Dialog/Dialog.d.ts +0 -11
- package/dist/cjs/types/components/Dialog/Dialog.test.d.ts +0 -1
- package/dist/cjs/types/components/Dialog/index.d.ts +0 -2
- package/dist/cjs/types/components/Footer/Footer.d.ts +0 -62
- package/dist/cjs/types/components/Footer/Footer.test.d.ts +0 -1
- package/dist/cjs/types/components/Footer/index.d.ts +0 -2
- package/dist/cjs/types/components/Form/Form.d.ts +0 -2
- package/dist/cjs/types/components/Form/Form.test.d.ts +0 -1
- package/dist/cjs/types/components/Form/index.d.ts +0 -2
- package/dist/cjs/types/components/Header/Header.d.ts +0 -29
- package/dist/cjs/types/components/Header/Header.test.d.ts +0 -1
- package/dist/cjs/types/components/Header/index.d.ts +0 -2
- package/dist/cjs/types/components/Heading/Heading.d.ts +0 -7
- package/dist/cjs/types/components/Heading/index.d.ts +0 -2
- package/dist/cjs/types/components/Icons/SvgBcLogo/SvgBcLogo.d.ts +0 -4
- package/dist/cjs/types/components/Icons/SvgBcLogo/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgBcOutlineIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgBetaIcon/SvgBetaIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgBetaIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgCheckCircleIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgCheckIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgChevronDownIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgChevronUpIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgCloseIcon/SvgCloseIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgCloseIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgDashIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgExclamationCircleIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgExclamationIcon/SvgExclamationIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgExclamationIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgInfoIcon/SvgInfoIcon.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgInfoIcon/index.d.ts +0 -1
- package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +0 -3
- package/dist/cjs/types/components/Icons/SvgTooltipArrowUp/index.d.ts +0 -1
- package/dist/cjs/types/components/InlineAlert/InlineAlert.d.ts +0 -12
- package/dist/cjs/types/components/InlineAlert/InlineAlert.test.d.ts +0 -1
- package/dist/cjs/types/components/InlineAlert/index.d.ts +0 -2
- package/dist/cjs/types/components/Link/Link.d.ts +0 -15
- package/dist/cjs/types/components/Link/index.d.ts +0 -2
- package/dist/cjs/types/components/Modal/Modal.d.ts +0 -3
- package/dist/cjs/types/components/Modal/Modal.test.d.ts +0 -1
- package/dist/cjs/types/components/Modal/index.d.ts +0 -2
- package/dist/cjs/types/components/Radio/Radio.d.ts +0 -3
- package/dist/cjs/types/components/Radio/Radio.test.d.ts +0 -1
- package/dist/cjs/types/components/Radio/index.d.ts +0 -2
- package/dist/cjs/types/components/RadioGroup/RadioGroup.d.ts +0 -12
- package/dist/cjs/types/components/RadioGroup/RadioGroup.test.d.ts +0 -1
- package/dist/cjs/types/components/RadioGroup/index.d.ts +0 -2
- package/dist/cjs/types/components/Select/Select.d.ts +0 -39
- package/dist/cjs/types/components/Select/index.d.ts +0 -2
- package/dist/cjs/types/components/Switch/Switch.d.ts +0 -6
- package/dist/cjs/types/components/Switch/Switch.test.d.ts +0 -1
- package/dist/cjs/types/components/Switch/index.d.ts +0 -2
- package/dist/cjs/types/components/Tag/Tag.d.ts +0 -21
- package/dist/cjs/types/components/Tag/index.d.ts +0 -2
- package/dist/cjs/types/components/TagGroup/TagGroup.d.ts +0 -17
- package/dist/cjs/types/components/TagGroup/index.d.ts +0 -2
- package/dist/cjs/types/components/TagList/TagList.d.ts +0 -11
- package/dist/cjs/types/components/TagList/index.d.ts +0 -2
- package/dist/cjs/types/components/Text/Text.d.ts +0 -8
- package/dist/cjs/types/components/Text/index.d.ts +0 -2
- package/dist/cjs/types/components/TextArea/TextArea.d.ts +0 -8
- package/dist/cjs/types/components/TextArea/index.d.ts +0 -2
- package/dist/cjs/types/components/TextField/TextField.d.ts +0 -11
- package/dist/cjs/types/components/TextField/index.d.ts +0 -2
- package/dist/cjs/types/components/Tooltip/Tooltip.d.ts +0 -5
- package/dist/cjs/types/components/Tooltip/index.d.ts +0 -2
- package/dist/cjs/types/components/index.d.ts +0 -42
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/esm/types/components/Accordion/Accordion.d.ts +0 -6
- package/dist/esm/types/components/Accordion/index.d.ts +0 -2
- package/dist/esm/types/components/AccordionGroup/AccordionGroup.d.ts +0 -7
- package/dist/esm/types/components/AccordionGroup/index.d.ts +0 -2
- package/dist/esm/types/components/AlertBanner/AlertBanner.d.ts +0 -10
- package/dist/esm/types/components/AlertBanner/index.d.ts +0 -2
- package/dist/esm/types/components/AlertDialog/AlertDialog.d.ts +0 -11
- package/dist/esm/types/components/AlertDialog/AlertDialog.test.d.ts +0 -1
- package/dist/esm/types/components/AlertDialog/index.d.ts +0 -2
- package/dist/esm/types/components/Button/Button.d.ts +0 -21
- package/dist/esm/types/components/Button/Button.test.d.ts +0 -1
- package/dist/esm/types/components/Button/index.d.ts +0 -2
- package/dist/esm/types/components/ButtonGroup/ButtonGroup.d.ts +0 -7
- package/dist/esm/types/components/ButtonGroup/ButtonGroup.test.d.ts +0 -1
- package/dist/esm/types/components/ButtonGroup/index.d.ts +0 -2
- package/dist/esm/types/components/Callout/Callout.d.ts +0 -10
- package/dist/esm/types/components/Callout/index.d.ts +0 -2
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +0 -3
- package/dist/esm/types/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/esm/types/components/Checkbox/index.d.ts +0 -2
- package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.d.ts +0 -11
- package/dist/esm/types/components/CheckboxGroup/CheckboxGroup.test.d.ts +0 -1
- package/dist/esm/types/components/CheckboxGroup/index.d.ts +0 -2
- package/dist/esm/types/components/Dialog/Dialog.d.ts +0 -11
- package/dist/esm/types/components/Dialog/Dialog.test.d.ts +0 -1
- package/dist/esm/types/components/Dialog/index.d.ts +0 -2
- package/dist/esm/types/components/Footer/Footer.d.ts +0 -62
- package/dist/esm/types/components/Footer/Footer.test.d.ts +0 -1
- package/dist/esm/types/components/Footer/index.d.ts +0 -2
- package/dist/esm/types/components/Form/Form.d.ts +0 -2
- package/dist/esm/types/components/Form/Form.test.d.ts +0 -1
- package/dist/esm/types/components/Form/index.d.ts +0 -2
- package/dist/esm/types/components/Header/Header.d.ts +0 -29
- package/dist/esm/types/components/Header/Header.test.d.ts +0 -1
- package/dist/esm/types/components/Header/index.d.ts +0 -2
- package/dist/esm/types/components/Heading/Heading.d.ts +0 -7
- package/dist/esm/types/components/Heading/index.d.ts +0 -2
- package/dist/esm/types/components/Icons/SvgBcLogo/SvgBcLogo.d.ts +0 -4
- package/dist/esm/types/components/Icons/SvgBcLogo/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgBcOutlineIcon/SvgBcOutlineIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgBcOutlineIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgBetaIcon/SvgBetaIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgBetaIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgCheckCircleIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgCheckIcon/SvgCheckIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgCheckIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgChevronDownIcon/SvgChevronDownIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgChevronDownIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgChevronUpIcon/SvgChevronUpIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgChevronUpIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgCloseIcon/SvgCloseIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgCloseIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgDashIcon/SvgDashIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgDashIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgExclamationCircleIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgExclamationIcon/SvgExclamationIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgExclamationIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgInfoIcon/SvgInfoIcon.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgInfoIcon/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/SvgTooltipArrowUp/SvgTooltipArrowUp.d.ts +0 -3
- package/dist/esm/types/components/Icons/SvgTooltipArrowUp/index.d.ts +0 -1
- package/dist/esm/types/components/InlineAlert/InlineAlert.d.ts +0 -12
- package/dist/esm/types/components/InlineAlert/InlineAlert.test.d.ts +0 -1
- package/dist/esm/types/components/InlineAlert/index.d.ts +0 -2
- package/dist/esm/types/components/Link/Link.d.ts +0 -15
- package/dist/esm/types/components/Link/index.d.ts +0 -2
- package/dist/esm/types/components/Modal/Modal.d.ts +0 -3
- package/dist/esm/types/components/Modal/Modal.test.d.ts +0 -1
- package/dist/esm/types/components/Modal/index.d.ts +0 -2
- package/dist/esm/types/components/Radio/Radio.d.ts +0 -3
- package/dist/esm/types/components/Radio/Radio.test.d.ts +0 -1
- package/dist/esm/types/components/Radio/index.d.ts +0 -2
- package/dist/esm/types/components/RadioGroup/RadioGroup.d.ts +0 -12
- package/dist/esm/types/components/RadioGroup/RadioGroup.test.d.ts +0 -1
- package/dist/esm/types/components/RadioGroup/index.d.ts +0 -2
- package/dist/esm/types/components/Select/Select.d.ts +0 -39
- package/dist/esm/types/components/Select/index.d.ts +0 -2
- package/dist/esm/types/components/Switch/Switch.d.ts +0 -6
- package/dist/esm/types/components/Switch/Switch.test.d.ts +0 -1
- package/dist/esm/types/components/Switch/index.d.ts +0 -2
- package/dist/esm/types/components/Tag/Tag.d.ts +0 -21
- package/dist/esm/types/components/Tag/index.d.ts +0 -2
- package/dist/esm/types/components/TagGroup/TagGroup.d.ts +0 -17
- package/dist/esm/types/components/TagGroup/index.d.ts +0 -2
- package/dist/esm/types/components/TagList/TagList.d.ts +0 -11
- package/dist/esm/types/components/TagList/index.d.ts +0 -2
- package/dist/esm/types/components/Text/Text.d.ts +0 -8
- package/dist/esm/types/components/Text/index.d.ts +0 -2
- package/dist/esm/types/components/TextArea/TextArea.d.ts +0 -8
- package/dist/esm/types/components/TextArea/index.d.ts +0 -2
- package/dist/esm/types/components/TextField/TextField.d.ts +0 -11
- package/dist/esm/types/components/TextField/index.d.ts +0 -2
- package/dist/esm/types/components/Tooltip/Tooltip.d.ts +0 -5
- package/dist/esm/types/components/Tooltip/index.d.ts +0 -2
- package/dist/esm/types/components/index.d.ts +0 -42
- package/dist/esm/types/index.d.ts +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgCheckIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgChevronDownIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgChevronUpIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgCloseIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgDashIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgExclamationCircleIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgExclamationIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgInfoIcon";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./SvgTooltipArrowUp";
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "./InlineAlert.css";
|
|
2
|
-
export interface InlineAlertProps extends React.PropsWithChildren {
|
|
3
|
-
variant?: "info" | "success" | "warning" | "danger";
|
|
4
|
-
title?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
buttons?: React.ReactNode;
|
|
7
|
-
isCloseable?: boolean;
|
|
8
|
-
isIconHidden?: boolean;
|
|
9
|
-
role?: React.AriaRole | undefined;
|
|
10
|
-
onClose?: () => void;
|
|
11
|
-
}
|
|
12
|
-
export default function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, buttons, children, onClose, ...props }: InlineAlertProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LinkProps as ReactAriaLinkProps } from "react-aria-components";
|
|
2
|
-
import "./Link.css";
|
|
3
|
-
import "../Button/Button.css";
|
|
4
|
-
export interface LinkProps extends ReactAriaLinkProps {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
size?: "small" | "medium" | "large";
|
|
7
|
-
isButton?: boolean;
|
|
8
|
-
buttonVariant?: "primary" | "secondary" | "tertiary";
|
|
9
|
-
ariaLabel?: string | undefined;
|
|
10
|
-
danger?: boolean;
|
|
11
|
-
isUnstyled?: boolean;
|
|
12
|
-
iconLeft?: React.ReactElement;
|
|
13
|
-
iconRight?: React.ReactElement;
|
|
14
|
-
}
|
|
15
|
-
export default function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Key, ListBoxItemProps as ReactAriaListBoxItemProps, SelectProps as ReactAriaSelectProps, ValidationResult } from "react-aria-components";
|
|
2
|
-
import "./Select.css";
|
|
3
|
-
export interface ListBoxItemProps extends ReactAriaListBoxItemProps {
|
|
4
|
-
/** Text label for the option. Provide an `id` if this is not unique. */
|
|
5
|
-
label: string;
|
|
6
|
-
/** Descriptive text that appears below the option's label */
|
|
7
|
-
description?: string;
|
|
8
|
-
/** Marks an option visually with red text to indicate a destructive/dangerous option */
|
|
9
|
-
isDestructive?: boolean;
|
|
10
|
-
/** Left icon slot */
|
|
11
|
-
iconLeft?: React.ReactElement;
|
|
12
|
-
/** Right icon slot */
|
|
13
|
-
iconRight?: React.ReactElement;
|
|
14
|
-
}
|
|
15
|
-
export interface SelectionSectionProps {
|
|
16
|
-
id: Key;
|
|
17
|
-
/** Label for the section */
|
|
18
|
-
header?: string;
|
|
19
|
-
/** Flat list of options within the section */
|
|
20
|
-
items: ListBoxItemProps[];
|
|
21
|
-
}
|
|
22
|
-
export interface SelectProps<T extends object> extends ReactAriaSelectProps<T> {
|
|
23
|
-
/** Use `items` for a flat list of options */
|
|
24
|
-
items?: ListBoxItemProps[];
|
|
25
|
-
/** Use `sections` for a sectioned list with `items` options in each section */
|
|
26
|
-
sections?: SelectionSectionProps[];
|
|
27
|
-
/** Text label for the Select component */
|
|
28
|
-
label?: string;
|
|
29
|
-
/** Temporary text that occupies the select input when no option has been selected. */
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
/** Defaults to `medium` */
|
|
32
|
-
size?: "small" | "medium";
|
|
33
|
-
/** Description or helper text that renders below the select input */
|
|
34
|
-
description?: string;
|
|
35
|
-
/** Used for data validation and error handling */
|
|
36
|
-
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
37
|
-
}
|
|
38
|
-
/** Select displays a collapsible list of options and allows a user to select one of them. */
|
|
39
|
-
export default function Select<T extends object>({ items, sections, label, description, placeholder, size, errorMessage, ...props }: SelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SwitchProps as ReactAriaSwitchProps } from "react-aria-components";
|
|
2
|
-
import "./Switch.css";
|
|
3
|
-
export interface SwitchProps extends ReactAriaSwitchProps {
|
|
4
|
-
labelPosition?: "left" | "right";
|
|
5
|
-
}
|
|
6
|
-
export default function Switch({ labelPosition, children, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "@testing-library/jest-dom";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { TagProps as ReactAriaTagProps } from "react-aria-components";
|
|
2
|
-
import "./Tag.css";
|
|
3
|
-
export interface TagProps extends ReactAriaTagProps {
|
|
4
|
-
/**
|
|
5
|
-
* Icon that appears to the left of the `textValue` field
|
|
6
|
-
*/
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* Background color
|
|
10
|
-
*/
|
|
11
|
-
color?: "bc-blue" | "bc-gold" | "blue" | "dark" | "gray" | "grey" | "green" | "red" | "yellow";
|
|
12
|
-
/**
|
|
13
|
-
* tagStyle
|
|
14
|
-
*/
|
|
15
|
-
tagStyle?: "rectangular" | "circular";
|
|
16
|
-
/**
|
|
17
|
-
* size
|
|
18
|
-
*/
|
|
19
|
-
size?: "small" | "medium";
|
|
20
|
-
}
|
|
21
|
-
export default function Tag({ color, tagStyle, size, icon, id, textValue, }: TagProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TagGroupProps as ReactAriaTagGroupProps } from "react-aria-components";
|
|
2
|
-
import "./TagGroup.css";
|
|
3
|
-
export interface TagGroupProps extends ReactAriaTagGroupProps {
|
|
4
|
-
/**
|
|
5
|
-
* Labels the TagGroup, appears above the tags.
|
|
6
|
-
*/
|
|
7
|
-
label?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Extended description of the TagGroup, appears below the tags.
|
|
10
|
-
*/
|
|
11
|
-
description?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Error message, appears below the tags and below the optional description.
|
|
14
|
-
*/
|
|
15
|
-
errorMessage?: string;
|
|
16
|
-
}
|
|
17
|
-
export default function TagGroup({ children, label, description, errorMessage, ...props }: TagGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TagListProps as ReactAriaTagListProps } from "react-aria-components";
|
|
2
|
-
import { TagProps } from "../Tag";
|
|
3
|
-
import "./TagList.css";
|
|
4
|
-
export interface TagListProps<T> extends Pick<ReactAriaTagListProps<T>, "children" | "renderEmptyState"> {
|
|
5
|
-
items: TagProps[];
|
|
6
|
-
/**
|
|
7
|
-
* Used to set the `flex-direction` on the TagList.
|
|
8
|
-
*/
|
|
9
|
-
orientation?: "horizontal" | "vertical";
|
|
10
|
-
}
|
|
11
|
-
export default function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextProps as ReactAriaTextProps } from "react-aria-components";
|
|
2
|
-
import "./Text.css";
|
|
3
|
-
export interface TextProps extends ReactAriaTextProps {
|
|
4
|
-
size?: "small" | "medium" | "large";
|
|
5
|
-
color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
|
|
6
|
-
isUnstyled?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export default function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps as ReactAriaTextFieldProps, ValidationResult } from "react-aria-components";
|
|
2
|
-
import "./TextArea.css";
|
|
3
|
-
export interface TextAreaProps extends ReactAriaTextFieldProps {
|
|
4
|
-
label?: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
7
|
-
}
|
|
8
|
-
export default function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TextFieldProps as ReactAriaTextFieldProps, ValidationResult } from "react-aria-components";
|
|
2
|
-
import "./TextField.css";
|
|
3
|
-
export interface TextFieldProps extends ReactAriaTextFieldProps {
|
|
4
|
-
size?: "medium" | "small";
|
|
5
|
-
label?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
errorMessage?: string | ((validation: ValidationResult) => string);
|
|
8
|
-
iconLeft?: React.ReactElement;
|
|
9
|
-
iconRight?: React.ReactElement;
|
|
10
|
-
}
|
|
11
|
-
export default function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import "@bcgov/design-tokens/css/variables.css";
|
|
2
|
-
export { default as Accordion } from "./Accordion";
|
|
3
|
-
export { default as AccordionGroup } from "./AccordionGroup";
|
|
4
|
-
export { default as AlertBanner } from "./AlertBanner";
|
|
5
|
-
export { default as AlertDialog } from "./AlertDialog";
|
|
6
|
-
export { default as Button } from "./Button";
|
|
7
|
-
export { default as ButtonGroup } from "./ButtonGroup";
|
|
8
|
-
export { default as Callout } from "./Callout";
|
|
9
|
-
export { default as Checkbox } from "./Checkbox";
|
|
10
|
-
export { default as CheckboxGroup } from "./CheckboxGroup";
|
|
11
|
-
export { default as Dialog, DialogTrigger } from "./Dialog";
|
|
12
|
-
export { default as Footer, FooterLinks } from "./Footer";
|
|
13
|
-
export { default as Form } from "./Form";
|
|
14
|
-
export { default as Header } from "./Header";
|
|
15
|
-
export { default as Heading } from "./Heading";
|
|
16
|
-
export { default as InlineAlert } from "./InlineAlert";
|
|
17
|
-
export { default as Link } from "./Link";
|
|
18
|
-
export { default as Modal } from "./Modal";
|
|
19
|
-
export { default as Radio } from "./Radio";
|
|
20
|
-
export { default as RadioGroup } from "./RadioGroup";
|
|
21
|
-
export { default as Select } from "./Select";
|
|
22
|
-
export { default as SvgBcLogo } from "./Icons/SvgBcLogo";
|
|
23
|
-
export { default as SvgBcOutlineIcon } from "./Icons/SvgBcOutlineIcon";
|
|
24
|
-
export { default as SvgBetaIcon } from "./Icons/SvgBetaIcon";
|
|
25
|
-
export { default as SvgCheckIcon } from "./Icons/SvgCheckIcon";
|
|
26
|
-
export { default as SvgCheckCircleIcon } from "./Icons/SvgCheckCircleIcon";
|
|
27
|
-
export { default as SvgDashIcon } from "./Icons/SvgDashIcon";
|
|
28
|
-
export { default as SvgExclamationIcon } from "./Icons/SvgExclamationIcon";
|
|
29
|
-
export { default as SvgExclamationCircleIcon } from "./Icons/SvgExclamationCircleIcon";
|
|
30
|
-
export { default as SvgChevronUpIcon } from "./Icons/SvgChevronUpIcon";
|
|
31
|
-
export { default as SvgChevronDownIcon } from "./Icons/SvgChevronDownIcon";
|
|
32
|
-
export { default as SvgCloseIcon } from "./Icons/SvgCloseIcon";
|
|
33
|
-
export { default as SvgInfoIcon } from "./Icons/SvgInfoIcon";
|
|
34
|
-
export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
|
|
35
|
-
export { default as Tag } from "./Tag";
|
|
36
|
-
export { default as TagGroup } from "./TagGroup";
|
|
37
|
-
export { default as TagList } from "./TagList";
|
|
38
|
-
export { default as Text } from "./Text";
|
|
39
|
-
export { default as TextArea } from "./TextArea";
|
|
40
|
-
export { default as TextField } from "./TextField";
|
|
41
|
-
export { default as Switch } from "./Switch";
|
|
42
|
-
export { default as Tooltip, TooltipTrigger } from "./Tooltip";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./components";
|