@livechat/design-system-react-components 1.24.2 → 2.0.0-alpha.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.
Files changed (86) hide show
  1. package/dist/components/ActionBar/ActionBar.d.ts +1 -1
  2. package/dist/components/ActionBar/ActionBarItem.d.ts +1 -1
  3. package/dist/components/ActionBar/constants.d.ts +1 -0
  4. package/dist/components/ActionCard/ActionCard.d.ts +3 -2
  5. package/dist/components/ActionMenu/ActionMenu.d.ts +1 -1
  6. package/dist/components/ActionMenu/ActionMenuItem.d.ts +1 -1
  7. package/dist/components/ActionMenu/{constants.d.ts → stories-constants.d.ts} +4 -4
  8. package/dist/components/ActionMenu/types.d.ts +1 -1
  9. package/dist/components/Alert/Alert.d.ts +1 -1
  10. package/dist/components/Avatar/Avatar.d.ts +1 -1
  11. package/dist/components/Badge/Badge.d.ts +1 -1
  12. package/dist/components/Button/Button.d.ts +1 -1
  13. package/dist/components/Button/Button.helpers.d.ts +1 -0
  14. package/dist/components/Card/Card.d.ts +2 -2
  15. package/dist/components/DatePicker/DatePicker.d.ts +2 -2
  16. package/dist/components/DatePicker/DatePickerNavbar.d.ts +1 -1
  17. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +1 -1
  18. package/dist/components/DatePicker/RangeDatePicker.d.ts +1 -0
  19. package/dist/components/DatePicker/helpers.d.ts +1 -0
  20. package/dist/components/DatePicker/hooks.d.ts +1 -0
  21. package/dist/components/DatePicker/types.d.ts +2 -1
  22. package/dist/components/DetailsCard/DetailsCard.d.ts +1 -1
  23. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +1 -1
  24. package/dist/components/FieldDescription/FieldDescription.d.ts +1 -1
  25. package/dist/components/FieldError/FieldError.d.ts +1 -1
  26. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +1 -1
  27. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +1 -1
  28. package/dist/components/FormField/FormField.d.ts +1 -1
  29. package/dist/components/Icon/Icon.d.ts +3 -3
  30. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +1 -1
  31. package/dist/components/Icon/IconsShowcase/constans.d.ts +1 -0
  32. package/dist/components/Icon/IconsShowcase/helpers.d.ts +1 -0
  33. package/dist/components/Icon/types.d.ts +3 -2
  34. package/dist/components/Link/Link.d.ts +1 -1
  35. package/dist/components/Modal/Modal.d.ts +2 -2
  36. package/dist/components/Modal/components/ModalCloseButton.d.ts +1 -1
  37. package/dist/components/Modal/components/ModalHeader.d.ts +2 -2
  38. package/dist/components/Modal/components/ModalPortal.d.ts +1 -1
  39. package/dist/components/NumericInput/NumericInput.d.ts +1 -1
  40. package/dist/components/Picker/Picker.d.ts +1 -1
  41. package/dist/components/Picker/components/PickerList.d.ts +1 -1
  42. package/dist/components/Picker/components/PickerListItem.d.ts +1 -1
  43. package/dist/components/Picker/components/PickerTrigger.d.ts +1 -1
  44. package/dist/components/Picker/components/PickerTriggerBody.d.ts +1 -1
  45. package/dist/components/Picker/constants.d.ts +3 -29
  46. package/dist/components/Picker/helpers.d.ts +1 -0
  47. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +4 -4
  48. package/dist/components/Picker/hooks/usePickerItems.d.ts +1 -0
  49. package/dist/components/Picker/types.d.ts +1 -0
  50. package/dist/components/Popover/Popover.d.ts +2 -2
  51. package/dist/components/Popover/types.d.ts +1 -1
  52. package/dist/components/Progress/ProgressBar.d.ts +1 -1
  53. package/dist/components/Progress/ProgressCircle.d.ts +1 -1
  54. package/dist/components/Progress/helpers.d.ts +1 -0
  55. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +1 -1
  56. package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
  57. package/dist/components/Skeleton/SkeletonWrapper.d.ts +1 -1
  58. package/dist/components/Switch/Switch.d.ts +1 -1
  59. package/dist/components/Tab/Tab.d.ts +17 -1
  60. package/dist/components/Tab/TabsWrapper.d.ts +2 -2
  61. package/dist/components/Tag/Tag.d.ts +1 -1
  62. package/dist/components/Tag/types.d.ts +1 -1
  63. package/dist/components/TagInput/TagInput.d.ts +1 -1
  64. package/dist/components/TagInput/components/EditableTag.d.ts +2 -2
  65. package/dist/components/TagInput/components/EmailTagInput.d.ts +1 -1
  66. package/dist/components/TagInput/types.d.ts +1 -1
  67. package/dist/components/Toast/ToastWrapper.d.ts +1 -1
  68. package/dist/components/Tooltip/Tooltip.d.ts +1 -1
  69. package/dist/components/Tooltip/{helpers.d.ts → Tooltip.helpers.d.ts} +1 -1
  70. package/dist/components/Tooltip/components/Info.d.ts +2 -9
  71. package/dist/components/Tooltip/components/Interactive.d.ts +2 -14
  72. package/dist/components/Tooltip/components/Reports.d.ts +1 -1
  73. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +2 -2
  74. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +1 -1
  75. package/dist/components/Tooltip/index.d.ts +1 -1
  76. package/dist/components/Tooltip/types.d.ts +64 -1
  77. package/dist/components/Typography/Display.d.ts +1 -1
  78. package/dist/components/Typography/Heading.d.ts +1 -1
  79. package/dist/components/Typography/Text.d.ts +1 -1
  80. package/dist/components/UploadBar/UploadBar.d.ts +1 -1
  81. package/dist/index.cjs.js +1 -1
  82. package/dist/index.d.ts +1 -0
  83. package/dist/index.es.js +4291 -3988
  84. package/dist/style.css +1 -1
  85. package/dist/utils/story-parameters.d.ts +1 -0
  86. package/package.json +36 -32
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ToastProps, Toast } from './Toast';
2
+ import * as React from 'react';
3
3
  type HorizontalPosition = 'left' | 'center' | 'right';
4
4
  type VerticalPosition = 'top' | 'bottom';
5
5
  export declare const ANIMATION_TIME = 200;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
2
1
  import { ITooltipProps } from './types';
2
+ import * as React from 'react';
3
3
  export declare const Tooltip: React.FC<React.PropsWithChildren<ITooltipProps>>;
@@ -1,8 +1,8 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import { IconKind } from '../Icon';
3
3
  import { TooltipTheme } from './types';
4
+
4
5
  export declare function getIconType(theme: TooltipTheme): IconKind;
5
- export declare const sleep: (milliseconds: number) => Promise<void>;
6
6
  export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
7
7
  export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
8
8
  stroke: string;
@@ -1,10 +1,3 @@
1
+ import { ITooltipInfoProps } from '../types';
1
2
  import * as React from 'react';
2
- import { TooltipTheme } from '../types';
3
- export declare const Info: React.FC<{
4
- className?: string;
5
- header?: string;
6
- text: string;
7
- closeWithX?: boolean;
8
- theme?: TooltipTheme;
9
- handleCloseAction?: (ev: React.MouseEvent) => void;
10
- }>;
3
+ export declare const Info: React.FC<ITooltipInfoProps>;
@@ -1,15 +1,3 @@
1
+ import { ITooltipInteractiveProps } from '../types';
1
2
  import * as React from 'react';
2
- import { TooltipButton, TooltipTheme } from '../types';
3
- export declare const Interactive: React.FC<{
4
- header?: string;
5
- text: string;
6
- image?: {
7
- src: string;
8
- alt: string;
9
- };
10
- closeWithX?: boolean;
11
- theme?: TooltipTheme;
12
- handleCloseAction?: (ev: React.MouseEvent) => void;
13
- primaryButton: TooltipButton;
14
- secondaryButton: TooltipButton;
15
- }>;
3
+ export declare const Interactive: React.FC<ITooltipInteractiveProps>;
@@ -4,4 +4,4 @@ export interface IReportsProps {
4
4
  description?: string;
5
5
  children: React.ReactNode;
6
6
  }
7
- export declare const Reports: React.FC<IReportsProps>;
7
+ export declare const Reports: React.FC<React.PropsWithChildren<IReportsProps>>;
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { ModalPortalProps } from '../../../Modal';
3
2
  import { ITooltipProps } from '../../types';
3
+ import * as React from 'react';
4
4
  interface IOwnProps {
5
5
  shouldSlide?: boolean;
6
6
  className?: string;
@@ -8,5 +8,5 @@ interface IOwnProps {
8
8
  }
9
9
  interface IUserGuide extends IOwnProps, Omit<ITooltipProps, 'triggerRenderer'>, Omit<ModalPortalProps, 'children'> {
10
10
  }
11
- export declare const UserGuide: React.FC<IUserGuide>;
11
+ export declare const UserGuide: React.FC<React.PropsWithChildren<IUserGuide>>;
12
12
  export {};
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TooltipTheme } from '../../types';
2
+ import * as React from 'react';
3
3
  export declare const UserGuideStep: React.FC<{
4
4
  header: string;
5
5
  text: string;
@@ -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 } from './types';
4
+ export type { ITooltipProps, ITooltipInfoProps, ITooltipInteractiveProps, } from './types';
@@ -1,6 +1,6 @@
1
- import * as React from 'react';
2
1
  import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
3
2
  import { ButtonKind } from '../Button';
3
+ import * as React from 'react';
4
4
  export type TooltipTheme = 'invert' | 'important' | undefined;
5
5
  export type TooltipButton = {
6
6
  handleClick: () => void;
@@ -127,3 +127,66 @@ export interface ITooltipProps {
127
127
  */
128
128
  floatingStrategy?: Strategy;
129
129
  }
130
+ export interface ITooltipInfoProps {
131
+ /**
132
+ * The CSS class for Info tooltip
133
+ */
134
+ className?: string;
135
+ /**
136
+ * The Info tooltip header
137
+ */
138
+ header?: string;
139
+ /**
140
+ * The Info tooltip text
141
+ */
142
+ text: string;
143
+ /**
144
+ * Set to show close button
145
+ */
146
+ closeWithX?: boolean;
147
+ /**
148
+ * The Info tooltip theme
149
+ */
150
+ theme?: TooltipTheme;
151
+ /**
152
+ * The Info tooltip close button action
153
+ */
154
+ handleCloseAction?: (ev: React.MouseEvent) => void;
155
+ }
156
+ export interface ITooltipInteractiveProps {
157
+ /**
158
+ * The Interactive tooltip header
159
+ */
160
+ header?: string;
161
+ /**
162
+ * The Interactive tooltip text
163
+ */
164
+ text: string;
165
+ /**
166
+ * The Interactive tooltip image
167
+ */
168
+ image?: {
169
+ src: string;
170
+ alt: string;
171
+ };
172
+ /**
173
+ * Set to show close button
174
+ */
175
+ closeWithX?: boolean;
176
+ /**
177
+ * The Interactive tooltip theme
178
+ */
179
+ theme?: TooltipTheme;
180
+ /**
181
+ * The Interactive tooltip close button action
182
+ */
183
+ handleCloseAction?: (ev: React.MouseEvent) => void;
184
+ /**
185
+ * The Interactive tooltip primary button props
186
+ */
187
+ primaryButton: TooltipButton;
188
+ /**
189
+ * The Interactive tooltip secondary button props
190
+ */
191
+ secondaryButton: TooltipButton;
192
+ }
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TDisplaySize, TTextAlign } from './types';
2
+ import * as React from 'react';
3
3
  interface IProps {
4
4
  /** Size of the text */
5
5
  size?: TDisplaySize;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { THeadingSize, TTextAlign } from './types';
2
+ import * as React from 'react';
3
3
  interface IProps extends React.HTMLAttributes<HTMLElement> {
4
4
  size?: THeadingSize;
5
5
  /** DOM element name that will be rendered */
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { TTextAlign, TTextSize } from './types';
2
+ import * as React from 'react';
3
3
  interface IProps extends React.HTMLAttributes<HTMLElement> {
4
4
  /** DOM element name that will be rendered */
5
5
  as?: string;
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  import { ProgressStatus, ProgressSize } from '../Progress/constants';
2
+ import * as React from 'react';
3
3
  export interface UploadBarProps {
4
4
  /**
5
5
  * The CSS class for container