@livechat/design-system-react-components 2.2.2 → 2.3.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 (244) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +3 -0
  2. package/dist/components/Accordion/components/AccordionAnimatedLabel.d.ts +3 -0
  3. package/dist/components/Accordion/components/AccordionMultilineElement.d.ts +6 -0
  4. package/dist/components/Accordion/helpers.d.ts +10 -0
  5. package/dist/components/Accordion/index.d.ts +1 -0
  6. package/dist/components/Accordion/stories-helpers.d.ts +4 -0
  7. package/dist/components/Accordion/types.d.ts +45 -0
  8. package/dist/components/ActionBar/ActionBar.d.ts +3 -0
  9. package/dist/components/ActionBar/ActionBarItem.d.ts +3 -0
  10. package/dist/components/ActionBar/constants.d.ts +3 -0
  11. package/dist/components/ActionBar/index.d.ts +2 -0
  12. package/dist/components/ActionBar/types.d.ts +45 -0
  13. package/dist/components/ActionCard/ActionCard.d.ts +4 -0
  14. package/dist/components/ActionCard/index.d.ts +2 -0
  15. package/dist/components/ActionCard/types.d.ts +23 -0
  16. package/dist/components/ActionMenu/ActionMenu.d.ts +3 -0
  17. package/dist/components/ActionMenu/ActionMenuItem.d.ts +3 -0
  18. package/dist/components/ActionMenu/index.d.ts +3 -0
  19. package/dist/components/ActionMenu/stories-constants.d.ts +15 -0
  20. package/dist/components/ActionMenu/types.d.ts +80 -0
  21. package/dist/components/Alert/Alert.d.ts +29 -0
  22. package/dist/components/Alert/index.d.ts +1 -0
  23. package/dist/components/AppFrame/AppFrame.d.ts +3 -0
  24. package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +21 -0
  25. package/dist/components/AppFrame/components/MobileNavigation/MobileNavigation.d.ts +3 -0
  26. package/dist/components/AppFrame/components/MobileNavigation/types.d.ts +8 -0
  27. package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +3 -0
  28. package/dist/components/AppFrame/components/Navigation/types.d.ts +8 -0
  29. package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +3 -0
  30. package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +16 -0
  31. package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +3 -0
  32. package/dist/components/AppFrame/components/NavigationItem/types.d.ts +40 -0
  33. package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +45 -0
  34. package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +15 -0
  35. package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +59 -0
  36. package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +3 -0
  37. package/dist/components/AppFrame/components/SideNavigation/types.d.ts +28 -0
  38. package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +3 -0
  39. package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +32 -0
  40. package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +3 -0
  41. package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +3 -0
  42. package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +44 -0
  43. package/dist/components/AppFrame/components/index.d.ts +10 -0
  44. package/dist/components/AppFrame/index.d.ts +2 -0
  45. package/dist/components/AppFrame/stories-helpers.d.ts +19 -0
  46. package/dist/components/AppFrame/types.d.ts +47 -0
  47. package/dist/components/AutoComplete/AutoComplete.d.ts +13 -0
  48. package/dist/components/AutoComplete/helpers.d.ts +7 -0
  49. package/dist/components/AutoComplete/index.d.ts +5 -0
  50. package/dist/components/AutoComplete/types.d.ts +27 -0
  51. package/dist/components/Avatar/Avatar.d.ts +42 -0
  52. package/dist/components/Avatar/Avatar.helpers.d.ts +3 -0
  53. package/dist/components/Avatar/index.d.ts +3 -0
  54. package/dist/components/Avatar/types.d.ts +8 -0
  55. package/dist/components/Badge/Badge.d.ts +27 -0
  56. package/dist/components/Badge/Badge.helpers.d.ts +1 -0
  57. package/dist/components/Badge/index.d.ts +1 -0
  58. package/dist/components/Button/Button.d.ts +70 -0
  59. package/dist/components/Button/Button.helpers.d.ts +6 -0
  60. package/dist/components/Button/index.d.ts +3 -0
  61. package/dist/components/Button/types.d.ts +2 -0
  62. package/dist/components/Card/Card.d.ts +30 -0
  63. package/dist/components/Card/index.d.ts +2 -0
  64. package/dist/components/Checkbox/Checkbox.d.ts +16 -0
  65. package/dist/components/Checkbox/index.d.ts +1 -0
  66. package/dist/components/DatePicker/DatePicker.d.ts +4 -0
  67. package/dist/components/DatePicker/DatePickerNavbar.d.ts +4 -0
  68. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
  69. package/dist/components/DatePicker/RangeDatePicker.d.ts +17 -0
  70. package/dist/components/DatePicker/helpers.d.ts +17 -0
  71. package/dist/components/DatePicker/hooks.d.ts +7 -0
  72. package/dist/components/DatePicker/index.d.ts +3 -0
  73. package/dist/components/DatePicker/types.d.ts +101 -0
  74. package/dist/components/DetailsCard/DetailsCard.d.ts +40 -0
  75. package/dist/components/DetailsCard/index.d.ts +2 -0
  76. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +8 -0
  77. package/dist/components/DetailsCardInfo/index.d.ts +1 -0
  78. package/dist/components/FieldDescription/FieldDescription.d.ts +3 -0
  79. package/dist/components/FieldDescription/index.d.ts +1 -0
  80. package/dist/components/FieldError/FieldError.d.ts +3 -0
  81. package/dist/components/FieldError/index.d.ts +1 -0
  82. package/dist/components/FieldGroup/FieldGroup.d.ts +8 -0
  83. package/dist/components/FieldGroup/index.d.ts +1 -0
  84. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
  85. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
  86. package/dist/components/FileUploadProgress/index.d.ts +2 -0
  87. package/dist/components/Form/Form.d.ts +16 -0
  88. package/dist/components/Form/index.d.ts +2 -0
  89. package/dist/components/FormField/FormField.d.ts +40 -0
  90. package/dist/components/FormField/index.d.ts +1 -0
  91. package/dist/components/FormGroup/FormGroup.d.ts +16 -0
  92. package/dist/components/FormGroup/index.d.ts +1 -0
  93. package/dist/components/Icon/Icon.d.ts +32 -0
  94. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +11 -0
  95. package/dist/components/Icon/IconsShowcase/constans.d.ts +3 -0
  96. package/dist/components/Icon/IconsShowcase/helpers.d.ts +3 -0
  97. package/dist/components/Icon/IconsShowcase/types.d.ts +9 -0
  98. package/dist/components/Icon/index.d.ts +2 -0
  99. package/dist/components/Icon/types.d.ts +3 -0
  100. package/dist/components/Input/Input.d.ts +29 -0
  101. package/dist/components/Input/index.d.ts +1 -0
  102. package/dist/components/InviteAgents/InviteAgents.d.ts +3 -0
  103. package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +24 -0
  104. package/dist/components/InviteAgents/helpers.d.ts +4 -0
  105. package/dist/components/InviteAgents/index.d.ts +2 -0
  106. package/dist/components/InviteAgents/types.d.ts +34 -0
  107. package/dist/components/Link/Link.d.ts +14 -0
  108. package/dist/components/Link/index.d.ts +1 -0
  109. package/dist/components/Loader/Loader.d.ts +20 -0
  110. package/dist/components/Loader/index.d.ts +1 -0
  111. package/dist/components/Modal/Modal.d.ts +25 -0
  112. package/dist/components/Modal/StoriesComponents.d.ts +4 -0
  113. package/dist/components/Modal/components/ActionModalContent.d.ts +29 -0
  114. package/dist/components/Modal/components/ModalBase.d.ts +24 -0
  115. package/dist/components/Modal/components/ModalCloseButton.d.ts +7 -0
  116. package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
  117. package/dist/components/Modal/components/ModalPortal.d.ts +8 -0
  118. package/dist/components/Modal/index.d.ts +11 -0
  119. package/dist/components/NumericInput/NumericInput.d.ts +12 -0
  120. package/dist/components/NumericInput/index.d.ts +1 -0
  121. package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +3 -0
  122. package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +3 -0
  123. package/dist/components/OnboardingChecklist/components/index.d.ts +1 -0
  124. package/dist/components/OnboardingChecklist/index.d.ts +2 -0
  125. package/dist/components/OnboardingChecklist/types.d.ts +97 -0
  126. package/dist/components/Picker/Picker.d.ts +3 -0
  127. package/dist/components/Picker/components/PickerList.d.ts +27 -0
  128. package/dist/components/Picker/components/PickerListItem.d.ts +14 -0
  129. package/dist/components/Picker/components/PickerTrigger.d.ts +18 -0
  130. package/dist/components/Picker/components/PickerTriggerBody.d.ts +23 -0
  131. package/dist/components/Picker/constants.d.ts +40 -0
  132. package/dist/components/Picker/helpers.d.ts +6 -0
  133. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +36 -0
  134. package/dist/components/Picker/hooks/usePickerItems.d.ts +23 -0
  135. package/dist/components/Picker/index.d.ts +3 -0
  136. package/dist/components/Picker/types.d.ts +143 -0
  137. package/dist/components/Popover/Popover.d.ts +3 -0
  138. package/dist/components/Popover/index.d.ts +2 -0
  139. package/dist/components/Popover/types.d.ts +65 -0
  140. package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +4 -0
  141. package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +10 -0
  142. package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +9 -0
  143. package/dist/components/ProductSwitcher/constants.d.ts +7 -0
  144. package/dist/components/ProductSwitcher/helpers.d.ts +10 -0
  145. package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +14 -0
  146. package/dist/components/ProductSwitcher/index.d.ts +4 -0
  147. package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +1 -0
  148. package/dist/components/ProductSwitcher/types.d.ts +46 -0
  149. package/dist/components/Progress/Progress.helpers.d.ts +3 -0
  150. package/dist/components/Progress/ProgressBar.d.ts +21 -0
  151. package/dist/components/Progress/ProgressCircle.d.ts +21 -0
  152. package/dist/components/Progress/constants.d.ts +3 -0
  153. package/dist/components/Progress/index.d.ts +2 -0
  154. package/dist/components/PromoBanner/PromoBanner.d.ts +43 -0
  155. package/dist/components/PromoBanner/index.d.ts +1 -0
  156. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +45 -0
  157. package/dist/components/PromoBannerV2/constants.d.ts +1 -0
  158. package/dist/components/PromoBannerV2/index.d.ts +2 -0
  159. package/dist/components/RadioButton/RadioButton.d.ts +7 -0
  160. package/dist/components/RadioButton/index.d.ts +1 -0
  161. package/dist/components/Search/Search.d.ts +40 -0
  162. package/dist/components/Search/index.d.ts +1 -0
  163. package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
  164. package/dist/components/SegmentedControl/index.d.ts +2 -0
  165. package/dist/components/Skeleton/SkeletonAvatar.d.ts +16 -0
  166. package/dist/components/Skeleton/SkeletonText.d.ts +16 -0
  167. package/dist/components/Skeleton/SkeletonWrapper.d.ts +16 -0
  168. package/dist/components/Skeleton/index.d.ts +3 -0
  169. package/dist/components/StatusBadge/StatusBadge.d.ts +13 -0
  170. package/dist/components/StatusBadge/index.d.ts +1 -0
  171. package/dist/components/Switch/Switch.d.ts +47 -0
  172. package/dist/components/Switch/index.d.ts +1 -0
  173. package/dist/components/Tab/Tab.d.ts +31 -0
  174. package/dist/components/Tab/TabsWrapper.d.ts +3 -0
  175. package/dist/components/Tab/index.d.ts +2 -0
  176. package/dist/components/Tag/Tag.d.ts +3 -0
  177. package/dist/components/Tag/constants.d.ts +2 -0
  178. package/dist/components/Tag/index.d.ts +3 -0
  179. package/dist/components/Tag/types.d.ts +55 -0
  180. package/dist/components/TagInput/TagInput.d.ts +3 -0
  181. package/dist/components/TagInput/components/EditableTag.d.ts +13 -0
  182. package/dist/components/TagInput/components/EditableTagContent.d.ts +11 -0
  183. package/dist/components/TagInput/components/EmailTagInput.d.ts +5 -0
  184. package/dist/components/TagInput/index.d.ts +4 -0
  185. package/dist/components/TagInput/types.d.ts +41 -0
  186. package/dist/components/Textarea/Textarea.d.ts +6 -0
  187. package/dist/components/Textarea/index.d.ts +1 -0
  188. package/dist/components/Toast/Toast.d.ts +16 -0
  189. package/dist/components/Toast/ToastWrapper.d.ts +20 -0
  190. package/dist/components/Toast/index.d.ts +2 -0
  191. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  192. package/dist/components/Tooltip/Tooltip.helpers.d.ts +10 -0
  193. package/dist/components/Tooltip/components/Info.d.ts +3 -0
  194. package/dist/components/Tooltip/components/Interactive.d.ts +3 -0
  195. package/dist/components/Tooltip/components/Reports.d.ts +7 -0
  196. package/dist/components/Tooltip/components/Simple.d.ts +4 -0
  197. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +8 -0
  198. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
  199. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -0
  200. package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
  201. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +9 -0
  202. package/dist/components/Tooltip/components/index.d.ts +5 -0
  203. package/dist/components/Tooltip/index.d.ts +4 -0
  204. package/dist/components/Tooltip/types.d.ts +199 -0
  205. package/dist/components/Typography/Display.d.ts +18 -0
  206. package/dist/components/Typography/Heading.d.ts +19 -0
  207. package/dist/components/Typography/Text.d.ts +31 -0
  208. package/dist/components/Typography/index.d.ts +4 -0
  209. package/dist/components/Typography/types.d.ts +4 -0
  210. package/dist/components/UpdateBadge/UpdateBadge.d.ts +2 -0
  211. package/dist/components/UpdateBadge/index.d.ts +1 -0
  212. package/dist/components/UploadBar/UploadBar.d.ts +49 -0
  213. package/dist/components/UploadBar/index.d.ts +1 -0
  214. package/dist/foundations/design-token.d.ts +374 -0
  215. package/dist/foundations/index.d.ts +5 -0
  216. package/dist/foundations/radius-token.d.ts +13 -0
  217. package/dist/foundations/shadow-token.d.ts +24 -0
  218. package/dist/foundations/spacing-token.d.ts +22 -0
  219. package/dist/foundations/transition-token.d.ts +17 -0
  220. package/dist/hooks/helpers.d.ts +3 -0
  221. package/dist/hooks/index.d.ts +3 -0
  222. package/dist/hooks/types.d.ts +13 -0
  223. package/dist/hooks/useAnimations.d.ts +12 -0
  224. package/dist/hooks/useHeightResizer.d.ts +3 -0
  225. package/dist/hooks/useMobileViewDetector.d.ts +3 -0
  226. package/dist/hooks/useSharedResizeObserver.d.ts +6 -0
  227. package/dist/index.cjs +1 -1
  228. package/dist/index.d.ts +55 -0
  229. package/dist/index.js +1435 -1440
  230. package/dist/providers/AppFrameProvider.d.ts +14 -0
  231. package/dist/providers/ThemeProvider.d.ts +20 -0
  232. package/dist/providers/constants.d.ts +4 -0
  233. package/dist/providers/helpers.d.ts +4 -0
  234. package/dist/providers/index.d.ts +5 -0
  235. package/dist/providers/types.d.ts +1 -0
  236. package/dist/utils/PdfIcon.d.ts +2 -0
  237. package/dist/utils/getDesignTokenWithOpacity.d.ts +1 -0
  238. package/dist/utils/index.d.ts +2 -0
  239. package/dist/utils/keyCodes.d.ts +12 -0
  240. package/dist/utils/noop.d.ts +1 -0
  241. package/dist/utils/plural.d.ts +1 -0
  242. package/dist/utils/story-parameters.d.ts +3 -0
  243. package/dist/utils/types.d.ts +16 -0
  244. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type FieldDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldDescription: React.FC<React.PropsWithChildren<FieldDescriptionProps>>;
@@ -0,0 +1 @@
1
+ export { FieldDescription } from './FieldDescription';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type FieldErrorProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldError: React.FC<React.PropsWithChildren<FieldErrorProps>>;
@@ -0,0 +1 @@
1
+ export { FieldError } from './FieldError';
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface FieldGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ description?: React.ReactNode;
4
+ error?: string;
5
+ inline?: boolean;
6
+ stretch?: boolean;
7
+ }
8
+ export declare const FieldGroup: React.FC<React.PropsWithChildren<FieldGroupProps>>;
@@ -0,0 +1 @@
1
+ export { FieldGroup } from './FieldGroup';
@@ -0,0 +1,42 @@
1
+ import { ProgressSize, ProgressStatus } from '../Progress/constants';
2
+ import * as React from 'react';
3
+ export type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
4
+ export interface FileUploadProgressProps {
5
+ /**
6
+ * Define if action buttons should be visible, visible on hover, or hidden
7
+ */
8
+ actionsVisibility?: UploadProgressActionState;
9
+ /**
10
+ * The CSS class for progress bar
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Renders given element
15
+ */
16
+ icon?: React.ReactNode;
17
+ /**
18
+ * Specify the uploading file name
19
+ */
20
+ title: string;
21
+ /**
22
+ * Specify the value of current file upload progress (0-100)
23
+ */
24
+ progressValue: number;
25
+ /**
26
+ * Specify the progress bar size
27
+ */
28
+ size?: ProgressSize;
29
+ /**
30
+ * Specify the uploading file status
31
+ */
32
+ status?: ProgressStatus;
33
+ /**
34
+ * The event handler for close icon click
35
+ */
36
+ onCloseButtonClick?: () => void;
37
+ /**
38
+ * The event handler for retry icon click
39
+ */
40
+ onRetryButtonClick?: () => void;
41
+ }
42
+ export declare const FileUploadProgress: React.ExoticComponent<FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,9 @@
1
+ import { ProgressStatus } from '../Progress/constants';
2
+ import * as React from 'react';
3
+ interface FileUploadProgressActionsProps {
4
+ status: ProgressStatus;
5
+ onCloseButtonClick?: () => void;
6
+ onRetryButtonClick?: () => void;
7
+ }
8
+ export declare const FileUploadProgressActions: React.FC<FileUploadProgressActionsProps>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './FileUploadProgress';
2
+ export * from './FileUploadProgressActions';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
3
+ /**
4
+ * Set form label
5
+ */
6
+ labelText?: string;
7
+ /**
8
+ * Set form description
9
+ */
10
+ helperText?: string;
11
+ /**
12
+ * Footer element
13
+ */
14
+ formFooter?: React.ReactNode;
15
+ }
16
+ export declare const Form: React.FC<React.PropsWithChildren<FormProps>>;
@@ -0,0 +1,2 @@
1
+ export { Form } from './Form';
2
+ export type { FormProps } from './Form';
@@ -0,0 +1,40 @@
1
+ import * as React from 'react';
2
+ export interface FormFieldProps {
3
+ /**
4
+ * Define label text
5
+ */
6
+ labelText?: string;
7
+ /**
8
+ * Renders given element aligned to label, `inline` will affect
9
+ */
10
+ labelAdornment?: React.ReactNode;
11
+ /**
12
+ * Define to associate the label with the field
13
+ */
14
+ labelFor?: string;
15
+ /**
16
+ * The CSS class for field container
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Set the label to inline version
21
+ */
22
+ inline?: boolean;
23
+ /**
24
+ * Define error text
25
+ */
26
+ error?: string;
27
+ /**
28
+ * Define the description text
29
+ */
30
+ description?: React.ReactNode;
31
+ /**
32
+ * Wrapped element
33
+ */
34
+ children?: React.ReactNode;
35
+ /**
36
+ * Renders given element above the filed
37
+ */
38
+ labelRightNode?: React.ReactNode;
39
+ }
40
+ export declare const FormField: React.FC<React.PropsWithChildren<FormFieldProps>>;
@@ -0,0 +1 @@
1
+ export * from './FormField';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The CSS class for container
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Set form label
9
+ */
10
+ labelText?: string;
11
+ /**
12
+ * Set form description
13
+ */
14
+ helperText?: string;
15
+ }
16
+ export declare const FormGroup: React.FC<React.PropsWithChildren<FormGroupProps>>;
@@ -0,0 +1 @@
1
+ export * from './FormGroup';
@@ -0,0 +1,32 @@
1
+ import { IconSource } from './types';
2
+ import * as React from 'react';
3
+ export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
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' | 'lock-black';
5
+ export interface IconProps {
6
+ /**
7
+ * Specify the source of svg element
8
+ */
9
+ source: IconSource;
10
+ /**
11
+ * Specify the icon size
12
+ */
13
+ size?: IconSize;
14
+ /**
15
+ * Specify the icon kind
16
+ */
17
+ kind?: IconKind;
18
+ /**
19
+ * Specify whether the icon should be disabled
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * The CSS class for icon
24
+ */
25
+ className?: string;
26
+ /**
27
+ * Set the icon custom color
28
+ */
29
+ customColor?: string;
30
+ }
31
+ export declare const Icon: React.FC<React.PropsWithChildren<IconProps>>;
32
+ export default Icon;
@@ -0,0 +1,11 @@
1
+ import { IconSource } from '../index';
2
+ import { IconName } from './types';
3
+ import * as React from 'react';
4
+ export type IconsMap = {
5
+ [key: string]: IconSource;
6
+ };
7
+ interface IProps {
8
+ data: IconName[];
9
+ }
10
+ export declare const IconsShowcase: React.FC<IProps>;
11
+ export {};
@@ -0,0 +1,3 @@
1
+ import { IconGroup, IconName } from './types';
2
+
3
+ export declare const IconsData: Record<IconName, IconGroup>;
@@ -0,0 +1,3 @@
1
+ import { IconGroup, IconName } from './types';
2
+
3
+ export declare const getIconsByGroup: (group: IconGroup) => IconName[];
@@ -0,0 +1,9 @@
1
+ import * as DSIcons from '@livechat/design-system-icons';
2
+ export type IconName = keyof typeof DSIcons;
3
+ export declare enum IconGroup {
4
+ Arrows = 0,
5
+ Text = 1,
6
+ FileType = 2,
7
+ General = 3,
8
+ Brands = 4
9
+ }
@@ -0,0 +1,2 @@
1
+ export * from './Icon';
2
+ export type { IconSource } from './types';
@@ -0,0 +1,3 @@
1
+ import { FC, SVGProps } from 'react';
2
+
3
+ export type IconSource = FC<SVGProps<SVGSVGElement>>;
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ interface InputIcon {
3
+ source: React.ReactElement;
4
+ place: 'left' | 'right';
5
+ }
6
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
7
+ /**
8
+ * Specify the input size
9
+ */
10
+ inputSize?: 'xsmall' | 'compact' | 'medium' | 'large';
11
+ /**
12
+ * Specify whether the input should be in error state
13
+ */
14
+ error?: boolean;
15
+ /**
16
+ * Specify whether the input should be disabled
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Set the icon and its position
21
+ */
22
+ icon?: InputIcon;
23
+ /**
24
+ * Set to enable ellipsis
25
+ */
26
+ cropOnBlur?: boolean;
27
+ }
28
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
29
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Input';
@@ -0,0 +1,3 @@
1
+ import { InviteAgentsProps } from './types';
2
+
3
+ export declare const InviteAgents: import('react').NamedExoticComponent<InviteAgentsProps>;
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export interface AnimatedIconButtonProps {
3
+ /**
4
+ * The icon to display inside the button.
5
+ */
6
+ icon: React.ReactElement;
7
+ /**
8
+ * The text to display alongside the icon.
9
+ */
10
+ text: string;
11
+ /**
12
+ * Optional click handler.
13
+ */
14
+ onClick?: () => void;
15
+ /**
16
+ * Optional className to apply to the button.
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Optional prop to control the expanded state of the button.
21
+ */
22
+ isExpanded?: boolean;
23
+ }
24
+ export declare const AnimatedButton: React.FC<AnimatedIconButtonProps>;
@@ -0,0 +1,4 @@
1
+ import { Agent } from './types';
2
+
3
+ export declare const getSortedAgents: (agents: Agent[]) => Agent[];
4
+ export declare const getAvailableAgentsTooltipText: (availableAgentsNumber: number) => string;
@@ -0,0 +1,2 @@
1
+ export { InviteAgents } from './InviteAgents';
2
+ export { type InviteAgentsProps, type Agent } from './types';
@@ -0,0 +1,34 @@
1
+ import { ComponentCoreProps } from '../../utils/types';
2
+
3
+ export interface Agent {
4
+ name: string;
5
+ email: string;
6
+ status: 'available' | 'unavailable' | 'unknown';
7
+ avatar?: string;
8
+ }
9
+ export interface InviteAgentsProps extends ComponentCoreProps {
10
+ /**
11
+ * The list of invited agents
12
+ */
13
+ agents: Agent[];
14
+ /**
15
+ * The function to call when the "Set up Chatbot" button is clicked
16
+ */
17
+ onSetUpChatbotClick: () => void;
18
+ /**
19
+ * The function to call when the "Invite Teammate" button is clicked
20
+ */
21
+ onAddTeammateClick: () => void;
22
+ /**
23
+ * Whether the invite button should be animated
24
+ */
25
+ animatedInviteButton?: boolean;
26
+ /**
27
+ * Offset for the tooltip arrow
28
+ */
29
+ tooltipArrowOffset?: number;
30
+ /**
31
+ * The function to call when the "Available" button is clicked
32
+ */
33
+ onAvailableAgentsClick: () => void;
34
+ }
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ bold?: boolean;
4
+ }
5
+ /**
6
+ * Simple component which renders an `<a>` element.
7
+ *
8
+ * Place the `<Link>` inside a `<Text>` component or pass a custom className to set the typography styles.
9
+ *
10
+ * Use `<Button kind="link">` to act as a `<button>` - <a target="_self" href="/story/components-button--kinds">see the story</a>.
11
+ *
12
+ * Use `<Button href="">` to display as a `<Button>` - <a target="_self" href="/story/components-button--link">see the story</a>.
13
+ */
14
+ export declare const Link: React.FC<React.PropsWithChildren<LinkProps>>;
@@ -0,0 +1 @@
1
+ export { Link } from './Link';
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Specify the loader size
5
+ */
6
+ size?: 'small' | 'medium' | 'large';
7
+ /**
8
+ * Specify the loader label
9
+ */
10
+ label?: string;
11
+ /**
12
+ * Set the loader highlight color
13
+ */
14
+ primaryColor?: string;
15
+ /**
16
+ * Set the loader color
17
+ */
18
+ secondaryColor?: string;
19
+ }
20
+ export declare const Loader: React.FC<LoaderProps>;
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,25 @@
1
+ import { ModalBaseProps } from './components/ModalBase';
2
+ import * as React from 'react';
3
+ export interface ModalProps extends ModalBaseProps {
4
+ /**
5
+ * Header element. For consistent UI use `<ModalHeader/>`
6
+ */
7
+ heading?: React.ReactNode;
8
+ /**
9
+ * Header element outside the main container. For consistent UI use `<ModalHeader/>`
10
+ */
11
+ labelHeading?: React.ReactNode;
12
+ /**
13
+ * Removes the spacing inside the main container
14
+ */
15
+ fullSpaceContent?: boolean;
16
+ /**
17
+ * Footer element
18
+ */
19
+ footer?: React.ReactNode;
20
+ /**
21
+ * Class name for the content container
22
+ */
23
+ contentClassName?: string;
24
+ }
25
+ export declare const Modal: React.FC<React.PropsWithChildren<ModalProps>>;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ export declare const ModalFullSpaceContent: React.FC;
3
+ export declare const ModalContent: React.FC;
4
+ export declare const ModalFooter: React.FC;
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ interface IActionModalProps {
3
+ /**
4
+ * Optional element to render icon or image
5
+ */
6
+ icon?: React.ReactNode;
7
+ /**
8
+ * Set the header text
9
+ */
10
+ heading?: React.ReactNode;
11
+ /**
12
+ * Optional element to render action buttons
13
+ */
14
+ actions?: React.ReactNode;
15
+ /**
16
+ * The CSS class for main container
17
+ */
18
+ className?: string;
19
+ /**
20
+ * The CSS class for header container
21
+ */
22
+ headerClassName?: string;
23
+ /**
24
+ * The CSS class for content container
25
+ */
26
+ contentClassName?: string;
27
+ }
28
+ export declare const ActionModalContent: React.FC<React.PropsWithChildren<IActionModalProps>>;
29
+ export {};
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export interface ModalBaseProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The event handler for close button
5
+ */
6
+ onClose(): void;
7
+ /**
8
+ * Triggers the onClose event on `esc` key press
9
+ */
10
+ closeOnEscPress?: boolean;
11
+ /**
12
+ * Triggers the onClose event on overlay click
13
+ */
14
+ closeOnOverlayPress?: boolean;
15
+ /**
16
+ * Removes the spacing inside the main container
17
+ */
18
+ fullSpaceContent?: boolean;
19
+ /**
20
+ * Put extra margin on the top of the modal for the label
21
+ */
22
+ isLabelled?: boolean;
23
+ }
24
+ export declare const ModalBase: React.FC<React.PropsWithChildren<ModalBaseProps>>;
@@ -0,0 +1,7 @@
1
+ import { ButtonProps } from '../../Button';
2
+ import * as React from 'react';
3
+ export interface ModalCloseButtonProps extends ButtonProps {
4
+ labelType?: boolean;
5
+ customColor?: string;
6
+ }
7
+ export declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
@@ -0,0 +1,26 @@
1
+ import { AvatarProps } from '../../Avatar';
2
+ import { IconProps } from '../../Icon';
3
+ import * as React from 'react';
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<React.PropsWithChildren<ModalHeaderProps>>;
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren, ReactNode, HTMLAttributes } from 'react';
2
+
3
+ export interface ModalPortalProps extends HTMLAttributes<HTMLDivElement> {
4
+ children: ReactNode;
5
+ zIndex: number;
6
+ parentElementName?: string;
7
+ }
8
+ export declare const ModalPortal: FC<PropsWithChildren<ModalPortalProps>>;
@@ -0,0 +1,11 @@
1
+ export { Modal } from './Modal';
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
+ export { ActionModalContent } from './components/ActionModalContent';
7
+ export type { ModalProps } from './Modal';
8
+ export type { ModalBaseProps } from './components/ModalBase';
9
+ export type { ModalCloseButtonProps } from './components/ModalCloseButton';
10
+ export type { ModalPortalProps } from './components/ModalPortal';
11
+ export type { ModalHeaderProps } from './components/ModalHeader';
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ export type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ className?: string;
4
+ error?: string;
5
+ value: string;
6
+ max?: number;
7
+ min?: number;
8
+ disabled?: boolean;
9
+ noControls?: boolean;
10
+ onChange: (value: string) => void;
11
+ };
12
+ export declare const NumericInput: React.FC<React.PropsWithChildren<NumericInputProps>>;
@@ -0,0 +1 @@
1
+ export { NumericInput } from './NumericInput';
@@ -0,0 +1,3 @@
1
+ import { IOnboardingChecklistProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const OnboardingChecklist: React.FC<IOnboardingChecklistProps>;
@@ -0,0 +1,3 @@
1
+ import { ICheckListItem } from '../types';
2
+ import * as React from 'react';
3
+ export declare const CheckListItem: React.FC<ICheckListItem>;
@@ -0,0 +1 @@
1
+ export { CheckListItem } from './CheckListItem';
@@ -0,0 +1,2 @@
1
+ export { OnboardingChecklist } from './OnboardingChecklist';
2
+ export type { IOnboardingChecklistProps, IChecklistItemProps, ICompletionMessageDataProps, } from './types';