@bcgov/design-system-react-components 0.0.9 → 0.0.10-rc2

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,4 @@
1
+ import { FormProps as ReactAriaFormProps } from "react-aria-components";
2
+ export interface FormProps extends ReactAriaFormProps {
3
+ }
4
+ export default function Form({ ...props }: FormProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./Form";
2
+ export type { FormProps } from "./Form";
@@ -2,11 +2,11 @@ import "@bcgov/design-tokens/css/variables.css";
2
2
  export { default as Button } from "./Button";
3
3
  export { default as Header } from "./Header";
4
4
  export { default as Footer, FooterLinks } from "./Footer";
5
+ export { default as Form } from "./Form";
5
6
  export { default as Select } from "./Select";
6
7
  export { default as SvgBcLogo } from "./SvgBcLogo";
7
8
  export { default as Tag } from "./Tag";
8
9
  export { default as TagGroup } from "./TagGroup";
9
10
  export { default as TagList } from "./TagList";
10
- export { default as TextArea } from "./TextArea";
11
11
  export { default as TextField } from "./TextField";
12
12
  export { default as Tooltip, TooltipTrigger } from "./Tooltip";
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { ButtonProps as ButtonProps$1, SelectProps as SelectProps$1, ValidationResult, ListBoxItemProps as ListBoxItemProps$1, Key, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextFieldProps as TextFieldProps$1, TooltipProps } from 'react-aria-components';
3
+ import { ButtonProps as ButtonProps$1, FormProps as FormProps$1, SelectProps as SelectProps$1, ValidationResult, ListBoxItemProps as ListBoxItemProps$1, Key, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextFieldProps as TextFieldProps$1, TooltipProps } from 'react-aria-components';
4
4
  export { TooltipTrigger } from 'react-aria-components';
5
5
  import React$1 from 'react';
6
6
 
@@ -114,6 +114,10 @@ interface FooterProps {
114
114
  */
115
115
  declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright, }: React$1.PropsWithChildren<FooterProps>): react_jsx_runtime.JSX.Element;
116
116
 
117
+ interface FormProps extends FormProps$1 {
118
+ }
119
+ declare function Form({ ...props }: FormProps): react_jsx_runtime.JSX.Element;
120
+
117
121
  interface ListBoxItemProps extends ListBoxItemProps$1 {
118
122
  /** Text label for the option. Provide an `id` if this is not unique. */
119
123
  label: string;
@@ -190,13 +194,6 @@ interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEm
190
194
  }
191
195
  declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react_jsx_runtime.JSX.Element;
192
196
 
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
-
200
197
  interface TextFieldProps extends TextFieldProps$1 {
201
198
  size?: "medium" | "small";
202
199
  label?: string;
@@ -209,4 +206,4 @@ declare function TextField({ size, label, description, errorMessage, iconLeft, i
209
206
 
210
207
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
211
208
 
212
- export { Button, Footer, FooterLinks, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, TextArea, TextField, Tooltip };
209
+ export { Button, Footer, FooterLinks, Form, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, TextField, Tooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov/design-system-react-components",
3
- "version": "0.0.9",
3
+ "version": "0.0.10-rc2",
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.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",
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",
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.5",
69
+ "storybook": "8.2.3",
70
70
  "ts-jest": "29.1.4",
71
71
  "ts-node": "10.9.2",
72
72
  "tslib": "2.6.2",
@@ -1,3 +0,0 @@
1
- export default function SvgExclamationIcon({ id }: {
2
- id?: string | undefined;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from "./SvgExclamationIcon";
@@ -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,2 +0,0 @@
1
- export { default } from "./TextArea";
2
- export type { TextAreaProps } from "./TextArea";
@@ -1,3 +0,0 @@
1
- export default function SvgExclamationIcon({ id }: {
2
- id?: string | undefined;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from "./SvgExclamationIcon";
@@ -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,2 +0,0 @@
1
- export { default } from "./TextArea";
2
- export type { TextAreaProps } from "./TextArea";