@antscorp/antsomi-ui 1.2.3 → 1.2.4
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/CHANGELOG.md +44 -22
- package/README.md +78 -78
- package/dist/1a69688fb6f3d353be6b.png +0 -0
- package/dist/33b65403c460f2d4423b.svg +87 -0
- package/dist/4a824e811d4678e0e3a2.png +0 -0
- package/dist/4f873001a3769df8f982.svg +338 -0
- package/dist/9468534045e0fef49315.png +0 -0
- package/dist/afb8ae1bce88559d24ef.woff +0 -0
- package/dist/bfb9cf6473c43ea3c384.png +0 -0
- package/dist/c74e9d6a9ac4f04cfd3d.png +0 -0
- package/dist/cfed74d00d1032bc5076.ttf +0 -0
- package/dist/d623401497f2714dc96f.eot +0 -0
- package/dist/ff7db9ff05a910761543.png +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +26 -0
- package/dist/main.css +68 -0
- package/dist/types/components/atoms/Button/Button.d.ts +1 -1
- package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
- package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
- package/dist/types/components/atoms/Button/index.d.ts +10 -10
- package/dist/types/components/atoms/Button/test.d.ts +3 -3
- package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +15 -15
- package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
- package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
- package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
- package/dist/types/components/atoms/Divider/index.d.ts +1 -1
- package/dist/types/components/atoms/Input/Input.d.ts +7 -7
- package/dist/types/components/atoms/Input/Input.stories.d.ts +19 -19
- package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
- package/dist/types/components/atoms/Input/index.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
- package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
- package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
- package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
- package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
- package/dist/types/components/atoms/Radio/index.d.ts +1 -1
- package/dist/types/components/atoms/Space/Space.d.ts +1 -1
- package/dist/types/components/atoms/Space/index.d.ts +1 -1
- package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/types/components/atoms/Tag/index.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
- package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
- package/dist/types/components/atoms/Typography/index.d.ts +1 -1
- package/dist/types/components/atoms/index.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
- package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
- package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
- package/dist/types/components/common/index.d.ts +1 -1
- package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -0
- package/dist/types/components/icons/AudioRecordIcon.d.ts +1 -0
- package/dist/types/components/icons/BugIcon.d.ts +1 -0
- package/dist/types/components/icons/CameraIcon.d.ts +1 -0
- package/dist/types/components/icons/CaptureIcon.d.ts +1 -0
- package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -0
- package/dist/types/components/icons/CloseIcon.d.ts +3 -0
- package/dist/types/components/icons/CommentIcon.d.ts +1 -0
- package/dist/types/components/icons/EventIcon.d.ts +3 -3
- package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIcon.d.ts +1 -0
- package/dist/types/components/icons/GPTIconV2.d.ts +1 -0
- package/dist/types/components/icons/GPTIconV3.d.ts +1 -0
- package/dist/types/components/icons/HighlightIcon.d.ts +1 -0
- package/dist/types/components/icons/IdeaIcon.d.ts +1 -0
- package/dist/types/components/icons/InvisibleIcon.d.ts +1 -0
- package/dist/types/components/icons/MuteIcon.d.ts +1 -0
- package/dist/types/components/icons/OpenUrlIcon.d.ts +1 -0
- package/dist/types/components/icons/PauseIcon.d.ts +1 -0
- package/dist/types/components/icons/PlaneIcon.d.ts +1 -0
- package/dist/types/components/icons/StopRecordIcon.d.ts +1 -0
- package/dist/types/components/icons/UserIcon.d.ts +1 -0
- package/dist/types/components/icons/VerticalDotsIcon.d.ts +1 -0
- package/dist/types/components/icons/WarningIcon.d.ts +1 -0
- package/dist/types/components/icons/index.d.ts +24 -1
- package/dist/types/components/index.d.ts +4 -4
- package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
- package/dist/types/components/molecules/Alert/index.d.ts +1 -1
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -0
- package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -0
- package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +3 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -0
- package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -0
- package/dist/types/components/molecules/CaptureScreen/constants.d.ts +35 -0
- package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -0
- package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -0
- package/dist/types/components/molecules/CaptureScreen/styled.d.ts +26 -0
- package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -0
- package/dist/types/components/molecules/CaptureScreen/types.d.ts +102 -0
- package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -0
- package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
- package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
- package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +4 -0
- package/dist/types/components/molecules/ChatBox/ChatBox.stories.d.ts +0 -0
- package/dist/types/components/molecules/ChatBox/ask.d.ts +3 -0
- package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -0
- package/dist/types/components/molecules/ChatBox/index.d.ts +1 -0
- package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -0
- package/dist/types/components/molecules/ChatBox/types.d.ts +29 -0
- package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
- package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
- package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
- package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
- package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
- package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
- package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
- package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
- package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
- package/dist/types/components/molecules/Modal/index.d.ts +1 -1
- package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -0
- package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -0
- package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -0
- package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -0
- package/dist/types/components/molecules/Select/Select.d.ts +15 -15
- package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
- package/dist/types/components/molecules/Select/Test.d.ts +3 -3
- package/dist/types/components/molecules/Select/index.d.ts +2 -2
- package/dist/types/components/molecules/Select/styled.d.ts +4 -4
- package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -0
- package/dist/types/components/molecules/Tabs/index.d.ts +1 -0
- package/dist/types/components/molecules/index.d.ts +11 -7
- package/dist/types/components/organism/Help/Help.d.ts +5 -0
- package/dist/types/components/organism/Help/constants.d.ts +138 -0
- package/dist/types/components/organism/Help/index.d.ts +1 -0
- package/dist/types/components/organism/Help/styled.d.ts +78 -0
- package/dist/types/components/organism/Help/types.d.ts +65 -0
- package/dist/types/components/organism/Help/utils.d.ts +14 -0
- package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -0
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -0
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/index.d.ts +0 -0
- package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -0
- package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +75 -0
- package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +1 -0
- package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +1 -0
- package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +1 -0
- package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +1 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +2 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +11 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +17 -0
- package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -0
- package/dist/types/components/organism/Table/Table.d.ts +1 -1
- package/dist/types/components/organism/Table/index.d.ts +1 -1
- package/dist/types/components/organism/index.d.ts +2 -1
- package/dist/types/constants/index.d.ts +1 -1
- package/dist/types/constants/theme.d.ts +12 -12
- package/dist/types/hooks/index.d.ts +2 -2
- package/dist/types/hooks/useDebounce.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locales/i18n.d.ts +73 -73
- package/dist/types/locales/translations.d.ts +37 -37
- package/dist/types/locales/types.d.ts +15 -15
- package/dist/types/services/Ticket.d.ts +67 -0
- package/dist/types/services/constants.d.ts +20 -0
- package/dist/types/test.d.ts +3 -3
- package/dist/types/types/index.d.ts +6 -6
- package/dist/types/utils/color.d.ts +9 -0
- package/dist/types/utils/common.d.ts +46 -8
- package/dist/types/utils/handleError.d.ts +2 -2
- package/dist/types/utils/index.d.ts +3 -0
- package/package.json +131 -122
- package/dist/types/components/molecules/CustomComponent/CustomComponent.d.ts +0 -2
- package/dist/types/components/molecules/CustomComponent/index.d.ts +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const enum Role {
|
|
2
|
+
Assistant = "assistant",
|
|
3
|
+
User = "user"
|
|
4
|
+
}
|
|
5
|
+
export interface Message {
|
|
6
|
+
id: string;
|
|
7
|
+
role: Role;
|
|
8
|
+
content: string;
|
|
9
|
+
answering?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IChatBoxMessageProps extends Message {
|
|
12
|
+
role: Role;
|
|
13
|
+
content: string;
|
|
14
|
+
isTyping?: boolean;
|
|
15
|
+
scrollBody: Function;
|
|
16
|
+
renderDone: Function;
|
|
17
|
+
doAnimation: boolean;
|
|
18
|
+
answeringContent: string;
|
|
19
|
+
avatar?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IChatBoxProps {
|
|
22
|
+
onClose?: Function;
|
|
23
|
+
withoutBox?: boolean;
|
|
24
|
+
domain: string;
|
|
25
|
+
userId: string | number;
|
|
26
|
+
token: string;
|
|
27
|
+
avatar?: string;
|
|
28
|
+
style?: Record<string, any>;
|
|
29
|
+
}
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DatePicker as AntdDatePicker } from 'antd';
|
|
2
|
-
import { AdvancedPicker } from './components/AdvancedPicker';
|
|
3
|
-
import { AdvancedRangePicker } from './components/AdvancedRangePicker';
|
|
4
|
-
export type TDatePicker = typeof AntdDatePicker & {
|
|
5
|
-
AdvancedPicker: typeof AdvancedPicker;
|
|
6
|
-
AdvancedRangePicker: typeof AdvancedRangePicker;
|
|
7
|
-
};
|
|
8
|
-
export declare const DatePicker: TDatePicker;
|
|
1
|
+
import { DatePicker as AntdDatePicker } from 'antd';
|
|
2
|
+
import { AdvancedPicker } from './components/AdvancedPicker';
|
|
3
|
+
import { AdvancedRangePicker } from './components/AdvancedRangePicker';
|
|
4
|
+
export type TDatePicker = typeof AntdDatePicker & {
|
|
5
|
+
AdvancedPicker: typeof AdvancedPicker;
|
|
6
|
+
AdvancedRangePicker: typeof AdvancedRangePicker;
|
|
7
|
+
};
|
|
8
|
+
export declare const DatePicker: TDatePicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
-
declare const _default: ComponentMeta<import("./DatePicker").TDatePicker>;
|
|
3
|
-
export default _default;
|
|
4
|
-
export declare const Default: ComponentStory<import("./DatePicker").TDatePicker>;
|
|
1
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
declare const _default: ComponentMeta<import("./DatePicker").TDatePicker>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Default: ComponentStory<import("./DatePicker").TDatePicker>;
|
package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TAdvancedType, TCalculationType, TOperatorKey, TOption, TShowCalculationTypeCondition } from './types';
|
|
3
|
-
export interface AdvancedPickerProps {
|
|
4
|
-
label?: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
dateTypeKeysShow?: string[];
|
|
7
|
-
showCalculationTypeCondition?: TShowCalculationTypeCondition;
|
|
8
|
-
calculationTypeKeysShow?: TCalculationType[];
|
|
9
|
-
defaultDateTypeKey?: string;
|
|
10
|
-
valueType?: string;
|
|
11
|
-
option?: TOption;
|
|
12
|
-
operatorKey?: TOperatorKey;
|
|
13
|
-
type?: TAdvancedType;
|
|
14
|
-
date?: string;
|
|
15
|
-
format?: string;
|
|
16
|
-
formatInputDisplay?: string;
|
|
17
|
-
inputStyle?: React.CSSProperties;
|
|
18
|
-
disableAfterDate?: string;
|
|
19
|
-
disableBeforeDate?: string;
|
|
20
|
-
errorMessage?: string;
|
|
21
|
-
showTime?: boolean;
|
|
22
|
-
onUpdatedNewDate?: (newDate: any) => void;
|
|
23
|
-
onApply?: ({ date, option }: {
|
|
24
|
-
date: string;
|
|
25
|
-
option: TOption;
|
|
26
|
-
}) => void;
|
|
27
|
-
}
|
|
28
|
-
export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TAdvancedType, TCalculationType, TOperatorKey, TOption, TShowCalculationTypeCondition } from './types';
|
|
3
|
+
export interface AdvancedPickerProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
dateTypeKeysShow?: string[];
|
|
7
|
+
showCalculationTypeCondition?: TShowCalculationTypeCondition;
|
|
8
|
+
calculationTypeKeysShow?: TCalculationType[];
|
|
9
|
+
defaultDateTypeKey?: string;
|
|
10
|
+
valueType?: string;
|
|
11
|
+
option?: TOption;
|
|
12
|
+
operatorKey?: TOperatorKey;
|
|
13
|
+
type?: TAdvancedType;
|
|
14
|
+
date?: string;
|
|
15
|
+
format?: string;
|
|
16
|
+
formatInputDisplay?: string;
|
|
17
|
+
inputStyle?: React.CSSProperties;
|
|
18
|
+
disableAfterDate?: string;
|
|
19
|
+
disableBeforeDate?: string;
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
showTime?: boolean;
|
|
22
|
+
onUpdatedNewDate?: (newDate: any) => void;
|
|
23
|
+
onApply?: ({ date, option }: {
|
|
24
|
+
date: string;
|
|
25
|
+
option: TOption;
|
|
26
|
+
}) => void;
|
|
27
|
+
}
|
|
28
|
+
export declare const AdvancedPicker: React.FC<AdvancedPickerProps>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: ComponentStory<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: ComponentStory<React.FC<import("./AdvancedPicker").AdvancedPickerProps>>;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { TAdvancedType } from './types';
|
|
2
|
-
export declare const DATE_TYPES: {
|
|
3
|
-
value: string;
|
|
4
|
-
label: string;
|
|
5
|
-
}[];
|
|
6
|
-
export declare const CALCULATION_TYPES: {
|
|
7
|
-
value: string;
|
|
8
|
-
label: string;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const CALCULATION_DATES: {
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
14
|
-
export declare const VALUE_TYPES: {
|
|
15
|
-
INPUT_TEXT: string;
|
|
16
|
-
INPUT_NUMBER: string;
|
|
17
|
-
MATCHES_ANY: string;
|
|
18
|
-
YEAR: string;
|
|
19
|
-
YEAR_QUARTER: string;
|
|
20
|
-
YEAR_MONTH: string;
|
|
21
|
-
YEAR_WEEK: string;
|
|
22
|
-
YEAR_MONTH_DAY: string;
|
|
23
|
-
YEAR_MONTH_DAY_HOUR: string;
|
|
24
|
-
YEAR_MONTH_DAY_MINUTE: string;
|
|
25
|
-
YEAR_MONTH_DAY_SECOND: string;
|
|
26
|
-
QUARTER: string;
|
|
27
|
-
MONTH: string;
|
|
28
|
-
WEEK: string;
|
|
29
|
-
MONTH_DAY: string;
|
|
30
|
-
DAY_OF_WEEK: string;
|
|
31
|
-
DAY: string;
|
|
32
|
-
HOUR: string;
|
|
33
|
-
MINUTE: string;
|
|
34
|
-
INPUT_TEXT_NO_FIELD: string;
|
|
35
|
-
};
|
|
36
|
-
export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
|
|
37
|
-
export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
38
|
-
export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
|
|
39
|
-
export declare const TIME_PICKER_TYPE: {
|
|
40
|
-
DATE_TIME: string;
|
|
41
|
-
DATE_HOUR: string;
|
|
42
|
-
DATE_HOUR_MINUTE: string;
|
|
43
|
-
DATE: string;
|
|
44
|
-
};
|
|
45
|
-
export declare const YEAR_PICKER_TYPE: {
|
|
46
|
-
YEAR: string;
|
|
47
|
-
MONTH: string;
|
|
48
|
-
QUARTER: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const ADVANCED_PICKER_TYPE: Record<string, {
|
|
51
|
-
value: TAdvancedType;
|
|
52
|
-
label: string;
|
|
53
|
-
}>;
|
|
1
|
+
import { TAdvancedType } from './types';
|
|
2
|
+
export declare const DATE_TYPES: {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const CALCULATION_TYPES: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const CALCULATION_DATES: {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const VALUE_TYPES: {
|
|
15
|
+
INPUT_TEXT: string;
|
|
16
|
+
INPUT_NUMBER: string;
|
|
17
|
+
MATCHES_ANY: string;
|
|
18
|
+
YEAR: string;
|
|
19
|
+
YEAR_QUARTER: string;
|
|
20
|
+
YEAR_MONTH: string;
|
|
21
|
+
YEAR_WEEK: string;
|
|
22
|
+
YEAR_MONTH_DAY: string;
|
|
23
|
+
YEAR_MONTH_DAY_HOUR: string;
|
|
24
|
+
YEAR_MONTH_DAY_MINUTE: string;
|
|
25
|
+
YEAR_MONTH_DAY_SECOND: string;
|
|
26
|
+
QUARTER: string;
|
|
27
|
+
MONTH: string;
|
|
28
|
+
WEEK: string;
|
|
29
|
+
MONTH_DAY: string;
|
|
30
|
+
DAY_OF_WEEK: string;
|
|
31
|
+
DAY: string;
|
|
32
|
+
HOUR: string;
|
|
33
|
+
MINUTE: string;
|
|
34
|
+
INPUT_TEXT_NO_FIELD: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const DEFAULT_DATE_FORMAT = "YYYYMMDDHHmmss";
|
|
37
|
+
export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
38
|
+
export declare const DEFAULT_DATE_DISPLAY_FORMAT = "DD/MM/YYYY HH:mm:ss";
|
|
39
|
+
export declare const TIME_PICKER_TYPE: {
|
|
40
|
+
DATE_TIME: string;
|
|
41
|
+
DATE_HOUR: string;
|
|
42
|
+
DATE_HOUR_MINUTE: string;
|
|
43
|
+
DATE: string;
|
|
44
|
+
};
|
|
45
|
+
export declare const YEAR_PICKER_TYPE: {
|
|
46
|
+
YEAR: string;
|
|
47
|
+
MONTH: string;
|
|
48
|
+
QUARTER: string;
|
|
49
|
+
};
|
|
50
|
+
export declare const ADVANCED_PICKER_TYPE: Record<string, {
|
|
51
|
+
value: TAdvancedType;
|
|
52
|
+
label: string;
|
|
53
|
+
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AdvancedPicker } from './AdvancedPicker';
|
|
2
|
-
export type { AdvancedPickerProps } from './AdvancedPicker';
|
|
3
|
-
export type { TOption as TAdvancedPickerOption } from './types';
|
|
1
|
+
export { AdvancedPicker } from './AdvancedPicker';
|
|
2
|
+
export type { AdvancedPickerProps } from './AdvancedPicker';
|
|
3
|
+
export type { TOption as TAdvancedPickerOption } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const DropdownContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const DropdownFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
6
|
-
export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const CalendarIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
export declare const DropdownContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const DropdownHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const DropdownFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const DatePickerHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const DatePickerCustomInput: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
6
|
+
export declare const DatePickerFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
+
export declare const CalendarIconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export type TOption = {
|
|
2
|
-
dateType: TDateType;
|
|
3
|
-
calculationType: TCalculationType;
|
|
4
|
-
calculationDate: TCalculationDate;
|
|
5
|
-
value: number;
|
|
6
|
-
};
|
|
7
|
-
export type TShowCalculationTypeCondition = {
|
|
8
|
-
dateType: Partial<Record<TDateType, TCalculationType[]>>;
|
|
9
|
-
};
|
|
10
|
-
export type TDateType = 'today' | 'first_day_of_week_mon_sun' | 'first_day_of_week_sun_sat' | 'first_day_of_month' | 'first_day_of_quarter' | 'first_day_of_year' | 'last_day_of_week_mon_sun' | 'last_day_of_week_sun_sat' | 'last_day_of_month' | 'last_day_of_quarter' | 'last_day_of_year' | 'fixed';
|
|
11
|
-
export type TCalculationType = 'minus' | 'plus' | '';
|
|
12
|
-
export type TCalculationDate = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | '';
|
|
13
|
-
export type TOperatorKey = 'after' | 'between' | 'before';
|
|
14
|
-
export type TAdvancedType = 'startDate' | 'endDate';
|
|
1
|
+
export type TOption = {
|
|
2
|
+
dateType: TDateType;
|
|
3
|
+
calculationType: TCalculationType;
|
|
4
|
+
calculationDate: TCalculationDate;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
export type TShowCalculationTypeCondition = {
|
|
8
|
+
dateType: Partial<Record<TDateType, TCalculationType[]>>;
|
|
9
|
+
};
|
|
10
|
+
export type TDateType = 'today' | 'first_day_of_week_mon_sun' | 'first_day_of_week_sun_sat' | 'first_day_of_month' | 'first_day_of_quarter' | 'first_day_of_year' | 'last_day_of_week_mon_sun' | 'last_day_of_week_sun_sat' | 'last_day_of_month' | 'last_day_of_quarter' | 'last_day_of_year' | 'fixed';
|
|
11
|
+
export type TCalculationType = 'minus' | 'plus' | '';
|
|
12
|
+
export type TCalculationDate = 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'quarters' | 'years' | '';
|
|
13
|
+
export type TOperatorKey = 'after' | 'between' | 'before';
|
|
14
|
+
export type TAdvancedType = 'startDate' | 'endDate';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Calculates a new date based on the given parameters.
|
|
3
|
-
* @param {string} [dateTypeKey='today'] - Key to determine the type of date to be used as the starting point.
|
|
4
|
-
* Valid values are: 'today', 'first_day_of_week_mon_sun', 'first_day_of_week_sun_sat',
|
|
5
|
-
* 'first_day_of_month', 'first_day_of_quarter', 'first_day_of_year', 'last_day_of_week_mon_sun',
|
|
6
|
-
* 'last_day_of_week_sun_sat', 'last_day_of_month', 'last_day_of_quarter', 'last_day_of_year'.
|
|
7
|
-
* @param {string} [calculationTypeKey='minus'] - Key to determine whether to add or subtract the specified value.
|
|
8
|
-
* Valid values are: 'plus', 'minus'.
|
|
9
|
-
* @param {string} [calculationDateKey='days'] - Key to determine the unit of time to be added or subtracted.
|
|
10
|
-
* Valid values are: 'days', 'weeks', 'months', 'quarters', 'years'.
|
|
11
|
-
* @param {number} [value=0] - Value to be added or subtracted.
|
|
12
|
-
* @param {string} [dateFormat=DEFAULT_DATE_FORMAT] - Format in which to return the new date.
|
|
13
|
-
* @returns {string} The new date in the specified format.
|
|
14
|
-
*/
|
|
15
|
-
export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;
|
|
1
|
+
/**
|
|
2
|
+
* Calculates a new date based on the given parameters.
|
|
3
|
+
* @param {string} [dateTypeKey='today'] - Key to determine the type of date to be used as the starting point.
|
|
4
|
+
* Valid values are: 'today', 'first_day_of_week_mon_sun', 'first_day_of_week_sun_sat',
|
|
5
|
+
* 'first_day_of_month', 'first_day_of_quarter', 'first_day_of_year', 'last_day_of_week_mon_sun',
|
|
6
|
+
* 'last_day_of_week_sun_sat', 'last_day_of_month', 'last_day_of_quarter', 'last_day_of_year'.
|
|
7
|
+
* @param {string} [calculationTypeKey='minus'] - Key to determine whether to add or subtract the specified value.
|
|
8
|
+
* Valid values are: 'plus', 'minus'.
|
|
9
|
+
* @param {string} [calculationDateKey='days'] - Key to determine the unit of time to be added or subtracted.
|
|
10
|
+
* Valid values are: 'days', 'weeks', 'months', 'quarters', 'years'.
|
|
11
|
+
* @param {number} [value=0] - Value to be added or subtracted.
|
|
12
|
+
* @param {string} [dateFormat=DEFAULT_DATE_FORMAT] - Format in which to return the new date.
|
|
13
|
+
* @returns {string} The new date in the specified format.
|
|
14
|
+
*/
|
|
15
|
+
export declare const calculationDateAdvanced: (dateTypeKey?: string, calculationTypeKey?: string, calculationDateKey?: any, value?: number, dateFormat?: string) => any;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TShowCalculationTypeCondition } from '../AdvancedPicker/types';
|
|
3
|
-
import { TDateConfig, TOnChangePayload, TTimeRange } from './types';
|
|
4
|
-
export interface AdvancedRangePickerProps {
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
showCalculationTypeCondition?: TShowCalculationTypeCondition;
|
|
7
|
-
startDateConfig?: TDateConfig;
|
|
8
|
-
endDateConfig?: TDateConfig;
|
|
9
|
-
timeRange: TTimeRange;
|
|
10
|
-
errorMessage?: string;
|
|
11
|
-
showLabel?: boolean;
|
|
12
|
-
showTime?: boolean;
|
|
13
|
-
onChange?: ({ timeRange, mode }: TOnChangePayload) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const AdvancedRangePicker: React.FC<AdvancedRangePickerProps>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TShowCalculationTypeCondition } from '../AdvancedPicker/types';
|
|
3
|
+
import { TDateConfig, TOnChangePayload, TTimeRange } from './types';
|
|
4
|
+
export interface AdvancedRangePickerProps {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
showCalculationTypeCondition?: TShowCalculationTypeCondition;
|
|
7
|
+
startDateConfig?: TDateConfig;
|
|
8
|
+
endDateConfig?: TDateConfig;
|
|
9
|
+
timeRange: TTimeRange;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
showLabel?: boolean;
|
|
12
|
+
showTime?: boolean;
|
|
13
|
+
onChange?: ({ timeRange, mode }: TOnChangePayload) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const AdvancedRangePicker: React.FC<AdvancedRangePickerProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
-
import { AdvancedRangePicker } from './AdvancedRangePicker';
|
|
4
|
-
declare const _default: ComponentMeta<React.FC<import("./AdvancedRangePicker").AdvancedRangePickerProps>>;
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const Template: ComponentStory<typeof AdvancedRangePicker>;
|
|
7
|
-
export declare const Basic: ComponentStory<typeof AdvancedRangePicker>;
|
|
8
|
-
export declare const HideTimeLabel: ComponentStory<typeof AdvancedRangePicker>;
|
|
9
|
-
export declare const ShowCalculationTypeCondition: ComponentStory<typeof AdvancedRangePicker>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { AdvancedRangePicker } from './AdvancedRangePicker';
|
|
4
|
+
declare const _default: ComponentMeta<React.FC<import("./AdvancedRangePicker").AdvancedRangePickerProps>>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Template: ComponentStory<typeof AdvancedRangePicker>;
|
|
7
|
+
export declare const Basic: ComponentStory<typeof AdvancedRangePicker>;
|
|
8
|
+
export declare const HideTimeLabel: ComponentStory<typeof AdvancedRangePicker>;
|
|
9
|
+
export declare const ShowCalculationTypeCondition: ComponentStory<typeof AdvancedRangePicker>;
|
package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const ADVANCED_RANGE_PICKER_FORMAT: {
|
|
2
|
-
startDate: string;
|
|
3
|
-
endDate: string;
|
|
4
|
-
};
|
|
1
|
+
export declare const ADVANCED_RANGE_PICKER_FORMAT: {
|
|
2
|
+
startDate: string;
|
|
3
|
+
endDate: string;
|
|
4
|
+
};
|
package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AdvancedRangePicker } from './AdvancedRangePicker';
|
|
2
|
-
export type { TTimeRange as TAdvancedRangePickerTimeRange } from './types';
|
|
1
|
+
export { AdvancedRangePicker } from './AdvancedRangePicker';
|
|
2
|
+
export type { TTimeRange as TAdvancedRangePickerTimeRange } from './types';
|
package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { TCalculationType, TOption } from '../AdvancedPicker/types';
|
|
2
|
-
export type TOnChangeMode = 'system' | 'user';
|
|
3
|
-
export type TTimeRange = {
|
|
4
|
-
startDate: TOption & {
|
|
5
|
-
date: string;
|
|
6
|
-
};
|
|
7
|
-
endDate: TOption & {
|
|
8
|
-
date: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export type TOnChangePayload = {
|
|
12
|
-
timeRange: TTimeRange;
|
|
13
|
-
mode: 'system' | 'user';
|
|
14
|
-
};
|
|
15
|
-
export type TDateConfig = {
|
|
16
|
-
calculationTypeKeysShow?: TCalculationType[];
|
|
17
|
-
};
|
|
1
|
+
import { TCalculationType, TOption } from '../AdvancedPicker/types';
|
|
2
|
+
export type TOnChangeMode = 'system' | 'user';
|
|
3
|
+
export type TTimeRange = {
|
|
4
|
+
startDate: TOption & {
|
|
5
|
+
date: string;
|
|
6
|
+
};
|
|
7
|
+
endDate: TOption & {
|
|
8
|
+
date: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export type TOnChangePayload = {
|
|
12
|
+
timeRange: TTimeRange;
|
|
13
|
+
mode: 'system' | 'user';
|
|
14
|
+
};
|
|
15
|
+
export type TDateConfig = {
|
|
16
|
+
calculationTypeKeysShow?: TCalculationType[];
|
|
17
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { DatePicker } from './DatePicker';
|
|
2
|
-
export type { AdvancedPickerProps, TAdvancedPickerOption } from './components/AdvancedPicker';
|
|
3
|
-
export type { TAdvancedRangePickerTimeRange } from './components/AdvancedRangePicker';
|
|
1
|
+
export { DatePicker } from './DatePicker';
|
|
2
|
+
export type { AdvancedPickerProps, TAdvancedPickerOption } from './components/AdvancedPicker';
|
|
3
|
+
export type { TAdvancedRangePickerTimeRange } from './components/AdvancedRangePicker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Dropdown } from 'antd';
|
|
1
|
+
export { Dropdown } from 'antd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Dropdown } from './Dropdown';
|
|
1
|
+
export { Dropdown } from './Dropdown';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Modal } from 'antd';
|
|
1
|
+
export { Modal } from 'antd';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Modal } from './Modal';
|
|
1
|
+
export { Modal } from './Modal';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PopupDraggable } from './PopupDraggable';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CSSProperties } from 'styled-components';
|
|
3
|
+
export interface IPopupDraggable {
|
|
4
|
+
id?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
bounds: string;
|
|
7
|
+
isHiddenClose?: boolean;
|
|
8
|
+
isHiddenResizing?: boolean;
|
|
9
|
+
callback: Function;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
styleContainer?: CSSProperties;
|
|
12
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface SelectProps extends AntdSelectProps {
|
|
4
|
-
}
|
|
5
|
-
declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: AntdSelectProps<ValueType, OptionType> & {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
ref?: React.Ref<import("antd").RefSelectProps> | undefined;
|
|
9
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
-
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
11
|
-
Option: import("rc-select/lib/Option").OptionFC;
|
|
12
|
-
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
13
|
-
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
14
|
-
} & React.FC<SelectProps>;
|
|
15
|
-
export { Select };
|
|
1
|
+
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SelectProps extends AntdSelectProps {
|
|
4
|
+
}
|
|
5
|
+
declare const Select: (<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: AntdSelectProps<ValueType, OptionType> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
} & {
|
|
8
|
+
ref?: React.Ref<import("antd").RefSelectProps> | undefined;
|
|
9
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
10
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
11
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
12
|
+
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
13
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
14
|
+
} & React.FC<SelectProps>;
|
|
15
|
+
export { Select };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
-
import { Select, SelectProps } from './Select';
|
|
4
|
-
declare const _default: ComponentMeta<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
} & {
|
|
7
|
-
ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
|
|
8
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
9
|
-
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
10
|
-
Option: import("rc-select/lib/Option").OptionFC;
|
|
11
|
-
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
12
|
-
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
13
|
-
} & React.FC<SelectProps>>;
|
|
14
|
-
export default _default;
|
|
15
|
-
export declare const Default: ComponentStory<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
} & {
|
|
18
|
-
ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
|
|
19
|
-
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
20
|
-
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
21
|
-
Option: import("rc-select/lib/Option").OptionFC;
|
|
22
|
-
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
23
|
-
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
24
|
-
} & React.FC<SelectProps>>;
|
|
25
|
-
export declare const BasicUsage: ComponentStory<typeof Select>;
|
|
26
|
-
export declare const MultipleSelection: ComponentStory<typeof Select>;
|
|
27
|
-
export declare const CustomSelectionRender: ComponentStory<typeof Select>;
|
|
28
|
-
export declare const Status: ComponentStory<typeof Select>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
import { Select, SelectProps } from './Select';
|
|
4
|
+
declare const _default: ComponentMeta<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
} & {
|
|
7
|
+
ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
|
|
8
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
9
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
10
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
11
|
+
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
12
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
13
|
+
} & React.FC<SelectProps>>;
|
|
14
|
+
export default _default;
|
|
15
|
+
export declare const Default: ComponentStory<(<ValueType = any, OptionType extends import("rc-select/lib/Select").DefaultOptionType | import("rc-select/lib/Select").BaseOptionType = import("rc-select/lib/Select").DefaultOptionType>(props: import("antd").SelectProps<ValueType, OptionType> & {
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
} & {
|
|
18
|
+
ref?: React.Ref<import("rc-select").BaseSelectRef> | undefined;
|
|
19
|
+
}) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
20
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
21
|
+
Option: import("rc-select/lib/Option").OptionFC;
|
|
22
|
+
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
23
|
+
_InternalPanelDoNotUseOrYouWillBeFired: any;
|
|
24
|
+
} & React.FC<SelectProps>>;
|
|
25
|
+
export declare const BasicUsage: ComponentStory<typeof Select>;
|
|
26
|
+
export declare const MultipleSelection: ComponentStory<typeof Select>;
|
|
27
|
+
export declare const CustomSelectionRender: ComponentStory<typeof Select>;
|
|
28
|
+
export declare const Status: ComponentStory<typeof Select>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const SelectTest: () => JSX.Element;
|
|
3
|
-
export default SelectTest;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const SelectTest: () => JSX.Element;
|
|
3
|
+
export default SelectTest;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Select } from './Select';
|
|
2
|
-
export type { SelectProps } from './Select';
|
|
1
|
+
export { Select } from './Select';
|
|
2
|
+
export type { SelectProps } from './Select';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const StyledTag: import("styled-components").StyledComponent<import("antd").TagType, any, {}, never>;
|
|
2
|
-
export declare const TagCloseBtn: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
borderColor?: string | undefined;
|
|
4
|
-
}, never>;
|
|
1
|
+
export declare const StyledTag: import("styled-components").StyledComponent<import("antd").TagType, any, {}, never>;
|
|
2
|
+
export declare const TagCloseBtn: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
borderColor?: string | undefined;
|
|
4
|
+
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from 'antd';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tabs } from './Tabs';
|