@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,46 @@
1
+ import { ReactNode } from 'react';
2
+ import { IconSource } from '../Icon';
3
+
4
+ export type ProductId = 'livechat' | 'helpdesk' | 'chatbot' | 'openwidget' | 'knowledgebase' | 'teamchat' | 'accounts';
5
+ export type ProductName = 'LiveChat' | 'HelpDesk' | 'ChatBot' | 'OpenWidget' | 'KnowledgeBase' | 'TeamChat' | 'Accounts';
6
+ export type Env = 'labs' | 'staging' | 'prod';
7
+ export interface ProductSwitcherProps {
8
+ mainProductId: ProductId;
9
+ productOptions: ProductOption[];
10
+ textURL?: string;
11
+ openedOnInit?: boolean;
12
+ isVisible?: boolean;
13
+ isDarkMode?: boolean;
14
+ onOpen?: (event?: Event) => void;
15
+ onClose?: (event?: Event) => void;
16
+ onSelect?: (id: ProductId) => void;
17
+ }
18
+ export declare const SSOProductIdMap: Record<ProductId, ProductName>;
19
+ export type ProductSubscription = Partial<Record<ProductId, {
20
+ status: 'trial' | 'active' | 'cancelled' | 'past_due' | 'expired';
21
+ next_charge_at?: string;
22
+ }>>;
23
+ export interface ProductOption {
24
+ id: ProductId;
25
+ shortcutKey?: string;
26
+ name: string;
27
+ expired?: boolean;
28
+ trialDaysLeft?: number;
29
+ nameAdornment?: ReactNode;
30
+ icon: IconSource;
31
+ iconColor?: string;
32
+ notificationCount?: number;
33
+ backgroundColors: {
34
+ main: string;
35
+ second: string;
36
+ third: string;
37
+ };
38
+ withDivider?: boolean;
39
+ url: string;
40
+ borderColor?: string;
41
+ }
42
+ export type ProductData = {
43
+ clientId: string;
44
+ product: ProductName;
45
+ redirectUri: string;
46
+ };
@@ -0,0 +1,3 @@
1
+ import { ProgressStatus } from './constants';
2
+
3
+ export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
@@ -0,0 +1,21 @@
1
+ import { ProgressSize, ProgressStatus } from './constants';
2
+ import * as React from 'react';
3
+ export interface ProgressBarProps {
4
+ /**
5
+ * The CSS class for container
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Specify the value of current progress bar (0-100)
10
+ */
11
+ percent: number;
12
+ /**
13
+ * Specify the progress bar status
14
+ */
15
+ status?: ProgressStatus;
16
+ /**
17
+ * Specify the progress bar size
18
+ */
19
+ size?: ProgressSize;
20
+ }
21
+ export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,21 @@
1
+ import { ProgressSize, ProgressStatus } from './constants';
2
+ import * as React from 'react';
3
+ export interface ProgressCircleProps {
4
+ /**
5
+ * The CSS class for container
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Specify the value of current progress circle (0-100)
10
+ */
11
+ progressValue: number;
12
+ /**
13
+ * Specify the progress circle status
14
+ */
15
+ status?: ProgressStatus;
16
+ /**
17
+ * Specify the progress circle size
18
+ */
19
+ size?: ProgressSize;
20
+ }
21
+ export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,3 @@
1
+ export type ProgressStatus = 'normal' | 'error' | 'success';
2
+ export type ProgressSize = 'small' | 'medium' | 'large';
3
+ export declare const PROGRESS_SIZES: ProgressSize[];
@@ -0,0 +1,2 @@
1
+ export { ProgressCircle } from './ProgressCircle';
2
+ export { ProgressBar } from './ProgressBar';
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ export interface PromoBannerProps {
3
+ /**
4
+ * Specify an optional className to be applied to the container node
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Set the primary button text
9
+ */
10
+ buttonText?: string;
11
+ /**
12
+ * Set the header text
13
+ */
14
+ header: string;
15
+ /**
16
+ * Set the image source to display it
17
+ */
18
+ img?: string;
19
+ /**
20
+ * Specify whether the banner should use a light-themed design
21
+ */
22
+ light?: boolean;
23
+ /**
24
+ * Set the link button text
25
+ */
26
+ linkText?: string;
27
+ /**
28
+ * Event handler for primary button press
29
+ */
30
+ onButtonClick?: () => void;
31
+ /**
32
+ * Event handler for close button press
33
+ */
34
+ onClose?: () => void;
35
+ /**
36
+ * Event handler for link button press
37
+ */
38
+ onLinkClick?: () => void;
39
+ }
40
+ /**
41
+ * @deprecated Since version 1.0.0. Will be deleted in version 2.0.0. Use {@link PromoBannerV2} instead.
42
+ */
43
+ export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;
@@ -0,0 +1 @@
1
+ export { PromoBanner } from './PromoBanner';
@@ -0,0 +1,45 @@
1
+ import { ButtonKind } from '../Button';
2
+ import * as React from 'react';
3
+ export interface IPromoBannerV2Props {
4
+ /**
5
+ * Specify an optional className to be applied to the main container node
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Element with additional content for second column
10
+ */
11
+ additionalContent?: React.ReactNode;
12
+ /**
13
+ * Shows the primary CTA button
14
+ */
15
+ primaryButton?: {
16
+ handleClick: () => void;
17
+ label: string;
18
+ kind?: ButtonKind;
19
+ };
20
+ /**
21
+ * Shows the secondary CTA button
22
+ */
23
+ secondaryButton?: {
24
+ handleClick: () => void;
25
+ label: string;
26
+ kind?: ButtonKind;
27
+ };
28
+ /**
29
+ * Set to true to display the banner vertically
30
+ */
31
+ vertical?: boolean;
32
+ /**
33
+ * Specify an optional className to be applied to the content node
34
+ */
35
+ contentClassName?: string;
36
+ /**
37
+ * Specify an optional className to be applied to the additional content node
38
+ */
39
+ additionalContentClassName?: string;
40
+ /**
41
+ * Event handler for close button press
42
+ */
43
+ onClose?: () => void;
44
+ }
45
+ export declare const PromoBannerV2: React.FC<React.PropsWithChildren<IPromoBannerV2Props>>;
@@ -0,0 +1 @@
1
+ export declare const SMALL_CONTAINER_WIDTH_TRESHOLD = 559;
@@ -0,0 +1,2 @@
1
+ export { PromoBannerV2 } from './PromoBannerV2';
2
+ export type { IPromoBannerV2Props } from './PromoBannerV2';
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
+ description?: string;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ }
7
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export { RadioButton } from './RadioButton';
@@ -0,0 +1,40 @@
1
+ import * as React from 'react';
2
+ export interface ISearchInputProps {
3
+ /**
4
+ * Makes search expandable after focusing the icon
5
+ */
6
+ isCollapsable?: boolean;
7
+ /**
8
+ * Specify whether the search should be disabled
9
+ */
10
+ isDisabled?: boolean;
11
+ /**
12
+ * Specify whether the search should have loader visible
13
+ */
14
+ isLoading?: boolean;
15
+ /**
16
+ * Optional text for placeholder
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * Specify the search size
21
+ */
22
+ size?: 'compact' | 'medium' | 'large';
23
+ /**
24
+ * Specify the search value
25
+ */
26
+ value: string;
27
+ /**
28
+ * Specify an optional className to be applied to the container node
29
+ */
30
+ className?: string;
31
+ /**
32
+ * The event handler for onChange
33
+ */
34
+ onChange: (value: string) => void;
35
+ /**
36
+ * Set to enable ellipsis
37
+ */
38
+ cropOnBlur?: boolean;
39
+ }
40
+ export declare const SearchInput: React.FC<ISearchInputProps>;
@@ -0,0 +1 @@
1
+ export { SearchInput } from './Search';
@@ -0,0 +1,39 @@
1
+ import { ButtonProps } from '../Button';
2
+ import * as React from 'react';
3
+ export type ButtonSize = 'compact' | 'medium' | 'large';
4
+ type ButtonElement = {
5
+ id: string;
6
+ label: string;
7
+ } & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
8
+ export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ /**
10
+ * Specify an optional className to be applied to the container node
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Array of buttons
15
+ */
16
+ buttons: ButtonElement[];
17
+ /**
18
+ * Set to make buttons fill the container if there is free space
19
+ */
20
+ fullWidth?: boolean;
21
+ /**
22
+ * Specify the buttons size
23
+ */
24
+ size?: ButtonSize;
25
+ /**
26
+ * Id of initially selected button
27
+ */
28
+ initialId?: string;
29
+ /**
30
+ * Id of current selected button, it will make component controlled
31
+ */
32
+ currentId?: string;
33
+ /**
34
+ * Handler for onClick on specific button
35
+ */
36
+ onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
37
+ }
38
+ export declare const SegmentedControl: React.FC<SegmentedControlProps>;
39
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SegmentedControl } from './SegmentedControl';
2
+ export type { SegmentedControlProps } from './SegmentedControl';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface ISkeletonAvatar {
3
+ /**
4
+ * Specify if the element is square shape
5
+ */
6
+ square?: boolean;
7
+ /**
8
+ * Specify the size of the element (wdith and height in px)
9
+ */
10
+ size?: number;
11
+ /**
12
+ * Specify if the animation is enabled
13
+ */
14
+ animated?: boolean;
15
+ }
16
+ export declare const SkeletonAvatar: React.FC<ISkeletonAvatar>;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface ISkeletonText {
3
+ /**
4
+ * Specify the height of the element
5
+ */
6
+ height?: number;
7
+ /**
8
+ * Specify the width of the element
9
+ */
10
+ width?: number;
11
+ /**
12
+ * Specify if the animation is enabled
13
+ */
14
+ animated?: boolean;
15
+ }
16
+ export declare const SkeletonText: React.FC<ISkeletonText>;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface ISkeletonWrapper extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The children elements to be wrapped by the skeleton wrapper
5
+ */
6
+ children: React.ReactNode;
7
+ /**
8
+ * Specify if the skeleton wrapper should display children elements vertically
9
+ */
10
+ vertical?: boolean;
11
+ /**
12
+ * Specify if the animation is enabled, it will be passed to the children skeleton components
13
+ */
14
+ animated?: boolean;
15
+ }
16
+ export declare const SkeletonWrapper: React.FC<React.PropsWithChildren<ISkeletonWrapper>>;
@@ -0,0 +1,3 @@
1
+ export { SkeletonWrapper } from './SkeletonWrapper';
2
+ export { SkeletonAvatar } from './SkeletonAvatar';
3
+ export { SkeletonText } from './SkeletonText';
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ export type StatusBadgeSizes = '3XS' | '2XS' | 'XS' | 'SM' | 'MD' | 'LG' | 'XL' | '2XL' | '3XL';
3
+ export interface IStatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
4
+ /**
5
+ * Specify the status badge kind
6
+ */
7
+ kind?: 'offline' | 'accept' | 'not-accept';
8
+ /**
9
+ * Specify the status badge size
10
+ */
11
+ size?: StatusBadgeSizes;
12
+ }
13
+ export declare const StatusBadge: React.FC<IStatusBadgeProps>;
@@ -0,0 +1 @@
1
+ export { StatusBadge } from './StatusBadge';
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ export declare const baseClass = "switch";
3
+ export type SwitchSize = 'compact' | 'medium' | 'large';
4
+ export type SwitchState = 'regular' | 'loading' | 'locked';
5
+ export interface SwitchProps {
6
+ /**
7
+ * Specify the label for the switch input
8
+ */
9
+ ariaLabel?: string;
10
+ /**
11
+ * The CSS class for switch container
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Will set the switch to "on" on component initialization
16
+ */
17
+ defaultOn?: boolean;
18
+ /**
19
+ * Specify whether the switch should be disabled
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * Ref object
24
+ */
25
+ innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
26
+ /**
27
+ * Specify the switch input name
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Define if switch is "on"
32
+ */
33
+ on?: boolean;
34
+ /**
35
+ * The event handler for onChange
36
+ */
37
+ onChange?(e: React.FormEvent, value: boolean): void;
38
+ /**
39
+ * Specify the switch size
40
+ */
41
+ size?: SwitchSize;
42
+ /**
43
+ * Specify the switch state
44
+ */
45
+ state?: SwitchState;
46
+ }
47
+ export declare const Switch: React.FC<React.PropsWithChildren<SwitchProps>>;
@@ -0,0 +1 @@
1
+ export { Switch } from './Switch';
@@ -0,0 +1,31 @@
1
+ import { Size } from '../../utils';
2
+ import * as React from 'react';
3
+ type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
4
+ href: string;
5
+ }) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
6
+ href?: never;
7
+ });
8
+ export type TabProps = HTMLProps & {
9
+ /**
10
+ * Set to display numeric counter with given number
11
+ */
12
+ count?: number;
13
+ /**
14
+ * Set to display selected state
15
+ */
16
+ isSelected?: boolean;
17
+ /**
18
+ * Set to display numeric counter as badge
19
+ */
20
+ asBadge?: boolean;
21
+ /**
22
+ * Specify the button size
23
+ */
24
+ size?: Size;
25
+ /**
26
+ * Renders given element
27
+ */
28
+ icon?: React.ReactElement;
29
+ };
30
+ export declare const Tab: React.FC<React.PropsWithChildren<TabProps>>;
31
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const TabsWrapper: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
3
+ export declare const TabsList: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
@@ -0,0 +1,2 @@
1
+ export * from './Tab';
2
+ export * from './TabsWrapper';
@@ -0,0 +1,3 @@
1
+ import { TagProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const Tag: React.FC<React.PropsWithChildren<TagProps>>;
@@ -0,0 +1,2 @@
1
+ export declare const kinds: readonly ["default", "info", "warning", "success", "error", "purple", "black", "gray", "gradient01", "gradient02", "gradient03", "gradient04", "gradient05", "gradient06", "gradient07", "gradient08", "gradient09", "gradient10", "gradient11"];
2
+ export declare const sizes: readonly ["small", "medium", "large", "xlarge"];
@@ -0,0 +1,3 @@
1
+ export { Tag } from './Tag';
2
+ export type { TagKind, TagSize } from './types';
3
+ export type { TagProps } from './types';
@@ -0,0 +1,55 @@
1
+ import { kinds, sizes } from './constants';
2
+ import * as React from 'react';
3
+ export type TagKind = (typeof kinds)[number];
4
+ export type TagSize = (typeof sizes)[number];
5
+ export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /**
7
+ * Specify the tag kind
8
+ */
9
+ kind?: TagKind;
10
+ /**
11
+ * Specify the tag size
12
+ */
13
+ size?: TagSize;
14
+ /**
15
+ * Set the tag custom color
16
+ */
17
+ customColor?: string;
18
+ /**
19
+ * Set to show close icon
20
+ * @deprecated The close icon will be visible by providing the `onRemove` prop and this flag will no longer be needed
21
+ */
22
+ dismissible?: boolean;
23
+ /**
24
+ * Set to show close icon on hover only if the `onRemove` prop is provided
25
+ */
26
+ dismissibleOnHover?: boolean;
27
+ /**
28
+ * Set to hide close icon if the `onRemove` prop is provided
29
+ */
30
+ disabled?: boolean;
31
+ /**
32
+ * Outlined version of tag
33
+ */
34
+ outline?: boolean;
35
+ /**
36
+ * The event handler for close icon click, if provided the close icon will be visible
37
+ */
38
+ onRemove?(e: React.MouseEvent): void;
39
+ /**
40
+ * React node element to show on the left
41
+ */
42
+ leftNode?: React.ReactElement;
43
+ /**
44
+ * React node element to show on the right
45
+ */
46
+ rightNode?: React.ReactElement;
47
+ /**
48
+ * Set to show the tag as square (only if you want use icon without text)
49
+ */
50
+ iconOnly?: boolean;
51
+ /**
52
+ * Set text value for the tag. You can use this or `children` prop. If both are provided, `value` prop will be used.
53
+ */
54
+ value?: string;
55
+ }
@@ -0,0 +1,3 @@
1
+ import { TagInputProps, TagInputValues } from './types';
2
+ import * as React from 'react';
3
+ export declare const TagInput: <T extends TagInputValues>({ id, tags, onChange, validator, error, placeholder, size, className, inputClassName, onBlur, addOnBlur, ...props }: TagInputProps<T>) => React.ReactElement;
@@ -0,0 +1,13 @@
1
+ import { TagProps } from '../../Tag';
2
+ import * as React from 'react';
3
+ export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
4
+ inputRef: React.RefObject<HTMLInputElement>;
5
+ index: number;
6
+ update: (idx: number, value: string) => void;
7
+ remove: (idx: number) => void;
8
+ validator?: (val: string) => boolean;
9
+ children: string;
10
+ size: 'medium' | 'large';
11
+ tagProps?: TagProps;
12
+ }
13
+ export declare const EditableTag: React.FC<React.PropsWithChildren<EditableTagProps>>;
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface EditableTagContentProps {
3
+ value: string;
4
+ className?: string;
5
+ innerEditableRef: React.RefObject<HTMLDivElement>;
6
+ inputRef: React.RefObject<HTMLInputElement>;
7
+ change: (value: string) => void;
8
+ remove: () => void;
9
+ validator?: (value: string) => boolean;
10
+ }
11
+ export declare const EditableTagContent: React.FC<EditableTagContentProps>;
@@ -0,0 +1,5 @@
1
+ import { TagInputProps, TagInputValues } from '../types';
2
+ import * as React from 'react';
3
+ export type EmailTagInputProps<T> = Omit<TagInputProps<T>, 'validator'>;
4
+ export declare const emailRegex: RegExp;
5
+ export declare const EmailTagInput: <T extends TagInputValues>({ placeholder, ...props }: EmailTagInputProps<T>) => React.ReactElement;
@@ -0,0 +1,4 @@
1
+ export { TagInput } from './TagInput';
2
+ export { EmailTagInput } from './components/EmailTagInput';
3
+ export type { EmailTagInputProps } from './components/EmailTagInput';
4
+ export type { TagInputProps } from './types';
@@ -0,0 +1,41 @@
1
+ import { TagProps } from '../Tag';
2
+ import * as React from 'react';
3
+ export interface TagInputProps<T> extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'onChange'> {
4
+ /**
5
+ * Set the id for input
6
+ */
7
+ id?: string;
8
+ /**
9
+ * Set the error message
10
+ */
11
+ error?: string;
12
+ /**
13
+ * Array of defined tags
14
+ */
15
+ tags?: T[];
16
+ /**
17
+ * The event handler for modify tags array
18
+ */
19
+ onChange: (tags: T[]) => void;
20
+ /**
21
+ * Set the input placeholder
22
+ */
23
+ placeholder?: string;
24
+ /**
25
+ * Set the custom validation for provided items
26
+ */
27
+ validator?: (val: string) => boolean;
28
+ /**
29
+ * Specify the input size
30
+ */
31
+ size?: 'medium' | 'large';
32
+ /**
33
+ * Set the input custom class
34
+ */
35
+ inputClassName?: string;
36
+ /**
37
+ * Add Tag on blur
38
+ */
39
+ addOnBlur?: boolean;
40
+ }
41
+ export type TagInputValues = string | Omit<TagProps, 'onRemove' | 'dismissible'>;
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
3
+ className?: string;
4
+ error?: boolean;
5
+ }
6
+ export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -0,0 +1 @@
1
+ export { Textarea } from './Textarea';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ type ToastKind = 'success' | 'warning' | 'error' | 'info';
3
+ type ToastAction = {
4
+ onClick: () => void;
5
+ label: string;
6
+ closesOnClick?: boolean;
7
+ };
8
+ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ action?: ToastAction;
10
+ className?: string;
11
+ removable?: boolean;
12
+ kind?: ToastKind;
13
+ onClose?: () => void;
14
+ }
15
+ export declare const Toast: React.FC<React.PropsWithChildren<ToastProps>>;
16
+ export {};