@livechat/design-system-react-components 1.0.0-alpha.4 → 1.0.0-alpha.41
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 +15 -0
- package/dist/dsrc.es.js +4418 -0
- package/dist/dsrc.umd.js +15 -0
- package/dist/shadow/shadow.css +27 -0
- package/dist/shadow/shadow.css.map +1 -0
- package/dist/shadow/spacing.css +18 -0
- package/dist/shadow/spacing.css.map +1 -0
- package/dist/spacing/shadow.css +27 -0
- package/dist/spacing/shadow.css.map +1 -0
- package/dist/spacing/spacing.css +18 -0
- package/dist/spacing/spacing.css.map +1 -0
- package/dist/src/components/Alert/Alert.d.ts +9 -0
- package/dist/src/components/Avatar/Avatar.d.ts +19 -0
- package/dist/src/components/Avatar/Avatar.helpers.d.ts +2 -0
- package/dist/src/components/Avatar/index.d.ts +1 -0
- package/dist/src/components/Badge/Badge.d.ts +9 -0
- package/dist/src/components/Badge/Badge.helpers.d.ts +1 -0
- package/dist/src/components/Button/Button.d.ts +13 -0
- package/dist/src/components/Button/index.d.ts +2 -0
- package/dist/src/components/Card/Card.d.ts +12 -0
- package/dist/src/components/Checkbox/Checkbox.d.ts +7 -0
- package/dist/src/components/Checkbox/index.d.ts +1 -0
- package/dist/src/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/src/components/DatePicker/DatePickerNavbar.d.ts +4 -0
- package/dist/src/components/DatePicker/RangeDatePicker.d.ts +16 -0
- package/dist/src/components/DatePicker/helpers.d.ts +39 -0
- package/dist/src/components/DatePicker/hooks.d.ts +6 -0
- package/dist/src/components/DatePicker/index.d.ts +2 -0
- package/dist/src/components/DatePicker/types.d.ts +100 -0
- package/dist/src/components/FieldDescription/FieldDescription.d.ts +3 -0
- package/dist/src/components/FieldError/FieldError.d.ts +3 -0
- package/dist/src/components/FieldGroup/FieldGroup.d.ts +8 -0
- package/dist/src/components/FileUploadProgress/FileUploadProgress.d.ts +15 -0
- package/dist/src/components/FileUploadProgress/FileUploadProgressActions.d.ts +9 -0
- package/dist/src/components/FileUploadProgress/index.d.ts +2 -0
- package/dist/src/components/Form/Form.d.ts +7 -0
- package/dist/src/components/FormField/FormField.d.ts +13 -0
- package/dist/src/components/FormField/index.d.ts +1 -0
- package/dist/src/components/FormGroup/FormGroup.d.ts +7 -0
- package/dist/src/components/Icon/Icon.d.ts +14 -0
- package/dist/src/components/Icon/index.d.ts +1 -0
- package/dist/src/components/Input/Input.d.ts +14 -0
- package/dist/src/components/Input/index.d.ts +1 -0
- package/{src/components/Link/Link.tsx → dist/src/components/Link/Link.d.ts} +3 -26
- package/dist/src/components/Loader/Loader.d.ts +10 -0
- package/dist/src/components/Modal/Modal.d.ts +9 -0
- package/dist/src/components/Modal/ModalBase.d.ts +7 -0
- package/dist/src/components/Modal/ModalCloseButton.d.ts +6 -0
- package/dist/src/components/Modal/ModalPortal.d.ts +7 -0
- package/{src/components/Modal/index.ts → dist/src/components/Modal/index.d.ts} +0 -3
- package/dist/src/components/NumericInput/NumericInput.d.ts +14 -0
- package/dist/src/components/NumericInput/index.d.ts +1 -0
- package/dist/src/components/Picker/Picker.d.ts +23 -0
- package/dist/src/components/Picker/PickerList.d.ts +23 -0
- package/dist/src/components/Picker/Trigger.d.ts +15 -0
- package/dist/src/components/Picker/TriggerBody.d.ts +16 -0
- package/dist/src/components/Picker/constants.d.ts +21 -0
- package/dist/src/components/Picker/index.d.ts +2 -0
- package/dist/src/components/Popover/Popover.d.ts +12 -0
- package/dist/src/components/Progress/ProgressBar.d.ts +9 -0
- package/dist/src/components/Progress/ProgressCircle.d.ts +9 -0
- package/dist/src/components/Progress/constants.d.ts +4 -0
- package/dist/src/components/Progress/helpers.d.ts +3 -0
- package/{src/components/Progress/index.ts → dist/src/components/Progress/index.d.ts} +1 -0
- package/dist/src/components/PromoBanner/PromoBanner.d.ts +13 -0
- package/dist/src/components/RadioButton/RadioButton.d.ts +7 -0
- package/dist/src/components/Search/Search.d.ts +12 -0
- package/dist/src/components/Search/index.d.ts +1 -0
- package/dist/src/components/SegmentedControl/SegmentedControl.d.ts +18 -0
- package/dist/src/components/SegmentedControl/index.d.ts +2 -0
- package/dist/src/components/Switch/Switch.d.ts +17 -0
- package/dist/src/components/Tab/Tab.d.ts +15 -0
- package/dist/src/components/Tab/TabsWrapper.d.ts +3 -0
- package/dist/src/components/Tag/Tag.d.ts +14 -0
- package/dist/src/components/TagInput/EditableTag.d.ts +11 -0
- package/dist/src/components/TagInput/EditableTagContent.d.ts +11 -0
- package/dist/src/components/TagInput/EmailTagInput.d.ts +5 -0
- package/dist/src/components/TagInput/TagInput.d.ts +13 -0
- package/dist/src/components/Textarea/Textarea.d.ts +6 -0
- package/dist/src/components/Textarea/index.d.ts +1 -0
- package/dist/src/components/Toast/Toast.d.ts +16 -0
- package/dist/src/components/Toast/ToastWrapper.d.ts +20 -0
- package/dist/src/components/Tooltip/Info.d.ts +8 -0
- package/dist/src/components/Tooltip/Interactive.d.ts +14 -0
- package/dist/src/components/Tooltip/Simple.d.ts +4 -0
- package/dist/src/components/Tooltip/SpotlightOverlay.d.ts +7 -0
- package/dist/src/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/src/components/Tooltip/UserGuide.d.ts +12 -0
- package/dist/src/components/Tooltip/helpers.d.ts +2 -0
- package/dist/src/components/Tooltip/index.d.ts +5 -0
- package/dist/src/components/Tooltip/virtualElementReference.d.ts +9 -0
- package/dist/src/components/Typography/Heading.d.ts +11 -0
- package/dist/src/components/Typography/Text.d.ts +15 -0
- package/dist/src/components/UploadBar/UploadBar.d.ts +16 -0
- package/dist/src/components/UploadBar/index.d.ts +1 -0
- package/dist/src/foundations/shadow-token.d.ts +5 -0
- package/dist/src/foundations/spacing-token.d.ts +16 -0
- package/{src/index.ts → dist/src/index.d.ts} +16 -7
- package/dist/src/themes/design-token.d.ts +226 -0
- package/dist/src/utils/constants.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/keyCodes.d.ts +12 -0
- package/dist/src/utils/noop.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/themes/dark.css +253 -0
- package/dist/themes/dark.css.map +1 -0
- package/dist/themes/legacy.css +254 -0
- package/dist/themes/legacy.css.map +1 -0
- package/dist/themes/light.css +253 -0
- package/dist/themes/light.css.map +1 -0
- package/package.json +26 -13
- package/.eslintrc +0 -9
- package/.storybook/main.js +0 -20
- package/.storybook/preview-head.html +0 -31
- package/.storybook/preview.js +0 -21
- package/src/components/Alert/Alert.module.scss +0 -88
- package/src/components/Alert/Alert.spec.tsx +0 -78
- package/src/components/Alert/Alert.stories.tsx +0 -73
- package/src/components/Alert/Alert.tsx +0 -94
- package/src/components/Badge/Badge.module.scss +0 -23
- package/src/components/Badge/Badge.spec.tsx +0 -12
- package/src/components/Badge/Badge.stories.tsx +0 -24
- package/src/components/Badge/Badge.tsx +0 -24
- package/src/components/Button/Button.module.scss +0 -257
- package/src/components/Button/Button.spec.tsx +0 -110
- package/src/components/Button/Button.stories.tsx +0 -152
- package/src/components/Button/Button.tsx +0 -88
- package/src/components/Button/index.ts +0 -2
- package/src/components/ButtonGroup/ButtonGroup.module.scss +0 -31
- package/src/components/ButtonGroup/ButtonGroup.spec.tsx +0 -61
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -53
- package/src/components/ButtonGroup/ButtonGroup.tsx +0 -75
- package/src/components/ButtonGroup/index.ts +0 -1
- package/src/components/Card/Card.module.scss +0 -31
- package/src/components/Card/Card.spec.tsx +0 -38
- package/src/components/Card/Card.stories.tsx +0 -30
- package/src/components/Card/Card.tsx +0 -34
- package/src/components/Checkbox/Checkbox.module.scss +0 -99
- package/src/components/Checkbox/Checkbox.tsx +0 -39
- package/src/components/Checkbox/CheckboxField.spec.tsx +0 -58
- package/src/components/Checkbox/CheckboxField.stories.tsx +0 -30
- package/src/components/Checkbox/CheckboxField.tsx +0 -46
- package/src/components/Checkbox/index.ts +0 -2
- package/src/components/FieldDescription/FieldDescription.module.scss +0 -5
- package/src/components/FieldDescription/FieldDescription.tsx +0 -23
- package/src/components/FieldError/FieldError.module.scss +0 -5
- package/src/components/FieldError/FieldError.tsx +0 -23
- package/src/components/FieldGroup/FieldGroup.module.scss +0 -25
- package/src/components/FieldGroup/FieldGroup.spec.tsx +0 -42
- package/src/components/FieldGroup/FieldGroup.stories.tsx +0 -34
- package/src/components/FieldGroup/FieldGroup.tsx +0 -38
- package/src/components/Form/Form.module.scss +0 -22
- package/src/components/Form/Form.spec.tsx +0 -38
- package/src/components/Form/Form.stories.tsx +0 -42
- package/src/components/Form/Form.tsx +0 -46
- package/src/components/FormGroup/FormGroup.module.scss +0 -20
- package/src/components/FormGroup/FormGroup.spec.tsx +0 -34
- package/src/components/FormGroup/FormGroup.stories.tsx +0 -30
- package/src/components/FormGroup/FormGroup.tsx +0 -44
- package/src/components/Icon/Icon.module.scss +0 -70
- package/src/components/Icon/Icon.stories.tsx +0 -53
- package/src/components/Icon/Icon.tsx +0 -118
- package/src/components/Icon/index.ts +0 -1
- package/src/components/InputField/InputField.module.scss +0 -37
- package/src/components/InputField/InputField.spec.tsx +0 -53
- package/src/components/InputField/InputField.stories.tsx +0 -73
- package/src/components/InputField/InputField.tsx +0 -72
- package/src/components/InputField/index.ts +0 -1
- package/src/components/Link/Link.module.scss +0 -18
- package/src/components/Link/Link.stories.tsx +0 -17
- package/src/components/Loader/Loader.module.scss +0 -66
- package/src/components/Loader/Loader.spec.tsx +0 -64
- package/src/components/Loader/Loader.stories.tsx +0 -25
- package/src/components/Loader/Loader.tsx +0 -48
- package/src/components/Modal/ActionModal.tsx +0 -37
- package/src/components/Modal/Modal.module.scss +0 -131
- package/src/components/Modal/Modal.stories.tsx +0 -85
- package/src/components/Modal/Modal.tsx +0 -41
- package/src/components/Modal/ModalBase.spec.tsx +0 -58
- package/src/components/Modal/ModalBase.tsx +0 -66
- package/src/components/Modal/ModalCloseButton.tsx +0 -20
- package/src/components/Modal/ModalPortal.tsx +0 -35
- package/src/components/NumericInput/NumericInput.module.scss +0 -110
- package/src/components/NumericInput/NumericInput.spec.tsx +0 -129
- package/src/components/NumericInput/NumericInput.stories.tsx +0 -56
- package/src/components/NumericInput/NumericInput.tsx +0 -161
- package/src/components/NumericInput/NumericInputField.stories.tsx +0 -58
- package/src/components/NumericInput/NumericInputField.tsx +0 -57
- package/src/components/NumericInput/index.ts +0 -2
- package/src/components/Popover/Popover.module.scss +0 -16
- package/src/components/Popover/Popover.spec.tsx +0 -39
- package/src/components/Popover/Popover.stories.css +0 -23
- package/src/components/Popover/Popover.stories.tsx +0 -164
- package/src/components/Popover/Popover.tsx +0 -124
- package/src/components/Progress/ProgressBar.module.scss +0 -48
- package/src/components/Progress/ProgressBar.spec.tsx +0 -33
- package/src/components/Progress/ProgressBar.stories.tsx +0 -23
- package/src/components/Progress/ProgressBar.tsx +0 -62
- package/src/components/Progress/ProgressCircle.module.scss +0 -64
- package/src/components/Progress/ProgressCircle.spec.tsx +0 -34
- package/src/components/Progress/ProgressCircle.stories.tsx +0 -28
- package/src/components/Progress/ProgressCircle.tsx +0 -104
- package/src/components/Progress/constants.ts +0 -23
- package/src/components/Progress/helpers.ts +0 -23
- package/src/components/PromoBanner/PromoBanner.module.scss +0 -121
- package/src/components/PromoBanner/PromoBanner.spec.tsx +0 -119
- package/src/components/PromoBanner/PromoBanner.stories.tsx +0 -125
- package/src/components/PromoBanner/PromoBanner.tsx +0 -99
- package/src/components/RadioButton/RadioButton.module.scss +0 -100
- package/src/components/RadioButton/RadioButton.spec.tsx +0 -70
- package/src/components/RadioButton/RadioButton.stories.tsx +0 -34
- package/src/components/RadioButton/RadioButton.tsx +0 -54
- package/src/components/Switch/Switch.module.scss +0 -126
- package/src/components/Switch/Switch.spec.tsx +0 -40
- package/src/components/Switch/Switch.stories.tsx +0 -23
- package/src/components/Switch/Switch.tsx +0 -100
- package/src/components/Tab/Tab.module.scss +0 -56
- package/src/components/Tab/Tab.spec.tsx +0 -34
- package/src/components/Tab/Tab.stories.tsx +0 -20
- package/src/components/Tab/Tab.tsx +0 -49
- package/src/components/Tab/TabsWrapper.module.scss +0 -11
- package/src/components/Tab/TabsWrapper.spec.tsx +0 -19
- package/src/components/Tab/TabsWrapper.stories.tsx +0 -46
- package/src/components/Tab/TabsWrapper.tsx +0 -24
- package/src/components/Tag/Tag.module.scss +0 -131
- package/src/components/Tag/Tag.spec.tsx +0 -93
- package/src/components/Tag/Tag.stories.tsx +0 -151
- package/src/components/Tag/Tag.tsx +0 -129
- package/src/components/TagInput/EditableTag.tsx +0 -54
- package/src/components/TagInput/EditableTagContent.tsx +0 -81
- package/src/components/TagInput/EmailTagInput.tsx +0 -31
- package/src/components/TagInput/TagInput.module.scss +0 -81
- package/src/components/TagInput/TagInput.spec.tsx +0 -58
- package/src/components/TagInput/TagInput.stories.tsx +0 -49
- package/src/components/TagInput/TagInput.tsx +0 -133
- package/src/components/TextField/TextField.module.scss +0 -90
- package/src/components/TextField/TextField.spec.tsx +0 -40
- package/src/components/TextField/TextField.stories.tsx +0 -60
- package/src/components/TextField/TextField.tsx +0 -100
- package/src/components/TextField/index.ts +0 -1
- package/src/components/Toast/Toast.module.scss +0 -218
- package/src/components/Toast/Toast.spec.tsx +0 -96
- package/src/components/Toast/Toast.stories.tsx +0 -64
- package/src/components/Toast/Toast.tsx +0 -121
- package/src/components/Toast/ToastWrapper.spec.tsx +0 -13
- package/src/components/Toast/ToastWrapper.stories.tsx +0 -55
- package/src/components/Toast/ToastWrapper.tsx +0 -87
- package/src/components/Typography/Heading.tsx +0 -36
- package/src/components/Typography/Text.tsx +0 -49
- package/src/components/Typography/Typography.module.scss +0 -132
- package/src/index.scss +0 -9
- package/src/stories/ColorTokens.stories.mdx +0 -10
- package/src/stories/Icons.stories.mdx +0 -12
- package/src/stories/Typography.stories.mdx +0 -65
- package/src/stories/components/ColorTokens.tsx +0 -99
- package/src/stories/components/IconsShowcase.tsx +0 -25
- package/src/stories/components/iconsShowcase.css +0 -13
- package/src/test/setup.ts +0 -1
- package/src/test/utils.ts +0 -3
- package/src/themes/dark.scss +0 -127
- package/src/themes/designTokens.ts +0 -126
- package/src/themes/legacy.scss +0 -128
- package/src/themes/light.scss +0 -127
- package/src/utils/keyCodes.ts +0 -12
- package/src/utils/noop.ts +0 -2
- package/tsconfig.json +0 -25
- package/tsconfig.node.json +0 -8
- package/vite.config.ts +0 -44
- /package/{src/components/Alert/index.ts → dist/src/components/Alert/index.d.ts} +0 -0
- /package/{src/components/Badge/index.ts → dist/src/components/Badge/index.d.ts} +0 -0
- /package/{src/components/Card/index.ts → dist/src/components/Card/index.d.ts} +0 -0
- /package/{src/components/FieldDescription/index.ts → dist/src/components/FieldDescription/index.d.ts} +0 -0
- /package/{src/components/FieldError/index.ts → dist/src/components/FieldError/index.d.ts} +0 -0
- /package/{src/components/FieldGroup/index.ts → dist/src/components/FieldGroup/index.d.ts} +0 -0
- /package/{src/components/Form/index.ts → dist/src/components/Form/index.d.ts} +0 -0
- /package/{src/components/FormGroup/index.ts → dist/src/components/FormGroup/index.d.ts} +0 -0
- /package/{src/components/Link/index.ts → dist/src/components/Link/index.d.ts} +0 -0
- /package/{src/components/Loader/index.ts → dist/src/components/Loader/index.d.ts} +0 -0
- /package/{src/components/Popover/index.ts → dist/src/components/Popover/index.d.ts} +0 -0
- /package/{src/components/PromoBanner/index.ts → dist/src/components/PromoBanner/index.d.ts} +0 -0
- /package/{src/components/RadioButton/index.ts → dist/src/components/RadioButton/index.d.ts} +0 -0
- /package/{src/components/Switch/index.ts → dist/src/components/Switch/index.d.ts} +0 -0
- /package/{src/components/Tab/index.ts → dist/src/components/Tab/index.d.ts} +0 -0
- /package/{src/components/Tag/index.ts → dist/src/components/Tag/index.d.ts} +0 -0
- /package/{src/components/TagInput/index.ts → dist/src/components/TagInput/index.d.ts} +0 -0
- /package/{src/components/Toast/index.ts → dist/src/components/Toast/index.d.ts} +0 -0
- /package/{src/components/Typography/index.ts → dist/src/components/Typography/index.d.ts} +0 -0
- /package/{src → dist/src}/vite-env.d.ts +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Reducer } 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?: React.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 declare 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 declare 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): React.ReactElement;
|
|
99
|
+
}
|
|
100
|
+
export {};
|
|
@@ -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<FieldGroupProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressSize, ProgressStatus } from '../Progress/constants';
|
|
3
|
+
export declare type UploadProgressActionState = 'visible' | 'hover' | 'hidden';
|
|
4
|
+
export interface FileUploadProgressProps {
|
|
5
|
+
actionsVisibility?: UploadProgressActionState;
|
|
6
|
+
className?: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
title: string;
|
|
9
|
+
progressValue: number;
|
|
10
|
+
size?: ProgressSize;
|
|
11
|
+
status?: ProgressStatus;
|
|
12
|
+
onCloseButtonClick?: () => void;
|
|
13
|
+
onRetryButtonClick?: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const FileUploadProgress: React.ExoticComponent<FileUploadProgressProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -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,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface FormFieldProps {
|
|
3
|
+
labelText?: string;
|
|
4
|
+
labelAdornment?: React.ReactNode;
|
|
5
|
+
labelFor?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
error?: string;
|
|
9
|
+
description?: React.ReactNode;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
labelRightNode?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const FormField: React.FC<FormFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormField';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
export declare type IconKind = 'primary' | 'subtle' | 'inverted' | 'inverted-subtle' | 'link' | 'success' | 'warning' | 'error';
|
|
4
|
+
export declare type IconSource = React.FC<React.SVGProps<SVGSVGElement>> & React.ReactElement;
|
|
5
|
+
export interface IconProps {
|
|
6
|
+
source: IconSource;
|
|
7
|
+
size?: IconSize;
|
|
8
|
+
kind?: IconKind;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
customColor?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const Icon: React.FC<IconProps>;
|
|
14
|
+
export default Icon;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from 'utils/constants';
|
|
3
|
+
interface InputIcon {
|
|
4
|
+
source: React.ReactElement;
|
|
5
|
+
place: 'left' | 'right';
|
|
6
|
+
}
|
|
7
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
8
|
+
inputSize?: Size;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
icon?: InputIcon;
|
|
12
|
+
}
|
|
13
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Input';
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import styles from './Link.module.scss';
|
|
5
|
-
|
|
6
|
-
export interface LinkProps
|
|
7
|
-
extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
8
|
-
bold: boolean;
|
|
2
|
+
export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
3
|
+
bold: boolean;
|
|
9
4
|
}
|
|
10
|
-
|
|
11
|
-
const baseClass = 'link';
|
|
12
|
-
|
|
13
5
|
/**
|
|
14
6
|
* Simple component which renders an `<a>` element.
|
|
15
7
|
*
|
|
@@ -19,19 +11,4 @@ const baseClass = 'link';
|
|
|
19
11
|
*
|
|
20
12
|
* Use `<Button href="">` to display as a `<Button>` - <a target="_self" href="/story/components-button--link">see the story</a>.
|
|
21
13
|
*/
|
|
22
|
-
export const Link: React.FC<LinkProps
|
|
23
|
-
bold = false,
|
|
24
|
-
className = '',
|
|
25
|
-
...rest
|
|
26
|
-
}) => {
|
|
27
|
-
return (
|
|
28
|
-
<a
|
|
29
|
-
className={cx(
|
|
30
|
-
styles[baseClass],
|
|
31
|
-
bold && styles[`${baseClass}--bold`],
|
|
32
|
-
className
|
|
33
|
-
)}
|
|
34
|
-
{...rest}
|
|
35
|
-
/>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
14
|
+
export declare const Link: React.FC<LinkProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface LoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
size?: 'small' | 'medium' | 'large';
|
|
4
|
+
label?: string;
|
|
5
|
+
/** Fragment circle color */
|
|
6
|
+
primaryColor?: string;
|
|
7
|
+
/** Main circle color */
|
|
8
|
+
secondaryColor?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Loader: React.FC<LoaderProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ModalBaseProps } from './ModalBase';
|
|
3
|
+
export interface ModalProps extends ModalBaseProps {
|
|
4
|
+
heading?: React.ReactNode;
|
|
5
|
+
labelHeading?: React.ReactNode;
|
|
6
|
+
fullSpaceContent?: boolean;
|
|
7
|
+
footer?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
export { ActionModal } from './ActionModal';
|
|
2
1
|
export { Modal } from './Modal';
|
|
3
2
|
export { ModalBase } from './ModalBase';
|
|
4
3
|
export { ModalCloseButton } from './ModalCloseButton';
|
|
5
4
|
export { ModalPortal } from './ModalPortal';
|
|
6
|
-
|
|
7
|
-
export type { ActionModalProps } from './ActionModal';
|
|
8
5
|
export type { ModalProps } from './Modal';
|
|
9
6
|
export type { ModalBaseProps } from './ModalBase';
|
|
10
7
|
export type { ModalCloseButtonProps } from './ModalCloseButton';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
className?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
max?: number;
|
|
7
|
+
min?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
noControls?: boolean;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare type NumericInputProps = React.InputHTMLAttributes<HTMLInputElement> & Props;
|
|
13
|
+
export declare const NumericInput: React.FC<NumericInputProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NumericInput } from './NumericInput';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPickerListItem } from './PickerList';
|
|
3
|
+
import { IconSize } from '../Icon';
|
|
4
|
+
import { Size } from 'utils';
|
|
5
|
+
export declare type PickerType = 'single' | 'multi';
|
|
6
|
+
export interface IPickerProps {
|
|
7
|
+
id?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
options: IPickerListItem[];
|
|
12
|
+
selected?: IPickerListItem[] | null;
|
|
13
|
+
size?: Size;
|
|
14
|
+
tagIconSize?: IconSize;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
isRequired?: boolean;
|
|
17
|
+
noSearchResultText?: string;
|
|
18
|
+
selectAllOptionText?: string;
|
|
19
|
+
type?: PickerType;
|
|
20
|
+
searchDisabled?: boolean;
|
|
21
|
+
onSelect: (selectedItems: IPickerListItem[] | null) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const Picker: React.FC<IPickerProps>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|
|
12
|
+
export interface IPickerListProps {
|
|
13
|
+
isOpen: boolean;
|
|
14
|
+
items: IPickerListItem[];
|
|
15
|
+
selectedItemsKeys: string[] | null;
|
|
16
|
+
emptyStateText?: string;
|
|
17
|
+
selectAllOptionText?: string;
|
|
18
|
+
isMultiSelect?: boolean;
|
|
19
|
+
onClose: () => void;
|
|
20
|
+
onSelect: (item: IPickerListItem) => void;
|
|
21
|
+
onSelectAll: () => void;
|
|
22
|
+
}
|
|
23
|
+
export declare const PickerList: React.FC<IPickerListProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
onTrigger: (e: React.MouseEvent | KeyboardEvent) => void;
|
|
13
|
+
onClear: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const Trigger: React.FC<ITriggerProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IPickerListItem } from './PickerList';
|
|
3
|
+
import { PickerType } from './Picker';
|
|
4
|
+
import { IconSize } from 'index';
|
|
5
|
+
export interface ITriggerBodyProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
isSearchDisabled?: boolean;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
items?: IPickerListItem[] | null;
|
|
11
|
+
type: PickerType;
|
|
12
|
+
iconSize?: IconSize;
|
|
13
|
+
onItemRemove: (item: IPickerListItem) => void;
|
|
14
|
+
onFilter: (text: string) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const TriggerBody: React.FC<ITriggerBodyProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Placement, flip } from '@floating-ui/react-dom';
|
|
3
|
+
export interface IPopoverProps {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
isVisible?: boolean;
|
|
8
|
+
flipOptions?: Parameters<typeof flip>[0];
|
|
9
|
+
triggerRenderer: () => React.ReactNode;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const Popover: React.FC<IPopoverProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
|
+
export interface ProgressBarProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
percent: number;
|
|
6
|
+
status?: ProgressStatus;
|
|
7
|
+
size?: ProgressSize;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgressBar: React.ExoticComponent<ProgressBarProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ProgressSize, ProgressStatus } from './constants';
|
|
3
|
+
export interface ProgressCircleProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
progressValue: number;
|
|
6
|
+
status?: ProgressStatus;
|
|
7
|
+
size?: ProgressSize;
|
|
8
|
+
}
|
|
9
|
+
export declare const ProgressCircle: React.ExoticComponent<ProgressCircleProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface PromoBannerProps {
|
|
3
|
+
className?: string;
|
|
4
|
+
buttonText?: string;
|
|
5
|
+
header: string;
|
|
6
|
+
img?: string;
|
|
7
|
+
light?: boolean;
|
|
8
|
+
linkText?: string;
|
|
9
|
+
onButtonClick?: () => void;
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
onLinkClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const PromoBanner: React.FC<PromoBannerProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
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>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ISearchInputProps {
|
|
3
|
+
isCollapsable?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
size?: 'compact' | 'medium' | 'large';
|
|
8
|
+
value: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const SearchInput: React.FC<ISearchInputProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SearchInput } from './Search';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button';
|
|
3
|
+
export declare type ButtonSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
declare type ButtonElement = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
} & Pick<ButtonProps, 'disabled' | 'loading' | 'icon'>;
|
|
8
|
+
export interface SegmentedControlProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
className?: string;
|
|
10
|
+
buttons: ButtonElement[];
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
size?: ButtonSize;
|
|
13
|
+
initialId?: string;
|
|
14
|
+
currentId?: string;
|
|
15
|
+
onButtonClick?: (id: string, event: React.MouseEvent<HTMLElement>) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const SegmentedControl: React.FC<SegmentedControlProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const baseClass = "switch";
|
|
3
|
+
export declare type SwitchSize = 'compact' | 'medium' | 'large';
|
|
4
|
+
export declare type SwitchState = 'regular' | 'loading' | 'locked';
|
|
5
|
+
export interface SwitchProps {
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
defaultOn?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
innerRef?: React.LegacyRef<HTMLInputElement> | undefined;
|
|
11
|
+
name?: string;
|
|
12
|
+
on?: boolean;
|
|
13
|
+
onChange?(e: React.FormEvent, value: boolean): void;
|
|
14
|
+
size?: SwitchSize;
|
|
15
|
+
state?: SwitchState;
|
|
16
|
+
}
|
|
17
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from 'utils';
|
|
3
|
+
declare type HTMLProps = (React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
4
|
+
href: string;
|
|
5
|
+
}) | (React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
|
+
href?: never;
|
|
7
|
+
});
|
|
8
|
+
export declare type TabProps = HTMLProps & {
|
|
9
|
+
count?: number;
|
|
10
|
+
isSelected?: boolean;
|
|
11
|
+
asBadge?: boolean;
|
|
12
|
+
size?: Size;
|
|
13
|
+
};
|
|
14
|
+
export declare const Tab: React.FC<TabProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconSize, IconSource } from '../Icon';
|
|
3
|
+
export interface TagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
kind?: 'default' | 'info' | 'warning' | 'success' | 'error' | 'purple' | 'black';
|
|
5
|
+
size?: 'medium' | 'large';
|
|
6
|
+
iconSize?: IconSize;
|
|
7
|
+
customColor?: string;
|
|
8
|
+
dismissible?: boolean;
|
|
9
|
+
outline?: boolean;
|
|
10
|
+
onRemove?(): void;
|
|
11
|
+
icon?: IconSource;
|
|
12
|
+
avatar?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Tag: React.FC<TagProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
4
|
+
index: number;
|
|
5
|
+
update: (idx: number, value: string) => void;
|
|
6
|
+
remove: (idx: number) => void;
|
|
7
|
+
validator?: (val: string) => boolean;
|
|
8
|
+
children: string;
|
|
9
|
+
size: 'medium' | 'large';
|
|
10
|
+
}
|
|
11
|
+
export declare const EditableTag: React.FC<EditableTagProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EditableTagContentProps {
|
|
3
|
+
value: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
innerEditableRef: React.RefObject<HTMLDivElement>;
|
|
6
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
7
|
+
change: (value: string) => void;
|
|
8
|
+
remove: () => void;
|
|
9
|
+
validator?: (value: string) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const EditableTagContent: React.FC<EditableTagContentProps>;
|