@livechat/design-system-react-components 1.36.0 → 1.37.1

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 (221) hide show
  1. package/package.json +3 -3
  2. package/dist/components/ActionBar/ActionBar.d.ts +0 -3
  3. package/dist/components/ActionBar/ActionBarItem.d.ts +0 -3
  4. package/dist/components/ActionBar/constants.d.ts +0 -2
  5. package/dist/components/ActionBar/index.d.ts +0 -2
  6. package/dist/components/ActionBar/types.d.ts +0 -45
  7. package/dist/components/ActionCard/ActionCard.d.ts +0 -3
  8. package/dist/components/ActionCard/index.d.ts +0 -2
  9. package/dist/components/ActionCard/types.d.ts +0 -23
  10. package/dist/components/ActionMenu/ActionMenu.d.ts +0 -3
  11. package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -3
  12. package/dist/components/ActionMenu/index.d.ts +0 -3
  13. package/dist/components/ActionMenu/stories-constants.d.ts +0 -15
  14. package/dist/components/ActionMenu/types.d.ts +0 -80
  15. package/dist/components/Alert/Alert.d.ts +0 -29
  16. package/dist/components/Alert/index.d.ts +0 -1
  17. package/dist/components/AppFrame/AppFrame.d.ts +0 -3
  18. package/dist/components/AppFrame/components/ExpirationCounter/ExpirationCounter.d.ts +0 -21
  19. package/dist/components/AppFrame/components/Navigation/Navigation.d.ts +0 -3
  20. package/dist/components/AppFrame/components/Navigation/types.d.ts +0 -8
  21. package/dist/components/AppFrame/components/NavigationGroup/NavigationGroup.d.ts +0 -3
  22. package/dist/components/AppFrame/components/NavigationGroup/types.d.ts +0 -16
  23. package/dist/components/AppFrame/components/NavigationItem/NavigationItem.d.ts +0 -3
  24. package/dist/components/AppFrame/components/NavigationItem/types.d.ts +0 -40
  25. package/dist/components/AppFrame/components/NavigationTopBar/NavigationTopBar.d.ts +0 -45
  26. package/dist/components/AppFrame/components/NavigationTopBar/examples.d.ts +0 -15
  27. package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +0 -59
  28. package/dist/components/AppFrame/components/SideNavigation/SideNavigation.d.ts +0 -3
  29. package/dist/components/AppFrame/components/SideNavigation/types.d.ts +0 -28
  30. package/dist/components/AppFrame/components/SideNavigationGroup/SideNavigationGroup.d.ts +0 -3
  31. package/dist/components/AppFrame/components/SideNavigationGroup/types.d.ts +0 -32
  32. package/dist/components/AppFrame/components/SideNavigationItem/SideNavigationItem.d.ts +0 -3
  33. package/dist/components/AppFrame/components/SideNavigationItem/constants.d.ts +0 -3
  34. package/dist/components/AppFrame/components/SideNavigationItem/types.d.ts +0 -44
  35. package/dist/components/AppFrame/components/index.d.ts +0 -9
  36. package/dist/components/AppFrame/hooks/useAppFrameAnimations.d.ts +0 -12
  37. package/dist/components/AppFrame/index.d.ts +0 -2
  38. package/dist/components/AppFrame/stories-helpers.d.ts +0 -19
  39. package/dist/components/AppFrame/types.d.ts +0 -38
  40. package/dist/components/AutoComplete/AutoComplete.d.ts +0 -13
  41. package/dist/components/AutoComplete/helpers.d.ts +0 -6
  42. package/dist/components/AutoComplete/index.d.ts +0 -4
  43. package/dist/components/AutoComplete/types.d.ts +0 -27
  44. package/dist/components/Avatar/Avatar.d.ts +0 -42
  45. package/dist/components/Avatar/Avatar.helpers.d.ts +0 -3
  46. package/dist/components/Avatar/index.d.ts +0 -3
  47. package/dist/components/Avatar/types.d.ts +0 -8
  48. package/dist/components/Badge/Badge.d.ts +0 -27
  49. package/dist/components/Badge/Badge.helpers.d.ts +0 -1
  50. package/dist/components/Badge/index.d.ts +0 -1
  51. package/dist/components/Button/Button.d.ts +0 -62
  52. package/dist/components/Button/Button.helpers.d.ts +0 -2
  53. package/dist/components/Button/index.d.ts +0 -3
  54. package/dist/components/Button/types.d.ts +0 -2
  55. package/dist/components/Card/Card.d.ts +0 -30
  56. package/dist/components/Card/index.d.ts +0 -2
  57. package/dist/components/Checkbox/Checkbox.d.ts +0 -16
  58. package/dist/components/Checkbox/index.d.ts +0 -1
  59. package/dist/components/DatePicker/DatePicker.d.ts +0 -4
  60. package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
  61. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
  62. package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
  63. package/dist/components/DatePicker/helpers.d.ts +0 -16
  64. package/dist/components/DatePicker/hooks.d.ts +0 -6
  65. package/dist/components/DatePicker/index.d.ts +0 -3
  66. package/dist/components/DatePicker/types.d.ts +0 -100
  67. package/dist/components/DetailsCard/DetailsCard.d.ts +0 -40
  68. package/dist/components/DetailsCard/index.d.ts +0 -2
  69. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +0 -8
  70. package/dist/components/DetailsCardInfo/index.d.ts +0 -1
  71. package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
  72. package/dist/components/FieldDescription/index.d.ts +0 -1
  73. package/dist/components/FieldError/FieldError.d.ts +0 -3
  74. package/dist/components/FieldError/index.d.ts +0 -1
  75. package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
  76. package/dist/components/FieldGroup/index.d.ts +0 -1
  77. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
  78. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
  79. package/dist/components/FileUploadProgress/index.d.ts +0 -2
  80. package/dist/components/Form/Form.d.ts +0 -16
  81. package/dist/components/Form/index.d.ts +0 -2
  82. package/dist/components/FormField/FormField.d.ts +0 -40
  83. package/dist/components/FormField/index.d.ts +0 -1
  84. package/dist/components/FormGroup/FormGroup.d.ts +0 -16
  85. package/dist/components/FormGroup/index.d.ts +0 -1
  86. package/dist/components/Icon/Icon.d.ts +0 -32
  87. package/dist/components/Icon/IconsShowcase/IconsShowcase.d.ts +0 -11
  88. package/dist/components/Icon/IconsShowcase/constans.d.ts +0 -2
  89. package/dist/components/Icon/IconsShowcase/helpers.d.ts +0 -2
  90. package/dist/components/Icon/IconsShowcase/types.d.ts +0 -9
  91. package/dist/components/Icon/index.d.ts +0 -2
  92. package/dist/components/Icon/types.d.ts +0 -2
  93. package/dist/components/Input/Input.d.ts +0 -29
  94. package/dist/components/Input/index.d.ts +0 -1
  95. package/dist/components/Link/Link.d.ts +0 -14
  96. package/dist/components/Link/index.d.ts +0 -1
  97. package/dist/components/Loader/Loader.d.ts +0 -20
  98. package/dist/components/Loader/index.d.ts +0 -1
  99. package/dist/components/Modal/Modal.d.ts +0 -25
  100. package/dist/components/Modal/StoriesComponents.d.ts +0 -4
  101. package/dist/components/Modal/components/ActionModalContent.d.ts +0 -29
  102. package/dist/components/Modal/components/ModalBase.d.ts +0 -24
  103. package/dist/components/Modal/components/ModalCloseButton.d.ts +0 -7
  104. package/dist/components/Modal/components/ModalHeader.d.ts +0 -26
  105. package/dist/components/Modal/components/ModalPortal.d.ts +0 -7
  106. package/dist/components/Modal/index.d.ts +0 -11
  107. package/dist/components/NumericInput/NumericInput.d.ts +0 -12
  108. package/dist/components/NumericInput/index.d.ts +0 -1
  109. package/dist/components/OnboardingChecklist/OnboardingChecklist.d.ts +0 -3
  110. package/dist/components/OnboardingChecklist/components/CheckListItem.d.ts +0 -3
  111. package/dist/components/OnboardingChecklist/components/index.d.ts +0 -1
  112. package/dist/components/OnboardingChecklist/index.d.ts +0 -2
  113. package/dist/components/OnboardingChecklist/types.d.ts +0 -97
  114. package/dist/components/Picker/Picker.d.ts +0 -3
  115. package/dist/components/Picker/components/PickerList.d.ts +0 -24
  116. package/dist/components/Picker/components/PickerListItem.d.ts +0 -14
  117. package/dist/components/Picker/components/PickerTrigger.d.ts +0 -18
  118. package/dist/components/Picker/components/PickerTriggerBody.d.ts +0 -22
  119. package/dist/components/Picker/constants.d.ts +0 -66
  120. package/dist/components/Picker/helpers.d.ts +0 -5
  121. package/dist/components/Picker/hooks/useFloatingPicker.d.ts +0 -36
  122. package/dist/components/Picker/hooks/usePickerItems.d.ts +0 -23
  123. package/dist/components/Picker/index.d.ts +0 -3
  124. package/dist/components/Picker/types.d.ts +0 -138
  125. package/dist/components/Popover/Popover.d.ts +0 -3
  126. package/dist/components/Popover/index.d.ts +0 -2
  127. package/dist/components/Popover/types.d.ts +0 -65
  128. package/dist/components/ProductSwitcher/ProductSwitcher.d.ts +0 -3
  129. package/dist/components/ProductSwitcher/components/ProductRow/ProductRow.d.ts +0 -9
  130. package/dist/components/ProductSwitcher/components/ProductTile/ProductTile.d.ts +0 -8
  131. package/dist/components/ProductSwitcher/constants.d.ts +0 -6
  132. package/dist/components/ProductSwitcher/helpers.d.ts +0 -9
  133. package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +0 -13
  134. package/dist/components/ProductSwitcher/index.d.ts +0 -4
  135. package/dist/components/ProductSwitcher/openwidgetLogoUri.d.ts +0 -1
  136. package/dist/components/ProductSwitcher/types.d.ts +0 -43
  137. package/dist/components/Progress/Progress.helpers.d.ts +0 -2
  138. package/dist/components/Progress/ProgressBar.d.ts +0 -21
  139. package/dist/components/Progress/ProgressCircle.d.ts +0 -21
  140. package/dist/components/Progress/constants.d.ts +0 -3
  141. package/dist/components/Progress/index.d.ts +0 -2
  142. package/dist/components/PromoBanner/PromoBanner.d.ts +0 -43
  143. package/dist/components/PromoBanner/index.d.ts +0 -1
  144. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +0 -45
  145. package/dist/components/PromoBannerV2/constants.d.ts +0 -1
  146. package/dist/components/PromoBannerV2/index.d.ts +0 -2
  147. package/dist/components/RadioButton/RadioButton.d.ts +0 -7
  148. package/dist/components/RadioButton/index.d.ts +0 -1
  149. package/dist/components/Search/Search.d.ts +0 -40
  150. package/dist/components/Search/index.d.ts +0 -1
  151. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
  152. package/dist/components/SegmentedControl/index.d.ts +0 -2
  153. package/dist/components/Skeleton/SkeletonAvatar.d.ts +0 -16
  154. package/dist/components/Skeleton/SkeletonText.d.ts +0 -16
  155. package/dist/components/Skeleton/SkeletonWrapper.d.ts +0 -16
  156. package/dist/components/Skeleton/index.d.ts +0 -3
  157. package/dist/components/StatusBadge/StatusBadge.d.ts +0 -13
  158. package/dist/components/StatusBadge/index.d.ts +0 -1
  159. package/dist/components/Switch/Switch.d.ts +0 -47
  160. package/dist/components/Switch/index.d.ts +0 -1
  161. package/dist/components/Tab/Tab.d.ts +0 -31
  162. package/dist/components/Tab/TabsWrapper.d.ts +0 -3
  163. package/dist/components/Tab/index.d.ts +0 -2
  164. package/dist/components/Tag/Tag.d.ts +0 -3
  165. package/dist/components/Tag/constants.d.ts +0 -2
  166. package/dist/components/Tag/index.d.ts +0 -3
  167. package/dist/components/Tag/types.d.ts +0 -55
  168. package/dist/components/TagInput/TagInput.d.ts +0 -3
  169. package/dist/components/TagInput/components/EditableTag.d.ts +0 -13
  170. package/dist/components/TagInput/components/EditableTagContent.d.ts +0 -11
  171. package/dist/components/TagInput/components/EmailTagInput.d.ts +0 -5
  172. package/dist/components/TagInput/index.d.ts +0 -4
  173. package/dist/components/TagInput/types.d.ts +0 -41
  174. package/dist/components/Textarea/Textarea.d.ts +0 -6
  175. package/dist/components/Textarea/index.d.ts +0 -1
  176. package/dist/components/Toast/Toast.d.ts +0 -16
  177. package/dist/components/Toast/ToastWrapper.d.ts +0 -20
  178. package/dist/components/Toast/index.d.ts +0 -2
  179. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  180. package/dist/components/Tooltip/Tooltip.helpers.d.ts +0 -9
  181. package/dist/components/Tooltip/components/Info.d.ts +0 -3
  182. package/dist/components/Tooltip/components/Interactive.d.ts +0 -3
  183. package/dist/components/Tooltip/components/Reports.d.ts +0 -7
  184. package/dist/components/Tooltip/components/Simple.d.ts +0 -4
  185. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
  186. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
  187. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -16
  188. package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
  189. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
  190. package/dist/components/Tooltip/components/index.d.ts +0 -5
  191. package/dist/components/Tooltip/index.d.ts +0 -4
  192. package/dist/components/Tooltip/types.d.ts +0 -199
  193. package/dist/components/Typography/Display.d.ts +0 -18
  194. package/dist/components/Typography/Heading.d.ts +0 -19
  195. package/dist/components/Typography/Text.d.ts +0 -31
  196. package/dist/components/Typography/index.d.ts +0 -4
  197. package/dist/components/Typography/types.d.ts +0 -4
  198. package/dist/components/UpdateBadge/UpdateBadge.d.ts +0 -2
  199. package/dist/components/UpdateBadge/index.d.ts +0 -1
  200. package/dist/components/UploadBar/UploadBar.d.ts +0 -49
  201. package/dist/components/UploadBar/index.d.ts +0 -1
  202. package/dist/foundations/design-token.d.ts +0 -374
  203. package/dist/foundations/index.d.ts +0 -5
  204. package/dist/foundations/radius-token.d.ts +0 -13
  205. package/dist/foundations/shadow-token.d.ts +0 -24
  206. package/dist/foundations/spacing-token.d.ts +0 -22
  207. package/dist/foundations/transition-token.d.ts +0 -17
  208. package/dist/index.cjs.js +0 -1
  209. package/dist/index.d.ts +0 -52
  210. package/dist/index.es.js +0 -7362
  211. package/dist/providers/AppFrameProvider.d.ts +0 -11
  212. package/dist/providers/index.d.ts +0 -1
  213. package/dist/style.css +0 -1
  214. package/dist/utils/PdfIcon.d.ts +0 -2
  215. package/dist/utils/getDesignTokenWithOpacity.d.ts +0 -1
  216. package/dist/utils/index.d.ts +0 -2
  217. package/dist/utils/keyCodes.d.ts +0 -12
  218. package/dist/utils/noop.d.ts +0 -1
  219. package/dist/utils/plural.d.ts +0 -1
  220. package/dist/utils/story-parameters.d.ts +0 -2
  221. package/dist/utils/types.d.ts +0 -11
@@ -1,2 +0,0 @@
1
- export * from './FileUploadProgress';
2
- export * from './FileUploadProgressActions';
@@ -1,16 +0,0 @@
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>>;
@@ -1,2 +0,0 @@
1
- export { Form } from './Form';
2
- export type { FormProps } from './Form';
@@ -1,40 +0,0 @@
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<FormFieldProps>;
@@ -1 +0,0 @@
1
- export * from './FormField';
@@ -1,16 +0,0 @@
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>>;
@@ -1 +0,0 @@
1
- export * from './FormGroup';
@@ -1,32 +0,0 @@
1
- import * as React from 'react';
2
- import { IconSource } from './types';
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<IconProps>;
32
- export default Icon;
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { IconSource } from '../index';
3
- import { IconName } from './types';
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 {};
@@ -1,2 +0,0 @@
1
- import { IconGroup, IconName } from './types';
2
- export declare const IconsData: Record<IconName, IconGroup>;
@@ -1,2 +0,0 @@
1
- import { IconGroup, IconName } from './types';
2
- export declare const getIconsByGroup: (group: IconGroup) => IconName[];
@@ -1,9 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export * from './Icon';
2
- export type { IconSource } from './types';
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export type IconSource = React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1,29 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export * from './Input';
@@ -1,14 +0,0 @@
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<LinkProps>;
@@ -1 +0,0 @@
1
- export { Link } from './Link';
@@ -1,20 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export { Loader } from './Loader';
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { ModalBaseProps } from './components/ModalBase';
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<ModalProps>;
@@ -1,4 +0,0 @@
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;
@@ -1,29 +0,0 @@
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<IActionModalProps>;
29
- export {};
@@ -1,24 +0,0 @@
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>>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from '../../Button';
3
- export interface ModalCloseButtonProps extends ButtonProps {
4
- labelType?: boolean;
5
- customColor?: string;
6
- }
7
- export declare const ModalCloseButton: React.FC<ModalCloseButtonProps>;
@@ -1,26 +0,0 @@
1
- import * as React from 'react';
2
- import { AvatarProps } from '../../Avatar';
3
- import { IconProps } from '../../Icon';
4
- export interface ModalHeaderProps {
5
- /**
6
- * Set the header title
7
- */
8
- title?: React.ReactNode;
9
- /**
10
- * Set to display the icon
11
- */
12
- iconProps?: IconProps;
13
- /**
14
- * Set to display avatar
15
- */
16
- avatarProps?: AvatarProps;
17
- /**
18
- * Children element
19
- */
20
- children?: React.ReactNode;
21
- /**
22
- * Define class name for container
23
- */
24
- className?: string;
25
- }
26
- export declare const ModalHeader: React.FC<ModalHeaderProps>;
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface ModalPortalProps extends React.HTMLAttributes<HTMLDivElement> {
3
- children: React.ReactNode;
4
- zIndex: number;
5
- parentElementName?: string;
6
- }
7
- export declare const ModalPortal: React.FC<ModalPortalProps>;
@@ -1,11 +0,0 @@
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';
@@ -1,12 +0,0 @@
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<NumericInputProps>;
@@ -1 +0,0 @@
1
- export { NumericInput } from './NumericInput';
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { IOnboardingChecklistProps } from './types';
3
- export declare const OnboardingChecklist: React.FC<IOnboardingChecklistProps>;
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { ICheckListItem } from '../types';
3
- export declare const CheckListItem: React.FC<ICheckListItem>;
@@ -1 +0,0 @@
1
- export { CheckListItem } from './CheckListItem';
@@ -1,2 +0,0 @@
1
- export { OnboardingChecklist } from './OnboardingChecklist';
2
- export type { IOnboardingChecklistProps, IChecklistItemProps, ICompletionMessageDataProps, } from './types';
@@ -1,97 +0,0 @@
1
- import * as React from 'react';
2
- export interface IChecklistItemProps {
3
- /**
4
- * Define the unique id of the item
5
- */
6
- id: string;
7
- /**
8
- * Set the title of the item
9
- */
10
- title: string;
11
- /**
12
- * Set the additional text for the title
13
- */
14
- titleHint?: string;
15
- /**
16
- * Set the description of the item
17
- */
18
- description: string;
19
- /**
20
- * The element to display when the item is active
21
- */
22
- cta: React.ReactElement;
23
- /**
24
- * The element to display in the right column when the item is active
25
- */
26
- placeholder: React.ReactElement;
27
- }
28
- export interface ICheckListItem extends Omit<IChecklistItemProps, 'placeholder'> {
29
- isActive: boolean;
30
- isChecked: boolean;
31
- isLastElement: boolean;
32
- onClick: (id: string) => void;
33
- }
34
- export type ICompletionMessageDataProps = {
35
- /**
36
- * Set the title of the complete state
37
- */
38
- title: string;
39
- /**
40
- * Set the greeting text of the complete state
41
- */
42
- greetingText?: string;
43
- /**
44
- * The element to display when the checklist is completed before the animation starts
45
- */
46
- placeholder?: React.ReactElement;
47
- /**
48
- * Define the delay betweend displaying complete placeholder and the animation starts
49
- */
50
- delay?: number;
51
- /**
52
- * Define the custom heigh of content visible after checklist complete
53
- */
54
- height?: number;
55
- };
56
- export interface IOnboardingChecklistProps {
57
- /**
58
- * The CSS class for the component
59
- */
60
- className?: string;
61
- /**
62
- * Set the title of the checklist
63
- */
64
- title: string;
65
- /**
66
- * Set the greeting text of the checklist
67
- */
68
- greetingText?: string;
69
- /**
70
- * The list of items to display
71
- */
72
- items: IChecklistItemProps[];
73
- /**
74
- * Set to define the active item
75
- */
76
- activeItemId: string;
77
- /**
78
- * Set to defined the complete items
79
- */
80
- completedItemsIds: string[];
81
- /**
82
- * Callback function when list element is clicked
83
- */
84
- onActiveChange: (id: string) => void;
85
- /**
86
- * The CSS class for the right column
87
- */
88
- placeholderClassName?: string;
89
- /**
90
- * Set to define the checklist is completed
91
- */
92
- isCompleted?: boolean;
93
- /**
94
- * Complete element which will be displayed when `isCompleted` is true
95
- */
96
- completionMessageData: ICompletionMessageDataProps;
97
- }
@@ -1,3 +0,0 @@
1
- import * as React from 'react';
2
- import { IPickerProps } from './types';
3
- export declare const Picker: React.FC<IPickerProps>;
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
- import { FloatingContext } from '@floating-ui/react';
3
- import { VirtuosoProps } from 'react-virtuoso';
4
- import { IPickerListItem } from '../types';
5
- export interface IPickerListProps {
6
- pickerType?: 'single' | 'multi';
7
- options: IPickerListItem[];
8
- context: FloatingContext<HTMLButtonElement>;
9
- setFloating: (node: HTMLElement | null) => void;
10
- floatingStyles: React.CSSProperties;
11
- maxHeight: number;
12
- listElementsRef: React.MutableRefObject<(HTMLElement | null)[]>;
13
- activeIndex: number | null;
14
- selectedKeys: string[];
15
- setPointer: (pointer: boolean) => void;
16
- onSelect: (key: string) => void;
17
- getFloatingProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
18
- getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
19
- emptyStateText?: string;
20
- hideWhenEmpty?: boolean;
21
- listClassName?: string;
22
- virtuosoProps?: VirtuosoProps<IPickerListItem, unknown>;
23
- }
24
- export declare const PickerList: React.FC<IPickerListProps>;
@@ -1,14 +0,0 @@
1
- import * as React from 'react';
2
- import { IPickerListItem } from '../types';
3
- interface IPickerListItemProps {
4
- index: number;
5
- isActive: boolean;
6
- isSelected: boolean;
7
- numberOfItems: number;
8
- listElementsRef: React.MutableRefObject<(HTMLElement | null)[]>;
9
- onSelect: (key: string) => void;
10
- getItemProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
11
- item: IPickerListItem;
12
- }
13
- export declare const PickerListItem: React.FC<IPickerListItemProps>;
14
- export {};
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- import { Size } from '../../../utils';
3
- export interface PickerTriggerProps {
4
- setReference: (element: HTMLElement | null) => void;
5
- getReferenceProps: (userProps?: React.HTMLProps<HTMLElement> | undefined) => Record<string, unknown>;
6
- testId?: string;
7
- size?: Size;
8
- isMultiSelect?: boolean;
9
- isItemSelected: boolean;
10
- hideClearButton?: boolean;
11
- isDisabled?: boolean;
12
- isRequired?: boolean;
13
- isError?: boolean;
14
- isOpen: boolean;
15
- onClear: () => void;
16
- setTriggerFocus: (v: boolean) => void;
17
- }
18
- export declare const PickerTrigger: React.FC<React.PropsWithChildren<PickerTriggerProps>>;
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import { Size } from '../../../utils';
3
- import { PickerType, IPickerListItem } from '../types';
4
- export interface ITriggerBodyProps {
5
- isOpen: boolean;
6
- isSearchDisabled?: boolean;
7
- isDisabled?: boolean;
8
- placeholder: string;
9
- searchPhrase?: string;
10
- selectedItems?: IPickerListItem[] | null;
11
- type: PickerType;
12
- clearSearchAfterSelection?: boolean;
13
- size?: Size;
14
- onItemRemove: (key: string) => void;
15
- onSelect: (key: string) => void;
16
- onFilter: (text: string) => void;
17
- onClear: () => void;
18
- virtualItemRef: React.MutableRefObject<HTMLElement | null>;
19
- isTriggerFocused: boolean;
20
- inputRef?: React.RefObject<HTMLInputElement>;
21
- }
22
- export declare const PickerTriggerBody: React.FC<ITriggerBodyProps>;