@bcgov/design-system-react-components 0.5.0-pr510 → 0.5.0-pr520

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.
@@ -12,9 +12,7 @@ export { default as Dialog, DialogTrigger } from "./Dialog";
12
12
  export { default as Footer, FooterLinks } from "./Footer";
13
13
  export { default as Form } from "./Form";
14
14
  export { default as Header } from "./Header";
15
- export { default as Heading } from "./Heading";
16
15
  export { default as InlineAlert } from "./InlineAlert";
17
- export { default as Link } from "./Link";
18
16
  export { default as Modal } from "./Modal";
19
17
  export { default as Radio } from "./Radio";
20
18
  export { default as RadioGroup } from "./RadioGroup";
@@ -35,7 +33,6 @@ export { default as SvgTooltipArrowUp } from "./Icons/SvgTooltipArrowUp";
35
33
  export { default as Tag } from "./Tag";
36
34
  export { default as TagGroup } from "./TagGroup";
37
35
  export { default as TagList } from "./TagList";
38
- export { default as Text } from "./Text";
39
36
  export { default as TextArea } from "./TextArea";
40
37
  export { default as TextField } from "./TextField";
41
38
  export { default as Switch } from "./Switch";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { DisclosureProps, DisclosureGroupProps, DialogProps as DialogProps$1, ButtonProps as ButtonProps$1, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, FormProps, HeadingProps as HeadingProps$1, LinkProps as LinkProps$1, ModalOverlayProps, RadioProps, RadioGroupProps as RadioGroupProps$1, SelectProps as SelectProps$1, ListBoxItemProps as ListBoxItemProps$1, Key, TagProps as TagProps$1, TagGroupProps as TagGroupProps$1, TagListProps as TagListProps$1, TextProps as TextProps$1, TextFieldProps as TextFieldProps$1, SwitchProps as SwitchProps$1, TooltipProps } from 'react-aria-components';
2
+ import { DisclosureProps, DisclosureGroupProps, DialogProps as DialogProps$1, ButtonProps as ButtonProps$1, CheckboxProps, CheckboxGroupProps as CheckboxGroupProps$1, ValidationResult, FormProps, ModalOverlayProps, RadioProps, RadioGroupProps as RadioGroupProps$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 { DialogTrigger, TooltipTrigger } from 'react-aria-components';
4
4
  import { PropsWithChildren } from 'react';
5
5
 
@@ -179,12 +179,6 @@ interface HeaderProps {
179
179
  }
180
180
  declare function Header({ children, logoLinkElement, logoImage, skipLinks, title, titleElement, }: PropsWithChildren<HeaderProps>): react_jsx_runtime.JSX.Element;
181
181
 
182
- interface HeadingProps extends HeadingProps$1 {
183
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
184
- isUnstyled?: boolean;
185
- }
186
- declare function Heading({ color, isUnstyled, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
187
-
188
182
  interface InlineAlertProps extends React.PropsWithChildren {
189
183
  variant?: "info" | "success" | "warning" | "danger";
190
184
  title?: string;
@@ -197,19 +191,6 @@ interface InlineAlertProps extends React.PropsWithChildren {
197
191
  }
198
192
  declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, buttons, children, onClose, ...props }: InlineAlertProps): react_jsx_runtime.JSX.Element;
199
193
 
200
- interface LinkProps extends LinkProps$1 {
201
- children?: React.ReactNode;
202
- size?: "small" | "medium" | "large";
203
- isButton?: boolean;
204
- buttonVariant?: "primary" | "secondary" | "tertiary";
205
- ariaLabel?: string | undefined;
206
- danger?: boolean;
207
- isUnstyled?: boolean;
208
- iconLeft?: React.ReactElement;
209
- iconRight?: React.ReactElement;
210
- }
211
- declare function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): react_jsx_runtime.JSX.Element;
212
-
213
194
  declare function Modal({ children, ...props }: ModalOverlayProps): react_jsx_runtime.JSX.Element;
214
195
 
215
196
  declare function Radio({ value, children, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
@@ -360,13 +341,6 @@ interface TagListProps<T> extends Pick<TagListProps$1<T>, "children" | "renderEm
360
341
  }
361
342
  declare function TagList<T extends object>({ items, orientation, renderEmptyState, ...props }: TagListProps<T>): react_jsx_runtime.JSX.Element;
362
343
 
363
- interface TextProps extends TextProps$1 {
364
- size?: "small" | "medium" | "large";
365
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
366
- isUnstyled?: boolean;
367
- }
368
- declare function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): react_jsx_runtime.JSX.Element;
369
-
370
344
  interface TextAreaProps extends TextFieldProps$1 {
371
345
  label?: string;
372
346
  description?: string;
@@ -391,4 +365,4 @@ declare function Switch({ labelPosition, children, ...props }: SwitchProps): rea
391
365
 
392
366
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
393
367
 
394
- export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Callout, Checkbox, CheckboxGroup, Dialog, Footer, FooterLinks, Form, Header, Heading, InlineAlert, Link, Modal, Radio, RadioGroup, Select, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgTooltipArrowUp, Switch, Tag, TagGroup, TagList, Text, TextArea, TextField, Tooltip };
368
+ export { Accordion, AccordionGroup, AlertBanner, AlertDialog, Button, ButtonGroup, Callout, Checkbox, CheckboxGroup, Dialog, Footer, FooterLinks, Form, Header, InlineAlert, Modal, Radio, RadioGroup, Select, SvgBcLogo, SvgBcOutlineIcon, SvgBetaIcon, SvgCheckCircleIcon, SvgCheckIcon, SvgChevronDownIcon, SvgChevronUpIcon, SvgCloseIcon, SvgDashIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, SvgTooltipArrowUp, 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.5.0-pr510",
3
+ "version": "0.5.0-pr520",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",
@@ -1,7 +0,0 @@
1
- import { HeadingProps as ReactAriaHeadingProps } from "react-aria-components";
2
- import "./Heading.css";
3
- export interface HeadingProps extends ReactAriaHeadingProps {
4
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
5
- isUnstyled?: boolean;
6
- }
7
- export default function Heading({ color, isUnstyled, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Heading";
2
- export type { HeadingProps } from "./Heading";
@@ -1,15 +0,0 @@
1
- import { LinkProps as ReactAriaLinkProps } from "react-aria-components";
2
- import "./Link.css";
3
- import "../Button/Button.css";
4
- export interface LinkProps extends ReactAriaLinkProps {
5
- children?: React.ReactNode;
6
- size?: "small" | "medium" | "large";
7
- isButton?: boolean;
8
- buttonVariant?: "primary" | "secondary" | "tertiary";
9
- ariaLabel?: string | undefined;
10
- danger?: boolean;
11
- isUnstyled?: boolean;
12
- iconLeft?: React.ReactElement;
13
- iconRight?: React.ReactElement;
14
- }
15
- export default function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Link";
2
- export type { LinkProps } from "./Link";
@@ -1,8 +0,0 @@
1
- import { TextProps as ReactAriaTextProps } from "react-aria-components";
2
- import "./Text.css";
3
- export interface TextProps extends ReactAriaTextProps {
4
- size?: "small" | "medium" | "large";
5
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
6
- isUnstyled?: boolean;
7
- }
8
- export default function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Text";
2
- export type { TextProps } from "./Text";
@@ -1,7 +0,0 @@
1
- import { HeadingProps as ReactAriaHeadingProps } from "react-aria-components";
2
- import "./Heading.css";
3
- export interface HeadingProps extends ReactAriaHeadingProps {
4
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
5
- isUnstyled?: boolean;
6
- }
7
- export default function Heading({ color, isUnstyled, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Heading";
2
- export type { HeadingProps } from "./Heading";
@@ -1,15 +0,0 @@
1
- import { LinkProps as ReactAriaLinkProps } from "react-aria-components";
2
- import "./Link.css";
3
- import "../Button/Button.css";
4
- export interface LinkProps extends ReactAriaLinkProps {
5
- children?: React.ReactNode;
6
- size?: "small" | "medium" | "large";
7
- isButton?: boolean;
8
- buttonVariant?: "primary" | "secondary" | "tertiary";
9
- ariaLabel?: string | undefined;
10
- danger?: boolean;
11
- isUnstyled?: boolean;
12
- iconLeft?: React.ReactElement;
13
- iconRight?: React.ReactElement;
14
- }
15
- export default function Link({ children, size, danger, isButton, buttonVariant, isUnstyled, iconLeft, iconRight, ariaLabel, ...props }: LinkProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Link";
2
- export type { LinkProps } from "./Link";
@@ -1,8 +0,0 @@
1
- import { TextProps as ReactAriaTextProps } from "react-aria-components";
2
- import "./Text.css";
3
- export interface TextProps extends ReactAriaTextProps {
4
- size?: "small" | "medium" | "large";
5
- color?: "primary" | "primaryInvert" | "secondary" | "secondaryInvert" | "disabled" | "danger";
6
- isUnstyled?: boolean;
7
- }
8
- export default function Text({ elementType, size, color, isUnstyled, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default } from "./Text";
2
- export type { TextProps } from "./Text";