@bcgov/design-system-react-components 0.2.2-pr486 → 0.2.2-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.
@@ -1,2 +1,3 @@
1
1
  import { FormProps as ReactAriaFormProps } from "react-aria-components";
2
- export default function Form({ ...props }: ReactAriaFormProps): import("react/jsx-runtime").JSX.Element;
2
+ export type FormProps = ReactAriaFormProps;
3
+ export default function Form({ ...props }: FormProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  export { default } from "./Form";
2
- export type { FormProps } from "react-aria-components";
2
+ export type { FormProps } from "./Form";
@@ -1,6 +1,7 @@
1
1
  import { SwitchProps as ReactAriaSwitchProps } from "react-aria-components";
2
2
  import "./Switch.css";
3
3
  export interface SwitchProps extends ReactAriaSwitchProps {
4
+ children?: React.ReactNode;
4
5
  labelPosition?: "left" | "right";
5
6
  }
6
7
  export default function Switch({ labelPosition, children, ...props }: SwitchProps): import("react/jsx-runtime").JSX.Element;
@@ -18,7 +18,6 @@ export { default as SvgChevronUpIcon } from "./Icons/SvgChevronUpIcon";
18
18
  export { default as SvgChevronDownIcon } from "./Icons/SvgChevronDownIcon";
19
19
  export { default as SvgCloseIcon } from "./Icons/SvgCloseIcon";
20
20
  export { default as SvgInfoIcon } from "./Icons/SvgInfoIcon";
21
- export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
22
21
  export { default as Tag } from "./Tag";
23
22
  export { default as TagGroup } from "./TagGroup";
24
23
  export { default as TagList } from "./TagList";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ButtonProps as ButtonProps$1, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, FormProps, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, Key, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextFieldProps as TextFieldProps$1, SwitchProps as SwitchProps$1, TooltipProps } from 'react-aria-components';
2
+ import { ButtonProps as ButtonProps$1, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, FormProps as FormProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, Key, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextFieldProps as TextFieldProps$1, SwitchProps as SwitchProps$1, TooltipProps } from 'react-aria-components';
3
3
  export { TooltipTrigger } from 'react-aria-components';
4
4
  import { PropsWithChildren } from 'react';
5
5
 
@@ -144,6 +144,7 @@ interface FooterProps {
144
144
  */
145
145
  declare function Footer({ children, acknowledgement, logo, contact, links, copyright, hideAcknowledgement, hideLogoAndLinks, hideCopyright, }: React.PropsWithChildren<FooterProps>): react_jsx_runtime.JSX.Element;
146
146
 
147
+ type FormProps = FormProps$1;
147
148
  declare function Form({ ...props }: FormProps): react_jsx_runtime.JSX.Element;
148
149
 
149
150
  interface ListBoxItemProps extends ListBoxItemProps$1 {
@@ -224,10 +225,6 @@ declare function SvgInfoIcon({ id }: {
224
225
  id?: string | undefined;
225
226
  }): react_jsx_runtime.JSX.Element;
226
227
 
227
- declare function SvgTooltipArrowUp({ id }: {
228
- id?: string | undefined;
229
- }): react_jsx_runtime.JSX.Element;
230
-
231
228
  interface TagProps extends TagProps$1 {
232
229
  /**
233
230
  * Icon that appears to the left of the `textValue` field
@@ -283,10 +280,11 @@ interface TextFieldProps extends TextFieldProps$1 {
283
280
  declare function TextField({ size, label, description, errorMessage, iconLeft, iconRight, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
284
281
 
285
282
  interface SwitchProps extends SwitchProps$1 {
283
+ children?: React.ReactNode;
286
284
  labelPosition?: "left" | "right";
287
285
  }
288
286
  declare function Switch({ labelPosition, children, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
289
287
 
290
288
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
291
289
 
292
- export { Button, ButtonGroup, Checkbox, CheckboxGroup, Footer, FooterLinks, Form, Header, InlineAlert, Select, SvgBcLogo, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgTooltipArrowUp, Switch, Tag, TagGroup, TagList, TextArea, TextField, Tooltip };
290
+ export { Button, ButtonGroup, Checkbox, CheckboxGroup, Footer, FooterLinks, Form, Header, InlineAlert, Select, SvgBcLogo, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, Switch, 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.2.2-pr486",
3
+ "version": "0.2.2-rc1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",
@@ -1,3 +0,0 @@
1
- export default function SvgTooltipArrowUp({ id }: {
2
- id?: string | undefined;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from "./SvgTooltipArrowUp";
@@ -1,3 +0,0 @@
1
- export default function SvgTooltipArrowUp({ id }: {
2
- id?: string | undefined;
3
- }): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export { default } from "./SvgTooltipArrowUp";