@livechat/design-system-react-components 2.5.2 → 2.5.4

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.
@@ -13,7 +13,7 @@ export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
13
13
  /**
14
14
  * Card description
15
15
  */
16
- description?: string;
16
+ description?: React.ReactNode;
17
17
  /**
18
18
  * Element to display in the expandable area
19
19
  */
@@ -11,6 +11,6 @@ export interface CheckboxProps extends React.HTMLAttributes<HTMLInputElement> {
11
11
  /**
12
12
  * Set the checkbox description
13
13
  */
14
- description?: string;
14
+ description?: React.ReactNode;
15
15
  }
16
16
  export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -23,7 +23,7 @@ export interface FormFieldProps {
23
23
  /**
24
24
  * Define error text
25
25
  */
26
- error?: string;
26
+ error?: React.ReactNode;
27
27
  /**
28
28
  * Define the description text
29
29
  */
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
- description?: string;
3
+ description?: React.ReactNode;
4
4
  checked?: boolean;
5
5
  disabled?: boolean;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface IReportsProps {
3
- title: string;
4
- description?: string;
3
+ title: React.ReactNode;
4
+ description?: React.ReactNode;
5
5
  children: React.ReactNode;
6
6
  }
7
7
  export declare const Reports: React.FC<React.PropsWithChildren<IReportsProps>>;
@@ -1,4 +1,4 @@
1
1
  export { Tooltip } from './Tooltip';
2
2
  export { Simple, Info, Interactive, Reports } from './components';
3
3
  export { UserGuide } from './components/UserGuide';
4
- export type { ITooltipProps, ITooltipInfoProps, ITooltipInteractiveProps, } from './types';
4
+ export type { ITooltipProps, ITooltipInfoProps, ITooltipInteractiveProps, TooltipButton, } from './types';
@@ -162,6 +162,7 @@ export interface ITooltipInfoProps {
162
162
  text: string;
163
163
  /**
164
164
  * Set to show close button
165
+ * @deprecated Use `handleCloseAction` instead
165
166
  */
166
167
  closeWithX?: boolean;
167
168
  /**
@@ -191,6 +192,7 @@ export interface ITooltipInteractiveProps {
191
192
  };
192
193
  /**
193
194
  * Set to show close button
195
+ * @deprecated Use `handleCloseAction` instead
194
196
  */
195
197
  closeWithX?: boolean;
196
198
  /**
@@ -204,9 +206,9 @@ export interface ITooltipInteractiveProps {
204
206
  /**
205
207
  * The Interactive tooltip primary button props
206
208
  */
207
- primaryButton: TooltipButton;
209
+ primaryButton: TooltipButton | React.ReactNode;
208
210
  /**
209
211
  * The Interactive tooltip secondary button props
210
212
  */
211
- secondaryButton?: TooltipButton;
213
+ secondaryButton?: TooltipButton | React.ReactNode;
212
214
  }