@livechat/design-system-react-components 1.0.0-beta.1 → 1.0.0-refresh-ui.0

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.
@@ -12,5 +12,9 @@ export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
12
12
  * Triggers the onClose event on overlay click
13
13
  */
14
14
  closeOnOverlayPress?: boolean;
15
+ /**
16
+ * Removes the spacing inside the main container
17
+ */
18
+ fullSpaceContent?: boolean;
15
19
  }
16
20
  export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { IPickerListItem } from './PickerList';
3
2
  import { IconSize } from '../Icon';
4
3
  import { Size } from 'utils';
4
+ import { IPickerListItem } from './types';
5
5
  export type PickerType = 'single' | 'multi';
6
6
  export interface IPickerProps {
7
7
  /**
@@ -1,14 +1,5 @@
1
1
  import * as React from 'react';
2
- export interface IPickerListItem {
3
- key: string;
4
- name: string;
5
- customElement?: {
6
- listItemBody: React.ReactElement;
7
- selectedItemBody: React.ReactElement;
8
- };
9
- groupHeader?: boolean;
10
- disabled?: boolean;
11
- }
2
+ import { IPickerListItem } from './types';
12
3
  export interface IPickerListProps {
13
4
  isOpen: boolean;
14
5
  items: IPickerListItem[];
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { IPickerListItem } from './types';
3
+ interface IProps {
4
+ item: IPickerListItem;
5
+ isItemSelected: boolean;
6
+ currentItemKey: string | null;
7
+ onSelect: (item: IPickerListItem) => void;
8
+ }
9
+ export declare const PickerListItem: React.FC<IProps>;
10
+ export {};
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
- import { IPickerListItem } from './PickerList';
3
2
  import { PickerType } from './Picker';
4
3
  import { IconSize } from 'index';
4
+ import { Size } from 'utils';
5
+ import { IPickerListItem } from './types';
5
6
  export interface ITriggerBodyProps {
6
7
  isOpen: boolean;
7
8
  isSearchDisabled?: boolean;
@@ -11,6 +12,7 @@ export interface ITriggerBodyProps {
11
12
  type: PickerType;
12
13
  iconSize?: IconSize;
13
14
  clearSearchAfterSelection?: boolean;
15
+ size?: Size;
14
16
  onItemRemove: (item: IPickerListItem) => void;
15
17
  onFilter: (text: string) => void;
16
18
  }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ export interface IPickerListItem {
3
+ key: string;
4
+ name: string;
5
+ customElement?: {
6
+ listItemBody: React.ReactElement;
7
+ selectedItemBody: React.ReactElement;
8
+ };
9
+ groupHeader?: boolean;
10
+ disabled?: boolean;
11
+ }