@livechat/design-system-react-components 1.6.1 → 1.6.3

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 (245) hide show
  1. package/dist/components/ActionBar/ActionBar.d.ts +3 -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 +3 -0
  5. package/dist/components/ActionBar/index.d.ts +2 -0
  6. package/dist/components/ActionBar/types.d.ts +40 -0
  7. package/dist/components/ActionMenu/ActionMenu.d.ts +50 -0
  8. package/dist/components/ActionMenu/ActionMenu.spec.d.ts +1 -0
  9. package/dist/components/ActionMenu/ActionMenu.stories.d.ts +11 -0
  10. package/dist/components/ActionMenu/ActionMenuItem.d.ts +16 -0
  11. package/dist/components/ActionMenu/constants.d.ts +15 -0
  12. package/dist/components/ActionMenu/index.d.ts +3 -0
  13. package/dist/components/ActionMenu/types.d.ts +9 -0
  14. package/dist/components/Alert/Alert.d.ts +32 -0
  15. package/dist/components/Alert/Alert.spec.d.ts +1 -0
  16. package/dist/components/Alert/Alert.stories.d.ts +9 -0
  17. package/dist/components/Alert/index.d.ts +1 -0
  18. package/dist/components/Avatar/Avatar.d.ts +49 -0
  19. package/dist/components/Avatar/Avatar.helpers.d.ts +3 -0
  20. package/dist/components/Avatar/Avatar.helpers.spec.d.ts +1 -0
  21. package/dist/components/Avatar/Avatar.spec.d.ts +1 -0
  22. package/dist/components/Avatar/Avatar.stories.d.ts +22 -0
  23. package/dist/components/Avatar/index.d.ts +3 -0
  24. package/dist/components/Badge/Badge.d.ts +24 -0
  25. package/dist/components/Badge/Badge.helpers.d.ts +1 -0
  26. package/dist/components/Badge/Badge.spec.d.ts +1 -0
  27. package/dist/components/Badge/Badge.stories.d.ts +12 -0
  28. package/dist/components/Badge/index.d.ts +1 -0
  29. package/dist/components/Button/Button.d.ts +63 -0
  30. package/dist/components/Button/Button.spec.d.ts +1 -0
  31. package/dist/components/Button/Button.stories.d.ts +42 -0
  32. package/dist/components/Button/helpers.d.ts +2 -0
  33. package/dist/components/Button/index.d.ts +3 -0
  34. package/dist/components/Button/types.d.ts +1 -0
  35. package/dist/components/Card/Card.d.ts +30 -0
  36. package/dist/components/Card/Card.spec.d.ts +1 -0
  37. package/dist/components/Card/Card.stories.d.ts +11 -0
  38. package/dist/components/Card/index.d.ts +2 -0
  39. package/dist/components/Checkbox/Checkbox.d.ts +16 -0
  40. package/dist/components/Checkbox/Checkbox.spec.d.ts +1 -0
  41. package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
  42. package/dist/components/Checkbox/index.d.ts +1 -0
  43. package/dist/components/DatePicker/DatePicker.d.ts +4 -0
  44. package/dist/components/DatePicker/DatePicker.spec.d.ts +1 -0
  45. package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -0
  46. package/dist/components/DatePicker/DatePickerNavbar.d.ts +4 -0
  47. package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +2 -0
  48. package/dist/components/DatePicker/RangeDatePicker.d.ts +16 -0
  49. package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +1 -0
  50. package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +4 -0
  51. package/dist/components/DatePicker/helpers.d.ts +16 -0
  52. package/dist/components/DatePicker/hooks.d.ts +6 -0
  53. package/dist/components/DatePicker/index.d.ts +2 -0
  54. package/dist/components/DatePicker/types.d.ts +100 -0
  55. package/dist/components/DetailsCard/DetailsCard.d.ts +32 -0
  56. package/dist/components/DetailsCard/DetailsCard.spec.d.ts +1 -0
  57. package/dist/components/DetailsCard/DetailsCard.stories.d.ts +17 -0
  58. package/dist/components/DetailsCard/index.d.ts +2 -0
  59. package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +8 -0
  60. package/dist/components/DetailsCardInfo/index.d.ts +1 -0
  61. package/dist/components/FieldDescription/FieldDescription.d.ts +3 -0
  62. package/dist/components/FieldDescription/index.d.ts +1 -0
  63. package/dist/components/FieldError/FieldError.d.ts +3 -0
  64. package/dist/components/FieldError/index.d.ts +1 -0
  65. package/dist/components/FieldGroup/FieldGroup.d.ts +8 -0
  66. package/dist/components/FieldGroup/FieldGroup.spec.d.ts +1 -0
  67. package/dist/components/FieldGroup/FieldGroup.stories.d.ts +10 -0
  68. package/dist/components/FieldGroup/index.d.ts +1 -0
  69. package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +42 -0
  70. package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +7 -0
  71. package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
  72. package/dist/components/FileUploadProgress/index.d.ts +2 -0
  73. package/dist/components/Form/Form.d.ts +16 -0
  74. package/dist/components/Form/Form.spec.d.ts +1 -0
  75. package/dist/components/Form/Form.stories.d.ts +8 -0
  76. package/dist/components/Form/index.d.ts +2 -0
  77. package/dist/components/FormField/FormField.d.ts +40 -0
  78. package/dist/components/FormField/FormField.spec.d.ts +1 -0
  79. package/dist/components/FormField/FormField.stories.d.ts +9 -0
  80. package/dist/components/FormField/index.d.ts +1 -0
  81. package/dist/components/FormGroup/FormGroup.d.ts +16 -0
  82. package/dist/components/FormGroup/FormGroup.spec.d.ts +1 -0
  83. package/dist/components/FormGroup/FormGroup.stories.d.ts +10 -0
  84. package/dist/components/FormGroup/index.d.ts +1 -0
  85. package/dist/components/Icon/Icon.d.ts +32 -0
  86. package/dist/components/Icon/Icon.stories.d.ts +15 -0
  87. package/dist/components/Icon/index.d.ts +2 -0
  88. package/dist/components/Icon/types.d.ts +2 -0
  89. package/dist/components/Input/Input.d.ts +29 -0
  90. package/dist/components/Input/Input.spec.d.ts +1 -0
  91. package/dist/components/Input/Input.stories.d.ts +10 -0
  92. package/dist/components/Input/index.d.ts +1 -0
  93. package/dist/components/Link/Link.d.ts +14 -0
  94. package/dist/components/Link/Link.stories.d.ts +12 -0
  95. package/dist/components/Link/index.d.ts +1 -0
  96. package/dist/components/Loader/Loader.d.ts +20 -0
  97. package/dist/components/Loader/Loader.spec.d.ts +1 -0
  98. package/dist/components/Loader/Loader.stories.d.ts +10 -0
  99. package/dist/components/Loader/index.d.ts +1 -0
  100. package/dist/components/Modal/Modal.d.ts +25 -0
  101. package/dist/components/Modal/Modal.spec.d.ts +1 -0
  102. package/dist/components/Modal/Modal.stories.d.ts +14 -0
  103. package/dist/components/Modal/StoriesComponents.d.ts +4 -0
  104. package/dist/components/Modal/components/ModalBase.d.ts +20 -0
  105. package/dist/components/Modal/components/ModalBase.spec.d.ts +1 -0
  106. package/dist/components/Modal/components/ModalCloseButton.d.ts +7 -0
  107. package/dist/components/Modal/components/ModalHeader.d.ts +26 -0
  108. package/dist/components/Modal/components/ModalPortal.d.ts +7 -0
  109. package/dist/components/Modal/index.d.ts +10 -0
  110. package/dist/components/NumericInput/NumericInput.d.ts +12 -0
  111. package/dist/components/NumericInput/NumericInput.spec.d.ts +1 -0
  112. package/dist/components/NumericInput/NumericInput.stories.d.ts +20 -0
  113. package/dist/components/NumericInput/index.d.ts +1 -0
  114. package/dist/components/Picker/Picker.d.ts +78 -0
  115. package/dist/components/Picker/Picker.spec.d.ts +1 -0
  116. package/dist/components/Picker/Picker.stories.d.ts +11 -0
  117. package/dist/components/Picker/PickerList.d.ts +14 -0
  118. package/dist/components/Picker/PickerList.spec.d.ts +1 -0
  119. package/dist/components/Picker/PickerListItem.d.ts +11 -0
  120. package/dist/components/Picker/Trigger.d.ts +17 -0
  121. package/dist/components/Picker/Trigger.spec.d.ts +1 -0
  122. package/dist/components/Picker/TriggerBody.d.ts +16 -0
  123. package/dist/components/Picker/TriggerBody.spec.d.ts +1 -0
  124. package/dist/components/Picker/constants.d.ts +50 -0
  125. package/dist/components/Picker/helpers.d.ts +2 -0
  126. package/dist/components/Picker/index.d.ts +3 -0
  127. package/dist/components/Picker/types.d.ts +17 -0
  128. package/dist/components/Popover/Popover.d.ts +3 -0
  129. package/dist/components/Popover/Popover.spec.d.ts +1 -0
  130. package/dist/components/Popover/Popover.stories.d.ts +16 -0
  131. package/dist/components/Popover/index.d.ts +2 -0
  132. package/dist/components/Popover/types.d.ts +59 -0
  133. package/dist/components/Progress/ProgressBar.d.ts +21 -0
  134. package/dist/components/Progress/ProgressBar.spec.d.ts +1 -0
  135. package/dist/components/Progress/ProgressBar.stories.d.ts +12 -0
  136. package/dist/components/Progress/ProgressCircle.d.ts +21 -0
  137. package/dist/components/Progress/ProgressCircle.spec.d.ts +1 -0
  138. package/dist/components/Progress/ProgressCircle.stories.d.ts +12 -0
  139. package/dist/components/Progress/constants.d.ts +4 -0
  140. package/dist/components/Progress/helpers.d.ts +3 -0
  141. package/dist/components/Progress/index.d.ts +2 -0
  142. package/dist/components/PromoBanner/PromoBanner.d.ts +43 -0
  143. package/dist/components/PromoBanner/PromoBanner.spec.d.ts +1 -0
  144. package/dist/components/PromoBanner/PromoBanner.stories.d.ts +11 -0
  145. package/dist/components/PromoBanner/index.d.ts +1 -0
  146. package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +33 -0
  147. package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +1 -0
  148. package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +23 -0
  149. package/dist/components/PromoBannerV2/constants.d.ts +1 -0
  150. package/dist/components/PromoBannerV2/index.d.ts +2 -0
  151. package/dist/components/RadioButton/RadioButton.d.ts +7 -0
  152. package/dist/components/RadioButton/RadioButton.spec.d.ts +1 -0
  153. package/dist/components/RadioButton/RadioButton.stories.d.ts +13 -0
  154. package/dist/components/RadioButton/index.d.ts +1 -0
  155. package/dist/components/Search/Search.d.ts +36 -0
  156. package/dist/components/Search/Search.spec.d.ts +1 -0
  157. package/dist/components/Search/Search.stories.d.ts +19 -0
  158. package/dist/components/Search/index.d.ts +1 -0
  159. package/dist/components/SegmentedControl/SegmentedControl.d.ts +39 -0
  160. package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +1 -0
  161. package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
  162. package/dist/components/SegmentedControl/index.d.ts +2 -0
  163. package/dist/components/Switch/Switch.d.ts +47 -0
  164. package/dist/components/Switch/Switch.spec.d.ts +1 -0
  165. package/dist/components/Switch/Switch.stories.d.ts +11 -0
  166. package/dist/components/Switch/index.d.ts +1 -0
  167. package/dist/components/Tab/Tab.d.ts +15 -0
  168. package/dist/components/Tab/Tab.spec.d.ts +1 -0
  169. package/dist/components/Tab/Tab.stories.d.ts +29 -0
  170. package/dist/components/Tab/TabsWrapper.d.ts +3 -0
  171. package/dist/components/Tab/TabsWrapper.spec.d.ts +1 -0
  172. package/dist/components/Tab/TabsWrapper.stories.d.ts +18 -0
  173. package/dist/components/Tab/index.d.ts +2 -0
  174. package/dist/components/Tag/Tag.d.ts +36 -0
  175. package/dist/components/Tag/Tag.spec.d.ts +1 -0
  176. package/dist/components/Tag/Tag.stories.d.ts +26 -0
  177. package/dist/components/Tag/index.d.ts +2 -0
  178. package/dist/components/TagInput/EditableTag.d.ts +11 -0
  179. package/dist/components/TagInput/EditableTagContent.d.ts +11 -0
  180. package/dist/components/TagInput/EmailTagInput.d.ts +5 -0
  181. package/dist/components/TagInput/TagInput.d.ts +40 -0
  182. package/dist/components/TagInput/TagInput.spec.d.ts +1 -0
  183. package/dist/components/TagInput/TagInput.stories.d.ts +10 -0
  184. package/dist/components/TagInput/index.d.ts +4 -0
  185. package/dist/components/Textarea/Textarea.d.ts +6 -0
  186. package/dist/components/Textarea/Textarea.spec.d.ts +1 -0
  187. package/dist/components/Textarea/Textarea.stories.d.ts +7 -0
  188. package/dist/components/Textarea/index.d.ts +1 -0
  189. package/dist/components/Toast/Toast.d.ts +16 -0
  190. package/dist/components/Toast/Toast.spec.d.ts +1 -0
  191. package/dist/components/Toast/Toast.stories.d.ts +14 -0
  192. package/dist/components/Toast/ToastWrapper.d.ts +20 -0
  193. package/dist/components/Toast/ToastWrapper.spec.d.ts +1 -0
  194. package/dist/components/Toast/ToastWrapper.stories.d.ts +34 -0
  195. package/dist/components/Toast/index.d.ts +2 -0
  196. package/dist/components/Tooltip/Tooltip.d.ts +3 -0
  197. package/dist/components/Tooltip/Tooltip.spec.d.ts +1 -0
  198. package/dist/components/Tooltip/Tooltip.stories.d.ts +52 -0
  199. package/dist/components/Tooltip/components/Info.d.ts +10 -0
  200. package/dist/components/Tooltip/components/Interactive.d.ts +15 -0
  201. package/dist/components/Tooltip/components/Reports.d.ts +7 -0
  202. package/dist/components/Tooltip/components/Simple.d.ts +4 -0
  203. package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +8 -0
  204. package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +12 -0
  205. package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +16 -0
  206. package/dist/components/Tooltip/components/UserGuide/index.d.ts +1 -0
  207. package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +9 -0
  208. package/dist/components/Tooltip/components/index.d.ts +5 -0
  209. package/dist/components/Tooltip/helpers.d.ts +6 -0
  210. package/dist/components/Tooltip/index.d.ts +4 -0
  211. package/dist/components/Tooltip/types.d.ts +119 -0
  212. package/dist/components/Typography/Display.d.ts +10 -0
  213. package/dist/components/Typography/Heading.d.ts +11 -0
  214. package/dist/components/Typography/Text.d.ts +15 -0
  215. package/dist/components/Typography/index.d.ts +3 -0
  216. package/dist/components/UploadBar/UploadBar.d.ts +49 -0
  217. package/dist/components/UploadBar/UploadBar.stories.d.ts +7 -0
  218. package/dist/components/UploadBar/index.d.ts +1 -0
  219. package/dist/dsrc.cjs.js +1 -1
  220. package/dist/dsrc.es.js +2 -2
  221. package/dist/foundations/radius-token.d.ts +6 -0
  222. package/dist/foundations/shadow-token.d.ts +17 -0
  223. package/dist/foundations/spacing-token.d.ts +17 -0
  224. package/dist/index.d.ts +47 -0
  225. package/dist/preview-stats.json +666 -2064
  226. package/dist/stories/components/BlockColumns.d.ts +8 -0
  227. package/dist/stories/components/ColorTokens.d.ts +2 -0
  228. package/dist/stories/components/Radius.d.ts +2 -0
  229. package/dist/stories/components/RadiusExamples.d.ts +2 -0
  230. package/dist/stories/components/Spacing.d.ts +2 -0
  231. package/dist/stories/components/SpacingExamples.d.ts +2 -0
  232. package/dist/stories/components/StoryDescriptor.d.ts +6 -0
  233. package/dist/stories/components/TablerIconsShowcase.d.ts +6 -0
  234. package/dist/style.css +1 -1
  235. package/dist/test/setup.d.ts +0 -0
  236. package/dist/test/utils.d.ts +3 -0
  237. package/dist/themes/design-token.d.ts +276 -0
  238. package/dist/utils/PdfIcon.d.ts +2 -0
  239. package/dist/utils/constants.d.ts +1 -0
  240. package/dist/utils/getDesignTokenWithOpacity.d.ts +1 -0
  241. package/dist/utils/index.d.ts +2 -0
  242. package/dist/utils/keyCodes.d.ts +12 -0
  243. package/dist/utils/noop.d.ts +1 -0
  244. package/dist/utils/story-parameters.d.ts +2 -0
  245. package/package.json +2 -2
@@ -0,0 +1,16 @@
1
+ import { Modifiers } from 'react-day-picker';
2
+ import { ClassNames } from 'react-day-picker/types/ClassNames';
3
+ import { IRangeDatePickerProps, IRangeDatePickerState, IRangeDatePickerOption } from './types';
4
+ export declare const isDateWithinRange: (date: Date, range: {
5
+ from?: Date;
6
+ to?: Date;
7
+ }) => boolean;
8
+ export declare const calculateDatePickerMonth: (initialFromDate?: Date, initialToDate?: Date, toMonth?: Date) => Date;
9
+ export declare const getRangeDatePickerModifiers: (from?: Date, to?: Date) => Partial<Modifiers>;
10
+ export declare const getSelectedOption: (itemId: string | null, options: IRangeDatePickerOption[]) => IRangeDatePickerOption | undefined;
11
+ export declare const isSelectingFirstDay: (from?: Date, to?: Date) => boolean;
12
+ export declare const getInitialStateFromProps: (props: IRangeDatePickerProps) => Partial<IRangeDatePickerState>;
13
+ export declare const getDatePickerClassNames: (range?: boolean, classNames?: ClassNames) => ClassNames & {
14
+ start: string;
15
+ end: string;
16
+ };
@@ -0,0 +1,6 @@
1
+ import { Dispatch, ReducerAction, ReducerState } from 'react';
2
+ import { IRangeDatePickerProps, RangeDatePickerReducer } from './types';
3
+ export declare const useRangeDatePickerState: (props: IRangeDatePickerProps) => [
4
+ ReducerState<RangeDatePickerReducer>,
5
+ Dispatch<ReducerAction<RangeDatePickerReducer>>
6
+ ];
@@ -0,0 +1,2 @@
1
+ export { DatePicker } from './DatePicker';
2
+ export { RangeDatePicker } from './RangeDatePicker';
@@ -0,0 +1,100 @@
1
+ import { Reducer, Ref, ReactElement } from 'react';
2
+ import ReactDayPicker, { DayPickerProps } from 'react-day-picker';
3
+ import { ClassNames } from 'react-day-picker/types/ClassNames';
4
+ export interface IDatePickerProps extends Omit<DayPickerProps, 'todayButton' | 'showWeekNumbers'> {
5
+ innerRef?: Ref<ReactDayPicker>;
6
+ range?: boolean;
7
+ }
8
+ export interface IDatePickerNavbarProps {
9
+ showPreviousButton?: boolean;
10
+ showNextButton?: boolean;
11
+ month: Date;
12
+ fromMonth?: Date;
13
+ toMonth?: Date;
14
+ numberOfMonths?: number;
15
+ className?: string;
16
+ classNames: ClassNames;
17
+ onPreviousClick?: () => void;
18
+ onNextClick?: () => void;
19
+ onMonthChange: (newMonth: Date) => void;
20
+ }
21
+ export declare enum RangeDatePickerAction {
22
+ NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM",
23
+ NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE",
24
+ CLEAR = "CLEAR",
25
+ SET_FROM = "SET_FROM",
26
+ SET_TO = "SET_TO",
27
+ SELECT_FIRST_DAY = "SELECT_FIRST_DAY",
28
+ SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM",
29
+ SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO",
30
+ CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE"
31
+ }
32
+ export type IRangeDatePickerReducerAction = {
33
+ type: RangeDatePickerAction.NEW_SELECTED_ITEM;
34
+ payload: {
35
+ selectedItem: string | null;
36
+ };
37
+ } | {
38
+ type: RangeDatePickerAction.NEW_TEMPORARY_TO_VALUE | RangeDatePickerAction.SELECT_FIRST_DAY | RangeDatePickerAction.SELECT_SECOND_DAY_AS_FROM | RangeDatePickerAction.SELECT_SECOND_DAY_AS_TO | RangeDatePickerAction.CURRENT_MONTH_CHANGE;
39
+ payload: {
40
+ date: Date;
41
+ };
42
+ } | {
43
+ type: RangeDatePickerAction.SET_FROM | RangeDatePickerAction.SET_TO;
44
+ payload: {
45
+ date?: Date;
46
+ };
47
+ };
48
+ export interface IRangeDatePickerState {
49
+ selectedItem: string | null;
50
+ from?: Date;
51
+ to?: Date;
52
+ temporaryTo?: Date;
53
+ currentMonth: Date;
54
+ }
55
+ export type RangeDatePickerReducer = Reducer<IRangeDatePickerState, IRangeDatePickerReducerAction>;
56
+ export interface IRangeDatePickerOption {
57
+ id: string;
58
+ label: string;
59
+ isManual?: boolean;
60
+ value: {
61
+ from?: Date;
62
+ to?: Date;
63
+ } | null;
64
+ }
65
+ interface IRangeDatePickerChildrenPayloadDatePicker {
66
+ modifiers?: DayPickerProps['modifiers'];
67
+ initialMonth?: Date;
68
+ month: Date;
69
+ range?: boolean;
70
+ numberOfMonths: number;
71
+ fromMonth?: Date;
72
+ toMonth?: Date;
73
+ selectedDays?: DayPickerProps['selectedDays'];
74
+ disabledDays?: DayPickerProps['disabledDays'];
75
+ onDayMouseEnter: DayPickerProps['onDayMouseEnter'];
76
+ onDayClick(day: Date): void;
77
+ onMonthChange(month: Date): void;
78
+ }
79
+ export interface IRangeDatePickerChildrenPayload {
80
+ select: {
81
+ selected: string | number;
82
+ onItemSelect(itemKey: string | number): void;
83
+ };
84
+ inputs: {
85
+ fromDate?: Date;
86
+ toDate?: Date;
87
+ };
88
+ datepicker: IRangeDatePickerChildrenPayloadDatePicker;
89
+ selectedOption?: IRangeDatePickerOption;
90
+ }
91
+ export interface IRangeDatePickerProps {
92
+ options: IRangeDatePickerOption[];
93
+ initialSelectedItemKey?: string;
94
+ initialFromDate?: Date;
95
+ initialToDate?: Date;
96
+ toMonth?: Date;
97
+ onChange: (selected: IRangeDatePickerOption | null) => void;
98
+ children(payload: IRangeDatePickerChildrenPayload): ReactElement;
99
+ }
100
+ export {};
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ export interface IDetailsCardProps {
3
+ /**
4
+ * The CSS class for card container
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Additional element for the label
9
+ */
10
+ leftNode?: React.ReactNode;
11
+ /**
12
+ * Set the label
13
+ */
14
+ label: string;
15
+ /**
16
+ * Define if divider should be visible
17
+ */
18
+ withDivider?: boolean;
19
+ /**
20
+ * Removes the spacing inside the main container
21
+ */
22
+ fullSpaceContent?: boolean;
23
+ /**
24
+ * Set if card should be open by default
25
+ */
26
+ openOnInit?: boolean;
27
+ /**
28
+ * Set to hide the label on card open
29
+ */
30
+ hideLabelOnOpen?: boolean;
31
+ }
32
+ export declare const DetailsCard: React.FC<IDetailsCardProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ import { IDetailsCardProps } from './DetailsCard';
3
+ declare const _default: {
4
+ title: string;
5
+ component: React.FC<IDetailsCardProps>;
6
+ subcomponents: {
7
+ DetailsCardInfo: React.FC<import("../DetailsCardInfo/DetailsCardInfo").IDetailsCardInfoProps>;
8
+ };
9
+ };
10
+ export default _default;
11
+ export declare const Default: {
12
+ (args: IDetailsCardProps): React.ReactElement;
13
+ args: {
14
+ label: string;
15
+ };
16
+ };
17
+ export declare const ExampleUsage: () => React.ReactElement;
@@ -0,0 +1,2 @@
1
+ export { DetailsCard } from './DetailsCard';
2
+ export type { IDetailsCardProps } from './DetailsCard';
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface IDetailsCardInfoProps {
3
+ /**
4
+ * Set the label
5
+ */
6
+ label: string;
7
+ }
8
+ export declare const DetailsCardInfo: React.FC<IDetailsCardInfoProps>;
@@ -0,0 +1 @@
1
+ export { DetailsCardInfo } from './DetailsCardInfo';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type FieldDescriptionProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldDescription: React.FC<FieldDescriptionProps>;
@@ -0,0 +1 @@
1
+ export { FieldDescription } from './FieldDescription';
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export type FieldErrorProps = React.HTMLAttributes<HTMLSpanElement>;
3
+ export declare const FieldError: React.FC<FieldErrorProps>;
@@ -0,0 +1 @@
1
+ export { FieldError } from './FieldError';
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface FieldGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ description?: React.ReactNode;
4
+ error?: string;
5
+ inline?: boolean;
6
+ stretch?: boolean;
7
+ }
8
+ export declare const FieldGroup: React.FC<React.PropsWithChildren<FieldGroupProps>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { FieldGroupProps } from './FieldGroup';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FieldGroupProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const FieldGroup: {
8
+ ({ ...args }: FieldGroupProps): React.ReactElement;
9
+ args: FieldGroupProps;
10
+ };
@@ -0,0 +1 @@
1
+ export { FieldGroup } from './FieldGroup';
@@ -0,0 +1,42 @@
1
+ import * as React from 'react';
2
+ import { ProgressSize, ProgressStatus } from '../Progress/constants';
3
+ export type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
4
+ export interface FileUploadProgressProps {
5
+ /**
6
+ * Define if action buttons should be visible, visible on hover, or hidden
7
+ */
8
+ actionsVisibility?: UploadProgressActionState;
9
+ /**
10
+ * The CSS class for progress bar
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Renders given element
15
+ */
16
+ icon?: React.ReactNode;
17
+ /**
18
+ * Specify the uploading file name
19
+ */
20
+ title: string;
21
+ /**
22
+ * Specify the value of current file upload progress (0-100)
23
+ */
24
+ progressValue: number;
25
+ /**
26
+ * Specify the progress bar size
27
+ */
28
+ size?: ProgressSize;
29
+ /**
30
+ * Specify the uploading file status
31
+ */
32
+ status?: ProgressStatus;
33
+ /**
34
+ * The event handler for close icon click
35
+ */
36
+ onCloseButtonClick?: () => void;
37
+ /**
38
+ * The event handler for retry icon click
39
+ */
40
+ onRetryButtonClick?: () => void;
41
+ }
42
+ export declare const FileUploadProgress: React.ExoticComponent<FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { FileUploadProgressProps } from './FileUploadProgress';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
4
+ export default _default;
5
+ export declare const FileUploadProgress: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps>;
6
+ export declare const FileUploadProgressWithIcon: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FileUploadProgressProps>;
7
+ export declare const FileUploadProgressStates: React.FC;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { ProgressStatus } from '../Progress/constants';
3
+ interface FileUploadProgressActionsProps {
4
+ status: ProgressStatus;
5
+ onCloseButtonClick?: () => void;
6
+ onRetryButtonClick?: () => void;
7
+ }
8
+ export declare const FileUploadProgressActions: React.FC<FileUploadProgressActionsProps>;
9
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './FileUploadProgress';
2
+ export * from './FileUploadProgressActions';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface FormProps extends React.HTMLAttributes<HTMLFormElement> {
3
+ /**
4
+ * Set form label
5
+ */
6
+ labelText?: string;
7
+ /**
8
+ * Set form description
9
+ */
10
+ helperText?: string;
11
+ /**
12
+ * Footer element
13
+ */
14
+ formFooter?: React.ReactNode;
15
+ }
16
+ export declare const Form: React.FC<React.PropsWithChildren<FormProps>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { FormProps } from '../Form';
4
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormProps & {
5
+ children?: React.ReactNode;
6
+ }>;
7
+ export default _default;
8
+ export declare const Form: Story<FormProps>;
@@ -0,0 +1,2 @@
1
+ export { Form } from './Form';
2
+ export type { FormProps } from './Form';
@@ -0,0 +1,40 @@
1
+ import * as React from 'react';
2
+ export interface FormFieldProps {
3
+ /**
4
+ * Define label text
5
+ */
6
+ labelText?: string;
7
+ /**
8
+ * Renders given element aligned to label, `inline` will affect
9
+ */
10
+ labelAdornment?: React.ReactNode;
11
+ /**
12
+ * Define to associate the label with the field
13
+ */
14
+ labelFor?: string;
15
+ /**
16
+ * The CSS class for field container
17
+ */
18
+ className?: string;
19
+ /**
20
+ * Set the label to inline version
21
+ */
22
+ inline?: boolean;
23
+ /**
24
+ * Define error text
25
+ */
26
+ error?: string;
27
+ /**
28
+ * Define the description text
29
+ */
30
+ description?: React.ReactNode;
31
+ /**
32
+ * Wrapped element
33
+ */
34
+ children?: React.ReactNode;
35
+ /**
36
+ * Renders given element above the filed
37
+ */
38
+ labelRightNode?: React.ReactNode;
39
+ }
40
+ export declare const FormField: React.FC<FormFieldProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import { FormFieldProps } from './FormField';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps & {
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, FormFieldProps>;
8
+ export declare const Examples: () => React.ReactElement;
9
+ export declare const TextFieldWithError: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, FormFieldProps>;
@@ -0,0 +1 @@
1
+ export * from './FormField';
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export interface FormGroupProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * The CSS class for container
5
+ */
6
+ className?: string;
7
+ /**
8
+ * Set form label
9
+ */
10
+ labelText?: string;
11
+ /**
12
+ * Set form description
13
+ */
14
+ helperText?: string;
15
+ }
16
+ export declare const FormGroup: React.FC<React.PropsWithChildren<FormGroupProps>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { FormGroupProps } from './FormGroup';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, FormGroupProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const FormGroup: {
8
+ ({ ...args }: FormGroupProps): React.ReactElement;
9
+ args: FormGroupProps;
10
+ };
@@ -0,0 +1 @@
1
+ export * from './FormGroup';
@@ -0,0 +1,32 @@
1
+ import * as React from 'react';
2
+ import { IconSource } from './types';
3
+ export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
4
+ export type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error' | 'negative' | 'positive' | 'action-primary' | 'action-negative' | 'action-positive' | 'action-warning' | 'action-neutral';
5
+ export interface IconProps {
6
+ /**
7
+ * Specify the source of svg element
8
+ */
9
+ source: IconSource;
10
+ /**
11
+ * Specify the icon size
12
+ */
13
+ size?: IconSize;
14
+ /**
15
+ * Specify the icon kind
16
+ */
17
+ kind?: IconKind;
18
+ /**
19
+ * Specify whether the icon should be disabled
20
+ */
21
+ disabled?: boolean;
22
+ /**
23
+ * The CSS class for icon
24
+ */
25
+ className?: string;
26
+ /**
27
+ * Set the icon custom color
28
+ */
29
+ customColor?: string;
30
+ }
31
+ export declare const Icon: React.FC<IconProps>;
32
+ export default Icon;
@@ -0,0 +1,15 @@
1
+ import * as React from 'react';
2
+ import { IconProps } from './Icon';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IconProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Icon: {
8
+ (args: IconProps): React.ReactElement;
9
+ args: {
10
+ source: (props: React.SVGProps<SVGSVGElement>) => JSX.Element;
11
+ size: string;
12
+ kind: string;
13
+ disabled: boolean;
14
+ };
15
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Icon';
2
+ export type { IconSource } from './types';
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export type IconSource = React.FC<React.SVGProps<SVGSVGElement>>;
@@ -0,0 +1,29 @@
1
+ import * as React from 'react';
2
+ interface InputIcon {
3
+ source: React.ReactElement;
4
+ place: 'left' | 'right';
5
+ }
6
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
7
+ /**
8
+ * Specify the input size
9
+ */
10
+ inputSize?: 'xsmall' | 'compact' | 'medium' | 'large';
11
+ /**
12
+ * Specify whether the input should be in error state
13
+ */
14
+ error?: boolean;
15
+ /**
16
+ * Specify whether the input should be disabled
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * Set the icon and its position
21
+ */
22
+ icon?: InputIcon;
23
+ /**
24
+ * Set to enable ellipsis
25
+ */
26
+ cropOnBlur?: boolean;
27
+ }
28
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
29
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { Story } from '@storybook/react';
3
+ import { InputProps } from './Input';
4
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, InputProps & React.RefAttributes<HTMLInputElement>>;
5
+ export default _default;
6
+ export declare const Default: Story<InputProps>;
7
+ export declare const Sizes: () => React.ReactElement;
8
+ export declare const States: () => React.ReactElement;
9
+ export declare const Types: () => React.ReactElement;
10
+ export declare const WithIcons: () => React.ReactElement;
@@ -0,0 +1 @@
1
+ export * from './Input';
@@ -0,0 +1,14 @@
1
+ import * as React from 'react';
2
+ export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
3
+ bold: boolean;
4
+ }
5
+ /**
6
+ * Simple component which renders an `<a>` element.
7
+ *
8
+ * Place the `<Link>` inside a `<Text>` component or pass a custom className to set the typography styles.
9
+ *
10
+ * Use `<Button kind="link">` to act as a `<button>` - <a target="_self" href="/story/components-button--kinds">see the story</a>.
11
+ *
12
+ * Use `<Button href="">` to display as a `<Button>` - <a target="_self" href="/story/components-button--link">see the story</a>.
13
+ */
14
+ export declare const Link: React.FC<LinkProps>;
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import { LinkProps } from './Link';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, LinkProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Link: {
8
+ ({ ...args }: LinkProps): React.ReactElement;
9
+ args: {
10
+ bold: boolean;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export { Link } from './Link';
@@ -0,0 +1,20 @@
1
+ import * as React from 'react';
2
+ export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Specify the loader size
5
+ */
6
+ size?: 'small' | 'medium' | 'large';
7
+ /**
8
+ * Specify the loader label
9
+ */
10
+ label?: string;
11
+ /**
12
+ * Set the loader highlight color
13
+ */
14
+ primaryColor?: string;
15
+ /**
16
+ * Set the loader color
17
+ */
18
+ secondaryColor?: string;
19
+ }
20
+ export declare const Loader: React.FC<LoaderProps>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ import { LoaderProps } from './Loader';
3
+ declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, LoaderProps & {
4
+ children?: React.ReactNode;
5
+ }>;
6
+ export default _default;
7
+ export declare const Default: (args: LoaderProps) => React.ReactElement;
8
+ export declare const Sizes: () => React.ReactElement;
9
+ export declare const Labeled: (args: LoaderProps) => React.ReactElement;
10
+ export declare const CustomColors: (args: LoaderProps) => React.ReactElement;
@@ -0,0 +1 @@
1
+ export { Loader } from './Loader';
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ import { ModalBaseProps } from './components/ModalBase';
3
+ export interface ModalProps extends ModalBaseProps {
4
+ /**
5
+ * Header element. For consistent UI use `<ModalHeader/>`
6
+ */
7
+ heading?: React.ReactNode;
8
+ /**
9
+ * Header element outside the main container. For consistent UI use `<ModalHeader/>`
10
+ */
11
+ labelHeading?: React.ReactNode;
12
+ /**
13
+ * Removes the spacing inside the main container
14
+ */
15
+ fullSpaceContent?: boolean;
16
+ /**
17
+ * Footer element
18
+ */
19
+ footer?: React.ReactNode;
20
+ /**
21
+ * Class name for the content container
22
+ */
23
+ contentClassName?: string;
24
+ }
25
+ export declare const Modal: React.FC<ModalProps>;