@livechat/design-system-react-components 1.5.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +1575 -1496
- package/dist/preview-stats.json +2145 -744
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/components/ActionBar/ActionBar.d.ts +0 -25
- package/dist/components/ActionBar/ActionBar.spec.d.ts +0 -1
- package/dist/components/ActionBar/ActionBar.stories.d.ts +0 -10
- package/dist/components/ActionBar/ActionBarItem.d.ts +0 -15
- package/dist/components/ActionBar/index.d.ts +0 -2
- package/dist/components/ActionMenu/ActionMenu.d.ts +0 -50
- package/dist/components/ActionMenu/ActionMenu.spec.d.ts +0 -1
- package/dist/components/ActionMenu/ActionMenu.stories.d.ts +0 -11
- package/dist/components/ActionMenu/ActionMenuItem.d.ts +0 -16
- package/dist/components/ActionMenu/constants.d.ts +0 -15
- package/dist/components/ActionMenu/index.d.ts +0 -3
- package/dist/components/ActionMenu/types.d.ts +0 -9
- package/dist/components/Alert/Alert.d.ts +0 -32
- package/dist/components/Alert/Alert.spec.d.ts +0 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -9
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -49
- package/dist/components/Avatar/Avatar.helpers.d.ts +0 -3
- package/dist/components/Avatar/Avatar.helpers.spec.d.ts +0 -1
- package/dist/components/Avatar/Avatar.spec.d.ts +0 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -22
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Badge/Badge.d.ts +0 -24
- package/dist/components/Badge/Badge.helpers.d.ts +0 -1
- package/dist/components/Badge/Badge.spec.d.ts +0 -1
- package/dist/components/Badge/Badge.stories.d.ts +0 -12
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +0 -63
- package/dist/components/Button/Button.spec.d.ts +0 -1
- package/dist/components/Button/Button.stories.d.ts +0 -42
- package/dist/components/Button/helpers.d.ts +0 -2
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Button/types.d.ts +0 -1
- package/dist/components/Card/Card.d.ts +0 -30
- package/dist/components/Card/Card.spec.d.ts +0 -1
- package/dist/components/Card/Card.stories.d.ts +0 -11
- package/dist/components/Card/index.d.ts +0 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -16
- package/dist/components/Checkbox/Checkbox.spec.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -13
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -4
- package/dist/components/DatePicker/DatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -7
- package/dist/components/DatePicker/DatePickerNavbar.d.ts +0 -4
- package/dist/components/DatePicker/DatePickerRangeCalendarsWrapper.d.ts +0 -2
- package/dist/components/DatePicker/RangeDatePicker.d.ts +0 -16
- package/dist/components/DatePicker/RangeDatePicker.spec.d.ts +0 -1
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +0 -4
- package/dist/components/DatePicker/helpers.d.ts +0 -16
- package/dist/components/DatePicker/hooks.d.ts +0 -6
- package/dist/components/DatePicker/index.d.ts +0 -2
- package/dist/components/DatePicker/types.d.ts +0 -100
- package/dist/components/DetailsCard/DetailsCard.d.ts +0 -28
- package/dist/components/DetailsCard/DetailsCard.spec.d.ts +0 -1
- package/dist/components/DetailsCard/DetailsCard.stories.d.ts +0 -17
- package/dist/components/DetailsCard/index.d.ts +0 -2
- package/dist/components/DetailsCardInfo/DetailsCardInfo.d.ts +0 -8
- package/dist/components/DetailsCardInfo/index.d.ts +0 -1
- package/dist/components/FieldDescription/FieldDescription.d.ts +0 -3
- package/dist/components/FieldDescription/index.d.ts +0 -1
- package/dist/components/FieldError/FieldError.d.ts +0 -3
- package/dist/components/FieldError/index.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.d.ts +0 -8
- package/dist/components/FieldGroup/FieldGroup.spec.d.ts +0 -1
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +0 -10
- package/dist/components/FieldGroup/index.d.ts +0 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.d.ts +0 -42
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +0 -7
- package/dist/components/FileUploadProgress/FileUploadProgressActions.d.ts +0 -9
- package/dist/components/FileUploadProgress/index.d.ts +0 -2
- package/dist/components/Form/Form.d.ts +0 -16
- package/dist/components/Form/Form.spec.d.ts +0 -1
- package/dist/components/Form/Form.stories.d.ts +0 -8
- package/dist/components/Form/index.d.ts +0 -2
- package/dist/components/FormField/FormField.d.ts +0 -40
- package/dist/components/FormField/FormField.spec.d.ts +0 -1
- package/dist/components/FormField/FormField.stories.d.ts +0 -9
- package/dist/components/FormField/index.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.d.ts +0 -16
- package/dist/components/FormGroup/FormGroup.spec.d.ts +0 -1
- package/dist/components/FormGroup/FormGroup.stories.d.ts +0 -10
- package/dist/components/FormGroup/index.d.ts +0 -1
- package/dist/components/Icon/Icon.d.ts +0 -32
- package/dist/components/Icon/Icon.stories.d.ts +0 -15
- package/dist/components/Icon/index.d.ts +0 -2
- package/dist/components/Icon/types.d.ts +0 -2
- package/dist/components/Input/Input.d.ts +0 -29
- package/dist/components/Input/Input.spec.d.ts +0 -1
- package/dist/components/Input/Input.stories.d.ts +0 -10
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Link/Link.d.ts +0 -14
- package/dist/components/Link/Link.stories.d.ts +0 -12
- package/dist/components/Link/index.d.ts +0 -1
- package/dist/components/Loader/Loader.d.ts +0 -20
- package/dist/components/Loader/Loader.spec.d.ts +0 -1
- package/dist/components/Loader/Loader.stories.d.ts +0 -10
- package/dist/components/Loader/index.d.ts +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -25
- package/dist/components/Modal/Modal.spec.d.ts +0 -1
- package/dist/components/Modal/Modal.stories.d.ts +0 -14
- package/dist/components/Modal/StoriesComponents.d.ts +0 -4
- package/dist/components/Modal/components/ModalBase.d.ts +0 -20
- package/dist/components/Modal/components/ModalBase.spec.d.ts +0 -1
- package/dist/components/Modal/components/ModalCloseButton.d.ts +0 -7
- package/dist/components/Modal/components/ModalHeader.d.ts +0 -26
- package/dist/components/Modal/components/ModalPortal.d.ts +0 -7
- package/dist/components/Modal/index.d.ts +0 -10
- package/dist/components/NumericInput/NumericInput.d.ts +0 -12
- package/dist/components/NumericInput/NumericInput.spec.d.ts +0 -1
- package/dist/components/NumericInput/NumericInput.stories.d.ts +0 -20
- package/dist/components/NumericInput/index.d.ts +0 -1
- package/dist/components/Picker/Picker.d.ts +0 -78
- package/dist/components/Picker/Picker.spec.d.ts +0 -1
- package/dist/components/Picker/Picker.stories.d.ts +0 -11
- package/dist/components/Picker/PickerList.d.ts +0 -14
- package/dist/components/Picker/PickerList.spec.d.ts +0 -1
- package/dist/components/Picker/PickerListItem.d.ts +0 -11
- package/dist/components/Picker/Trigger.d.ts +0 -17
- package/dist/components/Picker/Trigger.spec.d.ts +0 -1
- package/dist/components/Picker/TriggerBody.d.ts +0 -16
- package/dist/components/Picker/TriggerBody.spec.d.ts +0 -1
- package/dist/components/Picker/constants.d.ts +0 -50
- package/dist/components/Picker/helpers.d.ts +0 -2
- package/dist/components/Picker/index.d.ts +0 -3
- package/dist/components/Picker/types.d.ts +0 -17
- package/dist/components/Popover/Popover.d.ts +0 -3
- package/dist/components/Popover/Popover.spec.d.ts +0 -1
- package/dist/components/Popover/Popover.stories.d.ts +0 -16
- package/dist/components/Popover/index.d.ts +0 -2
- package/dist/components/Popover/types.d.ts +0 -59
- package/dist/components/Progress/ProgressBar.d.ts +0 -21
- package/dist/components/Progress/ProgressBar.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +0 -12
- package/dist/components/Progress/ProgressCircle.d.ts +0 -21
- package/dist/components/Progress/ProgressCircle.spec.d.ts +0 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +0 -12
- package/dist/components/Progress/constants.d.ts +0 -4
- package/dist/components/Progress/helpers.d.ts +0 -3
- package/dist/components/Progress/index.d.ts +0 -2
- package/dist/components/PromoBanner/PromoBanner.d.ts +0 -43
- package/dist/components/PromoBanner/PromoBanner.spec.d.ts +0 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +0 -11
- package/dist/components/PromoBanner/index.d.ts +0 -1
- package/dist/components/PromoBannerV2/PromoBannerV2.d.ts +0 -33
- package/dist/components/PromoBannerV2/PromoBannerV2.spec.d.ts +0 -1
- package/dist/components/PromoBannerV2/PromoBannerV2.stories.d.ts +0 -23
- package/dist/components/PromoBannerV2/constants.d.ts +0 -1
- package/dist/components/PromoBannerV2/index.d.ts +0 -2
- package/dist/components/RadioButton/RadioButton.d.ts +0 -7
- package/dist/components/RadioButton/RadioButton.spec.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -13
- package/dist/components/RadioButton/index.d.ts +0 -1
- package/dist/components/Search/Search.d.ts +0 -36
- package/dist/components/Search/Search.spec.d.ts +0 -1
- package/dist/components/Search/Search.stories.d.ts +0 -19
- package/dist/components/Search/index.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +0 -39
- package/dist/components/SegmentedControl/SegmentedControl.spec.d.ts +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +0 -9
- package/dist/components/SegmentedControl/index.d.ts +0 -2
- package/dist/components/Switch/Switch.d.ts +0 -47
- package/dist/components/Switch/Switch.spec.d.ts +0 -1
- package/dist/components/Switch/Switch.stories.d.ts +0 -11
- package/dist/components/Switch/index.d.ts +0 -1
- package/dist/components/Tab/Tab.d.ts +0 -15
- package/dist/components/Tab/Tab.spec.d.ts +0 -1
- package/dist/components/Tab/Tab.stories.d.ts +0 -29
- package/dist/components/Tab/TabsWrapper.d.ts +0 -3
- package/dist/components/Tab/TabsWrapper.spec.d.ts +0 -1
- package/dist/components/Tab/TabsWrapper.stories.d.ts +0 -18
- package/dist/components/Tab/index.d.ts +0 -2
- package/dist/components/Tag/Tag.d.ts +0 -36
- package/dist/components/Tag/Tag.spec.d.ts +0 -1
- package/dist/components/Tag/Tag.stories.d.ts +0 -26
- package/dist/components/Tag/index.d.ts +0 -2
- package/dist/components/TagInput/EditableTag.d.ts +0 -11
- package/dist/components/TagInput/EditableTagContent.d.ts +0 -11
- package/dist/components/TagInput/EmailTagInput.d.ts +0 -5
- package/dist/components/TagInput/TagInput.d.ts +0 -40
- package/dist/components/TagInput/TagInput.spec.d.ts +0 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +0 -10
- package/dist/components/TagInput/index.d.ts +0 -4
- package/dist/components/Textarea/Textarea.d.ts +0 -6
- package/dist/components/Textarea/Textarea.spec.d.ts +0 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +0 -7
- package/dist/components/Textarea/index.d.ts +0 -1
- package/dist/components/Toast/Toast.d.ts +0 -16
- package/dist/components/Toast/Toast.spec.d.ts +0 -1
- package/dist/components/Toast/Toast.stories.d.ts +0 -14
- package/dist/components/Toast/ToastWrapper.d.ts +0 -20
- package/dist/components/Toast/ToastWrapper.spec.d.ts +0 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +0 -34
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -3
- package/dist/components/Tooltip/Tooltip.spec.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -52
- package/dist/components/Tooltip/components/Info.d.ts +0 -10
- package/dist/components/Tooltip/components/Interactive.d.ts +0 -15
- package/dist/components/Tooltip/components/Reports.d.ts +0 -7
- package/dist/components/Tooltip/components/Simple.d.ts +0 -4
- package/dist/components/Tooltip/components/UserGuide/SpotlightOverlay.d.ts +0 -8
- package/dist/components/Tooltip/components/UserGuide/UserGuide.d.ts +0 -12
- package/dist/components/Tooltip/components/UserGuide/UserGuideStep.d.ts +0 -16
- package/dist/components/Tooltip/components/UserGuide/index.d.ts +0 -1
- package/dist/components/Tooltip/components/UserGuide/virtualElementReference.d.ts +0 -9
- package/dist/components/Tooltip/components/index.d.ts +0 -5
- package/dist/components/Tooltip/helpers.d.ts +0 -6
- package/dist/components/Tooltip/index.d.ts +0 -4
- package/dist/components/Tooltip/types.d.ts +0 -119
- package/dist/components/Typography/Display.d.ts +0 -10
- package/dist/components/Typography/Heading.d.ts +0 -11
- package/dist/components/Typography/Text.d.ts +0 -15
- package/dist/components/Typography/index.d.ts +0 -3
- package/dist/components/UploadBar/UploadBar.d.ts +0 -49
- package/dist/components/UploadBar/UploadBar.stories.d.ts +0 -7
- package/dist/components/UploadBar/index.d.ts +0 -1
- package/dist/foundations/radius-token.d.ts +0 -6
- package/dist/foundations/shadow-token.d.ts +0 -17
- package/dist/foundations/spacing-token.d.ts +0 -17
- package/dist/index.d.ts +0 -47
- package/dist/stories/components/BlockColumns.d.ts +0 -8
- package/dist/stories/components/ColorTokens.d.ts +0 -2
- package/dist/stories/components/Radius.d.ts +0 -2
- package/dist/stories/components/RadiusExamples.d.ts +0 -2
- package/dist/stories/components/Spacing.d.ts +0 -2
- package/dist/stories/components/SpacingExamples.d.ts +0 -2
- package/dist/stories/components/StoryDescriptor.d.ts +0 -6
- package/dist/stories/components/TablerIconsShowcase.d.ts +0 -6
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/utils.d.ts +0 -3
- package/dist/themes/design-token.d.ts +0 -276
- package/dist/utils/PdfIcon.d.ts +0 -2
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/getDesignTokenWithOpacity.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/keyCodes.d.ts +0 -12
- package/dist/utils/noop.d.ts +0 -1
- package/dist/utils/story-parameters.d.ts +0 -2
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IRangeDatePickerProps } from './types';
|
|
2
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, IRangeDatePickerProps>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const RangeDatePicker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, IRangeDatePickerProps>;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,100 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export interface IDetailsCardProps {
|
|
3
|
-
/**
|
|
4
|
-
* The CSS class for accordion container
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Set the label
|
|
9
|
-
*/
|
|
10
|
-
label: string;
|
|
11
|
-
/**
|
|
12
|
-
* Define if divider should be visible
|
|
13
|
-
*/
|
|
14
|
-
withDivider?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Removes the spacing inside the main container
|
|
17
|
-
*/
|
|
18
|
-
fullSpaceContent?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Set if card should be open by default
|
|
21
|
-
*/
|
|
22
|
-
openOnInit?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Set to hide the label on card open
|
|
25
|
-
*/
|
|
26
|
-
hideLabelOnOpen?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const DetailsCard: React.FC<IDetailsCardProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DetailsCardInfo } from './DetailsCardInfo';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldDescription } from './FieldDescription';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldError } from './FieldError';
|
|
@@ -1,8 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { FieldGroup } from './FieldGroup';
|
|
@@ -1,42 +0,0 @@
|
|
|
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>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,40 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormField';
|
|
@@ -1,16 +0,0 @@
|
|
|
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>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './FormGroup';
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Input';
|
|
@@ -1,14 +0,0 @@
|
|
|
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>;
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Link } from './Link';
|
|
@@ -1,20 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Loader } from './Loader';
|