@livechat/design-system-react-components 1.16.2 → 1.16.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.
@@ -1,11 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { Placement, flip, Strategy } from '@floating-ui/react';
3
+ import { ComponentCoreProps } from '../../utils/types';
3
4
  import { IActionMenuOption } from './types';
4
- export interface ActionMenuProps {
5
- /**
6
- * The CSS class for menu container
7
- */
8
- className?: string;
5
+ export interface ActionMenuProps extends ComponentCoreProps {
9
6
  /**
10
7
  * The CSS class for trigger container
11
8
  */
@@ -1,10 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { ComponentCoreProps } from '../../utils/types';
2
3
  type AlertKind = 'info' | 'warning' | 'success' | 'error';
3
- export interface AlertProps {
4
- /**
5
- * The CSS class for container
6
- */
7
- className?: string;
4
+ export interface AlertProps extends ComponentCoreProps {
8
5
  /**
9
6
  * Specify the kind of Alert
10
7
  */
@@ -1,17 +1,14 @@
1
1
  import * as React from 'react';
2
+ import { ComponentCoreProps } from '../../utils/types';
2
3
  type AvatarShape = 'circle' | 'rounded-square';
3
4
  type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
4
5
  type AvatarStatus = 'available' | 'unavailable' | 'unknown';
5
6
  type AvatarType = 'image' | 'text';
6
- export interface AvatarProps {
7
+ export interface AvatarProps extends ComponentCoreProps {
7
8
  /**
8
9
  * Alternate text for an image avatar
9
10
  */
10
11
  alt?: string;
11
- /**
12
- * The CSS class for container
13
- */
14
- className?: string;
15
12
  /**
16
13
  * Specify the background color
17
14
  */
@@ -2,6 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { Strategy, UseClickProps, UseDismissProps } from '@floating-ui/react';
3
3
  import { VirtuosoProps } from 'react-virtuoso';
4
4
  import { Size } from '../../utils';
5
+ import { ComponentCoreProps } from '../../utils/types';
5
6
  import { IconSource } from '../Icon';
6
7
  export interface IPickerListItem {
7
8
  key: string;
@@ -18,7 +19,7 @@ export interface IPickerListItem {
18
19
  showCheckbox?: boolean;
19
20
  }
20
21
  export type PickerType = 'single' | 'multi';
21
- export interface IPickerProps {
22
+ export interface IPickerProps extends ComponentCoreProps {
22
23
  /**
23
24
  * Specify the custom id
24
25
  */
@@ -83,10 +84,6 @@ export interface IPickerProps {
83
84
  * Will open picker on component initialization
84
85
  */
85
86
  openedOnInit?: boolean;
86
- /**
87
- * Test id passed to the picker trigger element
88
- */
89
- ['data-testid']?: string;
90
87
  /**
91
88
  * Callback called after item selection
92
89
  */