@bcgov/design-system-react-components 0.0.8 → 0.0.9-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.
@@ -0,0 +1,3 @@
1
+ export default function SvgExclamationIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): 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;
@@ -0,0 +1,2 @@
1
+ export { default } from "./TextArea";
2
+ export type { TextAreaProps } from "./TextArea";
@@ -7,5 +7,6 @@ export { default as SvgBcLogo } from "./SvgBcLogo";
7
7
  export { default as Tag } from "./Tag";
8
8
  export { default as TagGroup } from "./TagGroup";
9
9
  export { default as TagList } from "./TagList";
10
+ export { default as TextArea } from "./TextArea";
10
11
  export { default as TextField } from "./TextField";
11
12
  export { default as Tooltip, TooltipTrigger } from "./Tooltip";
package/dist/index.d.ts CHANGED
@@ -190,6 +190,13 @@ interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEm
190
190
  }
191
191
  declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react_jsx_runtime.JSX.Element;
192
192
 
193
+ interface TextAreaProps extends TextFieldProps$1 {
194
+ label?: string;
195
+ description?: string;
196
+ errorMessage?: string | ((validation: ValidationResult) => string);
197
+ }
198
+ declare function TextArea({ label, description, errorMessage, maxLength, onChange, value, ...props }: TextAreaProps): react_jsx_runtime.JSX.Element;
199
+
193
200
  interface TextFieldProps extends TextFieldProps$1 {
194
201
  size?: "medium" | "small";
195
202
  label?: string;
@@ -202,4 +209,4 @@ declare function TextField({ size, label, description, errorMessage, iconLeft, i
202
209
 
203
210
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
204
211
 
205
- export { Button, Footer, FooterLinks, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, TextField, Tooltip };
212
+ export { Button, Footer, FooterLinks, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, TextArea, TextField, Tooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov/design-system-react-components",
3
- "version": "0.0.8",
3
+ "version": "0.0.9-rc1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",
@@ -37,14 +37,14 @@
37
37
  "@rollup/plugin-json": "6.1.0",
38
38
  "@rollup/plugin-node-resolve": "15.2.3",
39
39
  "@rollup/plugin-typescript": "11.1.6",
40
- "@storybook/addon-a11y": "8.2.3",
41
- "@storybook/addon-essentials": "8.2.3",
42
- "@storybook/addon-interactions": "8.2.3",
43
- "@storybook/addon-links": "8.2.3",
44
- "@storybook/blocks": "8.2.3",
45
- "@storybook/react": "8.2.3",
46
- "@storybook/react-vite": "8.2.3",
47
- "@storybook/test": "8.2.3",
40
+ "@storybook/addon-a11y": "8.2.5",
41
+ "@storybook/addon-essentials": "8.2.5",
42
+ "@storybook/addon-interactions": "8.2.5",
43
+ "@storybook/addon-links": "8.2.5",
44
+ "@storybook/blocks": "8.2.5",
45
+ "@storybook/react": "8.2.5",
46
+ "@storybook/react-vite": "8.2.5",
47
+ "@storybook/test": "8.2.5",
48
48
  "@storybook/test-runner": "0.19.1",
49
49
  "@testing-library/jest-dom": "6.4.5",
50
50
  "@testing-library/react": "16.0.0",
@@ -66,7 +66,7 @@
66
66
  "rollup-plugin-dts": "6.1.1",
67
67
  "rollup-plugin-peer-deps-external": "2.2.4",
68
68
  "rollup-plugin-postcss": "4.0.2",
69
- "storybook": "8.2.3",
69
+ "storybook": "8.2.5",
70
70
  "ts-jest": "29.1.4",
71
71
  "ts-node": "10.9.2",
72
72
  "tslib": "2.6.2",