@livechat/design-system-react-components 1.0.0-refresh-ui.2 → 1.0.0

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 (220) hide show
  1. package/dist/dsrc.cjs.js +10 -10
  2. package/dist/dsrc.es.js +2822 -2428
  3. package/dist/preview-stats.json +2131 -598
  4. package/dist/style.css +1 -1
  5. package/package.json +3 -4
  6. package/dist/components/ActionMenu/ActionMenu.d.ts +0 -35
  7. package/dist/components/ActionMenu/ActionMenu.spec.d.ts +0 -1
  8. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +0 -11
  9. package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -16
  10. package/dist/components/ActionMenu/constants.d.ts +0 -21
  11. package/dist/components/ActionMenu/index.d.ts +0 -2
  12. package/dist/components/Alert/Alert.d.ts +0 -32
  13. package/dist/components/Alert/Alert.spec.d.ts +0 -1
  14. package/dist/components/Alert/Alert.stories.d.ts +0 -9
  15. package/dist/components/Alert/index.d.ts +0 -1
  16. package/dist/components/Avatar/Avatar.d.ts +0 -49
  17. package/dist/components/Avatar/Avatar.helpers.d.ts +0 -2
  18. package/dist/components/Avatar/Avatar.spec.d.ts +0 -1
  19. package/dist/components/Avatar/Avatar.stories.d.ts +0 -22
  20. package/dist/components/Avatar/index.d.ts +0 -1
  21. package/dist/components/Badge/Badge.d.ts +0 -24
  22. package/dist/components/Badge/Badge.helpers.d.ts +0 -1
  23. package/dist/components/Badge/Badge.spec.d.ts +0 -1
  24. package/dist/components/Badge/Badge.stories.d.ts +0 -12
  25. package/dist/components/Badge/index.d.ts +0 -1
  26. package/dist/components/Button/Button.d.ts +0 -63
  27. package/dist/components/Button/Button.spec.d.ts +0 -1
  28. package/dist/components/Button/Button.stories.d.ts +0 -42
  29. package/dist/components/Button/index.d.ts +0 -2
  30. package/dist/components/Card/Card.d.ts +0 -30
  31. package/dist/components/Card/Card.spec.d.ts +0 -1
  32. package/dist/components/Card/Card.stories.d.ts +0 -11
  33. package/dist/components/Card/index.d.ts +0 -2
  34. package/dist/components/Checkbox/Checkbox.d.ts +0 -16
  35. package/dist/components/Checkbox/Checkbox.spec.d.ts +0 -1
  36. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -13
  37. package/dist/components/Checkbox/index.d.ts +0 -1
  38. package/dist/components/DatePicker/DatePicker.d.ts +0 -4
  39. package/dist/components/DatePicker/DatePicker.spec.d.ts +0 -1
  40. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
  41. package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
  42. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
  43. package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
  44. package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +0 -1
  45. package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +0 -4
  46. package/dist/components/DatePicker/helpers.d.ts +0 -16
  47. package/dist/components/DatePicker/hooks.d.ts +0 -6
  48. package/dist/components/DatePicker/index.d.ts +0 -2
  49. package/dist/components/DatePicker/types.d.ts +0 -100
  50. package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
  51. package/dist/components/FieldDescription/index.d.ts +0 -1
  52. package/dist/components/FieldError/FieldError.d.ts +0 -3
  53. package/dist/components/FieldError/index.d.ts +0 -1
  54. package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
  55. package/dist/components/FieldGroup/FieldGroup.spec.d.ts +0 -1
  56. package/dist/components/FieldGroup/FieldGroup.stories.d.ts +0 -10
  57. package/dist/components/FieldGroup/index.d.ts +0 -1
  58. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
  59. package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +0 -7
  60. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
  61. package/dist/components/FileUploadProgress/index.d.ts +0 -2
  62. package/dist/components/Form/Form.d.ts +0 -16
  63. package/dist/components/Form/Form.spec.d.ts +0 -1
  64. package/dist/components/Form/Form.stories.d.ts +0 -8
  65. package/dist/components/Form/index.d.ts +0 -2
  66. package/dist/components/FormField/FormField.d.ts +0 -40
  67. package/dist/components/FormField/FormField.spec.d.ts +0 -1
  68. package/dist/components/FormField/FormField.stories.d.ts +0 -9
  69. package/dist/components/FormField/index.d.ts +0 -1
  70. package/dist/components/FormGroup/FormGroup.d.ts +0 -16
  71. package/dist/components/FormGroup/FormGroup.spec.d.ts +0 -1
  72. package/dist/components/FormGroup/FormGroup.stories.d.ts +0 -10
  73. package/dist/components/FormGroup/index.d.ts +0 -1
  74. package/dist/components/Icon/Icon.d.ts +0 -32
  75. package/dist/components/Icon/Icon.stories.d.ts +0 -15
  76. package/dist/components/Icon/index.d.ts +0 -1
  77. package/dist/components/Input/Input.d.ts +0 -25
  78. package/dist/components/Input/Input.spec.d.ts +0 -1
  79. package/dist/components/Input/Input.stories.d.ts +0 -10
  80. package/dist/components/Input/index.d.ts +0 -1
  81. package/dist/components/Link/Link.d.ts +0 -14
  82. package/dist/components/Link/Link.stories.d.ts +0 -12
  83. package/dist/components/Link/index.d.ts +0 -1
  84. package/dist/components/Loader/Loader.d.ts +0 -20
  85. package/dist/components/Loader/Loader.spec.d.ts +0 -1
  86. package/dist/components/Loader/Loader.stories.d.ts +0 -10
  87. package/dist/components/Loader/index.d.ts +0 -1
  88. package/dist/components/Modal/Modal.d.ts +0 -21
  89. package/dist/components/Modal/Modal.spec.d.ts +0 -1
  90. package/dist/components/Modal/Modal.stories.d.ts +0 -14
  91. package/dist/components/Modal/ModalBase.d.ts +0 -20
  92. package/dist/components/Modal/ModalBase.spec.d.ts +0 -1
  93. package/dist/components/Modal/ModalCloseButton.d.ts +0 -6
  94. package/dist/components/Modal/ModalHeader.d.ts +0 -9
  95. package/dist/components/Modal/ModalPortal.d.ts +0 -7
  96. package/dist/components/Modal/StoriesComponents.d.ts +0 -4
  97. package/dist/components/Modal/index.d.ts +0 -10
  98. package/dist/components/NumericInput/NumericInput.d.ts +0 -12
  99. package/dist/components/NumericInput/NumericInput.spec.d.ts +0 -1
  100. package/dist/components/NumericInput/NumericInput.stories.d.ts +0 -20
  101. package/dist/components/NumericInput/index.d.ts +0 -1
  102. package/dist/components/Picker/Picker.d.ts +0 -84
  103. package/dist/components/Picker/Picker.spec.d.ts +0 -1
  104. package/dist/components/Picker/Picker.stories.d.ts +0 -10
  105. package/dist/components/Picker/PickerList.d.ts +0 -14
  106. package/dist/components/Picker/PickerList.spec.d.ts +0 -1
  107. package/dist/components/Picker/PickerListItem.d.ts +0 -10
  108. package/dist/components/Picker/Trigger.d.ts +0 -17
  109. package/dist/components/Picker/Trigger.spec.d.ts +0 -1
  110. package/dist/components/Picker/TriggerBody.d.ts +0 -19
  111. package/dist/components/Picker/TriggerBody.spec.d.ts +0 -1
  112. package/dist/components/Picker/constants.d.ts +0 -22
  113. package/dist/components/Picker/index.d.ts +0 -3
  114. package/dist/components/Picker/types.d.ts +0 -11
  115. package/dist/components/Popover/Popover.d.ts +0 -34
  116. package/dist/components/Popover/Popover.spec.d.ts +0 -1
  117. package/dist/components/Popover/Popover.stories.d.ts +0 -13
  118. package/dist/components/Popover/index.d.ts +0 -1
  119. package/dist/components/Progress/ProgressBar.d.ts +0 -21
  120. package/dist/components/Progress/ProgressBar.spec.d.ts +0 -1
  121. package/dist/components/Progress/ProgressBar.stories.d.ts +0 -12
  122. package/dist/components/Progress/ProgressCircle.d.ts +0 -21
  123. package/dist/components/Progress/ProgressCircle.spec.d.ts +0 -1
  124. package/dist/components/Progress/ProgressCircle.stories.d.ts +0 -12
  125. package/dist/components/Progress/constants.d.ts +0 -4
  126. package/dist/components/Progress/helpers.d.ts +0 -3
  127. package/dist/components/Progress/index.d.ts +0 -2
  128. package/dist/components/PromoBanner/PromoBanner.d.ts +0 -40
  129. package/dist/components/PromoBanner/PromoBanner.spec.d.ts +0 -1
  130. package/dist/components/PromoBanner/PromoBanner.stories.d.ts +0 -11
  131. package/dist/components/PromoBanner/index.d.ts +0 -1
  132. package/dist/components/RadioButton/RadioButton.d.ts +0 -7
  133. package/dist/components/RadioButton/RadioButton.spec.d.ts +0 -1
  134. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -13
  135. package/dist/components/RadioButton/index.d.ts +0 -1
  136. package/dist/components/Search/Search.d.ts +0 -36
  137. package/dist/components/Search/Search.spec.d.ts +0 -1
  138. package/dist/components/Search/Search.stories.d.ts +0 -19
  139. package/dist/components/Search/index.d.ts +0 -1
  140. package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
  141. package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +0 -1
  142. package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +0 -9
  143. package/dist/components/SegmentedControl/index.d.ts +0 -2
  144. package/dist/components/Switch/Switch.d.ts +0 -47
  145. package/dist/components/Switch/Switch.spec.d.ts +0 -1
  146. package/dist/components/Switch/Switch.stories.d.ts +0 -11
  147. package/dist/components/Switch/index.d.ts +0 -1
  148. package/dist/components/Tab/Tab.d.ts +0 -15
  149. package/dist/components/Tab/Tab.spec.d.ts +0 -1
  150. package/dist/components/Tab/Tab.stories.d.ts +0 -29
  151. package/dist/components/Tab/TabsWrapper.d.ts +0 -3
  152. package/dist/components/Tab/TabsWrapper.spec.d.ts +0 -1
  153. package/dist/components/Tab/TabsWrapper.stories.d.ts +0 -18
  154. package/dist/components/Tab/index.d.ts +0 -2
  155. package/dist/components/Tag/Tag.d.ts +0 -41
  156. package/dist/components/Tag/Tag.spec.d.ts +0 -1
  157. package/dist/components/Tag/Tag.stories.d.ts +0 -24
  158. package/dist/components/Tag/index.d.ts +0 -1
  159. package/dist/components/TagInput/EditableTag.d.ts +0 -11
  160. package/dist/components/TagInput/EditableTagContent.d.ts +0 -11
  161. package/dist/components/TagInput/EmailTagInput.d.ts +0 -5
  162. package/dist/components/TagInput/TagInput.d.ts +0 -32
  163. package/dist/components/TagInput/TagInput.spec.d.ts +0 -1
  164. package/dist/components/TagInput/TagInput.stories.d.ts +0 -10
  165. package/dist/components/TagInput/index.d.ts +0 -4
  166. package/dist/components/Textarea/Textarea.d.ts +0 -6
  167. package/dist/components/Textarea/Textarea.spec.d.ts +0 -1
  168. package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
  169. package/dist/components/Textarea/index.d.ts +0 -1
  170. package/dist/components/Toast/Toast.d.ts +0 -16
  171. package/dist/components/Toast/Toast.spec.d.ts +0 -1
  172. package/dist/components/Toast/Toast.stories.d.ts +0 -14
  173. package/dist/components/Toast/ToastWrapper.d.ts +0 -20
  174. package/dist/components/Toast/ToastWrapper.spec.d.ts +0 -1
  175. package/dist/components/Toast/ToastWrapper.stories.d.ts +0 -40
  176. package/dist/components/Toast/index.d.ts +0 -2
  177. package/dist/components/Tooltip/Tooltip.d.ts +0 -3
  178. package/dist/components/Tooltip/Tooltip.spec.d.ts +0 -1
  179. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -41
  180. package/dist/components/Tooltip/components/FloatingComponent.d.ts +0 -18
  181. package/dist/components/Tooltip/components/Info.d.ts +0 -8
  182. package/dist/components/Tooltip/components/Interactive.d.ts +0 -23
  183. package/dist/components/Tooltip/components/Reports.d.ts +0 -7
  184. package/dist/components/Tooltip/components/Simple.d.ts +0 -4
  185. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
  186. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
  187. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -15
  188. package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
  189. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
  190. package/dist/components/Tooltip/components/index.d.ts +0 -5
  191. package/dist/components/Tooltip/helpers.d.ts +0 -3
  192. package/dist/components/Tooltip/index.d.ts +0 -3
  193. package/dist/components/Tooltip/types.d.ts +0 -22
  194. package/dist/components/Typography/Heading.d.ts +0 -11
  195. package/dist/components/Typography/Text.d.ts +0 -15
  196. package/dist/components/Typography/index.d.ts +0 -2
  197. package/dist/components/UploadBar/UploadBar.d.ts +0 -49
  198. package/dist/components/UploadBar/UploadBar.stories.d.ts +0 -7
  199. package/dist/components/UploadBar/index.d.ts +0 -1
  200. package/dist/dsrc.umd.js +0 -18
  201. package/dist/foundations/radius-token.d.ts +0 -6
  202. package/dist/foundations/shadow-token.d.ts +0 -6
  203. package/dist/foundations/spacing-token.d.ts +0 -17
  204. package/dist/index.d.ts +0 -42
  205. package/dist/stories/components/BlockColumns.d.ts +0 -8
  206. package/dist/stories/components/ColorTokens.d.ts +0 -2
  207. package/dist/stories/components/IconsShowcase.d.ts +0 -6
  208. package/dist/stories/components/Spacing.d.ts +0 -2
  209. package/dist/stories/components/SpacingExamples.d.ts +0 -2
  210. package/dist/stories/components/StoryDescriptor.d.ts +0 -6
  211. package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
  212. package/dist/test/setup.d.ts +0 -0
  213. package/dist/test/utils.d.ts +0 -3
  214. package/dist/themes/design-token.d.ts +0 -228
  215. package/dist/utils/PdfIcon.d.ts +0 -2
  216. package/dist/utils/constants.d.ts +0 -1
  217. package/dist/utils/index.d.ts +0 -1
  218. package/dist/utils/keyCodes.d.ts +0 -12
  219. package/dist/utils/noop.d.ts +0 -1
  220. package/dist/utils/story-parameters.d.ts +0 -2
@@ -1,20 +0,0 @@
1
- import * as React from 'react';
2
- import { NumericInputProps } from './NumericInput';
3
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, React.InputHTMLAttributes<HTMLInputElement> & {
4
- className?: string | undefined;
5
- error?: string | undefined;
6
- value: string;
7
- max?: number | undefined;
8
- min?: number | undefined;
9
- disabled?: boolean | undefined;
10
- noControls?: boolean | undefined;
11
- onChange: (value: string) => void;
12
- } & {
13
- children?: React.ReactNode;
14
- }>;
15
- export default _default;
16
- export declare const NumericInput: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
17
- export declare const NumericInputWithMinAndMaxValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
18
- export declare const NumericInputWithNoControls: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
19
- export declare const NumericInputWithDisabled: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
20
- export declare const NumericInputWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, NumericInputProps>;
@@ -1 +0,0 @@
1
- export { NumericInput } from './NumericInput';
@@ -1,84 +0,0 @@
1
- import * as React from 'react';
2
- import { Size } from 'utils';
3
- import { IconSize } from '../Icon';
4
- import { PickerType } from './constants';
5
- import { IPickerListItem } from './types';
6
- export interface IPickerProps {
7
- /**
8
- * Specify the custom id
9
- */
10
- id?: string;
11
- /**
12
- * The CSS class for picker container
13
- */
14
- className?: string;
15
- /**
16
- * Specify whether the picker should be disabled
17
- */
18
- disabled?: boolean;
19
- /**
20
- * Specify whether the picker should be in error state
21
- */
22
- error?: boolean;
23
- /**
24
- * Array of picker options
25
- */
26
- options: IPickerListItem[];
27
- /**
28
- * Array of picker selected options
29
- */
30
- selected?: IPickerListItem[] | null;
31
- /**
32
- * Specify the picker size
33
- */
34
- size?: Size;
35
- /**
36
- * Set the dismiss icon size in tags when `multi` type is enabled
37
- */
38
- tagIconSize?: IconSize;
39
- /**
40
- * Specify the placeholder for search input
41
- */
42
- placeholder?: string;
43
- /**
44
- * Specify whether the option select is required
45
- */
46
- isRequired?: boolean;
47
- /**
48
- * Text if no search result were found
49
- */
50
- noSearchResultText?: string;
51
- /**
52
- * Text for `select all` option which will be visible if defined in multi select mode
53
- */
54
- selectAllOptionText?: string;
55
- /**
56
- * Set `multi` to specify whether the picker should allow to multi selection
57
- */
58
- type?: PickerType;
59
- /**
60
- * Set to disable search input
61
- */
62
- searchDisabled?: boolean;
63
- /**
64
- * Set to hide clear selection button
65
- */
66
- hideClearButton?: boolean;
67
- /**
68
- * Will open picker on component initialization
69
- */
70
- openedOnInit?: boolean;
71
- /**
72
- * Test id passed to the picker trigger element
73
- */
74
- ['data-testid']?: string;
75
- /**
76
- * Callback called after item selection
77
- */
78
- onSelect: (selectedItems: IPickerListItem[] | null) => void;
79
- /**
80
- * Clears the search input after item select
81
- */
82
- clearSearchAfterSelection?: boolean;
83
- }
84
- export declare const Picker: React.FC<IPickerProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
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 PickerWithOptionsAsCustomElements: () => React.ReactElement;
@@ -1,14 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
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
- onSelect: (item: IPickerListItem) => void;
8
- }
9
- export declare const PickerListItem: React.FC<IProps>;
10
- export {};
@@ -1,17 +0,0 @@
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>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import * as React from 'react';
2
- import { Size } from 'utils';
3
- import { IconSize } from '../Icon';
4
- import { PickerType } from './constants';
5
- import { IPickerListItem } from './types';
6
- export interface ITriggerBodyProps {
7
- isOpen: boolean;
8
- isSearchDisabled?: boolean;
9
- isDisabled?: boolean;
10
- placeholder: string;
11
- items?: IPickerListItem[] | null;
12
- type: PickerType;
13
- iconSize?: IconSize;
14
- clearSearchAfterSelection?: boolean;
15
- size?: Size;
16
- onItemRemove: (item: IPickerListItem) => void;
17
- onFilter: (text: string) => void;
18
- }
19
- export declare const TriggerBody: React.FC<ITriggerBodyProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- export declare const defaultPickerOptions: {
2
- key: string;
3
- name: string;
4
- }[];
5
- export declare const defaultExtendedOptions: ({
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 SELECT_ALL_OPTION_KEY = "select-all";
22
- export type PickerType = 'single' | 'multi';
@@ -1,3 +0,0 @@
1
- export * from './Picker';
2
- export * from './PickerList';
3
- export type { PickerType } from './constants';
@@ -1,11 +0,0 @@
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
- }
@@ -1,34 +0,0 @@
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 popover placement related to the trigger element
11
- */
12
- placement?: Placement;
13
- /**
14
- * Set popover visibility
15
- */
16
- isVisible?: boolean;
17
- /**
18
- * Set the popover placement to keep it in view
19
- */
20
- flipOptions?: Parameters<typeof flip>[0];
21
- /**
22
- * Set `false` if the menu is not to be closed with a esc press
23
- */
24
- closeOnEsc?: boolean;
25
- /**
26
- * Trigger element
27
- */
28
- triggerRenderer: () => React.ReactNode;
29
- /**
30
- * Optional callback called after popover close
31
- */
32
- onClose?: () => void;
33
- }
34
- export declare const Popover: React.FC<IPopoverProps>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export * from './Popover';
@@ -1,21 +0,0 @@
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>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
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,21 +0,0 @@
1
- import * as React from 'react';
2
- import { ProgressSize, ProgressStatus } from './constants';
3
- export interface ProgressCircleProps {
4
- /**
5
- * The CSS class for container
6
- */
7
- className?: string;
8
- /**
9
- * Specify the value of current progress circle (0-100)
10
- */
11
- progressValue: number;
12
- /**
13
- * Specify the progress circle status
14
- */
15
- status?: ProgressStatus;
16
- /**
17
- * Specify the progress circle size
18
- */
19
- size?: ProgressSize;
20
- }
21
- export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
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,3 +0,0 @@
1
- import { ProgressStatus } from './constants';
2
- export declare function getPercentNumber(status: ProgressStatus, percent?: number): number;
3
- export declare function getProgressStatus(status: ProgressStatus, percent: number): ProgressStatus;
@@ -1,2 +0,0 @@
1
- export { ProgressCircle } from './ProgressCircle';
2
- export { ProgressBar } from './ProgressBar';
@@ -1,40 +0,0 @@
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
- export declare const PromoBanner: React.FC<React.PropsWithChildren<PromoBannerProps>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,11 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export { PromoBanner } from './PromoBanner';
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- export interface RadioButtonProps extends React.HTMLAttributes<HTMLInputElement> {
3
- description?: string;
4
- checked?: boolean;
5
- disabled?: boolean;
6
- }
7
- export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { RadioButton } from './RadioButton';
@@ -1,36 +0,0 @@
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>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { SearchInput } from './Search';
@@ -1,39 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { Story } from '@storybook/react';
3
- import { SegmentedControlProps } from './SegmentedControl';
4
- declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, SegmentedControlProps & {
5
- children?: React.ReactNode;
6
- }>;
7
- export default _default;
8
- export declare const Default: Story<SegmentedControlProps>;
9
- export declare const Uncontrolled: Story<SegmentedControlProps>;
@@ -1,2 +0,0 @@
1
- export { SegmentedControl } from './SegmentedControl';
2
- export type { SegmentedControlProps } from './SegmentedControl';
@@ -1,47 +0,0 @@
1
- import * as React from 'react';
2
- export declare const baseClass = "switch";
3
- export type SwitchSize = 'compact' | 'medium' | 'large';
4
- export type SwitchState = 'regular' | 'loading' | 'locked';
5
- export interface SwitchProps {
6
- /**
7
- * Specify the label for the switch input
8
- */
9
- ariaLabel?: string;
10
- /**
11
- * The CSS class for switch container
12
- */
13
- className?: string;
14
- /**
15
- * Will set the switch to "on" on component initialization
16
- */
17
- defaultOn?: boolean;
18
- /**
19
- * Specify whether the switch should be disabled
20
- */
21
- disabled?: boolean;
22
- /**
23
- * Ref object
24
- */
25
- innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
26
- /**
27
- * Specify the switch input name
28
- */
29
- name?: string;
30
- /**
31
- * Define if switch is "on"
32
- */
33
- on?: boolean;
34
- /**
35
- * The event handler for onChange
36
- */
37
- onChange?(e: React.FormEvent, value: boolean): void;
38
- /**
39
- * Specify the switch size
40
- */
41
- size?: SwitchSize;
42
- /**
43
- * Specify the switch state
44
- */
45
- state?: SwitchState;
46
- }
47
- export declare const Switch: React.FC<SwitchProps>;
@@ -1 +0,0 @@
1
- export {};