@bcgov/design-system-react-components 0.1.0 → 0.1.1-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.
- package/README.md +28 -0
- package/dist/cjs/index.cjs +9996 -9637
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/components/Select/ListBoxItem.d.ts +15 -0
- package/dist/cjs/types/components/SvgExclamationIcon/SvgExclamationIcon.d.ts +3 -0
- package/dist/cjs/types/components/SvgExclamationIcon/index.d.ts +1 -0
- package/dist/cjs/types/components/Tag/Tag.d.ts +0 -1
- package/dist/cjs/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/cjs/types/components/TextArea/index.d.ts +2 -0
- package/dist/cjs/types/components/TextField/TextField.d.ts +0 -1
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +9998 -9640
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Select/ListBoxItem.d.ts +15 -0
- package/dist/esm/types/components/SvgExclamationIcon/SvgExclamationIcon.d.ts +3 -0
- package/dist/esm/types/components/SvgExclamationIcon/index.d.ts +1 -0
- package/dist/esm/types/components/Tag/Tag.d.ts +0 -1
- package/dist/esm/types/components/TextArea/TextArea.d.ts +8 -0
- package/dist/esm/types/components/TextArea/index.d.ts +2 -0
- package/dist/esm/types/components/TextField/TextField.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +8 -2
- package/package.json +23 -23
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ListBoxItemProps as ReactAriaListBoxItemProps } from "react-aria-components";
|
|
2
|
+
import "./ListBoxItem.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 default function ListBoxItem({ id, description, href, label, iconLeft, iconRight, isDestructive, }: ListBoxItemProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./SvgExclamationIcon";
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -8,5 +8,6 @@ export { default as SvgBcLogo } from "./SvgBcLogo";
|
|
|
8
8
|
export { default as Tag } from "./Tag";
|
|
9
9
|
export { default as TagGroup } from "./TagGroup";
|
|
10
10
|
export { default as TagList } from "./TagList";
|
|
11
|
+
export { default as TextArea } from "./TextArea";
|
|
11
12
|
export { default as TextField } from "./TextField";
|
|
12
13
|
export { default as Tooltip, TooltipTrigger } from "./Tooltip";
|