@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.
- package/README.md +27 -10
- package/dist/cjs/index.cjs +75 -17
- package/dist/cjs/index.cjs.map +1 -1
- 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/TextArea/TextArea.d.ts +8 -0
- package/dist/cjs/types/components/TextArea/index.d.ts +2 -0
- package/dist/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +75 -18
- package/dist/esm/index.js.map +1 -1
- 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/TextArea/TextArea.d.ts +8 -0
- package/dist/esm/types/components/TextArea/index.d.ts +2 -0
- package/dist/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +8 -1
- package/package.json +10 -10
|
@@ -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;
|
|
@@ -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.
|
|
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.
|
|
41
|
-
"@storybook/addon-essentials": "8.2.
|
|
42
|
-
"@storybook/addon-interactions": "8.2.
|
|
43
|
-
"@storybook/addon-links": "8.2.
|
|
44
|
-
"@storybook/blocks": "8.2.
|
|
45
|
-
"@storybook/react": "8.2.
|
|
46
|
-
"@storybook/react-vite": "8.2.
|
|
47
|
-
"@storybook/test": "8.2.
|
|
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.
|
|
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",
|