@livechat/design-system-react-components 1.0.0-alpha.9 → 1.0.0-alpha.icons.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 (274) hide show
  1. package/dist/components/ActionBar/ActionBar.d.ts +25 -0
  2. package/dist/components/ActionBar/ActionBar.spec.d.ts +1 -0
  3. package/dist/components/ActionBar/ActionBar.stories.d.ts +10 -0
  4. package/dist/components/ActionBar/ActionBarItem.d.ts +15 -0
  5. package/dist/components/ActionBar/index.d.ts +2 -0
  6. package/dist/components/ActionMenu/ActionMenu.d.ts +38 -0
  7. package/dist/components/ActionMenu/ActionMenu.spec.d.ts +1 -0
  8. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +11 -0
  9. package/dist/components/ActionMenu/ActionMenuItem.d.ts +16 -0
  10. package/dist/components/ActionMenu/constants.d.ts +21 -0
  11. package/dist/components/ActionMenu/index.d.ts +2 -0
  12. package/dist/components/ActionMenu/types.d.ts +9 -0
  13. package/dist/components/Alert/Alert.d.ts +32 -0
  14. package/dist/components/Alert/Alert.spec.d.ts +1 -0
  15. package/dist/components/Alert/Alert.stories.d.ts +9 -0
  16. package/dist/components/Avatar/Avatar.d.ts +49 -0
  17. package/dist/components/Avatar/Avatar.helpers.d.ts +3 -0
  18. package/dist/components/Avatar/Avatar.helpers.spec.d.ts +1 -0
  19. package/dist/components/Avatar/Avatar.spec.d.ts +1 -0
  20. package/dist/components/Avatar/Avatar.stories.d.ts +22 -0
  21. package/dist/components/Avatar/index.d.ts +3 -0
  22. package/dist/components/Badge/Badge.d.ts +24 -0
  23. package/dist/components/Badge/Badge.helpers.d.ts +1 -0
  24. package/dist/components/Badge/Badge.spec.d.ts +1 -0
  25. package/dist/components/Badge/Badge.stories.d.ts +12 -0
  26. package/dist/components/Button/Button.d.ts +63 -0
  27. package/dist/components/Button/Button.spec.d.ts +1 -0
  28. package/dist/components/Button/Button.stories.d.ts +28 -0
  29. package/dist/components/Button/index.d.ts +2 -0
  30. package/dist/components/Card/Card.d.ts +30 -0
  31. package/dist/components/Card/Card.spec.d.ts +1 -0
  32. package/dist/components/Card/Card.stories.d.ts +11 -0
  33. package/dist/components/Checkbox/Checkbox.d.ts +16 -0
  34. package/dist/components/Checkbox/Checkbox.spec.d.ts +1 -0
  35. package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
  36. package/dist/components/Checkbox/index.d.ts +1 -0
  37. package/dist/components/DatePicker/DatePicker.d.ts +4 -0
  38. package/dist/components/DatePicker/DatePicker.spec.d.ts +1 -0
  39. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -0
  40. package/dist/components/DatePicker/DatePickerNavbar.d.ts +4 -0
  41. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
  42. package/dist/components/DatePicker/RangeDatePicker.d.ts +16 -0
  43. package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +1 -0
  44. package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +4 -0
  45. package/dist/components/DatePicker/helpers.d.ts +16 -0
  46. package/dist/components/DatePicker/hooks.d.ts +6 -0
  47. package/dist/components/DatePicker/index.d.ts +2 -0
  48. package/dist/components/DatePicker/types.d.ts +100 -0
  49. package/dist/{src/components → components}/FieldDescription/FieldDescription.d.ts +1 -1
  50. package/dist/{src/components → components}/FieldError/FieldError.d.ts +1 -1
  51. package/dist/{src/components → components}/FieldGroup/FieldGroup.d.ts +1 -1
  52. package/dist/components/FieldGroup/FieldGroup.spec.d.ts +1 -0
  53. package/dist/components/FieldGroup/FieldGroup.stories.d.ts +10 -0
  54. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
  55. package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +7 -0
  56. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
  57. package/dist/components/FileUploadProgress/index.d.ts +2 -0
  58. package/dist/components/Form/Form.d.ts +16 -0
  59. package/dist/components/Form/Form.spec.d.ts +1 -0
  60. package/dist/components/Form/Form.stories.d.ts +8 -0
  61. package/dist/components/FormField/FormField.d.ts +40 -0
  62. package/dist/components/FormField/FormField.spec.d.ts +1 -0
  63. package/dist/components/FormField/FormField.stories.d.ts +9 -0
  64. package/dist/components/FormField/index.d.ts +1 -0
  65. package/dist/components/FormGroup/FormGroup.d.ts +16 -0
  66. package/dist/components/FormGroup/FormGroup.spec.d.ts +1 -0
  67. package/dist/components/FormGroup/FormGroup.stories.d.ts +10 -0
  68. package/dist/components/Icon/Icon.stories.d.ts +14 -0
  69. package/dist/components/Input/Input.d.ts +29 -0
  70. package/dist/components/Input/Input.spec.d.ts +1 -0
  71. package/dist/components/Input/Input.stories.d.ts +10 -0
  72. package/dist/components/Input/index.d.ts +1 -0
  73. package/dist/components/Link/Link.stories.d.ts +12 -0
  74. package/dist/{src/components → components}/Loader/Loader.d.ts +12 -2
  75. package/dist/components/Loader/Loader.spec.d.ts +1 -0
  76. package/dist/components/Loader/Loader.stories.d.ts +10 -0
  77. package/dist/components/Modal/Modal.d.ts +25 -0
  78. package/dist/components/Modal/Modal.spec.d.ts +1 -0
  79. package/dist/components/Modal/Modal.stories.d.ts +14 -0
  80. package/dist/components/Modal/StoriesComponents.d.ts +4 -0
  81. package/dist/components/Modal/components/ModalBase.d.ts +20 -0
  82. package/dist/components/Modal/components/ModalBase.spec.d.ts +1 -0
  83. package/dist/components/Modal/components/ModalCloseButton.d.ts +7 -0
  84. package/dist/components/Modal/components/ModalHeader.d.ts +32 -0
  85. package/dist/{src/components/Modal → components/Modal/components}/ModalPortal.d.ts +1 -1
  86. package/dist/components/Modal/index.d.ts +10 -0
  87. package/dist/{src/components → components}/NumericInput/NumericInput.d.ts +2 -4
  88. package/dist/components/NumericInput/NumericInput.spec.d.ts +1 -0
  89. package/dist/components/NumericInput/NumericInput.stories.d.ts +20 -0
  90. package/dist/components/NumericInput/index.d.ts +1 -0
  91. package/dist/components/Picker/Picker.d.ts +78 -0
  92. package/dist/components/Picker/Picker.spec.d.ts +1 -0
  93. package/dist/components/Picker/Picker.stories.d.ts +11 -0
  94. package/dist/components/Picker/PickerList.d.ts +14 -0
  95. package/dist/components/Picker/PickerList.spec.d.ts +1 -0
  96. package/dist/components/Picker/PickerListItem.d.ts +11 -0
  97. package/dist/components/Picker/Trigger.d.ts +17 -0
  98. package/dist/components/Picker/Trigger.spec.d.ts +1 -0
  99. package/dist/components/Picker/TriggerBody.d.ts +16 -0
  100. package/dist/components/Picker/TriggerBody.spec.d.ts +1 -0
  101. package/dist/components/Picker/constants.d.ts +50 -0
  102. package/dist/components/Picker/helpers.d.ts +2 -0
  103. package/dist/components/Picker/index.d.ts +3 -0
  104. package/dist/components/Picker/types.d.ts +16 -0
  105. package/dist/components/Popover/Popover.d.ts +38 -0
  106. package/dist/components/Popover/Popover.spec.d.ts +1 -0
  107. package/dist/components/Popover/Popover.stories.d.ts +13 -0
  108. package/dist/components/Progress/ProgressBar.d.ts +21 -0
  109. package/dist/components/Progress/ProgressBar.spec.d.ts +1 -0
  110. package/dist/components/Progress/ProgressBar.stories.d.ts +12 -0
  111. package/dist/{src/components → components}/Progress/ProgressCircle.d.ts +13 -1
  112. package/dist/components/Progress/ProgressCircle.spec.d.ts +1 -0
  113. package/dist/components/Progress/ProgressCircle.stories.d.ts +12 -0
  114. package/dist/components/Progress/constants.d.ts +4 -0
  115. package/dist/{src/components → components}/Progress/index.d.ts +1 -0
  116. package/dist/components/PromoBanner/PromoBanner.d.ts +43 -0
  117. package/dist/components/PromoBanner/PromoBanner.spec.d.ts +1 -0
  118. package/dist/components/PromoBanner/PromoBanner.stories.d.ts +11 -0
  119. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +33 -0
  120. package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +1 -0
  121. package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +23 -0
  122. package/dist/components/PromoBannerV2/constants.d.ts +1 -0
  123. package/dist/components/PromoBannerV2/index.d.ts +2 -0
  124. package/dist/{src/components → components}/RadioButton/RadioButton.d.ts +2 -2
  125. package/dist/components/RadioButton/RadioButton.spec.d.ts +1 -0
  126. package/dist/components/RadioButton/RadioButton.stories.d.ts +13 -0
  127. package/dist/components/Search/Search.d.ts +36 -0
  128. package/dist/components/Search/Search.spec.d.ts +1 -0
  129. package/dist/components/Search/Search.stories.d.ts +19 -0
  130. package/dist/components/Search/index.d.ts +1 -0
  131. package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
  132. package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +1 -0
  133. package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
  134. package/dist/components/SegmentedControl/index.d.ts +2 -0
  135. package/dist/components/Switch/Switch.d.ts +47 -0
  136. package/dist/components/Switch/Switch.spec.d.ts +1 -0
  137. package/dist/components/Switch/Switch.stories.d.ts +11 -0
  138. package/dist/components/Tab/Tab.d.ts +15 -0
  139. package/dist/components/Tab/Tab.spec.d.ts +1 -0
  140. package/dist/components/Tab/Tab.stories.d.ts +29 -0
  141. package/dist/components/Tab/TabsWrapper.spec.d.ts +1 -0
  142. package/dist/components/Tab/TabsWrapper.stories.d.ts +18 -0
  143. package/dist/components/Tag/Tag.d.ts +36 -0
  144. package/dist/components/Tag/Tag.spec.d.ts +1 -0
  145. package/dist/components/Tag/Tag.stories.d.ts +26 -0
  146. package/dist/{src/components → components}/TagInput/EmailTagInput.d.ts +2 -2
  147. package/dist/components/TagInput/TagInput.d.ts +32 -0
  148. package/dist/components/TagInput/TagInput.spec.d.ts +1 -0
  149. package/dist/components/TagInput/TagInput.stories.d.ts +10 -0
  150. package/dist/components/Textarea/Textarea.d.ts +6 -0
  151. package/dist/components/Textarea/Textarea.spec.d.ts +1 -0
  152. package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
  153. package/dist/components/Textarea/index.d.ts +1 -0
  154. package/dist/components/Toast/Toast.d.ts +16 -0
  155. package/dist/components/Toast/Toast.spec.d.ts +1 -0
  156. package/dist/components/Toast/Toast.stories.d.ts +14 -0
  157. package/dist/{src/components → components}/Toast/ToastWrapper.d.ts +3 -10
  158. package/dist/components/Toast/ToastWrapper.spec.d.ts +1 -0
  159. package/dist/components/Toast/ToastWrapper.stories.d.ts +34 -0
  160. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  161. package/dist/components/Tooltip/Tooltip.spec.d.ts +1 -0
  162. package/dist/components/Tooltip/Tooltip.stories.d.ts +41 -0
  163. package/dist/components/Tooltip/components/FloatingComponent.d.ts +18 -0
  164. package/dist/components/Tooltip/components/Info.d.ts +9 -0
  165. package/dist/components/Tooltip/components/Interactive.d.ts +15 -0
  166. package/dist/components/Tooltip/components/Reports.d.ts +7 -0
  167. package/dist/components/Tooltip/components/Simple.d.ts +4 -0
  168. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +8 -0
  169. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
  170. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -0
  171. package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
  172. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +9 -0
  173. package/dist/components/Tooltip/components/index.d.ts +5 -0
  174. package/dist/components/Tooltip/helpers.d.ts +4 -0
  175. package/dist/components/Tooltip/index.d.ts +4 -0
  176. package/dist/components/Tooltip/types.d.ts +30 -0
  177. package/dist/components/Typography/Display.d.ts +10 -0
  178. package/dist/{src/components → components}/Typography/Heading.d.ts +2 -2
  179. package/dist/{src/components → components}/Typography/Text.d.ts +2 -2
  180. package/dist/{src/components → components}/Typography/index.d.ts +1 -0
  181. package/dist/components/UploadBar/UploadBar.d.ts +49 -0
  182. package/dist/components/UploadBar/UploadBar.stories.d.ts +7 -0
  183. package/dist/components/UploadBar/index.d.ts +1 -0
  184. package/dist/dsrc.es.js +4339 -1871
  185. package/dist/foundations/radius-token.d.ts +6 -0
  186. package/dist/foundations/shadow-token.d.ts +6 -0
  187. package/dist/foundations/spacing-token.d.ts +17 -0
  188. package/dist/{src/index.d.ts → index.d.ts} +19 -5
  189. package/dist/preview-stats.json +2386 -0
  190. package/dist/stories/components/BlockColumns.d.ts +8 -0
  191. package/dist/stories/components/ColorTokens.d.ts +2 -0
  192. package/dist/stories/components/Radius.d.ts +2 -0
  193. package/dist/stories/components/RadiusExamples.d.ts +2 -0
  194. package/dist/stories/components/Spacing.d.ts +2 -0
  195. package/dist/stories/components/SpacingExamples.d.ts +2 -0
  196. package/dist/stories/components/StoryDescriptor.d.ts +6 -0
  197. package/dist/stories/components/TablerIconsShowcase.d.ts +2 -0
  198. package/dist/style.css +1 -1
  199. package/dist/test/setup.d.ts +0 -0
  200. package/dist/test/utils.d.ts +3 -0
  201. package/dist/themes/design-token.d.ts +228 -0
  202. package/dist/utils/PdfIcon.d.ts +2 -0
  203. package/dist/utils/constants.d.ts +1 -0
  204. package/dist/utils/index.d.ts +1 -0
  205. package/dist/utils/story-parameters.d.ts +2 -0
  206. package/package.json +34 -21
  207. package/dist/dsrc.cjs.js +0 -1
  208. package/dist/dsrc.umd.js +0 -1
  209. package/dist/src/components/Alert/Alert.d.ts +0 -13
  210. package/dist/src/components/Badge/Badge.d.ts +0 -5
  211. package/dist/src/components/Button/Button.d.ts +0 -13
  212. package/dist/src/components/Button/index.d.ts +0 -2
  213. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +0 -11
  214. package/dist/src/components/ButtonGroup/index.d.ts +0 -1
  215. package/dist/src/components/Card/Card.d.ts +0 -6
  216. package/dist/src/components/Checkbox/Checkbox.d.ts +0 -7
  217. package/dist/src/components/Checkbox/CheckboxField.d.ts +0 -7
  218. package/dist/src/components/Checkbox/index.d.ts +0 -2
  219. package/dist/src/components/Form/Form.d.ts +0 -7
  220. package/dist/src/components/FormGroup/FormGroup.d.ts +0 -7
  221. package/dist/src/components/Icon/Icon.d.ts +0 -70
  222. package/dist/src/components/Icon/index.d.ts +0 -1
  223. package/dist/src/components/InputField/InputField.d.ts +0 -15
  224. package/dist/src/components/InputField/index.d.ts +0 -1
  225. package/dist/src/components/Modal/ActionModal.d.ts +0 -8
  226. package/dist/src/components/Modal/Modal.d.ts +0 -7
  227. package/dist/src/components/Modal/ModalBase.d.ts +0 -6
  228. package/dist/src/components/Modal/ModalCloseButton.d.ts +0 -3
  229. package/dist/src/components/Modal/index.d.ts +0 -10
  230. package/dist/src/components/NumericInput/NumericInputField.d.ts +0 -19
  231. package/dist/src/components/NumericInput/index.d.ts +0 -2
  232. package/dist/src/components/Popover/Popover.d.ts +0 -15
  233. package/dist/src/components/Progress/constants.d.ts +0 -12
  234. package/dist/src/components/PromoBanner/PromoBanner.d.ts +0 -19
  235. package/dist/src/components/Switch/Switch.d.ts +0 -20
  236. package/dist/src/components/Tab/Tab.d.ts +0 -12
  237. package/dist/src/components/Tag/Tag.d.ts +0 -12
  238. package/dist/src/components/TagInput/TagInput.d.ts +0 -12
  239. package/dist/src/components/TextField/TextField.d.ts +0 -13
  240. package/dist/src/components/TextField/index.d.ts +0 -1
  241. package/dist/src/components/Toast/Toast.d.ts +0 -22
  242. package/dist/src/themes/designTokens.d.ts +0 -126
  243. package/dist/src/vite-env.d.ts +0 -1
  244. package/dist/themes/dark.css +0 -129
  245. package/dist/themes/dark.css.map +0 -1
  246. package/dist/themes/legacy.css +0 -130
  247. package/dist/themes/legacy.css.map +0 -1
  248. package/dist/themes/light.css +0 -129
  249. package/dist/themes/light.css.map +0 -1
  250. /package/dist/{src/components → components}/Alert/index.d.ts +0 -0
  251. /package/dist/{src/components → components}/Badge/index.d.ts +0 -0
  252. /package/dist/{src/components → components}/Card/index.d.ts +0 -0
  253. /package/dist/{src/components → components}/FieldDescription/index.d.ts +0 -0
  254. /package/dist/{src/components → components}/FieldError/index.d.ts +0 -0
  255. /package/dist/{src/components → components}/FieldGroup/index.d.ts +0 -0
  256. /package/dist/{src/components → components}/Form/index.d.ts +0 -0
  257. /package/dist/{src/components → components}/FormGroup/index.d.ts +0 -0
  258. /package/dist/{src/components → components}/Link/Link.d.ts +0 -0
  259. /package/dist/{src/components → components}/Link/index.d.ts +0 -0
  260. /package/dist/{src/components → components}/Loader/index.d.ts +0 -0
  261. /package/dist/{src/components → components}/Popover/index.d.ts +0 -0
  262. /package/dist/{src/components → components}/Progress/helpers.d.ts +0 -0
  263. /package/dist/{src/components → components}/PromoBanner/index.d.ts +0 -0
  264. /package/dist/{src/components → components}/RadioButton/index.d.ts +0 -0
  265. /package/dist/{src/components → components}/Switch/index.d.ts +0 -0
  266. /package/dist/{src/components → components}/Tab/TabsWrapper.d.ts +0 -0
  267. /package/dist/{src/components → components}/Tab/index.d.ts +0 -0
  268. /package/dist/{src/components → components}/Tag/index.d.ts +0 -0
  269. /package/dist/{src/components → components}/TagInput/EditableTag.d.ts +0 -0
  270. /package/dist/{src/components → components}/TagInput/EditableTagContent.d.ts +0 -0
  271. /package/dist/{src/components → components}/TagInput/index.d.ts +0 -0
  272. /package/dist/{src/components → components}/Toast/index.d.ts +0 -0
  273. /package/dist/{src/utils → utils}/keyCodes.d.ts +0 -0
  274. /package/dist/{src/utils → utils}/noop.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ import * as React from 'react';
2
+ import { Size } from 'utils';
3
+ import { IPickerListItem, PickerType } from './types';
4
+ export interface IPickerProps {
5
+ /**
6
+ * Specify the custom id
7
+ */
8
+ id?: string;
9
+ /**
10
+ * The CSS class for picker container
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Specify whether the picker should be disabled
15
+ */
16
+ disabled?: boolean;
17
+ /**
18
+ * Specify whether the picker should be in error state
19
+ */
20
+ error?: boolean;
21
+ /**
22
+ * Array of picker options
23
+ */
24
+ options: IPickerListItem[];
25
+ /**
26
+ * Array of picker selected options
27
+ */
28
+ selected?: IPickerListItem[] | null;
29
+ /**
30
+ * Specify the picker size
31
+ */
32
+ size?: Size;
33
+ /**
34
+ * Specify the placeholder for search input
35
+ */
36
+ placeholder?: string;
37
+ /**
38
+ * Specify whether the option select is required
39
+ */
40
+ isRequired?: boolean;
41
+ /**
42
+ * Text if no search result were found
43
+ */
44
+ noSearchResultText?: string;
45
+ /**
46
+ * Text for `select all` option which will be visible if defined in multi select mode
47
+ */
48
+ selectAllOptionText?: string;
49
+ /**
50
+ * Set `multi` to specify whether the picker should allow to multi selection
51
+ */
52
+ type?: PickerType;
53
+ /**
54
+ * Set to disable search input
55
+ */
56
+ searchDisabled?: boolean;
57
+ /**
58
+ * Set to hide clear selection button
59
+ */
60
+ hideClearButton?: boolean;
61
+ /**
62
+ * Will open picker on component initialization
63
+ */
64
+ openedOnInit?: boolean;
65
+ /**
66
+ * Test id passed to the picker trigger element
67
+ */
68
+ ['data-testid']?: string;
69
+ /**
70
+ * Callback called after item selection
71
+ */
72
+ onSelect: (selectedItems: IPickerListItem[] | null) => void;
73
+ /**
74
+ * Clears the search input after item select
75
+ */
76
+ clearSearchAfterSelection?: boolean;
77
+ }
78
+ export declare const Picker: React.FC<IPickerProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { IPickerProps } from './Picker';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IPickerProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IPickerProps>;
8
+ export declare const States: () => React.ReactElement;
9
+ export declare const PickerWithGroupedOptions: () => React.ReactElement;
10
+ export declare const PickerWithMoreOptions: () => React.ReactElement;
11
+ export declare const PickerWithOptionsAsCustomElements: () => React.ReactElement;
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ import { IPickerListItem } from './types';
3
+ export interface IPickerListProps {
4
+ isOpen: boolean;
5
+ items: IPickerListItem[];
6
+ selectedItemsKeys: string[] | null;
7
+ emptyStateText?: string;
8
+ selectAllOptionText?: string;
9
+ isMultiSelect?: boolean;
10
+ onClose: () => void;
11
+ onSelect: (item: IPickerListItem) => void;
12
+ onSelectAll: () => void;
13
+ }
14
+ export declare const PickerList: React.FC<IPickerListProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { IPickerListItem } from './types';
3
+ interface IProps {
4
+ item: IPickerListItem;
5
+ isItemSelected: boolean;
6
+ currentItemKey: string | null;
7
+ isAdjacentStyleApplied: 'top' | 'middle' | 'bottom';
8
+ onSelect: (item: IPickerListItem) => void;
9
+ }
10
+ export declare const PickerListItem: React.FC<IProps>;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { Size } from 'utils';
3
+ export interface ITriggerProps {
4
+ isSearchDisabled: boolean;
5
+ isDisabled?: boolean;
6
+ isError?: boolean;
7
+ isItemSelected: boolean;
8
+ isOpen: boolean;
9
+ isRequired?: boolean;
10
+ isMultiSelect?: boolean;
11
+ size?: Size;
12
+ hideClearButton?: boolean;
13
+ onTrigger: (e: React.MouseEvent | KeyboardEvent) => void;
14
+ onClear: () => void;
15
+ testId?: string;
16
+ }
17
+ export declare const Trigger: React.FC<React.PropsWithChildren<ITriggerProps>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { Size } from 'utils';
3
+ import { PickerType, IPickerListItem } from './types';
4
+ export interface ITriggerBodyProps {
5
+ isOpen: boolean;
6
+ isSearchDisabled?: boolean;
7
+ isDisabled?: boolean;
8
+ placeholder: string;
9
+ items?: IPickerListItem[] | null;
10
+ type: PickerType;
11
+ clearSearchAfterSelection?: boolean;
12
+ size?: Size;
13
+ onItemRemove: (item: IPickerListItem) => void;
14
+ onFilter: (text: string) => void;
15
+ }
16
+ export declare const TriggerBody: React.FC<ITriggerBodyProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,50 @@
1
+ export declare const DEFAULT_PICKER_OPTIONS: {
2
+ key: string;
3
+ name: string;
4
+ }[];
5
+ export declare const DEFAULT_EXTENDED_OPTIONS: ({
6
+ key: string;
7
+ name: string;
8
+ groupHeader: boolean;
9
+ disabled?: undefined;
10
+ } | {
11
+ key: string;
12
+ name: string;
13
+ groupHeader?: undefined;
14
+ disabled?: undefined;
15
+ } | {
16
+ key: string;
17
+ name: string;
18
+ disabled: boolean;
19
+ groupHeader?: undefined;
20
+ })[];
21
+ export declare const DEFAULT_MORE_PICKER_OPTIONS: ({
22
+ key: string;
23
+ name: string;
24
+ secondaryText: string;
25
+ showCheckbox?: undefined;
26
+ icon?: undefined;
27
+ avatarSrc?: undefined;
28
+ } | {
29
+ key: string;
30
+ name: string;
31
+ showCheckbox: boolean;
32
+ secondaryText?: undefined;
33
+ icon?: undefined;
34
+ avatarSrc?: undefined;
35
+ } | {
36
+ key: string;
37
+ name: string;
38
+ icon: string;
39
+ secondaryText?: undefined;
40
+ showCheckbox?: undefined;
41
+ avatarSrc?: undefined;
42
+ } | {
43
+ key: string;
44
+ name: string;
45
+ avatarSrc: string;
46
+ secondaryText?: undefined;
47
+ showCheckbox?: undefined;
48
+ icon?: undefined;
49
+ })[];
50
+ export declare const SELECT_ALL_OPTION_KEY = "select-all";
@@ -0,0 +1,2 @@
1
+ import { IPickerListItem } from './types';
2
+ export declare function getAdjacentItemPositions(items: IPickerListItem[], selectedKeys: string[] | null): Record<string, 'top' | 'middle' | 'bottom'>;
@@ -0,0 +1,3 @@
1
+ export * from './Picker';
2
+ export * from './PickerList';
3
+ export type { PickerType, IPickerListItem } from './types';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface IPickerListItem {
3
+ key: string;
4
+ name: string;
5
+ customElement?: {
6
+ listItemBody: React.ReactElement;
7
+ selectedItemBody: React.ReactElement;
8
+ };
9
+ groupHeader?: boolean;
10
+ disabled?: boolean;
11
+ icon?: string;
12
+ avatarSrc?: string;
13
+ secondaryText?: string;
14
+ showCheckbox?: boolean;
15
+ }
16
+ export type PickerType = 'single' | 'multi';
@@ -0,0 +1,38 @@
1
+ import * as React from 'react';
2
+ import { Placement, flip } from '@floating-ui/react-dom';
3
+ export interface IPopoverProps {
4
+ children?: React.ReactNode;
5
+ /**
6
+ * The CSS class for popover container
7
+ */
8
+ className?: string;
9
+ /**
10
+ * The CSS class for trigger container
11
+ */
12
+ triggerClassName?: string;
13
+ /**
14
+ * The popover placement related to the trigger element
15
+ */
16
+ placement?: Placement;
17
+ /**
18
+ * Set popover visibility
19
+ */
20
+ isVisible?: boolean;
21
+ /**
22
+ * Set the popover placement to keep it in view
23
+ */
24
+ flipOptions?: Parameters<typeof flip>[0];
25
+ /**
26
+ * Set `false` if the menu is not to be closed with a esc press
27
+ */
28
+ closeOnEsc?: boolean;
29
+ /**
30
+ * Trigger element
31
+ */
32
+ triggerRenderer: () => React.ReactNode;
33
+ /**
34
+ * Optional callback called after popover close
35
+ */
36
+ onClose?: () => void;
37
+ }
38
+ export declare const Popover: React.FC<IPopoverProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { IPopoverProps } from './Popover';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IPopoverProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Default: {
8
+ (args: IPopoverProps): React.ReactElement;
9
+ args: {
10
+ placement: string;
11
+ isVisible: boolean;
12
+ };
13
+ };
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ import { ProgressSize, ProgressStatus } from './constants';
3
+ export interface ProgressBarProps {
4
+ /**
5
+ * The CSS class for container
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Specify the value of current progress bar (0-100)
10
+ */
11
+ percent: number;
12
+ /**
13
+ * Specify the progress bar status
14
+ */
15
+ status?: ProgressStatus;
16
+ /**
17
+ * Specify the progress bar size
18
+ */
19
+ size?: ProgressSize;
20
+ }
21
+ export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { ProgressBarProps } from './ProgressBar';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
5
+ export declare const ProgressBar: {
6
+ (args: ProgressBarProps): React.ReactElement;
7
+ args: {
8
+ percent: number;
9
+ status: string;
10
+ size: string;
11
+ };
12
+ };
@@ -1,9 +1,21 @@
1
1
  import * as React from 'react';
2
2
  import { ProgressSize, ProgressStatus } from './constants';
3
3
  export interface ProgressCircleProps {
4
+ /**
5
+ * The CSS class for container
6
+ */
4
7
  className?: string;
5
- percent: number;
8
+ /**
9
+ * Specify the value of current progress circle (0-100)
10
+ */
11
+ progressValue: number;
12
+ /**
13
+ * Specify the progress circle status
14
+ */
6
15
  status?: ProgressStatus;
16
+ /**
17
+ * Specify the progress circle size
18
+ */
7
19
  size?: ProgressSize;
8
20
  }
9
21
  export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { ProgressCircleProps } from './ProgressCircle';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
5
+ export declare const ProgressCircle: {
6
+ (args: ProgressCircleProps): React.ReactElement;
7
+ args: {
8
+ progressValue: number;
9
+ status: string;
10
+ size: string;
11
+ };
12
+ };
@@ -0,0 +1,4 @@
1
+ export type ProgressStatus = 'normal' | 'error' | 'success';
2
+ export type ProgressSize = 'small' | 'medium' | 'large';
3
+ export declare const PROGRESS_STATUSES: ProgressStatus[];
4
+ export declare const PROGRESS_SIZES: ProgressSize[];
@@ -1 +1,2 @@
1
1
  export { ProgressCircle } from './ProgressCircle';
2
+ export { ProgressBar } from './ProgressBar';
@@ -0,0 +1,43 @@
1
+ import * as React from 'react';
2
+ export interface PromoBannerProps {
3
+ /**
4
+ * Specify an optional className to be applied to the container node
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Set the primary button text
9
+ */
10
+ buttonText?: string;
11
+ /**
12
+ * Set the header text
13
+ */
14
+ header: string;
15
+ /**
16
+ * Set the image source to display it
17
+ */
18
+ img?: string;
19
+ /**
20
+ * Specify whether the banner should use a light-themed design
21
+ */
22
+ light?: boolean;
23
+ /**
24
+ * Set the link button text
25
+ */
26
+ linkText?: string;
27
+ /**
28
+ * Event handler for primary button press
29
+ */
30
+ onButtonClick?: () => void;
31
+ /**
32
+ * Event handler for close button press
33
+ */
34
+ onClose?: () => void;
35
+ /**
36
+ * Event handler for link button press
37
+ */
38
+ onLinkClick?: () => void;
39
+ }
40
+ /**
41
+ * @deprecated Since version 1.0.0. Will be deleted in future versions. Use {@link PromoBannerV2} instead.
42
+ */
43
+ export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ import { PromoBannerProps } from './PromoBanner';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const PromoBanner: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
8
+ export declare const WithButtons: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
9
+ export declare const WithImage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
10
+ export declare const WithClose: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
11
+ export declare const WithLight: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, PromoBannerProps>;
@@ -0,0 +1,33 @@
1
+ import * as React from 'react';
2
+ import { ButtonKind } from '../Button';
3
+ export interface IPromoBannerV2Props {
4
+ /**
5
+ * Specify an optional className to be applied to the main container node
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Element with additional content for second column
10
+ */
11
+ additionalContent?: React.ReactNode;
12
+ /**
13
+ * Shows the primary CTA button
14
+ */
15
+ primaryButton?: {
16
+ handleClick: () => void;
17
+ label: string;
18
+ kind?: ButtonKind;
19
+ };
20
+ /**
21
+ * Shows the secondary CTA button
22
+ */
23
+ secondaryButton?: {
24
+ handleClick: () => void;
25
+ label: string;
26
+ kind?: ButtonKind;
27
+ };
28
+ /**
29
+ * Event handler for close button press
30
+ */
31
+ onClose?: () => void;
32
+ }
33
+ export declare const PromoBannerV2: React.FC<React.PropsWithChildren<IPromoBannerV2Props>>;
@@ -0,0 +1,23 @@
1
+ import * as React from 'react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: React.FC<React.PropsWithChildren<import("./PromoBannerV2").IPromoBannerV2Props>>;
5
+ argTypes: {
6
+ primaryButton: {
7
+ control: boolean;
8
+ };
9
+ secondaryButton: {
10
+ control: boolean;
11
+ };
12
+ additionalContent: {
13
+ control: boolean;
14
+ };
15
+ onClose: {
16
+ action: string;
17
+ };
18
+ };
19
+ };
20
+ export default _default;
21
+ export declare const Default: () => React.ReactElement;
22
+ export declare const WithStyledAdditionalContent: () => React.ReactElement;
23
+ export declare const WithStyledMainContent: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export declare const SMALL_CONTAINER_WIDTH_TRESHOLD = 559;
@@ -0,0 +1,2 @@
1
+ export { PromoBannerV2 } from './PromoBannerV2';
2
+ export type { IPromoBannerV2Props } from './PromoBannerV2';
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
- description?: React.ReactNode;
3
+ description?: string;
4
4
  checked?: boolean;
5
5
  disabled?: boolean;
6
6
  }
7
- export declare const RadioButton: React.FC<RadioButtonProps>;
7
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { RadioButtonProps } from './RadioButton';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
5
+ export declare const RadioButton: {
6
+ ({ children, ...args }: RadioButtonProps): React.ReactElement;
7
+ args: {
8
+ checked: boolean;
9
+ disabled: boolean;
10
+ description: string;
11
+ children: string;
12
+ };
13
+ };
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ export interface ISearchInputProps {
3
+ /**
4
+ * Makes search expandable after focusing the icon
5
+ */
6
+ isCollapsable?: boolean;
7
+ /**
8
+ * Specify whether the search should be disabled
9
+ */
10
+ isDisabled?: boolean;
11
+ /**
12
+ * Specify whether the search should have loader visible
13
+ */
14
+ isLoading?: boolean;
15
+ /**
16
+ * Optional text for placeholder
17
+ */
18
+ placeholder?: string;
19
+ /**
20
+ * Specify the search size
21
+ */
22
+ size?: 'compact' | 'medium' | 'large';
23
+ /**
24
+ * Specify the search value
25
+ */
26
+ value: string;
27
+ /**
28
+ * Specify an optional className to be applied to the container node
29
+ */
30
+ className?: string;
31
+ /**
32
+ * The event handler for onChange
33
+ */
34
+ onChange: (value: string) => void;
35
+ }
36
+ export declare const SearchInput: React.FC<ISearchInputProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import { ISearchInputProps } from './Search';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, ISearchInputProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Search: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ISearchInputProps>;
8
+ export declare const States: {
9
+ (args: ISearchInputProps): React.ReactElement;
10
+ args: {};
11
+ };
12
+ export declare const Sizes: {
13
+ (args: ISearchInputProps): React.ReactElement;
14
+ args: {};
15
+ };
16
+ export declare const CollapsableSearch: {
17
+ (args: ISearchInputProps): React.ReactElement;
18
+ args: {};
19
+ };
@@ -0,0 +1 @@
1
+ export { SearchInput } from './Search';
@@ -0,0 +1,39 @@
1
+ import * as React from 'react';
2
+ import { ButtonProps } from '../Button';
3
+ export type ButtonSize = 'compact' | 'medium' | 'large';
4
+ type ButtonElement = {
5
+ id: string;
6
+ label: string;
7
+ } & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
8
+ export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
9
+ /**
10
+ * Specify an optional className to be applied to the container node
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Array of buttons
15
+ */
16
+ buttons: ButtonElement[];
17
+ /**
18
+ * Set to make buttons fill the container if there is free space
19
+ */
20
+ fullWidth?: boolean;
21
+ /**
22
+ * Specify the buttons size
23
+ */
24
+ size?: ButtonSize;
25
+ /**
26
+ * Id of initially selected button
27
+ */
28
+ initialId?: string;
29
+ /**
30
+ * Id of current selected button
31
+ */
32
+ currentId?: string;
33
+ /**
34
+ * Handler for onClick on specific button
35
+ */
36
+ onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
37
+ }
38
+ export declare const SegmentedControl: React.FC<SegmentedControlProps>;
39
+ export {};