@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,32 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface ISideNavigationGroupProps extends ComponentCoreProps {
4
- /**
5
- * It will display your side navigation elements
6
- */
7
- children: React.ReactNode;
8
- /**
9
- * The label of the side navigation list
10
- */
11
- label?: React.ReactNode | ((isOpen: boolean) => React.ReactNode);
12
- /**
13
- * The right node of the side navigation list if `isCollapsible` is set to true
14
- */
15
- rightNode?: React.ReactNode | ((isOpen: boolean) => React.ReactNode);
16
- /**
17
- * Specify whether the list should be collapsible
18
- */
19
- isCollapsible?: boolean;
20
- /**
21
- * The function to call on item hover
22
- */
23
- onItemHover?: () => void;
24
- /**
25
- * Specify whether the list should be open on the first render
26
- */
27
- shouldOpenOnInit?: boolean;
28
- /**
29
- * Specify whether the list should be open if an item within the group is active
30
- */
31
- shouldOpenOnActive?: boolean;
32
- }
@@ -1,3 +0,0 @@
1
- import { ISideNavigationItemProps } from './types';
2
- import * as React from 'react';
3
- export declare const SideNavigationItem: React.FC<ISideNavigationItemProps>;
@@ -1,3 +0,0 @@
1
- export declare const SIDE_NAVIGATION_ITEM_TEST_ID = "side-navigation-item-test-id";
2
- export declare const SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID = "side-navigation-active-item-test-id";
3
- export declare const SIDE_NAVIGATION_PARENT_ICON_TEST_ID = "side-navigation-parent-icon";
@@ -1,44 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface ISideNavigationItemProps extends ComponentCoreProps {
4
- /**
5
- * The label of the item
6
- */
7
- label: React.ReactNode;
8
- /**
9
- * Custom element on the right side of the side navigation item
10
- */
11
- rightNode?: React.ReactNode;
12
- /**
13
- * Custom element on the left side of the side navigation item
14
- */
15
- leftNode?: React.ReactNode;
16
- /**
17
- * Specify whether the icon space should be kept
18
- */
19
- shouldKeepIconSpace?: boolean;
20
- /**
21
- * The URL to navigate to
22
- */
23
- url?: string;
24
- /**
25
- * Specify whether the item is active
26
- */
27
- isActive?: boolean;
28
- /**
29
- * Specify whether the item is seen as the main one
30
- */
31
- isMainEntry?: boolean;
32
- /**
33
- * The function to call on click
34
- */
35
- onClick: () => void;
36
- /**
37
- * The function to call on item hover
38
- */
39
- onItemHover?: () => void;
40
- /**
41
- * Specify whether the icon should be hidden
42
- */
43
- isIconHidden?: boolean;
44
- }
@@ -1,10 +0,0 @@
1
- export { SideNavigation } from './SideNavigation/SideNavigation';
2
- export { SideNavigationGroup } from './SideNavigationGroup/SideNavigationGroup';
3
- export { SideNavigationItem } from './SideNavigationItem/SideNavigationItem';
4
- export { NavigationGroup } from './NavigationGroup/NavigationGroup';
5
- export { NavigationItem } from './NavigationItem/NavigationItem';
6
- export { Navigation } from './Navigation/Navigation';
7
- export { NavigationTopBar, NavigationTopBarAlert, NavigationTopBarTitle, } from './NavigationTopBar/NavigationTopBar';
8
- export { SIDE_NAVIGATION_ITEM_TEST_ID, SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID, SIDE_NAVIGATION_PARENT_ICON_TEST_ID, } from './SideNavigationItem/constants';
9
- export { ExpirationCounter } from './ExpirationCounter/ExpirationCounter';
10
- export { MobileNavigation } from './MobileNavigation/MobileNavigation';
@@ -1,2 +0,0 @@
1
- export { AppFrame } from './AppFrame';
2
- export * from './components';
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- interface ExampleAppContentProps {
3
- showToggle: boolean;
4
- alerts?: boolean[];
5
- setAlerts?: (alerts: boolean[]) => void;
6
- topBarVisible: boolean;
7
- setTopBarVisible: (visible: boolean) => void;
8
- }
9
- export declare const ExampleAppContent: React.FC<ExampleAppContentProps>;
10
- export declare const ExampleTopBar: React.FC<{
11
- visibleAlerts: boolean[];
12
- topBarVisible: boolean;
13
- setAlerts: (alerts: boolean[]) => void;
14
- }>;
15
- export declare const getBadgeContent: (item: string) => "dot" | "alert" | 5 | undefined;
16
- export declare const getChatsMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
17
- export declare const getEngageSubMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
18
- export declare const getArchivesSubMenu: (activeSubItem: number, handler: (o: number) => void) => import("react/jsx-runtime").JSX.Element;
19
- export {};
@@ -1,47 +0,0 @@
1
- import { ComponentCoreProps } from '../../utils/types';
2
- import * as React from 'react';
3
- export interface IAppFrameProps extends ComponentCoreProps {
4
- /**
5
- * It will display your app in the content area
6
- */
7
- children: React.ReactNode;
8
- /**
9
- * It will display navigation elements
10
- */
11
- navigation: React.ReactNode;
12
- /**
13
- * It will display mobile navigation elements
14
- */
15
- mobileNavigation: React.ReactNode;
16
- /**
17
- * It will display the side navigation bar
18
- */
19
- sideNavigation?: React.ReactNode;
20
- /**
21
- * It will display the top bar with passed element
22
- */
23
- topBar?: React.ReactNode;
24
- /**
25
- * The CSS class for the top bar
26
- */
27
- topBarClassName?: string;
28
- /**
29
- * The CSS class for the sub navigation bar
30
- */
31
- sideNavigationContainerClassName?: string;
32
- /**
33
- * The CSS class for the content container
34
- */
35
- contentClassName?: string;
36
- /**
37
- * The value that will determine on which resolution mobile view will be displayed
38
- * @default 705
39
- */
40
- mobileViewBreakpoint?: number;
41
- }
42
- export type { INavigationProps } from './components/Navigation/types';
43
- export type { INavigationGroupProps } from './components/NavigationGroup/types';
44
- export type { INavigationItemProps } from './components/NavigationItem/types';
45
- export type { ISideNavigationProps } from './components/SideNavigation/types';
46
- export type { ISideNavigationGroupProps } from './components/SideNavigationGroup/types';
47
- export type { ISideNavigationItemProps } from './components/SideNavigationItem/types';
@@ -1,13 +0,0 @@
1
- import { AutoCompleteProps } from './types';
2
- import * as React from 'react';
3
- /**
4
- * Text input with autocomplete functionality. The autocomplete list is displayed below the input and is accessible via the keyboard
5
- * and mouse. The list is filtered based on the input value.
6
- *
7
- * @example
8
- * <AutoComplete
9
- * options={['Paul', 'Adam', 'John']}
10
- * placeholder="Type a name"
11
- * />
12
- */
13
- export declare const AutoComplete: React.ForwardRefExoticComponent<AutoCompleteProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,7 +0,0 @@
1
- import { IPickerListItem } from '../Picker';
2
- import { AutoCompleteProps, IAutoCompleteListItem } from './types';
3
-
4
- export declare const areAllOptionsStrings: (options: AutoCompleteProps['options']) => options is string[];
5
- export declare const buildOptionsFromStrings: (options: string[]) => IPickerListItem[];
6
- export declare const buildOptionsFromAutoCompleteListItems: (options: IAutoCompleteListItem[]) => IPickerListItem[];
7
- export declare const getFilteredPickerItems: (items: IPickerListItem[], single: boolean, hideIfExactMatch: boolean, inputValue: string) => IPickerListItem[];
@@ -1,5 +0,0 @@
1
- import { AutoComplete } from './AutoComplete';
2
- import { AutoCompleteProps } from './types';
3
-
4
- export { AutoComplete };
5
- export type { AutoCompleteProps };
@@ -1,27 +0,0 @@
1
- import { Placement, Strategy } from '@floating-ui/react';
2
- import { InputProps } from '../Input';
3
- import { IPickerListItem } from '../Picker';
4
- import * as React from 'react';
5
- export type IAutoCompleteListItem = Omit<IPickerListItem, 'key' | 'customElement'> & {
6
- customElement?: React.ReactElement;
7
- };
8
- export interface AutoCompleteProps extends Omit<InputProps, 'type'> {
9
- /** Options that will be displayed in the picker. If they are strings, they will be converted to `IPickerListItem[]`*/
10
- options?: string[] | IAutoCompleteListItem[];
11
- /** If true, disables filtering of the options. Useful for getting options from an external source.*/
12
- alwaysShowAllOptions?: boolean;
13
- /** If true, the autocomplete list will be open when the component mounts.*/
14
- autocompleteOpenOnInit?: boolean;
15
- /** Minimum height of the list */
16
- minListHeight?: number;
17
- /** Maximum height of the list */
18
- maxListHeight?: number;
19
- /** Placement of the list */
20
- placement?: Placement;
21
- /** Floating strategy */
22
- floatingStrategy?: Strategy;
23
- /** Type of the input. If true, only shows one matching item. */
24
- single?: boolean;
25
- /** If true, the option list will be hidden if there is only one option and it is an exact match to the input value. */
26
- hideIfExactMatch?: boolean;
27
- }
@@ -1,42 +0,0 @@
1
- import { ComponentCoreProps } from '../../utils/types';
2
- import { AvatarShape, AvatarSize, AvatarStatus, AvatarType } from './types';
3
- import * as React from 'react';
4
- export interface AvatarProps extends ComponentCoreProps {
5
- /**
6
- * Alternate text for an image avatar
7
- */
8
- alt?: string;
9
- /**
10
- * Specify the background color
11
- */
12
- color?: string;
13
- /**
14
- * Specify the avatar shape
15
- */
16
- shape?: AvatarShape;
17
- /**
18
- * Specify the avatar size
19
- */
20
- size?: AvatarSize;
21
- /**
22
- * Image source for the image avatar
23
- */
24
- src?: string;
25
- /**
26
- * Displays status dot
27
- */
28
- status?: AvatarStatus;
29
- /**
30
- * Text for an text avatar
31
- */
32
- text?: string;
33
- /**
34
- * Specify the avatar type
35
- */
36
- type: AvatarType;
37
- /**
38
- * Displays rim
39
- */
40
- withRim?: boolean;
41
- }
42
- export declare const Avatar: React.FC<AvatarProps>;
@@ -1,3 +0,0 @@
1
- export declare function getBackgroundColor(text?: string): string | undefined;
2
- export declare function getInitials(name?: string, count?: number): string;
3
- export declare function getFontColor(color: string): string;
@@ -1,3 +0,0 @@
1
- export { Avatar } from './Avatar';
2
- export { getBackgroundColor as generateAvatarColor } from './Avatar.helpers';
3
- export type { AvatarProps } from './Avatar';
@@ -1,8 +0,0 @@
1
- export declare const AvatarSizes: readonly ["xxxsmall", "xxsmall", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
2
- export declare const AvatarStatuses: readonly ["available", "unavailable", "unknown"];
3
- export declare const AvatarTypes: readonly ["image", "text"];
4
- export declare const AvatarShapes: readonly ["circle", "rounded-square"];
5
- export type AvatarSize = (typeof AvatarSizes)[number];
6
- export type AvatarStatus = (typeof AvatarStatuses)[number];
7
- export type AvatarType = (typeof AvatarTypes)[number];
8
- export type AvatarShape = (typeof AvatarShapes)[number];
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
3
- /**
4
- * Value to display
5
- */
6
- count?: number;
7
- /**
8
- * Specify the badge kind
9
- * @param secondary - is deprecated, use "primary" or "tertiary" instead
10
- */
11
- kind?: 'primary' | 'secondary' | 'tertiary';
12
- /**
13
- * The maximum value after which a "+" will be displayed next to the number
14
- */
15
- max?: number;
16
- /**
17
- * Specify the badge size
18
- * @param large - is deprecated, use "medium" or "compact" instead
19
- */
20
- size?: 'large' | 'medium' | 'compact';
21
- /**
22
- * Specify the badge type
23
- * @param dot - is deprecated, use "UpdateBadge" component instead
24
- */
25
- type?: 'counter' | 'alert' | 'dot';
26
- }
27
- export declare const Badge: React.FC<React.PropsWithChildren<BadgeProps>>;
@@ -1 +0,0 @@
1
- export declare function formatCount(count: number, max: number): string;
@@ -1 +0,0 @@
1
- export { Badge } from './Badge';
@@ -1,70 +0,0 @@
1
- import { ButtonKind, ButtonSize } from './types';
2
- import * as React from 'react';
3
- export type ButtonProps = {
4
- /**
5
- * Specify the button kind
6
- */
7
- kind?: ButtonKind;
8
- /**
9
- * Specify the button size
10
- */
11
- size?: ButtonSize;
12
- /**
13
- * Set the loading state
14
- */
15
- loading?: boolean;
16
- /**
17
- * Set the button for full width
18
- */
19
- fullWidth?: boolean;
20
- /**
21
- * Text displayed in loading state
22
- */
23
- loaderLabel?: string;
24
- /**
25
- * Renders given element
26
- */
27
- icon?: React.ReactElement;
28
- /**
29
- * Specify the place to render element given in `icon` prop
30
- */
31
- iconPosition?: 'left' | 'right';
32
- /**
33
- * Set to enable animation that will show label on button hover if icon is present
34
- */
35
- animatedLabel?: boolean;
36
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
37
- export declare const Button: React.ForwardRefExoticComponent<{
38
- /**
39
- * Specify the button kind
40
- */
41
- kind?: ButtonKind | undefined;
42
- /**
43
- * Specify the button size
44
- */
45
- size?: ButtonSize | undefined;
46
- /**
47
- * Set the loading state
48
- */
49
- loading?: boolean | undefined;
50
- /**
51
- * Set the button for full width
52
- */
53
- fullWidth?: boolean | undefined;
54
- /**
55
- * Text displayed in loading state
56
- */
57
- loaderLabel?: string | undefined;
58
- /**
59
- * Renders given element
60
- */
61
- icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
62
- /**
63
- * Specify the place to render element given in `icon` prop
64
- */
65
- iconPosition?: "left" | "right" | undefined;
66
- /**
67
- * Set to enable animation that will show label on button hover if icon is present
68
- */
69
- animatedLabel?: boolean | undefined;
70
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
@@ -1,6 +0,0 @@
1
- import { ButtonKind } from './types';
2
- import * as React from 'react';
3
- export declare const getSpinnerColors: (kind: ButtonKind) => Record<string, string> | undefined;
4
- export declare const handleMouseInteraction: (event: React.MouseEvent<HTMLButtonElement> | React.MouseEvent<HTMLAnchorElement>, internalHandler: () => void, userHandler?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>) => void;
5
- export declare const handleKeyboardInteraction: (event: React.FocusEvent<HTMLButtonElement> | React.FocusEvent<HTMLAnchorElement>, internalHandler: () => void, userHandler?: React.FocusEventHandler<HTMLButtonElement | HTMLAnchorElement>) => void;
6
- export declare const buttonRef: (node: HTMLSpanElement | null, internalHandler: (width: number) => void) => void;
@@ -1,3 +0,0 @@
1
- export { Button } from './Button';
2
- export type { ButtonProps } from './Button';
3
- export type { ButtonKind } from './types';
@@ -1,2 +0,0 @@
1
- export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast' | 'plain-lock-black' | 'text-lock-black';
2
- export type ButtonSize = 'xcompact' | 'compact' | 'medium' | 'large';
@@ -1,30 +0,0 @@
1
- import { ButtonProps } from '../Button';
2
- import * as React from 'react';
3
- export type CardButtonOptions = Pick<ButtonProps, 'children' | 'kind' | 'onClick'>;
4
- export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * Alternate text for an image card
7
- */
8
- alt?: string;
9
- /**
10
- * Array of card buttons
11
- */
12
- buttonsOptions?: CardButtonOptions[];
13
- /**
14
- * Card description
15
- */
16
- description?: string;
17
- /**
18
- * Element to display in the expandable area
19
- */
20
- expandableContent?: React.ReactNode;
21
- /**
22
- * Image source for the image card
23
- */
24
- src?: string;
25
- /**
26
- * Card title
27
- */
28
- title?: string;
29
- }
30
- export declare const Card: React.FC<React.PropsWithChildren<CardProps>>;
@@ -1,2 +0,0 @@
1
- export { Card } from './Card';
2
- export type { CardProps } from './Card';
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- export interface CheckboxProps extends React.HTMLAttributes<HTMLInputElement> {
3
- /**
4
- * Specify whether the checkbox should be disabled
5
- */
6
- disabled?: boolean;
7
- /**
8
- * Specify whether the checkbox should be checked
9
- */
10
- checked?: boolean;
11
- /**
12
- * Set the checkbox description
13
- */
14
- description?: string;
15
- }
16
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +0,0 @@
1
- export { Checkbox } from './Checkbox';
@@ -1,4 +0,0 @@
1
- import { default as ReactDayPicker } from 'react-day-picker';
2
- import { IDatePickerProps } from './types';
3
- import * as React from 'react';
4
- export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<ReactDayPicker>>;
@@ -1,4 +0,0 @@
1
- import { IDatePickerNavbarProps } from './types';
2
- import * as React from 'react';
3
- declare const DatePickerNavbar: React.FC<IDatePickerNavbarProps>;
4
- export default DatePickerNavbar;
@@ -1,2 +0,0 @@
1
- import * as React from 'react';
2
- export declare const DatePickerRangeCalendarsWrapper: React.FC<React.PropsWithChildren<React.HTMLAttributes<HTMLDivElement>>>;
@@ -1,17 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { IRangeDatePickerProps } from './types';
3
-
4
- export declare const RangeDatePicker: {
5
- ({ options, initialSelectedItemKey, initialFromDate, initialToDate, toMonth, onChange, children, }: IRangeDatePickerProps): ReactElement;
6
- defaultProps: {
7
- options: {
8
- id: string;
9
- label: string;
10
- isManual: boolean;
11
- value: {
12
- from: undefined;
13
- to: undefined;
14
- };
15
- }[];
16
- };
17
- };
@@ -1,17 +0,0 @@
1
- import { Modifiers } from 'react-day-picker';
2
- import { ClassNames } from 'react-day-picker/types/ClassNames';
3
- import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
4
-
5
- export declare const isDateWithinRange: (date: Date, range: {
6
- from?: Date;
7
- to?: Date;
8
- }) => boolean;
9
- export declare const calculateDatePickerMonth: (initialFromDate?: Date, initialToDate?: Date, toMonth?: Date) => Date;
10
- export declare const getRangeDatePickerModifiers: (from?: Date, to?: Date) => Partial<Modifiers>;
11
- export declare const getSelectedOption: (itemId: string | null, options: IRangeDatePickerOption[]) => IRangeDatePickerOption | undefined;
12
- export declare const isSelectingFirstDay: (from?: Date, to?: Date) => boolean;
13
- export declare const getInitialStateFromProps: (props: IRangeDatePickerProps) => Partial<IRangeDatePickerState>;
14
- export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => ClassNames & {
15
- start: string;
16
- end: string;
17
- };
@@ -1,7 +0,0 @@
1
- import { Dispatch, ReducerAction, ReducerState } from 'react';
2
- import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
3
-
4
- export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
5
- ReducerState<RangeDatePickerReducer>,
6
- Dispatch<ReducerAction<RangeDatePickerReducer>>
7
- ];
@@ -1,3 +0,0 @@
1
- export { DatePicker } from './DatePicker';
2
- export { RangeDatePicker } from './RangeDatePicker';
3
- export { DatePickerRangeCalendarsWrapper } from './DatePickerRangeCalendarsWrapper';
@@ -1,101 +0,0 @@
1
- import { Reducer, Ref, ReactElement } from 'react';
2
- import { default as ReactDayPicker, DayPickerProps } from 'react-day-picker';
3
- import { ClassNames } from 'react-day-picker/types/ClassNames';
4
-
5
- export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
6
- innerRef?: Ref<ReactDayPicker>;
7
- range?: boolean;
8
- }
9
- export interface IDatePickerNavbarProps {
10
- showPreviousButton?: boolean;
11
- showNextButton?: boolean;
12
- month: Date;
13
- fromMonth?: Date;
14
- toMonth?: Date;
15
- numberOfMonths?: number;
16
- className?: string;
17
- classNames: ClassNames;
18
- onPreviousClick?: () => void;
19
- onNextClick?: () => void;
20
- onMonthChange: (newMonth: Date) => void;
21
- }
22
- export declare enum RangeDatePickerAction {
23
- NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM",
24
- NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE",
25
- CLEAR = "CLEAR",
26
- SET_FROM = "SET_FROM",
27
- SET_TO = "SET_TO",
28
- SELECT_FIRST_DAY = "SELECT_FIRST_DAY",
29
- SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM",
30
- SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO",
31
- CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE"
32
- }
33
- export type IRangeDatePickerReducerAction = {
34
- type: RangeDatePickerAction.NEW_SELECTED_ITEM;
35
- payload: {
36
- selectedItem: string | null;
37
- };
38
- } | {
39
- type: RangeDatePickerAction.NEW_TEMPORARY_TO_VALUE | RangeDatePickerAction.SELECT_FIRST_DAY | RangeDatePickerAction.SELECT_SECOND_DAY_AS_FROM | RangeDatePickerAction.SELECT_SECOND_DAY_AS_TO | RangeDatePickerAction.CURRENT_MONTH_CHANGE;
40
- payload: {
41
- date: Date;
42
- };
43
- } | {
44
- type: RangeDatePickerAction.SET_FROM | RangeDatePickerAction.SET_TO;
45
- payload: {
46
- date?: Date;
47
- };
48
- };
49
- export interface IRangeDatePickerState {
50
- selectedItem: string | null;
51
- from?: Date;
52
- to?: Date;
53
- temporaryTo?: Date;
54
- currentMonth: Date;
55
- }
56
- export type RangeDatePickerReducer = Reducer<IRangeDatePickerState, IRangeDatePickerReducerAction>;
57
- export interface IRangeDatePickerOption {
58
- id: string;
59
- label: string;
60
- isManual?: boolean;
61
- value: {
62
- from?: Date;
63
- to?: Date;
64
- } | null;
65
- }
66
- interface IRangeDatePickerChildrenPayloadDatePicker {
67
- modifiers?: DayPickerProps['modifiers'];
68
- initialMonth?: Date;
69
- month: Date;
70
- range?: boolean;
71
- numberOfMonths: number;
72
- fromMonth?: Date;
73
- toMonth?: Date;
74
- selectedDays?: DayPickerProps['selectedDays'];
75
- disabledDays?: DayPickerProps['disabledDays'];
76
- onDayMouseEnter: DayPickerProps['onDayMouseEnter'];
77
- onDayClick(day: Date): void;
78
- onMonthChange(month: Date): void;
79
- }
80
- export interface IRangeDatePickerChildrenPayload {
81
- select: {
82
- selected: string | number;
83
- onItemSelect(itemKey: string | number): void;
84
- };
85
- inputs: {
86
- fromDate?: Date;
87
- toDate?: Date;
88
- };
89
- datepicker: IRangeDatePickerChildrenPayloadDatePicker;
90
- selectedOption?: IRangeDatePickerOption;
91
- }
92
- export interface IRangeDatePickerProps {
93
- options: IRangeDatePickerOption[];
94
- initialSelectedItemKey?: string;
95
- initialFromDate?: Date;
96
- initialToDate?: Date;
97
- toMonth?: Date;
98
- onChange: (selected: IRangeDatePickerOption | null) => void;
99
- children(payload: IRangeDatePickerChildrenPayload): ReactElement;
100
- }
101
- export {};