@bcgov/design-system-react-components 0.1.1-pr431 → 0.1.1-pr437

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.
Files changed (36) hide show
  1. package/dist/cjs/index.cjs +50 -7
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/types/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.d.ts +3 -0
  4. package/dist/cjs/types/components/Icons/SvgCheckCircleIcon/index.d.ts +1 -0
  5. package/dist/cjs/types/components/Icons/SvgCloseIcon/SvgCloseIcon.d.ts +3 -0
  6. package/dist/cjs/types/components/Icons/SvgCloseIcon/index.d.ts +1 -0
  7. package/dist/cjs/types/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.d.ts +3 -0
  8. package/dist/cjs/types/components/Icons/SvgExclamationCircleIcon/index.d.ts +1 -0
  9. package/dist/cjs/types/components/Icons/SvgInfoIcon/SvgInfoIcon.d.ts +3 -0
  10. package/dist/cjs/types/components/Icons/SvgInfoIcon/index.d.ts +1 -0
  11. package/dist/cjs/types/components/InlineAlert/InlineAlert.d.ts +12 -0
  12. package/dist/cjs/types/components/InlineAlert/index.d.ts +2 -0
  13. package/dist/cjs/types/components/index.d.ts +7 -1
  14. package/dist/esm/index.js +46 -9
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/components/Icons/SvgCheckCircleIcon/SvgCheckCircleIcon.d.ts +3 -0
  17. package/dist/esm/types/components/Icons/SvgCheckCircleIcon/index.d.ts +1 -0
  18. package/dist/esm/types/components/Icons/SvgCloseIcon/SvgCloseIcon.d.ts +3 -0
  19. package/dist/esm/types/components/Icons/SvgCloseIcon/index.d.ts +1 -0
  20. package/dist/esm/types/components/Icons/SvgExclamationCircleIcon/SvgExclamationCircleIcon.d.ts +3 -0
  21. package/dist/esm/types/components/Icons/SvgExclamationCircleIcon/index.d.ts +1 -0
  22. package/dist/esm/types/components/Icons/SvgInfoIcon/SvgInfoIcon.d.ts +3 -0
  23. package/dist/esm/types/components/Icons/SvgInfoIcon/index.d.ts +1 -0
  24. package/dist/esm/types/components/InlineAlert/InlineAlert.d.ts +12 -0
  25. package/dist/esm/types/components/InlineAlert/index.d.ts +2 -0
  26. package/dist/esm/types/components/index.d.ts +7 -1
  27. package/dist/index.d.ts +33 -2
  28. package/package.json +1 -1
  29. /package/dist/cjs/types/components/{SvgBcLogo → Icons/SvgBcLogo}/SvgBcLogo.d.ts +0 -0
  30. /package/dist/cjs/types/components/{SvgBcLogo → Icons/SvgBcLogo}/index.d.ts +0 -0
  31. /package/dist/cjs/types/components/{SvgExclamationIcon → Icons/SvgExclamationIcon}/SvgExclamationIcon.d.ts +0 -0
  32. /package/dist/cjs/types/components/{SvgExclamationIcon → Icons/SvgExclamationIcon}/index.d.ts +0 -0
  33. /package/dist/esm/types/components/{SvgBcLogo → Icons/SvgBcLogo}/SvgBcLogo.d.ts +0 -0
  34. /package/dist/esm/types/components/{SvgBcLogo → Icons/SvgBcLogo}/index.d.ts +0 -0
  35. /package/dist/esm/types/components/{SvgExclamationIcon → Icons/SvgExclamationIcon}/SvgExclamationIcon.d.ts +0 -0
  36. /package/dist/esm/types/components/{SvgExclamationIcon → Icons/SvgExclamationIcon}/index.d.ts +0 -0
@@ -0,0 +1,3 @@
1
+ export default function SvgCheckCircleIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgCheckCircleIcon";
@@ -0,0 +1,3 @@
1
+ export default function SvgCloseIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgCloseIcon";
@@ -0,0 +1,3 @@
1
+ export default function SvgExclamationCircleIcon({ id, }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgExclamationCircleIcon";
@@ -0,0 +1,3 @@
1
+ export default function SvgInfoIcon({ id }: {
2
+ id?: string | undefined;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { default } from "./SvgInfoIcon";
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./InlineAlert.css";
3
+ export interface InlineAlertProps extends React.PropsWithChildren {
4
+ variant?: "info" | "success" | "warning" | "danger";
5
+ title?: string;
6
+ description?: string;
7
+ isCloseable?: boolean;
8
+ isIconHidden?: boolean;
9
+ role?: React.AriaRole | undefined;
10
+ onClose?: () => void;
11
+ }
12
+ export default function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, children, onClose, ...props }: InlineAlertProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default } from "./InlineAlert";
2
+ export type { InlineAlertProps } from "./InlineAlert";
@@ -1,10 +1,16 @@
1
1
  import "@bcgov/design-tokens/css/variables.css";
2
+ export { default as InlineAlert } from "./InlineAlert";
2
3
  export { default as Button } from "./Button";
3
4
  export { default as Header } from "./Header";
4
5
  export { default as Footer, FooterLinks } from "./Footer";
5
6
  export { default as Form } from "./Form";
6
7
  export { default as Select } from "./Select";
7
- export { default as SvgBcLogo } from "./SvgBcLogo";
8
+ export { default as SvgBcLogo } from "./Icons/SvgBcLogo";
9
+ export { default as SvgCheckCircleIcon } from "./Icons/SvgCheckCircleIcon";
10
+ export { default as SvgExclamationIcon } from "./Icons/SvgExclamationIcon";
11
+ export { default as SvgExclamationCircleIcon } from "./Icons/SvgExclamationCircleIcon";
12
+ export { default as SvgCloseIcon } from "./Icons/SvgCloseIcon";
13
+ export { default as SvgInfoIcon } from "./Icons/SvgInfoIcon";
8
14
  export { default as Tag } from "./Tag";
9
15
  export { default as TagGroup } from "./TagGroup";
10
16
  export { default as TagList } from "./TagList";
package/dist/index.d.ts CHANGED
@@ -1,7 +1,18 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React$1 from 'react';
2
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';
3
4
  export { TooltipTrigger } from 'react-aria-components';
4
- import React$1 from 'react';
5
+
6
+ interface InlineAlertProps extends React$1.PropsWithChildren {
7
+ variant?: "info" | "success" | "warning" | "danger";
8
+ title?: string;
9
+ description?: string;
10
+ isCloseable?: boolean;
11
+ isIconHidden?: boolean;
12
+ role?: React$1.AriaRole | undefined;
13
+ onClose?: () => void;
14
+ }
15
+ declare function InlineAlert({ variant, title, description, isIconHidden, isCloseable, role, children, onClose, ...props }: InlineAlertProps): react_jsx_runtime.JSX.Element;
5
16
 
6
17
  interface ButtonProps extends ButtonProps$1 {
7
18
  /**
@@ -159,6 +170,26 @@ declare function SvgBcLogo({ id }: {
159
170
  id?: string | undefined;
160
171
  }): react_jsx_runtime.JSX.Element;
161
172
 
173
+ declare function SvgCheckCircleIcon({ id }: {
174
+ id?: string | undefined;
175
+ }): react_jsx_runtime.JSX.Element;
176
+
177
+ declare function SvgExclamationIcon({ id }: {
178
+ id?: string | undefined;
179
+ }): react_jsx_runtime.JSX.Element;
180
+
181
+ declare function SvgExclamationCircleIcon({ id, }: {
182
+ id?: string | undefined;
183
+ }): react_jsx_runtime.JSX.Element;
184
+
185
+ declare function SvgCloseIcon({ id }: {
186
+ id?: string | undefined;
187
+ }): react_jsx_runtime.JSX.Element;
188
+
189
+ declare function SvgInfoIcon({ id }: {
190
+ id?: string | undefined;
191
+ }): react_jsx_runtime.JSX.Element;
192
+
162
193
  interface TagProps extends TagProps$1 {
163
194
  /**
164
195
  * Icon that appears to the left of the `textValue` field
@@ -215,4 +246,4 @@ declare function TextField({ size, label, description, errorMessage, iconLeft, i
215
246
 
216
247
  declare function Tooltip(props: TooltipProps): react_jsx_runtime.JSX.Element;
217
248
 
218
- export { Button, Footer, FooterLinks, Form, Header, Select, SvgBcLogo, Tag, TagGroup, TagList, TextArea, TextField, Tooltip };
249
+ export { Button, Footer, FooterLinks, Form, Header, InlineAlert, Select, SvgBcLogo, SvgCheckCircleIcon, SvgCloseIcon, SvgExclamationCircleIcon, SvgExclamationIcon, SvgInfoIcon, 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.1.1-pr431",
3
+ "version": "0.1.1-pr437",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "rollup": "rm -rf dist && rollup -c --bundleConfigAsCjs",