@gemeente-denhaag/alert 0.1.1-alpha.98 → 0.1.1

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,15 +1,22 @@
1
- import React from 'react';
2
- import BaseProps from '@gemeente-denhaag/baseprops';
1
+ import React, { ReactNode } from 'react';
3
2
  import './index.scss';
4
- export interface AlertProps extends Omit<BaseProps, 'children' | 'classes' | 'tabIndex'> {
3
+ export interface AlertProps {
4
+ /**
5
+ * The id attribute is used to specify a unique id for an HTML element.
6
+ */
7
+ id?: string;
8
+ /**
9
+ * Extend the styles of the component by adding new classes.
10
+ */
11
+ className?: string;
5
12
  /**
6
13
  * The title of the alert.
7
14
  */
8
- title: string;
15
+ title: ReactNode;
9
16
  /**
10
17
  * The main text of the alert.
11
18
  */
12
- text: string;
19
+ text: ReactNode;
13
20
  /**
14
21
  * The variant of the alert, determines which color and icon are displayed.
15
22
  */
@@ -34,5 +41,5 @@ export interface AlertProps extends Omit<BaseProps, 'children' | 'classes' | 'ta
34
41
  /**
35
42
  * Primary UI component for user interaction
36
43
  */
37
- export declare const Alert: React.FC<AlertProps>;
44
+ export declare const Alert: ({ id, title, text, variant, action, close, supportIcon, className }: AlertProps) => React.JSX.Element;
38
45
  export default Alert;