@livechat/design-system-react-components 1.5.0 → 1.6.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 (244) hide show
  1. package/dist/dsrc.cjs.js +1 -1
  2. package/dist/dsrc.es.js +1575 -1496
  3. package/dist/preview-stats.json +2145 -744
  4. package/dist/style.css +1 -1
  5. package/package.json +3 -3
  6. package/dist/components/ActionBar/ActionBar.d.ts +0 -25
  7. package/dist/components/ActionBar/ActionBar.spec.d.ts +0 -1
  8. package/dist/components/ActionBar/ActionBar.stories.d.ts +0 -10
  9. package/dist/components/ActionBar/ActionBarItem.d.ts +0 -15
  10. package/dist/components/ActionBar/index.d.ts +0 -2
  11. package/dist/components/ActionMenu/ActionMenu.d.ts +0 -50
  12. package/dist/components/ActionMenu/ActionMenu.spec.d.ts +0 -1
  13. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +0 -11
  14. package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -16
  15. package/dist/components/ActionMenu/constants.d.ts +0 -15
  16. package/dist/components/ActionMenu/index.d.ts +0 -3
  17. package/dist/components/ActionMenu/types.d.ts +0 -9
  18. package/dist/components/Alert/Alert.d.ts +0 -32
  19. package/dist/components/Alert/Alert.spec.d.ts +0 -1
  20. package/dist/components/Alert/Alert.stories.d.ts +0 -9
  21. package/dist/components/Alert/index.d.ts +0 -1
  22. package/dist/components/Avatar/Avatar.d.ts +0 -49
  23. package/dist/components/Avatar/Avatar.helpers.d.ts +0 -3
  24. package/dist/components/Avatar/Avatar.helpers.spec.d.ts +0 -1
  25. package/dist/components/Avatar/Avatar.spec.d.ts +0 -1
  26. package/dist/components/Avatar/Avatar.stories.d.ts +0 -22
  27. package/dist/components/Avatar/index.d.ts +0 -3
  28. package/dist/components/Badge/Badge.d.ts +0 -24
  29. package/dist/components/Badge/Badge.helpers.d.ts +0 -1
  30. package/dist/components/Badge/Badge.spec.d.ts +0 -1
  31. package/dist/components/Badge/Badge.stories.d.ts +0 -12
  32. package/dist/components/Badge/index.d.ts +0 -1
  33. package/dist/components/Button/Button.d.ts +0 -63
  34. package/dist/components/Button/Button.spec.d.ts +0 -1
  35. package/dist/components/Button/Button.stories.d.ts +0 -42
  36. package/dist/components/Button/helpers.d.ts +0 -2
  37. package/dist/components/Button/index.d.ts +0 -3
  38. package/dist/components/Button/types.d.ts +0 -1
  39. package/dist/components/Card/Card.d.ts +0 -30
  40. package/dist/components/Card/Card.spec.d.ts +0 -1
  41. package/dist/components/Card/Card.stories.d.ts +0 -11
  42. package/dist/components/Card/index.d.ts +0 -2
  43. package/dist/components/Checkbox/Checkbox.d.ts +0 -16
  44. package/dist/components/Checkbox/Checkbox.spec.d.ts +0 -1
  45. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -13
  46. package/dist/components/Checkbox/index.d.ts +0 -1
  47. package/dist/components/DatePicker/DatePicker.d.ts +0 -4
  48. package/dist/components/DatePicker/DatePicker.spec.d.ts +0 -1
  49. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
  50. package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
  51. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
  52. package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
  53. package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +0 -1
  54. package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +0 -4
  55. package/dist/components/DatePicker/helpers.d.ts +0 -16
  56. package/dist/components/DatePicker/hooks.d.ts +0 -6
  57. package/dist/components/DatePicker/index.d.ts +0 -2
  58. package/dist/components/DatePicker/types.d.ts +0 -100
  59. package/dist/components/DetailsCard/DetailsCard.d.ts +0 -28
  60. package/dist/components/DetailsCard/DetailsCard.spec.d.ts +0 -1
  61. package/dist/components/DetailsCard/DetailsCard.stories.d.ts +0 -17
  62. package/dist/components/DetailsCard/index.d.ts +0 -2
  63. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +0 -8
  64. package/dist/components/DetailsCardInfo/index.d.ts +0 -1
  65. package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
  66. package/dist/components/FieldDescription/index.d.ts +0 -1
  67. package/dist/components/FieldError/FieldError.d.ts +0 -3
  68. package/dist/components/FieldError/index.d.ts +0 -1
  69. package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
  70. package/dist/components/FieldGroup/FieldGroup.spec.d.ts +0 -1
  71. package/dist/components/FieldGroup/FieldGroup.stories.d.ts +0 -10
  72. package/dist/components/FieldGroup/index.d.ts +0 -1
  73. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
  74. package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +0 -7
  75. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
  76. package/dist/components/FileUploadProgress/index.d.ts +0 -2
  77. package/dist/components/Form/Form.d.ts +0 -16
  78. package/dist/components/Form/Form.spec.d.ts +0 -1
  79. package/dist/components/Form/Form.stories.d.ts +0 -8
  80. package/dist/components/Form/index.d.ts +0 -2
  81. package/dist/components/FormField/FormField.d.ts +0 -40
  82. package/dist/components/FormField/FormField.spec.d.ts +0 -1
  83. package/dist/components/FormField/FormField.stories.d.ts +0 -9
  84. package/dist/components/FormField/index.d.ts +0 -1
  85. package/dist/components/FormGroup/FormGroup.d.ts +0 -16
  86. package/dist/components/FormGroup/FormGroup.spec.d.ts +0 -1
  87. package/dist/components/FormGroup/FormGroup.stories.d.ts +0 -10
  88. package/dist/components/FormGroup/index.d.ts +0 -1
  89. package/dist/components/Icon/Icon.d.ts +0 -32
  90. package/dist/components/Icon/Icon.stories.d.ts +0 -15
  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/Input.spec.d.ts +0 -1
  95. package/dist/components/Input/Input.stories.d.ts +0 -10
  96. package/dist/components/Input/index.d.ts +0 -1
  97. package/dist/components/Link/Link.d.ts +0 -14
  98. package/dist/components/Link/Link.stories.d.ts +0 -12
  99. package/dist/components/Link/index.d.ts +0 -1
  100. package/dist/components/Loader/Loader.d.ts +0 -20
  101. package/dist/components/Loader/Loader.spec.d.ts +0 -1
  102. package/dist/components/Loader/Loader.stories.d.ts +0 -10
  103. package/dist/components/Loader/index.d.ts +0 -1
  104. package/dist/components/Modal/Modal.d.ts +0 -25
  105. package/dist/components/Modal/Modal.spec.d.ts +0 -1
  106. package/dist/components/Modal/Modal.stories.d.ts +0 -14
  107. package/dist/components/Modal/StoriesComponents.d.ts +0 -4
  108. package/dist/components/Modal/components/ModalBase.d.ts +0 -20
  109. package/dist/components/Modal/components/ModalBase.spec.d.ts +0 -1
  110. package/dist/components/Modal/components/ModalCloseButton.d.ts +0 -7
  111. package/dist/components/Modal/components/ModalHeader.d.ts +0 -26
  112. package/dist/components/Modal/components/ModalPortal.d.ts +0 -7
  113. package/dist/components/Modal/index.d.ts +0 -10
  114. package/dist/components/NumericInput/NumericInput.d.ts +0 -12
  115. package/dist/components/NumericInput/NumericInput.spec.d.ts +0 -1
  116. package/dist/components/NumericInput/NumericInput.stories.d.ts +0 -20
  117. package/dist/components/NumericInput/index.d.ts +0 -1
  118. package/dist/components/Picker/Picker.d.ts +0 -78
  119. package/dist/components/Picker/Picker.spec.d.ts +0 -1
  120. package/dist/components/Picker/Picker.stories.d.ts +0 -11
  121. package/dist/components/Picker/PickerList.d.ts +0 -14
  122. package/dist/components/Picker/PickerList.spec.d.ts +0 -1
  123. package/dist/components/Picker/PickerListItem.d.ts +0 -11
  124. package/dist/components/Picker/Trigger.d.ts +0 -17
  125. package/dist/components/Picker/Trigger.spec.d.ts +0 -1
  126. package/dist/components/Picker/TriggerBody.d.ts +0 -16
  127. package/dist/components/Picker/TriggerBody.spec.d.ts +0 -1
  128. package/dist/components/Picker/constants.d.ts +0 -50
  129. package/dist/components/Picker/helpers.d.ts +0 -2
  130. package/dist/components/Picker/index.d.ts +0 -3
  131. package/dist/components/Picker/types.d.ts +0 -17
  132. package/dist/components/Popover/Popover.d.ts +0 -3
  133. package/dist/components/Popover/Popover.spec.d.ts +0 -1
  134. package/dist/components/Popover/Popover.stories.d.ts +0 -16
  135. package/dist/components/Popover/index.d.ts +0 -2
  136. package/dist/components/Popover/types.d.ts +0 -59
  137. package/dist/components/Progress/ProgressBar.d.ts +0 -21
  138. package/dist/components/Progress/ProgressBar.spec.d.ts +0 -1
  139. package/dist/components/Progress/ProgressBar.stories.d.ts +0 -12
  140. package/dist/components/Progress/ProgressCircle.d.ts +0 -21
  141. package/dist/components/Progress/ProgressCircle.spec.d.ts +0 -1
  142. package/dist/components/Progress/ProgressCircle.stories.d.ts +0 -12
  143. package/dist/components/Progress/constants.d.ts +0 -4
  144. package/dist/components/Progress/helpers.d.ts +0 -3
  145. package/dist/components/Progress/index.d.ts +0 -2
  146. package/dist/components/PromoBanner/PromoBanner.d.ts +0 -43
  147. package/dist/components/PromoBanner/PromoBanner.spec.d.ts +0 -1
  148. package/dist/components/PromoBanner/PromoBanner.stories.d.ts +0 -11
  149. package/dist/components/PromoBanner/index.d.ts +0 -1
  150. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +0 -33
  151. package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +0 -1
  152. package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +0 -23
  153. package/dist/components/PromoBannerV2/constants.d.ts +0 -1
  154. package/dist/components/PromoBannerV2/index.d.ts +0 -2
  155. package/dist/components/RadioButton/RadioButton.d.ts +0 -7
  156. package/dist/components/RadioButton/RadioButton.spec.d.ts +0 -1
  157. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -13
  158. package/dist/components/RadioButton/index.d.ts +0 -1
  159. package/dist/components/Search/Search.d.ts +0 -36
  160. package/dist/components/Search/Search.spec.d.ts +0 -1
  161. package/dist/components/Search/Search.stories.d.ts +0 -19
  162. package/dist/components/Search/index.d.ts +0 -1
  163. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
  164. package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +0 -1
  165. package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +0 -9
  166. package/dist/components/SegmentedControl/index.d.ts +0 -2
  167. package/dist/components/Switch/Switch.d.ts +0 -47
  168. package/dist/components/Switch/Switch.spec.d.ts +0 -1
  169. package/dist/components/Switch/Switch.stories.d.ts +0 -11
  170. package/dist/components/Switch/index.d.ts +0 -1
  171. package/dist/components/Tab/Tab.d.ts +0 -15
  172. package/dist/components/Tab/Tab.spec.d.ts +0 -1
  173. package/dist/components/Tab/Tab.stories.d.ts +0 -29
  174. package/dist/components/Tab/TabsWrapper.d.ts +0 -3
  175. package/dist/components/Tab/TabsWrapper.spec.d.ts +0 -1
  176. package/dist/components/Tab/TabsWrapper.stories.d.ts +0 -18
  177. package/dist/components/Tab/index.d.ts +0 -2
  178. package/dist/components/Tag/Tag.d.ts +0 -36
  179. package/dist/components/Tag/Tag.spec.d.ts +0 -1
  180. package/dist/components/Tag/Tag.stories.d.ts +0 -26
  181. package/dist/components/Tag/index.d.ts +0 -2
  182. package/dist/components/TagInput/EditableTag.d.ts +0 -11
  183. package/dist/components/TagInput/EditableTagContent.d.ts +0 -11
  184. package/dist/components/TagInput/EmailTagInput.d.ts +0 -5
  185. package/dist/components/TagInput/TagInput.d.ts +0 -40
  186. package/dist/components/TagInput/TagInput.spec.d.ts +0 -1
  187. package/dist/components/TagInput/TagInput.stories.d.ts +0 -10
  188. package/dist/components/TagInput/index.d.ts +0 -4
  189. package/dist/components/Textarea/Textarea.d.ts +0 -6
  190. package/dist/components/Textarea/Textarea.spec.d.ts +0 -1
  191. package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
  192. package/dist/components/Textarea/index.d.ts +0 -1
  193. package/dist/components/Toast/Toast.d.ts +0 -16
  194. package/dist/components/Toast/Toast.spec.d.ts +0 -1
  195. package/dist/components/Toast/Toast.stories.d.ts +0 -14
  196. package/dist/components/Toast/ToastWrapper.d.ts +0 -20
  197. package/dist/components/Toast/ToastWrapper.spec.d.ts +0 -1
  198. package/dist/components/Toast/ToastWrapper.stories.d.ts +0 -34
  199. package/dist/components/Toast/index.d.ts +0 -2
  200. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  201. package/dist/components/Tooltip/Tooltip.spec.d.ts +0 -1
  202. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -52
  203. package/dist/components/Tooltip/components/Info.d.ts +0 -10
  204. package/dist/components/Tooltip/components/Interactive.d.ts +0 -15
  205. package/dist/components/Tooltip/components/Reports.d.ts +0 -7
  206. package/dist/components/Tooltip/components/Simple.d.ts +0 -4
  207. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
  208. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
  209. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -16
  210. package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
  211. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
  212. package/dist/components/Tooltip/components/index.d.ts +0 -5
  213. package/dist/components/Tooltip/helpers.d.ts +0 -6
  214. package/dist/components/Tooltip/index.d.ts +0 -4
  215. package/dist/components/Tooltip/types.d.ts +0 -119
  216. package/dist/components/Typography/Display.d.ts +0 -10
  217. package/dist/components/Typography/Heading.d.ts +0 -11
  218. package/dist/components/Typography/Text.d.ts +0 -15
  219. package/dist/components/Typography/index.d.ts +0 -3
  220. package/dist/components/UploadBar/UploadBar.d.ts +0 -49
  221. package/dist/components/UploadBar/UploadBar.stories.d.ts +0 -7
  222. package/dist/components/UploadBar/index.d.ts +0 -1
  223. package/dist/foundations/radius-token.d.ts +0 -6
  224. package/dist/foundations/shadow-token.d.ts +0 -17
  225. package/dist/foundations/spacing-token.d.ts +0 -17
  226. package/dist/index.d.ts +0 -47
  227. package/dist/stories/components/BlockColumns.d.ts +0 -8
  228. package/dist/stories/components/ColorTokens.d.ts +0 -2
  229. package/dist/stories/components/Radius.d.ts +0 -2
  230. package/dist/stories/components/RadiusExamples.d.ts +0 -2
  231. package/dist/stories/components/Spacing.d.ts +0 -2
  232. package/dist/stories/components/SpacingExamples.d.ts +0 -2
  233. package/dist/stories/components/StoryDescriptor.d.ts +0 -6
  234. package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
  235. package/dist/test/setup.d.ts +0 -0
  236. package/dist/test/utils.d.ts +0 -3
  237. package/dist/themes/design-token.d.ts +0 -276
  238. package/dist/utils/PdfIcon.d.ts +0 -2
  239. package/dist/utils/constants.d.ts +0 -1
  240. package/dist/utils/getDesignTokenWithOpacity.d.ts +0 -1
  241. package/dist/utils/index.d.ts +0 -2
  242. package/dist/utils/keyCodes.d.ts +0 -12
  243. package/dist/utils/noop.d.ts +0 -1
  244. package/dist/utils/story-parameters.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/design-system-react-components",
3
- "version": "1.5.0",
3
+ "version": "1.6.1",
4
4
  "description": "",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -74,7 +74,7 @@
74
74
  "@floating-ui/react-dom": "^0.7.0",
75
75
  "@floating-ui/react-dom-interactions": "^0.6.1",
76
76
  "@livechat/data-utils": "^0.2.16",
77
- "@livechat/design-system-icons": "^1.3.0",
77
+ "@livechat/design-system-icons": "^1.6.1",
78
78
  "@popperjs/core": "^2.11.2",
79
79
  "clsx": "^1.1.1",
80
80
  "date-fns": "^2.28.0",
@@ -84,5 +84,5 @@
84
84
  "react-day-picker": "^7.4.10",
85
85
  "react-transition-group": "^4.4.2"
86
86
  },
87
- "gitHead": "0ebbdd16acc3575b9f2bd22a71bbbf7a20efc949"
87
+ "gitHead": "85102fc6ec77b94001165d8442c6d08f528e5489"
88
88
  }
@@ -1,25 +0,0 @@
1
- import * as React from 'react';
2
- import { IActionBarOption } from './ActionBarItem';
3
- export interface IActionBarProps {
4
- /**
5
- * The CSS class for menu container
6
- */
7
- className?: string;
8
- /**
9
- * The unique id key
10
- */
11
- id?: string;
12
- /**
13
- * Array of action bar options
14
- */
15
- options: IActionBarOption[];
16
- /**
17
- * Set the key for active element
18
- */
19
- activeOptionKey?: string | null;
20
- /**
21
- * Set 'scroll' to disable menu and enable scroll
22
- */
23
- type?: 'menu' | 'scroll';
24
- }
25
- export declare const ActionBar: React.FC<IActionBarProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./ActionBar").IActionBarProps>;
5
- parameters: {
6
- layout: string;
7
- };
8
- };
9
- export default _default;
10
- export declare const Default: () => React.ReactElement;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- export type IActionBarOption = {
3
- key: string;
4
- element: React.ReactElement;
5
- label: string;
6
- showTooltip?: boolean;
7
- onClick: () => void;
8
- };
9
- interface ActionBarItem {
10
- option: IActionBarOption;
11
- menuItemsKeys: string[];
12
- activeOptionKey?: string | null;
13
- }
14
- export declare const ActionBarItem: React.FC<ActionBarItem>;
15
- export {};
@@ -1,2 +0,0 @@
1
- export { ActionBar } from './ActionBar';
2
- export type { IActionBarProps } from './ActionBar';
@@ -1,50 +0,0 @@
1
- import * as React from 'react';
2
- import { Placement, flip } from '@floating-ui/react';
3
- import { IActionMenuOption } from './types';
4
- export interface ActionMenuProps {
5
- /**
6
- * The CSS class for menu container
7
- */
8
- className?: string;
9
- /**
10
- * The CSS class for trigger container
11
- */
12
- triggerClassName?: string;
13
- /**
14
- * Array of menu options
15
- */
16
- options: IActionMenuOption[];
17
- /**
18
- * Trigger element
19
- */
20
- triggerRenderer: React.ReactElement;
21
- /**
22
- * The menu placement
23
- */
24
- placement?: Placement;
25
- /**
26
- * Will open menu on component initialization
27
- */
28
- openedOnInit?: boolean;
29
- /**
30
- * Menu will stay open after option click
31
- */
32
- keepOpenOnClick?: boolean;
33
- /**
34
- * Set the menu placement to keep it in view
35
- */
36
- flipOptions?: Parameters<typeof flip>[0];
37
- /**
38
- * Set to control the menu visibility
39
- */
40
- visible?: boolean;
41
- /**
42
- * Optional handler called on menu close
43
- */
44
- onClose?: () => void;
45
- /**
46
- * Optional handler called on menu open
47
- */
48
- onOpen?: () => void;
49
- }
50
- export declare const ActionMenu: React.FC<ActionMenuProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- declare const _default: {
3
- title: string;
4
- component: React.FC<import("./ActionMenu").ActionMenuProps>;
5
- subcomponents: {
6
- ActionMenuItem: React.FC<React.PropsWithChildren<import("./ActionMenuItem").ActionMenuItemProps>>;
7
- };
8
- };
9
- export default _default;
10
- export declare const Default: () => React.ReactElement;
11
- export declare const KeepOpenOnItemClick: () => React.ReactElement;
@@ -1,16 +0,0 @@
1
- import * as React from 'react';
2
- export interface ActionMenuItemProps {
3
- /**
4
- * Renders given element on the left of element
5
- */
6
- leftNode?: React.ReactNode;
7
- /**
8
- * Renders given element on the right of element
9
- */
10
- rightNode?: React.ReactNode;
11
- /**
12
- * Specify the kind of menu item
13
- */
14
- kind?: 'warning' | undefined;
15
- }
16
- export declare const ActionMenuItem: React.FC<React.PropsWithChildren<ActionMenuItemProps>>;
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import noop from '../../utils/noop';
3
- export declare const exampleOptions: ({
4
- key: string;
5
- element: React.JSX.Element;
6
- onClick: typeof noop;
7
- disabled?: undefined;
8
- withDivider?: undefined;
9
- } | {
10
- key: string;
11
- element: React.JSX.Element;
12
- disabled: boolean;
13
- withDivider: boolean;
14
- onClick: typeof noop;
15
- })[];
@@ -1,3 +0,0 @@
1
- export { ActionMenu } from './ActionMenu';
2
- export { ActionMenuItem } from './ActionMenuItem';
3
- export type { IActionMenuOption } from './types';
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export interface IActionMenuOption {
3
- key: string;
4
- element: React.ReactNode;
5
- groupHeader?: boolean;
6
- disabled?: boolean;
7
- withDivider?: boolean;
8
- onClick?: () => void;
9
- }
@@ -1,32 +0,0 @@
1
- import * as React from 'react';
2
- type AlertKind = 'info' | 'warning' | 'success' | 'error';
3
- export interface AlertProps {
4
- /**
5
- * The CSS class for container
6
- */
7
- className?: string;
8
- /**
9
- * Specify the kind of Alert
10
- */
11
- kind?: AlertKind;
12
- /**
13
- * Shows the primary CTA button
14
- */
15
- primaryButton?: {
16
- handleClick: () => void;
17
- label: string;
18
- };
19
- /**
20
- * Shows the secondary CTA button
21
- */
22
- secondaryButton?: {
23
- handleClick: () => void;
24
- label: string;
25
- };
26
- /**
27
- * The optional event handler for close button
28
- */
29
- onClose?: () => void;
30
- }
31
- export declare const Alert: React.FC<React.PropsWithChildren<AlertProps>>;
32
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { AlertProps } from './Alert';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, AlertProps & {
4
- children?: React.ReactNode;
5
- }>;
6
- export default _default;
7
- export declare const Default: (args: AlertProps) => React.ReactElement;
8
- export declare const Kinds: () => React.ReactElement;
9
- export declare const WithCTA: () => React.ReactElement;
@@ -1 +0,0 @@
1
- export { Alert } from './Alert';
@@ -1,49 +0,0 @@
1
- import * as React from 'react';
2
- type AvatarShape = 'circle' | 'rounded-square';
3
- type AvatarSize = 'xxxsmall' | 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge';
4
- type AvatarStatus = 'available' | 'unavailable' | 'unknown';
5
- type AvatarType = 'image' | 'text';
6
- export interface AvatarProps {
7
- /**
8
- * Alternate text for an image avatar
9
- */
10
- alt?: string;
11
- /**
12
- * The CSS class for container
13
- */
14
- className?: string;
15
- /**
16
- * Specify the background color
17
- */
18
- color?: string;
19
- /**
20
- * Specify the avatar shape
21
- */
22
- shape?: AvatarShape;
23
- /**
24
- * Specify the avatar size
25
- */
26
- size?: AvatarSize;
27
- /**
28
- * Image source for the image avatar
29
- */
30
- src?: string;
31
- /**
32
- * Displays status dot
33
- */
34
- status?: AvatarStatus;
35
- /**
36
- * Text for an text avatar
37
- */
38
- text?: string;
39
- /**
40
- * Specify the avatar type
41
- */
42
- type: AvatarType;
43
- /**
44
- * Displays rim
45
- */
46
- withRim?: boolean;
47
- }
48
- export declare const Avatar: React.FC<AvatarProps>;
49
- export {};
@@ -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 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import { AvatarProps } from './Avatar';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, AvatarProps & {
4
- children?: React.ReactNode;
5
- }>;
6
- export default _default;
7
- export declare const Default: {
8
- (args: AvatarProps): React.ReactElement;
9
- args: {
10
- type: string;
11
- text: string;
12
- };
13
- };
14
- export declare const Types: () => React.ReactElement;
15
- export declare const Shapes: () => React.ReactElement;
16
- export declare const Sizes: () => React.ReactElement;
17
- export declare const Statuses: () => React.ReactElement;
18
- export declare const Colors: () => React.ReactElement;
19
- export declare const FallbackAvatar: () => React.ReactElement;
20
- export declare const Rim: () => React.ReactElement;
21
- export declare const SizesWithStatus: () => React.ReactElement;
22
- export declare const SizesWithRim: () => React.ReactElement;
@@ -1,3 +0,0 @@
1
- export { Avatar } from './Avatar';
2
- export { getBackgroundColor as generateAvatarColor } from './Avatar.helpers';
3
- export type { AvatarProps } from './Avatar';
@@ -1,24 +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
- */
10
- kind?: 'primary' | 'secondary' | 'tertiary';
11
- /**
12
- * The maximum value after which a "+" will be displayed next to the number
13
- */
14
- max?: number;
15
- /**
16
- * Specify the badge size
17
- */
18
- size?: 'large' | 'medium' | 'compact';
19
- /**
20
- * Specify the badge type
21
- */
22
- type?: 'counter' | 'alert' | 'dot';
23
- }
24
- export declare const Badge: React.FC<BadgeProps>;
@@ -1 +0,0 @@
1
- export declare function formatCount(count: number, max: number): string;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- import { Story } from '@storybook/react';
3
- import { BadgeProps } from './Badge';
4
- declare const _default: {
5
- title: string;
6
- component: React.FC<BadgeProps>;
7
- };
8
- export default _default;
9
- export declare const Default: Story<BadgeProps>;
10
- export declare const Sizes: () => React.ReactElement;
11
- export declare const Kinds: () => React.ReactElement;
12
- export declare const Types: () => React.ReactElement;
@@ -1 +0,0 @@
1
- export { Badge } from './Badge';
@@ -1,63 +0,0 @@
1
- import * as React from 'react';
2
- import { Size } from 'utils';
3
- import { ButtonKind } from './types';
4
- export type ButtonProps = {
5
- /**
6
- * Specify the button kind
7
- */
8
- kind?: ButtonKind;
9
- /**
10
- * Specify the button size
11
- */
12
- size?: Size;
13
- /**
14
- * Set the loading state
15
- */
16
- loading?: boolean;
17
- /**
18
- * Set the button for full width
19
- */
20
- fullWidth?: boolean;
21
- /**
22
- * Text displayed in loading state
23
- */
24
- loaderLabel?: string;
25
- /**
26
- * Renders given element
27
- */
28
- icon?: React.ReactElement;
29
- /**
30
- * Specify the place to render element given in `icon` prop
31
- */
32
- iconPosition?: 'left' | 'right';
33
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>;
34
- export declare const Button: React.ForwardRefExoticComponent<{
35
- /**
36
- * Specify the button kind
37
- */
38
- kind?: ButtonKind | undefined;
39
- /**
40
- * Specify the button size
41
- */
42
- size?: Size | undefined;
43
- /**
44
- * Set the loading state
45
- */
46
- loading?: boolean | undefined;
47
- /**
48
- * Set the button for full width
49
- */
50
- fullWidth?: boolean | undefined;
51
- /**
52
- * Text displayed in loading state
53
- */
54
- loaderLabel?: string | undefined;
55
- /**
56
- * Renders given element
57
- */
58
- icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
59
- /**
60
- * Specify the place to render element given in `icon` prop
61
- */
62
- iconPosition?: "right" | "left" | undefined;
63
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,42 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from './Button';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, {
4
- kind?: import("./types").ButtonKind | undefined;
5
- size?: import("../..").Size | undefined;
6
- loading?: boolean | undefined;
7
- fullWidth?: boolean | undefined;
8
- loaderLabel?: string | undefined;
9
- icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
10
- iconPosition?: "right" | "left" | undefined;
11
- } & React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLButtonElement & HTMLAnchorElement>>;
12
- export default _default;
13
- export declare const Default: {
14
- (args: ButtonProps): React.ReactElement;
15
- argTypes: {
16
- icon: {
17
- options: string[];
18
- mapping: {
19
- [k: string]: React.JSX.Element;
20
- } & {
21
- None: null;
22
- };
23
- control: {
24
- type: string;
25
- labels: string[];
26
- };
27
- };
28
- };
29
- args: {
30
- loading: boolean;
31
- disabled: boolean;
32
- size: string;
33
- kind: string;
34
- children: string;
35
- fullWidth: boolean;
36
- iconPosition: string;
37
- icon: string;
38
- };
39
- };
40
- export declare const KindsAndStates: () => React.ReactElement;
41
- export declare const Sizes: () => React.ReactElement;
42
- export declare const ButtonAsLink: () => React.ReactElement;
@@ -1,2 +0,0 @@
1
- import { ButtonKind } from './types';
2
- export declare const getSpinnerColors: (kind: ButtonKind) => Record<string, string> | undefined;
@@ -1,3 +0,0 @@
1
- export { Button } from './Button';
2
- export type { ButtonProps } from './Button';
3
- export type { ButtonKind } from './types';
@@ -1 +0,0 @@
1
- export type ButtonKind = 'basic' | 'primary' | 'secondary' | 'destructive' | 'destructive-outline' | 'text' | 'link' | 'link-light' | 'link-inverted' | 'plain' | 'float' | 'dotted' | 'high-contrast';
@@ -1,30 +0,0 @@
1
- import * as React from 'react';
2
- import { ButtonProps } from '../Button';
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<CardProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { Story } from '@storybook/react';
3
- import { CardProps } from '../Card';
4
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, CardProps & {
5
- children?: React.ReactNode;
6
- }>;
7
- export default _default;
8
- export declare const Default: Story<CardProps>;
9
- export declare const Expandable: Story;
10
- export declare const WithButtons: Story;
11
- export declare const ExpandableWithButtons: Story;
@@ -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 {};
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { CheckboxProps } from './Checkbox';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, CheckboxProps & React.RefAttributes<HTMLInputElement>>;
4
- export default _default;
5
- export declare const Checkbox: {
6
- (args: CheckboxProps): React.ReactElement;
7
- args: {
8
- disabled: boolean;
9
- checked: boolean;
10
- description: string;
11
- children: string;
12
- };
13
- };
@@ -1 +0,0 @@
1
- export { Checkbox } from './Checkbox';
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import ReactDayPicker from 'react-day-picker';
3
- import { IDatePickerProps } from './types';
4
- export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<ReactDayPicker>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import { IDatePickerProps } from './types';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps & React.RefAttributes<import("react-day-picker").default>>;
4
- export default _default;
5
- export declare const DatePicker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
6
- export declare const DatePickerWithDatesBetweenTwoMonths: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
7
- export declare const DatePickerWithCustomFirstDayOfWeek: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IDatePickerProps>;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { IDatePickerNavbarProps } from './types';
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.HTMLAttributes<HTMLDivElement>>;
@@ -1,16 +0,0 @@
1
- import { ReactElement } from 'react';
2
- import { IRangeDatePickerProps } from './types';
3
- export declare const RangeDatePicker: {
4
- ({ options, initialSelectedItemKey, initialFromDate, initialToDate, toMonth, onChange, children, }: IRangeDatePickerProps): ReactElement;
5
- defaultProps: {
6
- options: {
7
- id: string;
8
- label: string;
9
- isManual: boolean;
10
- value: {
11
- from: undefined;
12
- to: undefined;
13
- };
14
- }[];
15
- };
16
- };
@@ -1 +0,0 @@
1
- export {};