@utrecht/component-library-react 1.0.0-alpha.165 → 1.0.0-alpha.167

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,13 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes, ReactNode } from 'react';
6
+ export declare type AlertType = 'info' | 'ok' | 'warning' | 'error';
7
+ export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
8
+ icon?: ReactNode;
9
+ type?: string | AlertType;
10
+ }
11
+ export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & {
12
+ children?: ReactNode;
13
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { HTMLAttributes, ReactNode } from 'react';
6
+ export declare type AlertType = 'info' | 'ok' | 'warning' | 'error';
7
+ export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
8
+ icon?: ReactNode;
9
+ type?: string | AlertType;
10
+ }
11
+ export declare const Alert: import("react").ForwardRefExoticComponent<AlertProps & {
12
+ children?: ReactNode;
13
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import '../../../../components/alert/css/index.scss';
6
+ export * from '../Alert';
@@ -2,6 +2,7 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2022 Robbert Broersma
4
4
  */
5
+ export { Alert } from './Alert';
5
6
  export { Article } from './Article';
6
7
  export { Backdrop } from './Backdrop';
7
8
  export { Button, PrimaryActionButton, SecondaryActionButton, SubtleButton } from './Button';
@@ -2,6 +2,7 @@
2
2
  * @license EUPL-1.2
3
3
  * Copyright (c) 2022 Robbert Broersma
4
4
  */
5
+ export { Alert } from './Alert';
5
6
  export { Article } from './Article';
6
7
  export { Backdrop } from './Backdrop';
7
8
  export { Button, PrimaryActionButton, SecondaryActionButton, SubtleButton } from './Button';