@livechat/design-system-react-components 1.0.0-beta.1 → 1.0.0-beta.11

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.
Files changed (78) hide show
  1. package/dist/components/ActionBar/ActionBar.d.ts +25 -0
  2. package/dist/components/ActionBar/ActionBar.stories.d.ts +10 -0
  3. package/dist/components/ActionBar/ActionBarItem.d.ts +15 -0
  4. package/dist/components/ActionBar/index.d.ts +2 -0
  5. package/dist/components/ActionMenu/ActionMenu.d.ts +11 -8
  6. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +2 -2
  7. package/dist/components/ActionMenu/types.d.ts +9 -0
  8. package/dist/components/Alert/Alert.stories.d.ts +3 -3
  9. package/dist/components/Avatar/Avatar.d.ts +1 -1
  10. package/dist/components/Avatar/Avatar.helpers.d.ts +1 -0
  11. package/dist/components/Avatar/Avatar.helpers.spec.d.ts +1 -0
  12. package/dist/components/Avatar/Avatar.stories.d.ts +10 -10
  13. package/dist/components/Avatar/index.d.ts +2 -0
  14. package/dist/components/Badge/Badge.stories.d.ts +3 -3
  15. package/dist/components/Button/Button.d.ts +1 -1
  16. package/dist/components/DatePicker/helpers.d.ts +2 -25
  17. package/dist/components/DatePicker/types.d.ts +3 -3
  18. package/dist/components/FormField/FormField.stories.d.ts +1 -1
  19. package/dist/components/Icon/Icon.d.ts +2 -2
  20. package/dist/components/Icon/index.d.ts +1 -0
  21. package/dist/components/Icon/types.d.ts +2 -0
  22. package/dist/components/Input/Input.d.ts +4 -0
  23. package/dist/components/Input/Input.stories.d.ts +4 -4
  24. package/dist/components/Modal/Modal.d.ts +5 -1
  25. package/dist/components/Modal/{ModalBase.d.ts → components/ModalBase.d.ts} +4 -0
  26. package/dist/components/Modal/components/ModalBase.spec.d.ts +1 -0
  27. package/dist/components/Modal/{ModalCloseButton.d.ts → components/ModalCloseButton.d.ts} +2 -1
  28. package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
  29. package/dist/components/Modal/index.d.ts +8 -8
  30. package/dist/components/NumericInput/NumericInput.d.ts +2 -4
  31. package/dist/components/NumericInput/NumericInput.stories.d.ts +20 -0
  32. package/dist/components/Picker/Picker.d.ts +1 -7
  33. package/dist/components/Picker/Picker.stories.d.ts +1 -0
  34. package/dist/components/Picker/PickerList.d.ts +1 -10
  35. package/dist/components/Picker/PickerListItem.d.ts +11 -0
  36. package/dist/components/Picker/TriggerBody.d.ts +3 -4
  37. package/dist/components/Picker/constants.d.ts +31 -2
  38. package/dist/components/Picker/helpers.d.ts +2 -0
  39. package/dist/components/Picker/index.d.ts +1 -0
  40. package/dist/components/Picker/types.d.ts +17 -0
  41. package/dist/components/Popover/Popover.d.ts +4 -0
  42. package/dist/components/PromoBanner/PromoBanner.d.ts +3 -0
  43. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +33 -0
  44. package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +1 -0
  45. package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +23 -0
  46. package/dist/components/PromoBannerV2/constants.d.ts +1 -0
  47. package/dist/components/PromoBannerV2/index.d.ts +2 -0
  48. package/dist/components/Tab/Tab.stories.d.ts +2 -2
  49. package/dist/components/Tag/Tag.d.ts +5 -10
  50. package/dist/components/Tag/Tag.stories.d.ts +4 -2
  51. package/dist/components/TagInput/EmailTagInput.d.ts +1 -1
  52. package/dist/components/TagInput/TagInput.stories.d.ts +1 -1
  53. package/dist/components/Textarea/Textarea.stories.d.ts +1 -1
  54. package/dist/components/Toast/Toast.stories.d.ts +1 -1
  55. package/dist/components/Toast/ToastWrapper.stories.d.ts +1 -7
  56. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  57. package/dist/components/Tooltip/components/Info.d.ts +2 -1
  58. package/dist/components/Tooltip/components/Interactive.d.ts +4 -12
  59. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +2 -1
  60. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +2 -1
  61. package/dist/components/Tooltip/helpers.d.ts +2 -1
  62. package/dist/components/Tooltip/index.d.ts +1 -0
  63. package/dist/components/Tooltip/types.d.ts +9 -1
  64. package/dist/components/Typography/Display.d.ts +10 -0
  65. package/dist/components/Typography/index.d.ts +1 -0
  66. package/dist/dsrc.cjs.js +6 -6
  67. package/dist/dsrc.es.js +3798 -3326
  68. package/dist/dsrc.umd.js +6 -6
  69. package/dist/foundations/radius-token.d.ts +6 -0
  70. package/dist/index.d.ts +3 -1
  71. package/dist/preview-stats.json +754 -553
  72. package/dist/stories/components/Radius.d.ts +2 -0
  73. package/dist/stories/components/RadiusExamples.d.ts +2 -0
  74. package/dist/style.css +1 -1
  75. package/package.json +14 -14
  76. package/dist/components/Modal/ModalHeader.d.ts +0 -9
  77. /package/dist/components/{Modal/ModalBase.spec.d.ts → ActionBar/ActionBar.spec.d.ts} +0 -0
  78. /package/dist/components/Modal/{ModalPortal.d.ts → components/ModalPortal.d.ts} +0 -0
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { IActionBarOption } from './ActionBarItem';
3
+ export interface IActionBarProps {
4
+ /**
5
+ * The CSS class for menu container
6
+ */
7
+ className?: string;
8
+ /**
9
+ * The unique id key
10
+ */
11
+ id?: string;
12
+ /**
13
+ * Array of action bar options
14
+ */
15
+ options: IActionBarOption[];
16
+ /**
17
+ * Set the key for active element
18
+ */
19
+ activeOptionKey?: string | null;
20
+ /**
21
+ * Set 'scroll' to disable menu and enable scroll
22
+ */
23
+ type?: 'menu' | 'scroll';
24
+ }
25
+ export declare const ActionBar: React.FC<IActionBarProps>;
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<import("./ActionBar").IActionBarProps>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ };
9
+ export default _default;
10
+ export declare const Default: () => React.ReactElement;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ export type IActionBarOption = {
3
+ key: string;
4
+ element: React.ReactElement;
5
+ label: string;
6
+ showTooltip?: boolean;
7
+ onClick: () => void;
8
+ };
9
+ interface ActionBarItem {
10
+ option: IActionBarOption;
11
+ menuItemsKeys: string[];
12
+ activeOptionKey?: string | null;
13
+ }
14
+ export declare const ActionBarItem: React.FC<ActionBarItem>;
15
+ export {};
@@ -0,0 +1,2 @@
1
+ export { ActionBar } from './ActionBar';
2
+ export type { IActionBarProps } from './ActionBar';
@@ -1,24 +1,23 @@
1
1
  import * as React from 'react';
2
2
  import { Placement } from '@floating-ui/react-dom';
3
+ import { IActionMenuOption } from './types';
3
4
  export interface ActionMenuProps {
4
5
  /**
5
6
  * The CSS class for menu container
6
7
  */
7
8
  className?: string;
9
+ /**
10
+ * The CSS class for trigger element
11
+ */
12
+ triggerClassName?: string;
8
13
  /**
9
14
  * Array of menu options
10
15
  */
11
- options: Array<{
12
- key: string;
13
- element: React.ReactNode;
14
- disabled?: boolean;
15
- withDivider?: boolean;
16
- onClick: () => void;
17
- }>;
16
+ options: IActionMenuOption[];
18
17
  /**
19
18
  * Trigger element
20
19
  */
21
- triggerRenderer: React.ReactNode;
20
+ triggerRenderer: React.ReactElement;
22
21
  /**
23
22
  * The menu placement
24
23
  */
@@ -31,5 +30,9 @@ export interface ActionMenuProps {
31
30
  * Menu will stay open after option click
32
31
  */
33
32
  keepOpenOnClick?: boolean;
33
+ /**
34
+ * Set the keys array for active elements
35
+ */
36
+ activeOptionKeys?: string[];
34
37
  }
35
38
  export declare const ActionMenu: React.FC<ActionMenuProps>;
@@ -7,5 +7,5 @@ declare const _default: {
7
7
  };
8
8
  };
9
9
  export default _default;
10
- export declare const Default: () => JSX.Element;
11
- export declare const KeepOpenOnItemClick: () => JSX.Element;
10
+ export declare const Default: () => React.ReactElement;
11
+ export declare const KeepOpenOnItemClick: () => React.ReactElement;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ export interface IActionMenuOption {
3
+ key: string;
4
+ element: React.ReactNode;
5
+ groupHeader?: boolean;
6
+ disabled?: boolean;
7
+ withDivider?: boolean;
8
+ onClick?: () => void;
9
+ }
@@ -4,6 +4,6 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
4
4
  children?: React.ReactNode;
5
5
  }>;
6
6
  export default _default;
7
- export declare const Default: (args: AlertProps) => JSX.Element;
8
- export declare const Kinds: () => JSX.Element;
9
- export declare const WithCTA: () => JSX.Element;
7
+ export declare const Default: (args: AlertProps) => React.ReactElement;
8
+ export declare const Kinds: () => React.ReactElement;
9
+ export declare const WithCTA: () => React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  type AvatarShape = 'circle' | 'rounded-square';
3
- type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
3
+ type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
4
4
  type AvatarStatus = 'available' | 'unavailable' | 'unknown';
5
5
  type AvatarType = 'image' | 'text';
6
6
  export interface AvatarProps {
@@ -1,2 +1,3 @@
1
+ export declare function getBackgroundColor(text?: string): string | undefined;
1
2
  export declare function getInitials(name?: string, count?: number): string;
2
3
  export declare function getFontColor(color: string): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -5,18 +5,18 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
5
5
  }>;
6
6
  export default _default;
7
7
  export declare const Default: {
8
- (args: AvatarProps): JSX.Element;
8
+ (args: AvatarProps): React.ReactElement;
9
9
  args: {
10
10
  type: string;
11
11
  text: string;
12
12
  };
13
13
  };
14
- export declare const Types: () => JSX.Element;
15
- export declare const Shapes: () => JSX.Element;
16
- export declare const Sizes: () => JSX.Element;
17
- export declare const Statuses: () => JSX.Element;
18
- export declare const Colors: () => JSX.Element;
19
- export declare const FallbackAvatar: () => JSX.Element;
20
- export declare const Rim: () => JSX.Element;
21
- export declare const SizesWithStatus: () => JSX.Element;
22
- export declare const SizesWithRim: () => JSX.Element;
14
+ export declare const Types: () => React.ReactElement;
15
+ export declare const Shapes: () => React.ReactElement;
16
+ export declare const Sizes: () => React.ReactElement;
17
+ export declare const Statuses: () => React.ReactElement;
18
+ export declare const Colors: () => React.ReactElement;
19
+ export declare const FallbackAvatar: () => React.ReactElement;
20
+ export declare const Rim: () => React.ReactElement;
21
+ export declare const SizesWithStatus: () => React.ReactElement;
22
+ export declare const SizesWithRim: () => React.ReactElement;
@@ -1 +1,3 @@
1
1
  export { Avatar } from './Avatar';
2
+ export { getBackgroundColor as generateAvatarColor } from './Avatar.helpers';
3
+ export type { AvatarProps } from './Avatar';
@@ -7,6 +7,6 @@ declare const _default: {
7
7
  };
8
8
  export default _default;
9
9
  export declare const Default: Story<BadgeProps>;
10
- export declare const Sizes: () => JSX.Element;
11
- export declare const Kinds: () => JSX.Element;
12
- export declare const Types: () => JSX.Element;
10
+ export declare const Sizes: () => React.ReactElement;
11
+ export declare const Kinds: () => React.ReactElement;
12
+ export declare const Types: () => React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { Size } from 'utils';
3
- export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'text' | 'plain' | 'plain-light' | 'subtle' | 'float' | 'dotted';
3
+ export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'plain' | 'float' | 'dotted' | 'high-contrast';
4
4
  export type ButtonProps = {
5
5
  /**
6
6
  * Specify the button kind
@@ -1,6 +1,6 @@
1
1
  import { Modifiers } from 'react-day-picker';
2
- import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
3
2
  import { ClassNames } from 'react-day-picker/types/ClassNames';
3
+ import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
4
4
  export declare const isDateWithinRange: (date: Date, range: {
5
5
  from?: Date;
6
6
  to?: Date;
@@ -10,30 +10,7 @@ export declare const getRangeDatePickerModifiers: (from?: Date, to?: Date) => Pa
10
10
  export declare const getSelectedOption: (itemId: string | null, options: IRangeDatePickerOption[]) => IRangeDatePickerOption | undefined;
11
11
  export declare const isSelectingFirstDay: (from?: Date, to?: Date) => boolean;
12
12
  export declare const getInitialStateFromProps: (props: IRangeDatePickerProps) => Partial<IRangeDatePickerState>;
13
- export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => {
14
- container: string;
15
- wrapper: string;
16
- interactionDisabled: string;
17
- navBar: string;
18
- navButtonPrev: string;
19
- navButtonNext: string;
20
- navButtonInteractionDisabled: string;
21
- months: string;
22
- month: string;
23
- caption: string;
24
- weekdays: string;
25
- weekdaysRow: string;
26
- weekday: string;
27
- weekNumber: string;
28
- body: string;
29
- week: string;
30
- day: string;
31
- footer: string;
32
- todayButton: string;
33
- today: string;
34
- selected: string;
35
- disabled: string;
36
- outside: string;
13
+ export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => ClassNames & {
37
14
  start: string;
38
15
  end: string;
39
16
  };
@@ -1,8 +1,8 @@
1
- import { Reducer } from 'react';
1
+ import { Reducer, Ref, ReactElement } from 'react';
2
2
  import ReactDayPicker, { DayPickerProps } from 'react-day-picker';
3
3
  import { ClassNames } from 'react-day-picker/types/ClassNames';
4
4
  export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
5
- innerRef?: React.Ref<ReactDayPicker>;
5
+ innerRef?: Ref<ReactDayPicker>;
6
6
  range?: boolean;
7
7
  }
8
8
  export interface IDatePickerNavbarProps {
@@ -95,6 +95,6 @@ export interface IRangeDatePickerProps {
95
95
  initialToDate?: Date;
96
96
  toMonth?: Date;
97
97
  onChange: (selected: IRangeDatePickerOption | null) => void;
98
- children(payload: IRangeDatePickerChildrenPayload): React.ReactElement;
98
+ children(payload: IRangeDatePickerChildrenPayload): ReactElement;
99
99
  }
100
100
  export {};
@@ -5,5 +5,5 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
5
5
  }>;
6
6
  export default _default;
7
7
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
8
- export declare const Examples: () => JSX.Element;
8
+ export declare const Examples: () => React.ReactElement;
9
9
  export declare const TextFieldWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
+ import { IconSource } from './types';
2
3
  export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
- export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'warning' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
4
- export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
4
+ export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
5
5
  export interface IconProps {
6
6
  /**
7
7
  * Specify the source of svg element
@@ -1 +1,2 @@
1
1
  export * from './Icon';
2
+ export type { IconSource } from './types';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
@@ -20,6 +20,10 @@ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>
20
20
  * Set the icon and its position
21
21
  */
22
22
  icon?: InputIcon;
23
+ /**
24
+ * Set to enable ellipsis
25
+ */
26
+ cropOnBlur?: boolean;
23
27
  }
24
28
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
25
29
  export {};
@@ -4,7 +4,7 @@ import { InputProps } from './Input';
4
4
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, InputProps & React.RefAttributes<HTMLInputElement>>;
5
5
  export default _default;
6
6
  export declare const Default: Story<InputProps>;
7
- export declare const Sizes: () => JSX.Element;
8
- export declare const States: () => JSX.Element;
9
- export declare const Types: () => JSX.Element;
10
- export declare const WithIcons: () => JSX.Element;
7
+ export declare const Sizes: () => React.ReactElement;
8
+ export declare const States: () => React.ReactElement;
9
+ export declare const Types: () => React.ReactElement;
10
+ export declare const WithIcons: () => React.ReactElement;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ModalBaseProps } from './ModalBase';
2
+ import { ModalBaseProps } from './components/ModalBase';
3
3
  export interface ModalProps extends ModalBaseProps {
4
4
  /**
5
5
  * Header element. For consistent UI use `<ModalHeader/>`
@@ -17,5 +17,9 @@ export interface ModalProps extends ModalBaseProps {
17
17
  * Footer element
18
18
  */
19
19
  footer?: React.ReactNode;
20
+ /**
21
+ * Class name for the content container
22
+ */
23
+ contentClassName?: string;
20
24
  }
21
25
  export declare const Modal: React.FC<ModalProps>;
@@ -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,5 +1,6 @@
1
1
  import * as React from 'react';
2
- export interface ModalCloseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
2
+ import { ButtonProps } from '../../Button';
3
+ export interface ModalCloseButtonProps extends ButtonProps {
3
4
  labelType?: boolean;
4
5
  customColor?: string;
5
6
  }
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { AvatarProps } from '../../Avatar';
3
+ import { IconProps } from '../../Icon';
4
+ export interface ModalHeaderProps {
5
+ /**
6
+ * Set the header title
7
+ */
8
+ title?: React.ReactNode;
9
+ /**
10
+ * Set to display the icon
11
+ */
12
+ iconProps?: IconProps;
13
+ /**
14
+ * Set to display avatar
15
+ */
16
+ avatarProps?: AvatarProps;
17
+ /**
18
+ * Children element
19
+ */
20
+ children?: React.ReactNode;
21
+ /**
22
+ * Define class name for container
23
+ */
24
+ className?: 'string';
25
+ }
26
+ export declare const ModalHeader: React.FC<ModalHeaderProps>;
@@ -1,10 +1,10 @@
1
1
  export { Modal } from './Modal';
2
- export { ModalBase } from './ModalBase';
3
- export { ModalCloseButton } from './ModalCloseButton';
4
- export { ModalPortal } from './ModalPortal';
5
- export { ModalHeader } from './ModalHeader';
2
+ export { ModalBase } from './components/ModalBase';
3
+ export { ModalCloseButton } from './components/ModalCloseButton';
4
+ export { ModalPortal } from './components/ModalPortal';
5
+ export { ModalHeader } from './components/ModalHeader';
6
6
  export type { ModalProps } from './Modal';
7
- export type { ModalBaseProps } from './ModalBase';
8
- export type { ModalCloseButtonProps } from './ModalCloseButton';
9
- export type { ModalPortalProps } from './ModalPortal';
10
- export type { ModalHeaderProps } from './ModalHeader';
7
+ export type { ModalBaseProps } from './components/ModalBase';
8
+ export type { ModalCloseButtonProps } from './components/ModalCloseButton';
9
+ export type { ModalPortalProps } from './components/ModalPortal';
10
+ export type { ModalHeaderProps } from './components/ModalHeader';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- interface Props {
2
+ export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
3
  className?: string;
4
4
  error?: string;
5
5
  value: string;
@@ -8,7 +8,5 @@ interface Props {
8
8
  disabled?: boolean;
9
9
  noControls?: boolean;
10
10
  onChange: (value: string) => void;
11
- }
12
- export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
11
+ };
13
12
  export declare const NumericInput: React.FC<NumericInputProps>;
14
- export {};
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ import { NumericInputProps } from './NumericInput';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.InputHTMLAttributes<HTMLInputElement> & {
4
+ className?: string | undefined;
5
+ error?: string | undefined;
6
+ value: string;
7
+ max?: number | undefined;
8
+ min?: number | undefined;
9
+ disabled?: boolean | undefined;
10
+ noControls?: boolean | undefined;
11
+ onChange: (value: string) => void;
12
+ } & {
13
+ children?: React.ReactNode;
14
+ }>;
15
+ export default _default;
16
+ export declare const NumericInput: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
17
+ export declare const NumericInputWithMinAndMaxValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
18
+ export declare const NumericInputWithNoControls: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
19
+ export declare const NumericInputWithDisabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
20
+ export declare const NumericInputWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IPickerListItem } from './PickerList';
3
- import { IconSize } from '../Icon';
4
2
  import { Size } from 'utils';
5
- export type PickerType = 'single' | 'multi';
3
+ import { IPickerListItem, PickerType } from './types';
6
4
  export interface IPickerProps {
7
5
  /**
8
6
  * Specify the custom id
@@ -32,10 +30,6 @@ export interface IPickerProps {
32
30
  * Specify the picker size
33
31
  */
34
32
  size?: Size;
35
- /**
36
- * Set the dismiss icon size in tags when `multi` type is enabled
37
- */
38
- tagIconSize?: IconSize;
39
33
  /**
40
34
  * Specify the placeholder for search input
41
35
  */
@@ -7,4 +7,5 @@ export default _default;
7
7
  export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IPickerProps>;
8
8
  export declare const States: () => React.ReactElement;
9
9
  export declare const PickerWithGroupedOptions: () => React.ReactElement;
10
+ export declare const PickerWithMoreOptions: () => React.ReactElement;
10
11
  export declare const PickerWithOptionsAsCustomElements: () => React.ReactElement;
@@ -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,11 @@
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
+ isAdjacentStyleApplied: 'top' | 'middle' | 'bottom';
8
+ onSelect: (item: IPickerListItem) => void;
9
+ }
10
+ export declare const PickerListItem: React.FC<IProps>;
11
+ export {};
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
- import { IPickerListItem } from './PickerList';
3
- import { PickerType } from './Picker';
4
- import { IconSize } from 'index';
2
+ import { Size } from 'utils';
3
+ import { PickerType, IPickerListItem } from './types';
5
4
  export interface ITriggerBodyProps {
6
5
  isOpen: boolean;
7
6
  isSearchDisabled?: boolean;
@@ -9,8 +8,8 @@ export interface ITriggerBodyProps {
9
8
  placeholder: string;
10
9
  items?: IPickerListItem[] | null;
11
10
  type: PickerType;
12
- iconSize?: IconSize;
13
11
  clearSearchAfterSelection?: boolean;
12
+ size?: Size;
14
13
  onItemRemove: (item: IPickerListItem) => void;
15
14
  onFilter: (text: string) => void;
16
15
  }
@@ -1,8 +1,8 @@
1
- export declare const defaultPickerOptions: {
1
+ export declare const DEFAULT_PICKER_OPTIONS: {
2
2
  key: string;
3
3
  name: string;
4
4
  }[];
5
- export declare const defaultExtendedOptions: ({
5
+ export declare const DEFAULT_EXTENDED_OPTIONS: ({
6
6
  key: string;
7
7
  name: string;
8
8
  groupHeader: boolean;
@@ -18,4 +18,33 @@ export declare const defaultExtendedOptions: ({
18
18
  disabled: boolean;
19
19
  groupHeader?: undefined;
20
20
  })[];
21
+ export declare const DEFAULT_MORE_PICKER_OPTIONS: ({
22
+ key: string;
23
+ name: string;
24
+ secondaryText: string;
25
+ showCheckbox?: undefined;
26
+ icon?: undefined;
27
+ avatarSrc?: undefined;
28
+ } | {
29
+ key: string;
30
+ name: string;
31
+ showCheckbox: boolean;
32
+ secondaryText?: undefined;
33
+ icon?: undefined;
34
+ avatarSrc?: undefined;
35
+ } | {
36
+ key: string;
37
+ name: string;
38
+ icon: any;
39
+ secondaryText?: undefined;
40
+ showCheckbox?: undefined;
41
+ avatarSrc?: undefined;
42
+ } | {
43
+ key: string;
44
+ name: string;
45
+ avatarSrc: string;
46
+ secondaryText?: undefined;
47
+ showCheckbox?: undefined;
48
+ icon?: undefined;
49
+ })[];
21
50
  export declare const SELECT_ALL_OPTION_KEY = "select-all";
@@ -0,0 +1,2 @@
1
+ import { IPickerListItem } from './types';
2
+ export declare function getAdjacentItemPositions(items: IPickerListItem[], selectedKeys: string[] | null): Record<string, 'top' | 'middle' | 'bottom'>;
@@ -1,2 +1,3 @@
1
1
  export * from './Picker';
2
2
  export * from './PickerList';
3
+ export type { PickerType, IPickerListItem } from './types';
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { IconSource } from '../Icon';
3
+ export interface IPickerListItem {
4
+ key: string;
5
+ name: string;
6
+ customElement?: {
7
+ listItemBody: React.ReactElement;
8
+ selectedItemBody: React.ReactElement;
9
+ };
10
+ groupHeader?: boolean;
11
+ disabled?: boolean;
12
+ icon?: IconSource;
13
+ avatarSrc?: string;
14
+ secondaryText?: string;
15
+ showCheckbox?: boolean;
16
+ }
17
+ export type PickerType = 'single' | 'multi';
@@ -6,6 +6,10 @@ export interface IPopoverProps {
6
6
  * The CSS class for popover container
7
7
  */
8
8
  className?: string;
9
+ /**
10
+ * The CSS class for trigger container
11
+ */
12
+ triggerClassName?: string;
9
13
  /**
10
14
  * The popover placement related to the trigger element
11
15
  */
@@ -37,4 +37,7 @@ export interface PromoBannerProps {
37
37
  */
38
38
  onLinkClick?: () => void;
39
39
  }
40
+ /**
41
+ * @deprecated Since version 1.0.0. Will be deleted in future versions. Use {@link PromoBannerV2} instead.
42
+ */
40
43
  export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;