@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
package/dist/index.js CHANGED
@@ -5437,7 +5437,7 @@ const ys = (e) => {
5437
5437
  available: 1,
5438
5438
  unavailable: 2,
5439
5439
  unknown: 3
5440
- }, fl = (e) => [...e].sort((t, r) => ko[t.status] - ko[r.status]), bl = (e) => e === 0 ? "No one assist your customers" : e === 1 ? "1 agent accepting chats" : `${e} agents accepting chats`, tt = {
5440
+ }, fl = (e) => [...e].sort((t, r) => ko[t.status] - ko[r.status]), bl = (e) => e === 0 ? "No one assist your customers" : `${e} accepting chats`, tt = {
5441
5441
  "invite-agents": "lc-InviteAgents-module__invite-agents___XHov-",
5442
5442
  "invite-agents--empty": "lc-InviteAgents-module__invite-agents--empty___-uyZv",
5443
5443
  "invite-agents--only-unavailable": "lc-InviteAgents-module__invite-agents--only-unavailable___rwGmo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/design-system-react-components",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -86,5 +86,5 @@
86
86
  "react-transition-group": "^4.4.2",
87
87
  "react-virtuoso": "^4.7.11"
88
88
  },
89
- "gitHead": "3f3cbe61825cd5f17fbab11ee41c02b3f8e2d5c6"
89
+ "gitHead": "bfecec01fb0fa7723e479127849d39a0062fc5d1"
90
90
  }
@@ -1,3 +0,0 @@
1
- import { IAccordionProps } from './types';
2
- import * as React from 'react';
3
- export declare const Accordion: React.FC<IAccordionProps>;
@@ -1,3 +0,0 @@
1
- import { IAccordionAnimatedLabelProps } from '../types';
2
- import * as React from 'react';
3
- export declare const AccordionAnimatedLabel: React.FC<IAccordionAnimatedLabelProps>;
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export interface IAccordionMultilineElementProps {
3
- children: React.ReactNode;
4
- isExpanded: boolean;
5
- }
6
- export declare const AccordionMultilineElement: React.FC<IAccordionMultilineElementProps>;
@@ -1,10 +0,0 @@
1
- import { AccordionLabel } from './types';
2
- import * as React from 'react';
3
- export declare const isLabelObject: (label: React.ReactNode | {
4
- open: React.ReactNode;
5
- closed: React.ReactNode;
6
- }) => label is {
7
- open: React.ReactNode;
8
- closed: React.ReactNode;
9
- };
10
- export declare const getLabel: (label: AccordionLabel, currentlyOpen: boolean) => React.ReactNode;
@@ -1 +0,0 @@
1
- export { Accordion } from './Accordion';
@@ -1,4 +0,0 @@
1
- import { IPickerListItem } from '../Picker';
2
-
3
- export declare const RULE_PICKER_OPTIONS: IPickerListItem[];
4
- export declare const TAGS_PICKER_OPTIONS: IPickerListItem[];
@@ -1,45 +0,0 @@
1
- import { ComponentCoreProps } from '../../utils/types';
2
- import * as React from 'react';
3
- export type AccordionLabel = React.ReactNode | {
4
- open: React.ReactNode;
5
- closed: React.ReactNode;
6
- };
7
- export interface IAccordionProps extends ComponentCoreProps {
8
- /**
9
- * Specify the content of the accordion
10
- */
11
- children: React.ReactNode;
12
- /**
13
- * Specify the label of the accordion, single element or different for open and closed state
14
- */
15
- label: AccordionLabel;
16
- /**
17
- * Specify the multiline element, which will be displayed under the label
18
- */
19
- multilineElement?: React.ReactNode;
20
- /**
21
- * Specify the kind of the accordion
22
- */
23
- kind?: 'default' | 'warning' | 'error';
24
- /**
25
- * Specify if the accordion should be open on init
26
- */
27
- openOnInit?: boolean;
28
- /**
29
- * Set to control accordion state
30
- */
31
- isOpen?: boolean;
32
- /**
33
- * Optional handler called on accordion close
34
- */
35
- onClose?: () => void;
36
- /**
37
- * Optional handler called on accordion open
38
- */
39
- onOpen?: () => void;
40
- }
41
- export interface IAccordionAnimatedLabelProps {
42
- open: React.ReactNode;
43
- closed: React.ReactNode;
44
- isOpen: boolean;
45
- }
@@ -1,3 +0,0 @@
1
- import { IActionBarProps } from './types';
2
- import * as React from 'react';
3
- export declare const ActionBar: React.FC<IActionBarProps>;
@@ -1,3 +0,0 @@
1
- import { IActionBarItem } from './types';
2
- import * as React from 'react';
3
- export declare const ActionBarItem: React.FC<IActionBarItem>;
@@ -1,3 +0,0 @@
1
- import { IActionBarOption } from './types';
2
-
3
- export declare const getDefaultOptions: (onClickHandler: (key: string) => void) => IActionBarOption[];
@@ -1,2 +0,0 @@
1
- export { ActionBar } from './ActionBar';
2
- export type { IActionBarProps } from './types';
@@ -1,45 +0,0 @@
1
- import * as React from 'react';
2
- export interface IActionBarProps {
3
- /**
4
- * The CSS class for menu container
5
- */
6
- className?: string;
7
- /**
8
- * The unique id key
9
- */
10
- id?: string;
11
- /**
12
- * Array of action bar options
13
- */
14
- options: IActionBarOption[];
15
- /**
16
- * Set the key for active element
17
- */
18
- activeOptionKey?: string;
19
- /**
20
- * Set 'scroll' to disable menu and enable scroll
21
- */
22
- type?: 'menu' | 'scroll';
23
- /**
24
- * Set the bar buttons verticaly
25
- */
26
- vertical?: boolean;
27
- /**
28
- * Optional element that will be placed at the bottom of the menu
29
- */
30
- menuFooter?: React.ReactNode;
31
- }
32
- export interface IActionBarOption {
33
- key: string;
34
- element: React.ReactElement;
35
- label: string;
36
- withDivider?: boolean;
37
- showTooltip?: boolean;
38
- hideInMenu?: boolean;
39
- onClick: () => void;
40
- }
41
- export interface IActionBarItem {
42
- option: IActionBarOption;
43
- isActive?: boolean;
44
- vertical?: boolean;
45
- }
@@ -1,4 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { ActionCardProps } from './types';
3
-
4
- export declare const ActionCard: FC<PropsWithChildren<ActionCardProps>>;
@@ -1,2 +0,0 @@
1
- export { ActionCard } from './ActionCard';
2
- export type { ActionCardProps } from './types';
@@ -1,23 +0,0 @@
1
- import * as React from 'react';
2
- export interface ActionCardProps {
3
- /**
4
- * The CSS class for main container
5
- */
6
- className?: string;
7
- /**
8
- * The CSS class for the first column container
9
- */
10
- firstColumnClassName?: string;
11
- /**
12
- * The CSS class for the second column container
13
- */
14
- secondColumnClassName?: string;
15
- /**
16
- * Optional element that will be placed in the second column
17
- */
18
- secondColumn?: React.ReactNode;
19
- /**
20
- * Optional handler called on card click
21
- */
22
- onClick?: () => void;
23
- }
@@ -1,3 +0,0 @@
1
- import { IActionMenuProps } from './types';
2
- import * as React from 'react';
3
- export declare const ActionMenu: React.FC<IActionMenuProps>;
@@ -1,3 +0,0 @@
1
- import { ActionMenuItemProps } from './types';
2
- import * as React from 'react';
3
- export declare const ActionMenuItem: React.FC<React.PropsWithChildren<ActionMenuItemProps>>;
@@ -1,3 +0,0 @@
1
- export { ActionMenu } from './ActionMenu';
2
- export { ActionMenuItem } from './ActionMenuItem';
3
- export type { IActionMenuOption } from './types';
@@ -1,15 +0,0 @@
1
- import { default as noop } from '../../utils/noop';
2
-
3
- export declare const exampleOptions: ({
4
- key: string;
5
- element: import("react/jsx-runtime").JSX.Element;
6
- onClick: typeof noop;
7
- disabled?: undefined;
8
- withDivider?: undefined;
9
- } | {
10
- key: string;
11
- element: import("react/jsx-runtime").JSX.Element;
12
- disabled: boolean;
13
- withDivider: boolean;
14
- onClick: typeof noop;
15
- })[];
@@ -1,80 +0,0 @@
1
- import { Placement, flip, Strategy } from '@floating-ui/react';
2
- import { ComponentCoreProps } from '../../utils/types';
3
- import * as React from 'react';
4
- export interface IActionMenuOption {
5
- key: string;
6
- element: React.ReactNode;
7
- groupHeader?: boolean;
8
- disabled?: boolean;
9
- withDivider?: boolean;
10
- onClick?: () => void;
11
- }
12
- export interface IActionMenuProps extends ComponentCoreProps {
13
- /**
14
- * The CSS class for trigger container
15
- */
16
- triggerClassName?: string;
17
- /**
18
- * Array of menu options
19
- */
20
- options: IActionMenuOption[];
21
- /**
22
- * Array of selected menu options keys
23
- */
24
- selectedOptions?: string[];
25
- /**
26
- * Trigger element
27
- */
28
- triggerRenderer: React.ReactElement;
29
- /**
30
- * The menu placement
31
- */
32
- placement?: Placement;
33
- /**
34
- * Will open menu on component initialization
35
- */
36
- openedOnInit?: boolean;
37
- /**
38
- * Menu will stay open after option click
39
- */
40
- keepOpenOnClick?: boolean;
41
- /**
42
- * Set the menu placement to keep it in view
43
- */
44
- flipOptions?: Parameters<typeof flip>[0];
45
- /**
46
- * Set to control the menu visibility
47
- */
48
- visible?: boolean;
49
- /**
50
- * Optional handler called on menu close
51
- */
52
- onClose?: () => void;
53
- /**
54
- * Optional handler called on menu open
55
- */
56
- onOpen?: () => void;
57
- /**
58
- * Set the type of CSS position property to use
59
- * https://floating-ui.com/docs/usefloating#strategy
60
- */
61
- floatingStrategy?: Strategy;
62
- /**
63
- * Optional footer element
64
- */
65
- footer?: React.ReactNode;
66
- }
67
- export interface ActionMenuItemProps {
68
- /**
69
- * Renders given element on the left of element
70
- */
71
- leftNode?: React.ReactNode;
72
- /**
73
- * Renders given element on the right of element
74
- */
75
- rightNode?: React.ReactNode;
76
- /**
77
- * Specify the kind of menu item
78
- */
79
- kind?: 'warning' | undefined;
80
- }
@@ -1,29 +0,0 @@
1
- import { ComponentCoreProps } from '../../utils/types';
2
- import * as React from 'react';
3
- type AlertKind = 'info' | 'warning' | 'success' | 'error';
4
- export interface AlertProps extends ComponentCoreProps {
5
- /**
6
- * Specify the kind of Alert
7
- */
8
- kind?: AlertKind;
9
- /**
10
- * Shows the primary CTA button
11
- */
12
- primaryButton?: {
13
- handleClick: () => void;
14
- label: string;
15
- };
16
- /**
17
- * Shows the secondary CTA button
18
- */
19
- secondaryButton?: {
20
- handleClick: () => void;
21
- label: string;
22
- };
23
- /**
24
- * The optional event handler for close button
25
- */
26
- onClose?: () => void;
27
- }
28
- export declare const Alert: React.FC<React.PropsWithChildren<AlertProps>>;
29
- export {};
@@ -1 +0,0 @@
1
- export { Alert } from './Alert';
@@ -1,3 +0,0 @@
1
- import { IAppFrameProps } from './types';
2
- import * as React from 'react';
3
- export declare const AppFrame: React.FC<IAppFrameProps>;
@@ -1,21 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface IExpirationCounterProps extends ComponentCoreProps {
4
- /**
5
- * The ID of the item
6
- */
7
- id: string;
8
- /**
9
- * The number of days left
10
- */
11
- daysLeft: number;
12
- /**
13
- * The URL to navigate to
14
- */
15
- url?: string;
16
- /**
17
- * The function to call on click
18
- */
19
- onClick: (e: React.MouseEvent<HTMLAnchorElement>, id: string) => void;
20
- }
21
- export declare const ExpirationCounter: React.FC<IExpirationCounterProps>;
@@ -1,3 +0,0 @@
1
- import { IMobileNavigationProps } from './types';
2
- import * as React from 'react';
3
- export declare const MobileNavigation: React.FC<IMobileNavigationProps>;
@@ -1,8 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface IMobileNavigationProps extends ComponentCoreProps {
4
- /**
5
- * It will display your navigation elements
6
- */
7
- children: React.ReactNode;
8
- }
@@ -1,3 +0,0 @@
1
- import { INavigationProps } from './types';
2
- import * as React from 'react';
3
- export declare const Navigation: React.FC<INavigationProps>;
@@ -1,8 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface INavigationProps extends ComponentCoreProps {
4
- /**
5
- * It will display your navigation elements
6
- */
7
- children: React.ReactNode;
8
- }
@@ -1,3 +0,0 @@
1
- import { INavigationGroupProps } from './types';
2
- import * as React from 'react';
3
- export declare const NavigationGroup: React.FC<INavigationGroupProps>;
@@ -1,16 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface INavigationGroupProps extends ComponentCoreProps {
4
- /**
5
- * It will display your navigation elements
6
- */
7
- children: React.ReactNode;
8
- /**
9
- * The CSS class for the navigation bar list
10
- */
11
- className?: string;
12
- /**
13
- * Specify whether the list should be scrollable
14
- */
15
- scrollable?: boolean;
16
- }
@@ -1,3 +0,0 @@
1
- import { INavigationItemProps } from './types';
2
- import * as React from 'react';
3
- export declare const NavigationItem: React.FC<INavigationItemProps>;
@@ -1,40 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface INavigationItemProps extends ComponentCoreProps {
4
- /**
5
- * The ID of the item
6
- */
7
- id: string;
8
- /**
9
- * The label of the item visible in the tooltip
10
- */
11
- label?: string;
12
- /**
13
- * Container for the icon or any other element
14
- */
15
- icon: React.ReactElement;
16
- /**
17
- * The URL to navigate to
18
- */
19
- url?: string;
20
- /**
21
- * Set if you are preparing a custom element as a button icon and you do not want it to be semi-transparent without hover
22
- */
23
- disableOpacity?: boolean;
24
- /**
25
- * Specify whether the navigation item is disabled
26
- */
27
- disabled?: boolean;
28
- /**
29
- * Specify whether the badge should be visible and what type it should be
30
- */
31
- badge?: 'dot' | 'alert' | number;
32
- /**
33
- * Specify whether the item is active
34
- */
35
- isActive?: boolean;
36
- /**
37
- * The function to call on click
38
- */
39
- onClick: (e: React.MouseEvent<HTMLAnchorElement>, id: string) => void;
40
- }
@@ -1,45 +0,0 @@
1
- import { INavigationTopBarProps, ITopBarAlertProps, ITopBarTitleProps } from './types';
2
- import * as React from 'react';
3
- /**
4
- * NavigationTopBar is used to display a top bar in the app frame - mostly to display alerts, but arbitrary content can be placed there too.
5
- * @example
6
- * <NavigationTopBar>
7
- * <NavigationTopBar.Alert kind="error">
8
- * Something went wrong
9
- * </NavigationTopBar.Alert>
10
- * </NavigationTopBar>
11
- */
12
- export declare const NavigationTopBar: {
13
- ({ children, className, additionalNodes, }: INavigationTopBarProps): React.ReactElement;
14
- Alert: React.FC<ITopBarAlertProps>;
15
- Title: React.FC<ITopBarTitleProps>;
16
- };
17
- /**
18
- * Title component for the NavigationTopBar. Supposed to be placed in the `additionalNodes` prop of the NavigationTopBar.
19
- * @example
20
- * <NavigationTopBar additionalNodes={<NavigationTopBar.Title>Example top bar content</NavigationTopBar.Title>}>
21
- * </NavigationTopBar>
22
- */
23
- export declare const NavigationTopBarTitle: React.FC<ITopBarTitleProps>;
24
- /**
25
- * Alert component for the NavigationTopBar.
26
- * @example
27
- * <NavigationTopBar>
28
- * <NavigationTopBar.Alert kind="error" show={!!error}>
29
- * Something went wrong
30
- * </NavigationTopBar.Alert>
31
- * </NavigationTopBar>
32
- * @example
33
- * <NavigationTopBar>
34
- * <NavigationTopBarAlert
35
- * kind="warning"
36
- * primaryCta={{ label: 'Save', onClick: () => console.log('Save clicked') }}
37
- * secondaryCta={{ label: 'Discard', onClick: () => console.log('Discard clicked') }}
38
- * closeButton={{ onClick: () => console.log('Close clicked') }}
39
- * show={!hasUnsavedChanges && !hasClosedAlert}
40
- * >
41
- * You have unsaved changes
42
- * </NavigationTopBarAlert>
43
- * </NavigationTopBar>
44
- **/
45
- export declare const NavigationTopBarAlert: React.FC<ITopBarAlertProps>;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- export declare const DisconnectedAlert: React.FC<{
3
- show: boolean;
4
- onClose: () => void;
5
- }>;
6
- export declare const ChameleonAlert: React.FC<{
7
- show: boolean;
8
- onClose: () => void;
9
- kind: 'info' | 'success' | 'warning' | 'error';
10
- changeKind: () => void;
11
- }>;
12
- export declare const CustomBackgroundAlert: React.FC<{
13
- show: boolean;
14
- onClose: () => void;
15
- }>;
@@ -1,59 +0,0 @@
1
- import { ButtonProps } from 'components/Button';
2
- import { ComponentCoreProps } from 'utils/types';
3
- import * as React from 'react';
4
- export type NavigationTopBarKind = 'info' | 'success' | 'warning' | 'error';
5
- export interface INavigationTopBarProps extends ComponentCoreProps {
6
- /**
7
- * Contents of the top bar. You can use the `NavigationTopBar.Alert` component to display alerts.
8
- */
9
- children?: React.ReactNode;
10
- /**
11
- * Ńodes placed under the children.
12
- */
13
- additionalNodes?: React.ReactNode;
14
- }
15
- export interface ITopBarTitleProps extends ComponentCoreProps {
16
- /**
17
- * Content of the title.
18
- */
19
- children: React.ReactNode;
20
- }
21
- type CTAProps = {
22
- label: string;
23
- onClick: () => void;
24
- } & Omit<ButtonProps, 'onClick' | 'children'>;
25
- export interface ITopBarAlertProps extends ComponentCoreProps {
26
- /**
27
- * Visual style of the alert. You can also use `className` to style the alert if you need to set a custom background color.
28
- * Defaults to `info`.
29
- * */
30
- kind?: NavigationTopBarKind;
31
- /**
32
- * Properties of the close button. If defined, the alert will be closable and the close button will be rendered.
33
- * aria-label is highly recommended for accessibility.
34
- * */
35
- closeButton?: {
36
- onClick: () => void;
37
- 'data-testid'?: string;
38
- 'aria-label'?: string;
39
- };
40
- /**
41
- * Content of the alert.
42
- */
43
- children: React.ReactNode;
44
- /**
45
- * Primary CTA button. The button will be rendered if defined.
46
- * Allows ButtonProps, but `children` is recommended for more complex use-cases.
47
- * */
48
- primaryCta?: CTAProps;
49
- /**
50
- * Secondary CTA button. The button will be rendered if defined.
51
- * Allows ButtonProps, but `children` is recommended for more complex use-cases.
52
- * */
53
- secondaryCta?: CTAProps;
54
- /**
55
- * Show or hide the alert, defaults to `true`. Changes to this prop are animated - the alert will enter and leave smoothly.
56
- * */
57
- isVisible?: boolean;
58
- }
59
- export {};
@@ -1,3 +0,0 @@
1
- import { ISideNavigationProps } from './types';
2
- import * as React from 'react';
3
- export declare const SideNavigation: React.FC<ISideNavigationProps>;
@@ -1,28 +0,0 @@
1
- import { ComponentCoreProps } from '../../../../utils/types';
2
- import * as React from 'react';
3
- export interface ISideNavigationProps extends ComponentCoreProps {
4
- /**
5
- * It will display your side navigation elements
6
- */
7
- children: React.ReactNode;
8
- /**
9
- * It will display the title of the side navigation bar
10
- */
11
- title?: string;
12
- /**
13
- * It will display the custom element as title of the side navigation bar
14
- */
15
- customHeader?: React.ReactNode;
16
- /**
17
- * It will display the custom element as footer of the side navigation bar
18
- */
19
- customFooter?: React.ReactNode;
20
- /**
21
- * Specify whether the gaps between elements should be removed
22
- */
23
- noGaps?: boolean;
24
- /**
25
- * It will display the custom element on the right side of the side navigation bar title
26
- */
27
- rightNode?: React.ReactNode;
28
- }
@@ -1,3 +0,0 @@
1
- import { ISideNavigationGroupProps } from './types';
2
- import * as React from 'react';
3
- export declare const SideNavigationGroup: React.FC<ISideNavigationGroupProps>;