@livechat/design-system-react-components 2.2.1 → 2.2.2

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/index.cjs +1 -1
  2. package/dist/index.js +1 -1
  3. package/package.json +2 -2
  4. package/dist/components/Accordion/Accordion.d.ts +0 -3
  5. package/dist/components/Accordion/components/AccordionAnimatedLabel.d.ts +0 -3
  6. package/dist/components/Accordion/components/AccordionMultilineElement.d.ts +0 -6
  7. package/dist/components/Accordion/helpers.d.ts +0 -10
  8. package/dist/components/Accordion/index.d.ts +0 -1
  9. package/dist/components/Accordion/stories-helpers.d.ts +0 -4
  10. package/dist/components/Accordion/types.d.ts +0 -45
  11. package/dist/components/ActionBar/ActionBar.d.ts +0 -3
  12. package/dist/components/ActionBar/ActionBarItem.d.ts +0 -3
  13. package/dist/components/ActionBar/constants.d.ts +0 -3
  14. package/dist/components/ActionBar/index.d.ts +0 -2
  15. package/dist/components/ActionBar/types.d.ts +0 -45
  16. package/dist/components/ActionCard/ActionCard.d.ts +0 -4
  17. package/dist/components/ActionCard/index.d.ts +0 -2
  18. package/dist/components/ActionCard/types.d.ts +0 -23
  19. package/dist/components/ActionMenu/ActionMenu.d.ts +0 -3
  20. package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -3
  21. package/dist/components/ActionMenu/index.d.ts +0 -3
  22. package/dist/components/ActionMenu/stories-constants.d.ts +0 -15
  23. package/dist/components/ActionMenu/types.d.ts +0 -80
  24. package/dist/components/Alert/Alert.d.ts +0 -29
  25. package/dist/components/Alert/index.d.ts +0 -1
  26. package/dist/components/AppFrame/AppFrame.d.ts +0 -3
  27. package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +0 -21
  28. package/dist/components/AppFrame/components/MobileNavigation/MobileNavigation.d.ts +0 -3
  29. package/dist/components/AppFrame/components/MobileNavigation/types.d.ts +0 -8
  30. package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +0 -3
  31. package/dist/components/AppFrame/components/Navigation/types.d.ts +0 -8
  32. package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  33. package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +0 -16
  34. package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +0 -3
  35. package/dist/components/AppFrame/components/NavigationItem/types.d.ts +0 -40
  36. package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +0 -45
  37. package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +0 -15
  38. package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +0 -59
  39. package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +0 -3
  40. package/dist/components/AppFrame/components/SideNavigation/types.d.ts +0 -28
  41. package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +0 -3
  42. package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +0 -32
  43. package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +0 -3
  44. package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +0 -3
  45. package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +0 -44
  46. package/dist/components/AppFrame/components/index.d.ts +0 -10
  47. package/dist/components/AppFrame/index.d.ts +0 -2
  48. package/dist/components/AppFrame/stories-helpers.d.ts +0 -19
  49. package/dist/components/AppFrame/types.d.ts +0 -47
  50. package/dist/components/AutoComplete/AutoComplete.d.ts +0 -13
  51. package/dist/components/AutoComplete/helpers.d.ts +0 -7
  52. package/dist/components/AutoComplete/index.d.ts +0 -5
  53. package/dist/components/AutoComplete/types.d.ts +0 -27
  54. package/dist/components/Avatar/Avatar.d.ts +0 -42
  55. package/dist/components/Avatar/Avatar.helpers.d.ts +0 -3
  56. package/dist/components/Avatar/index.d.ts +0 -3
  57. package/dist/components/Avatar/types.d.ts +0 -8
  58. package/dist/components/Badge/Badge.d.ts +0 -27
  59. package/dist/components/Badge/Badge.helpers.d.ts +0 -1
  60. package/dist/components/Badge/index.d.ts +0 -1
  61. package/dist/components/Button/Button.d.ts +0 -70
  62. package/dist/components/Button/Button.helpers.d.ts +0 -6
  63. package/dist/components/Button/index.d.ts +0 -3
  64. package/dist/components/Button/types.d.ts +0 -2
  65. package/dist/components/Card/Card.d.ts +0 -30
  66. package/dist/components/Card/index.d.ts +0 -2
  67. package/dist/components/Checkbox/Checkbox.d.ts +0 -16
  68. package/dist/components/Checkbox/index.d.ts +0 -1
  69. package/dist/components/DatePicker/DatePicker.d.ts +0 -4
  70. package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
  71. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
  72. package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -17
  73. package/dist/components/DatePicker/helpers.d.ts +0 -17
  74. package/dist/components/DatePicker/hooks.d.ts +0 -7
  75. package/dist/components/DatePicker/index.d.ts +0 -3
  76. package/dist/components/DatePicker/types.d.ts +0 -101
  77. package/dist/components/DetailsCard/DetailsCard.d.ts +0 -40
  78. package/dist/components/DetailsCard/index.d.ts +0 -2
  79. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +0 -8
  80. package/dist/components/DetailsCardInfo/index.d.ts +0 -1
  81. package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
  82. package/dist/components/FieldDescription/index.d.ts +0 -1
  83. package/dist/components/FieldError/FieldError.d.ts +0 -3
  84. package/dist/components/FieldError/index.d.ts +0 -1
  85. package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
  86. package/dist/components/FieldGroup/index.d.ts +0 -1
  87. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
  88. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
  89. package/dist/components/FileUploadProgress/index.d.ts +0 -2
  90. package/dist/components/Form/Form.d.ts +0 -16
  91. package/dist/components/Form/index.d.ts +0 -2
  92. package/dist/components/FormField/FormField.d.ts +0 -40
  93. package/dist/components/FormField/index.d.ts +0 -1
  94. package/dist/components/FormGroup/FormGroup.d.ts +0 -16
  95. package/dist/components/FormGroup/index.d.ts +0 -1
  96. package/dist/components/Icon/Icon.d.ts +0 -32
  97. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +0 -11
  98. package/dist/components/Icon/IconsShowcase/constans.d.ts +0 -3
  99. package/dist/components/Icon/IconsShowcase/helpers.d.ts +0 -3
  100. package/dist/components/Icon/IconsShowcase/types.d.ts +0 -9
  101. package/dist/components/Icon/index.d.ts +0 -2
  102. package/dist/components/Icon/types.d.ts +0 -3
  103. package/dist/components/Input/Input.d.ts +0 -29
  104. package/dist/components/Input/index.d.ts +0 -1
  105. package/dist/components/InviteAgents/InviteAgents.d.ts +0 -3
  106. package/dist/components/InviteAgents/components/AnimatedButton/AnimatedButton.d.ts +0 -24
  107. package/dist/components/InviteAgents/helpers.d.ts +0 -4
  108. package/dist/components/InviteAgents/index.d.ts +0 -2
  109. package/dist/components/InviteAgents/types.d.ts +0 -34
  110. package/dist/components/Link/Link.d.ts +0 -14
  111. package/dist/components/Link/index.d.ts +0 -1
  112. package/dist/components/Loader/Loader.d.ts +0 -20
  113. package/dist/components/Loader/index.d.ts +0 -1
  114. package/dist/components/Modal/Modal.d.ts +0 -25
  115. package/dist/components/Modal/StoriesComponents.d.ts +0 -4
  116. package/dist/components/Modal/components/ActionModalContent.d.ts +0 -29
  117. package/dist/components/Modal/components/ModalBase.d.ts +0 -24
  118. package/dist/components/Modal/components/ModalCloseButton.d.ts +0 -7
  119. package/dist/components/Modal/components/ModalHeader.d.ts +0 -26
  120. package/dist/components/Modal/components/ModalPortal.d.ts +0 -8
  121. package/dist/components/Modal/index.d.ts +0 -11
  122. package/dist/components/NumericInput/NumericInput.d.ts +0 -12
  123. package/dist/components/NumericInput/index.d.ts +0 -1
  124. package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +0 -3
  125. package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +0 -3
  126. package/dist/components/OnboardingChecklist/components/index.d.ts +0 -1
  127. package/dist/components/OnboardingChecklist/index.d.ts +0 -2
  128. package/dist/components/OnboardingChecklist/types.d.ts +0 -97
  129. package/dist/components/Picker/Picker.d.ts +0 -3
  130. package/dist/components/Picker/components/PickerList.d.ts +0 -27
  131. package/dist/components/Picker/components/PickerListItem.d.ts +0 -14
  132. package/dist/components/Picker/components/PickerTrigger.d.ts +0 -18
  133. package/dist/components/Picker/components/PickerTriggerBody.d.ts +0 -23
  134. package/dist/components/Picker/constants.d.ts +0 -40
  135. package/dist/components/Picker/helpers.d.ts +0 -6
  136. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +0 -36
  137. package/dist/components/Picker/hooks/usePickerItems.d.ts +0 -23
  138. package/dist/components/Picker/index.d.ts +0 -3
  139. package/dist/components/Picker/types.d.ts +0 -143
  140. package/dist/components/Popover/Popover.d.ts +0 -3
  141. package/dist/components/Popover/index.d.ts +0 -2
  142. package/dist/components/Popover/types.d.ts +0 -65
  143. package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +0 -4
  144. package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +0 -10
  145. package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +0 -9
  146. package/dist/components/ProductSwitcher/constants.d.ts +0 -7
  147. package/dist/components/ProductSwitcher/helpers.d.ts +0 -10
  148. package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +0 -14
  149. package/dist/components/ProductSwitcher/index.d.ts +0 -4
  150. package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +0 -1
  151. package/dist/components/ProductSwitcher/types.d.ts +0 -46
  152. package/dist/components/Progress/Progress.helpers.d.ts +0 -3
  153. package/dist/components/Progress/ProgressBar.d.ts +0 -21
  154. package/dist/components/Progress/ProgressCircle.d.ts +0 -21
  155. package/dist/components/Progress/constants.d.ts +0 -3
  156. package/dist/components/Progress/index.d.ts +0 -2
  157. package/dist/components/PromoBanner/PromoBanner.d.ts +0 -43
  158. package/dist/components/PromoBanner/index.d.ts +0 -1
  159. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +0 -45
  160. package/dist/components/PromoBannerV2/constants.d.ts +0 -1
  161. package/dist/components/PromoBannerV2/index.d.ts +0 -2
  162. package/dist/components/RadioButton/RadioButton.d.ts +0 -7
  163. package/dist/components/RadioButton/index.d.ts +0 -1
  164. package/dist/components/Search/Search.d.ts +0 -40
  165. package/dist/components/Search/index.d.ts +0 -1
  166. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
  167. package/dist/components/SegmentedControl/index.d.ts +0 -2
  168. package/dist/components/Skeleton/SkeletonAvatar.d.ts +0 -16
  169. package/dist/components/Skeleton/SkeletonText.d.ts +0 -16
  170. package/dist/components/Skeleton/SkeletonWrapper.d.ts +0 -16
  171. package/dist/components/Skeleton/index.d.ts +0 -3
  172. package/dist/components/StatusBadge/StatusBadge.d.ts +0 -13
  173. package/dist/components/StatusBadge/index.d.ts +0 -1
  174. package/dist/components/Switch/Switch.d.ts +0 -47
  175. package/dist/components/Switch/index.d.ts +0 -1
  176. package/dist/components/Tab/Tab.d.ts +0 -31
  177. package/dist/components/Tab/TabsWrapper.d.ts +0 -3
  178. package/dist/components/Tab/index.d.ts +0 -2
  179. package/dist/components/Tag/Tag.d.ts +0 -3
  180. package/dist/components/Tag/constants.d.ts +0 -2
  181. package/dist/components/Tag/index.d.ts +0 -3
  182. package/dist/components/Tag/types.d.ts +0 -55
  183. package/dist/components/TagInput/TagInput.d.ts +0 -3
  184. package/dist/components/TagInput/components/EditableTag.d.ts +0 -13
  185. package/dist/components/TagInput/components/EditableTagContent.d.ts +0 -11
  186. package/dist/components/TagInput/components/EmailTagInput.d.ts +0 -5
  187. package/dist/components/TagInput/index.d.ts +0 -4
  188. package/dist/components/TagInput/types.d.ts +0 -41
  189. package/dist/components/Textarea/Textarea.d.ts +0 -6
  190. package/dist/components/Textarea/index.d.ts +0 -1
  191. package/dist/components/Toast/Toast.d.ts +0 -16
  192. package/dist/components/Toast/ToastWrapper.d.ts +0 -20
  193. package/dist/components/Toast/index.d.ts +0 -2
  194. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  195. package/dist/components/Tooltip/Tooltip.helpers.d.ts +0 -10
  196. package/dist/components/Tooltip/components/Info.d.ts +0 -3
  197. package/dist/components/Tooltip/components/Interactive.d.ts +0 -3
  198. package/dist/components/Tooltip/components/Reports.d.ts +0 -7
  199. package/dist/components/Tooltip/components/Simple.d.ts +0 -4
  200. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
  201. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
  202. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -16
  203. package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
  204. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
  205. package/dist/components/Tooltip/components/index.d.ts +0 -5
  206. package/dist/components/Tooltip/index.d.ts +0 -4
  207. package/dist/components/Tooltip/types.d.ts +0 -199
  208. package/dist/components/Typography/Display.d.ts +0 -18
  209. package/dist/components/Typography/Heading.d.ts +0 -19
  210. package/dist/components/Typography/Text.d.ts +0 -31
  211. package/dist/components/Typography/index.d.ts +0 -4
  212. package/dist/components/Typography/types.d.ts +0 -4
  213. package/dist/components/UpdateBadge/UpdateBadge.d.ts +0 -2
  214. package/dist/components/UpdateBadge/index.d.ts +0 -1
  215. package/dist/components/UploadBar/UploadBar.d.ts +0 -49
  216. package/dist/components/UploadBar/index.d.ts +0 -1
  217. package/dist/foundations/design-token.d.ts +0 -374
  218. package/dist/foundations/index.d.ts +0 -5
  219. package/dist/foundations/radius-token.d.ts +0 -13
  220. package/dist/foundations/shadow-token.d.ts +0 -24
  221. package/dist/foundations/spacing-token.d.ts +0 -22
  222. package/dist/foundations/transition-token.d.ts +0 -17
  223. package/dist/hooks/helpers.d.ts +0 -3
  224. package/dist/hooks/index.d.ts +0 -3
  225. package/dist/hooks/types.d.ts +0 -13
  226. package/dist/hooks/useAnimations.d.ts +0 -12
  227. package/dist/hooks/useHeightResizer.d.ts +0 -3
  228. package/dist/hooks/useMobileViewDetector.d.ts +0 -3
  229. package/dist/hooks/useSharedResizeObserver.d.ts +0 -6
  230. package/dist/index.d.ts +0 -55
  231. package/dist/providers/AppFrameProvider.d.ts +0 -14
  232. package/dist/providers/ThemeProvider.d.ts +0 -20
  233. package/dist/providers/constants.d.ts +0 -4
  234. package/dist/providers/helpers.d.ts +0 -4
  235. package/dist/providers/index.d.ts +0 -5
  236. package/dist/providers/types.d.ts +0 -1
  237. package/dist/utils/PdfIcon.d.ts +0 -2
  238. package/dist/utils/getDesignTokenWithOpacity.d.ts +0 -1
  239. package/dist/utils/index.d.ts +0 -2
  240. package/dist/utils/keyCodes.d.ts +0 -12
  241. package/dist/utils/noop.d.ts +0 -1
  242. package/dist/utils/plural.d.ts +0 -1
  243. package/dist/utils/story-parameters.d.ts +0 -3
  244. package/dist/utils/types.d.ts +0 -16
@@ -1,20 +0,0 @@
1
- import { ToastProps, Toast } from './Toast';
2
- import * as React from 'react';
3
- type HorizontalPosition = 'left' | 'center' | 'right';
4
- type VerticalPosition = 'top' | 'bottom';
5
- export declare const ANIMATION_TIME = 200;
6
- interface Toast extends Omit<ToastProps, 'content'> {
7
- id: string;
8
- content: React.ReactElement | string;
9
- }
10
- export interface ToastWrapperProps {
11
- className?: string;
12
- toasts: Toast[];
13
- fixed?: boolean;
14
- block?: boolean;
15
- animationType?: string;
16
- verticalPosition?: VerticalPosition;
17
- horizontalPosition?: HorizontalPosition;
18
- }
19
- export declare const ToastWrapper: React.FC<ToastWrapperProps>;
20
- export {};
@@ -1,2 +0,0 @@
1
- export * from './Toast';
2
- export * from './ToastWrapper';
@@ -1,3 +0,0 @@
1
- import { ITooltipProps } from './types';
2
- import * as React from 'react';
3
- export declare const Tooltip: React.FC<React.PropsWithChildren<ITooltipProps>>;
@@ -1,10 +0,0 @@
1
- import { CSSProperties } from 'react';
2
- import { IconKind } from '../Icon';
3
- import { TooltipTheme } from './types';
4
-
5
- export declare function getIconType(theme: TooltipTheme): IconKind;
6
- export declare function getArrowPositionStyles(arrowOffsetY?: number, arrowOffsetX?: number, arrowY?: number, arrowX?: number): CSSProperties | undefined;
7
- export declare const getArrowTokens: (tooltipStyle: string | undefined) => {
8
- stroke: string;
9
- fill: string;
10
- };
@@ -1,3 +0,0 @@
1
- import { ITooltipInfoProps } from '../types';
2
- import * as React from 'react';
3
- export declare const Info: React.FC<ITooltipInfoProps>;
@@ -1,3 +0,0 @@
1
- import { ITooltipInteractiveProps } from '../types';
2
- import * as React from 'react';
3
- export declare const Interactive: React.FC<ITooltipInteractiveProps>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface IReportsProps {
3
- title: string;
4
- description?: string;
5
- children: React.ReactNode;
6
- }
7
- export declare const Reports: React.FC<React.PropsWithChildren<IReportsProps>>;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- export declare const Simple: React.FC<{
3
- text: string;
4
- }>;
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- declare const SpotlightOverlay: ({ gap, isVisible, slide, disablePointerEvents, }: {
3
- gap: DOMRect | null;
4
- isVisible: boolean;
5
- slide: boolean;
6
- disablePointerEvents: boolean;
7
- }) => React.ReactElement | null;
8
- export default SpotlightOverlay;
@@ -1,12 +0,0 @@
1
- import { ModalPortalProps } from '../../../Modal';
2
- import { ITooltipProps } from '../../types';
3
- import * as React from 'react';
4
- interface IOwnProps {
5
- shouldSlide?: boolean;
6
- className?: string;
7
- disableSpotlightPointerEvents?: boolean;
8
- }
9
- interface IUserGuide extends IOwnProps, Omit<ITooltipProps, 'triggerRenderer'>, Omit<ModalPortalProps, 'children'> {
10
- }
11
- export declare const UserGuide: React.FC<React.PropsWithChildren<IUserGuide>>;
12
- export {};
@@ -1,16 +0,0 @@
1
- import { TooltipTheme } from '../../types';
2
- import * as React from 'react';
3
- export declare const UserGuideStep: React.FC<{
4
- header: string;
5
- text: string;
6
- image?: {
7
- src: string;
8
- alt: string;
9
- };
10
- currentStep: number;
11
- stepMax: number;
12
- closeWithX?: boolean;
13
- theme?: TooltipTheme;
14
- handleClickPrimary: () => void;
15
- handleCloseAction?: (ev: KeyboardEvent | React.MouseEvent) => void;
16
- }>;
@@ -1 +0,0 @@
1
- export { UserGuide } from './UserGuide';
@@ -1,9 +0,0 @@
1
- export default class VirtualReference {
2
- element: Element;
3
- padding: number;
4
- constructor(element: Element, padding: number);
5
- addPadding(rect: DOMRect): Omit<DOMRect, 'toJSON'>;
6
- getBoundingClientRect(): Omit<DOMRect, 'toJSON'>;
7
- get clientWidth(): number;
8
- get clientHeight(): number;
9
- }
@@ -1,5 +0,0 @@
1
- export { Simple } from './Simple';
2
- export { Info } from './Info';
3
- export { Interactive } from './Interactive';
4
- export { UserGuide } from './UserGuide';
5
- export { Reports } from './Reports';
@@ -1,4 +0,0 @@
1
- export { Tooltip } from './Tooltip';
2
- export { Simple, Info, Interactive, Reports } from './components';
3
- export { UserGuide } from './components/UserGuide';
4
- export type { ITooltipProps, ITooltipInfoProps, ITooltipInteractiveProps, } from './types';
@@ -1,199 +0,0 @@
1
- import { Placement, VirtualElement, UseDismissProps, Strategy, UseClickProps } from '@floating-ui/react';
2
- import { ButtonProps } from '../Button';
3
- import * as React from 'react';
4
- export type TooltipTheme = 'invert' | 'important' | undefined;
5
- export type TooltipButton = {
6
- handleClick: () => void;
7
- label: string;
8
- } & Omit<ButtonProps, 'onClick'>;
9
- export interface ITooltipProps {
10
- /**
11
- * The CSS class for tooltip
12
- */
13
- className?: string;
14
- /**
15
- * The CSS class for trigger wrapper
16
- */
17
- triggerClassName?: string;
18
- /**
19
- * Trigger element
20
- */
21
- triggerRenderer: React.ReactElement | (() => React.ReactNode);
22
- /**
23
- * Specify the tooltip kind
24
- * @deprecated we are changing the nomenclature to `kind` in order to maintain the constant naming of props
25
- */
26
- theme?: 'invert' | 'important' | undefined;
27
- /**
28
- * Specify the tooltip kind
29
- */
30
- kind?: 'invert' | 'important' | undefined;
31
- /**
32
- * The tooltip placement
33
- */
34
- placement?: Placement;
35
- /**
36
- * Set to control the menu visibility
37
- */
38
- isVisible?: boolean;
39
- /**
40
- * Removes the spacing inside the tooltip
41
- */
42
- fullSpaceContent?: boolean;
43
- /**
44
- * Optional handler called on tooltip hide
45
- */
46
- onClose?: () => void;
47
- /**
48
- * Optional handler called on tooltip show
49
- */
50
- onOpen?: () => void;
51
- /**
52
- * Set to enable/disable transition
53
- */
54
- withFadeAnimation?: boolean;
55
- /**
56
- * Set to define transition duration for showing and hiding tooltip
57
- */
58
- transitionDuration?: number;
59
- /**
60
- * Set to define transition duration for showing tooltip
61
- */
62
- hoverOnDuration?: number;
63
- /**
64
- * Set to define transition duration for hiding tooltip
65
- */
66
- hoverOffDuration?: number;
67
- /**
68
- * Set to define delay before transition start for showing and hiding tooltip
69
- */
70
- transitionDelay?: number;
71
- /**
72
- * Set to define delay before transition start for showing tooltip
73
- */
74
- hoverOnDelay?: number;
75
- /**
76
- * Set to define delay before transition start for hiding tooltip
77
- * @deprecated This prop will be removed in the future. Use `hoverOffDelay`.
78
- */
79
- hoverOutDelayTimeout?: number;
80
- /**
81
- * Set to define delay before transition start for hiding tooltip
82
- */
83
- hoverOffDelay?: number;
84
- /**
85
- * Set if you want to show tooltip after trigger click if state is not managed
86
- */
87
- triggerOnClick?: boolean;
88
- /**
89
- * Set if you want to show tooltip after trigger hover if state is not managed
90
- */
91
- triggerOnHover?: boolean;
92
- /**
93
- * Set the tooltip distance from the trigger
94
- */
95
- offsetMainAxis?: number;
96
- /**
97
- * Set the tooltip distance from the trigger
98
- */
99
- offsetCrossAxis?: number;
100
- /**
101
- * Set custom reference object for the tooltip
102
- */
103
- referenceElement?: VirtualElement;
104
- /**
105
- * Waits until cursor is at “rest” over the trigger to change the state
106
- */
107
- activationThreshold?: number;
108
- /**
109
- * Set the `floating-ui` useDismiss hook paramns if you need more control
110
- * https://floating-ui.com/docs/usedismiss
111
- */
112
- useDismissHookProps?: UseDismissProps;
113
- /**
114
- * Set the `floating-ui` useClick hook paramns if you need more control
115
- * https://floating-ui.com/docs/useclick
116
- */
117
- useClickHookProps?: UseClickProps;
118
- /**
119
- * Set to move the arrow along the Y axis from default position (left and right position)
120
- */
121
- arrowOffsetY?: number;
122
- /**
123
- * Set to move the arrow along the X axis from default position (top and bottom position)
124
- */
125
- arrowOffsetX?: number;
126
- /**
127
- * Set to close the tooltip after leaving trigger area in uncontrolled state.
128
- * Be default, moving the curson from trigger to tooltip will keep it open.
129
- */
130
- closeOnTriggerBlur?: boolean;
131
- /**
132
- * Set the type of CSS position property to use
133
- * https://floating-ui.com/docs/usefloating#strategy
134
- */
135
- floatingStrategy?: Strategy;
136
- }
137
- export interface ITooltipInfoProps {
138
- /**
139
- * The CSS class for Info tooltip
140
- */
141
- className?: string;
142
- /**
143
- * The Info tooltip header
144
- */
145
- header?: string;
146
- /**
147
- * The Info tooltip text
148
- */
149
- text: string;
150
- /**
151
- * Set to show close button
152
- */
153
- closeWithX?: boolean;
154
- /**
155
- * The Info tooltip theme
156
- */
157
- theme?: TooltipTheme;
158
- /**
159
- * The Info tooltip close button action
160
- */
161
- handleCloseAction?: (ev: React.MouseEvent) => void;
162
- }
163
- export interface ITooltipInteractiveProps {
164
- /**
165
- * The Interactive tooltip header
166
- */
167
- header?: string;
168
- /**
169
- * The Interactive tooltip text
170
- */
171
- text: string;
172
- /**
173
- * The Interactive tooltip image
174
- */
175
- image?: {
176
- src: string;
177
- alt: string;
178
- };
179
- /**
180
- * Set to show close button
181
- */
182
- closeWithX?: boolean;
183
- /**
184
- * The Interactive tooltip theme
185
- */
186
- theme?: TooltipTheme;
187
- /**
188
- * The Interactive tooltip close button action
189
- */
190
- handleCloseAction?: (ev: React.MouseEvent) => void;
191
- /**
192
- * The Interactive tooltip primary button props
193
- */
194
- primaryButton: TooltipButton;
195
- /**
196
- * The Interactive tooltip secondary button props
197
- */
198
- secondaryButton?: TooltipButton;
199
- }
@@ -1,18 +0,0 @@
1
- import { TDisplaySize, TTextAlign } from './types';
2
- import * as React from 'react';
3
- interface IProps {
4
- /** Size of the text */
5
- size?: TDisplaySize;
6
- /** DOM element name that will be rendered */
7
- as?: string;
8
- /** Optional custom className */
9
- className?: string;
10
- /** Optional prop to set the custom color */
11
- customColor?: string;
12
- /** Optional prop to set the text align */
13
- textAlign?: TTextAlign;
14
- /** Optional prop to set the bold */
15
- bold?: boolean;
16
- }
17
- export declare const Display: React.FC<React.PropsWithChildren<IProps>>;
18
- export {};
@@ -1,19 +0,0 @@
1
- import { THeadingSize, TTextAlign } from './types';
2
- import * as React from 'react';
3
- interface IProps extends React.HTMLAttributes<HTMLElement> {
4
- size?: THeadingSize;
5
- /** DOM element name that will be rendered */
6
- as?: string;
7
- /** Optional custom className */
8
- className?: string;
9
- /** Optional prop to set the uppercase */
10
- uppercase?: boolean;
11
- /** Optional prop to set the bold */
12
- bold?: boolean;
13
- /** Optional prop to set the custom color */
14
- customColor?: string;
15
- /** Optional prop to set the text align */
16
- textAlign?: TTextAlign;
17
- }
18
- export declare const Heading: React.FC<React.PropsWithChildren<IProps>>;
19
- export {};
@@ -1,31 +0,0 @@
1
- import { TTextAlign, TTextSize } from './types';
2
- import * as React from 'react';
3
- interface IProps extends React.HTMLAttributes<HTMLElement> {
4
- /** DOM element name that will be rendered */
5
- as?: string;
6
- /** Size of the text */
7
- size?: TTextSize;
8
- /** Optional custom className */
9
- className?: string;
10
- /**
11
- * Optional prop to set the uppercase
12
- * @deprecated Use `uppercase` instead
13
- * */
14
- caps?: boolean;
15
- /** Optional prop to set the uppercase */
16
- uppercase?: boolean;
17
- /** Optional prop to set the bold */
18
- bold?: boolean;
19
- /** Optional prop to set the underline */
20
- underline?: boolean;
21
- /** Optional prop to set the strike */
22
- strike?: boolean;
23
- /** Optional prop to set the custom color */
24
- customColor?: string;
25
- /** Optional prop to set the text align */
26
- textAlign?: TTextAlign;
27
- /** Optional prop to set the no margin */
28
- noMargin?: boolean;
29
- }
30
- export declare const Text: React.FC<React.PropsWithChildren<IProps>>;
31
- export {};
@@ -1,4 +0,0 @@
1
- export { Heading } from './Heading';
2
- export { Text } from './Text';
3
- export { Display } from './Display';
4
- export type { THeadingSize, TTextSize, TDisplaySize } from './types';
@@ -1,4 +0,0 @@
1
- export type TTextSize = 'xs' | 'sm' | 'md' | 'lg';
2
- export type THeadingSize = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
- export type TDisplaySize = 'sm' | 'md' | 'lg' | 'max';
4
- export type TTextAlign = 'left' | 'right' | 'center' | 'justify';
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const UpdateBadge: React.FC;
@@ -1 +0,0 @@
1
- export { UpdateBadge } from './UpdateBadge';
@@ -1,49 +0,0 @@
1
- import { ProgressStatus, ProgressSize } from '../Progress/constants';
2
- import * as React from 'react';
3
- export interface UploadBarProps {
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 upload bar title
14
- */
15
- title: string;
16
- /**
17
- * Define if upload bar should be open
18
- */
19
- isExpanded?: boolean;
20
- /**
21
- * Specify the error message
22
- */
23
- errorMessage?: string;
24
- /**
25
- * Specify the upload bar status
26
- */
27
- status?: ProgressStatus;
28
- /**
29
- * Renders given element
30
- */
31
- icon?: React.ReactNode;
32
- /**
33
- * Specify the upload bar size
34
- */
35
- size?: ProgressSize;
36
- /**
37
- * Set the component's mode to `multiple` to specify whether the upload bar should display multiple elements
38
- */
39
- mode?: 'single' | 'multiple';
40
- /**
41
- * The event handler for close icon click
42
- */
43
- onCloseButtonClick?: () => void;
44
- /**
45
- * The event handler for retry icon click
46
- */
47
- onRetryButtonClick?: () => void;
48
- }
49
- export declare const UploadBar: React.FC<React.PropsWithChildren<UploadBarProps>>;
@@ -1 +0,0 @@
1
- export * from './UploadBar';