@antscorp/antsomi-ui 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/CHANGELOG.md +34 -54
  2. package/README.md +78 -78
  3. package/dist/index.js +1 -1
  4. package/dist/package.json +43 -0
  5. package/dist/types/components/atoms/Button/Button.d.ts +1 -1
  6. package/dist/types/components/atoms/Button/Button.stories.d.ts +32 -32
  7. package/dist/types/components/atoms/Button/__tests__/Button.test.d.ts +1 -1
  8. package/dist/types/components/atoms/Button/index.d.ts +10 -10
  9. package/dist/types/components/atoms/Button/test.d.ts +3 -3
  10. package/dist/types/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  11. package/dist/types/components/atoms/Checkbox/Checkbox.stories.d.ts +16 -15
  12. package/dist/types/components/atoms/Checkbox/__tests__/Checkbox.test.d.ts +1 -1
  13. package/dist/types/components/atoms/Checkbox/index.d.ts +1 -1
  14. package/dist/types/components/atoms/Divider/Divider.d.ts +1 -1
  15. package/dist/types/components/atoms/Divider/Divider.stories.d.ts +8 -8
  16. package/dist/types/components/atoms/Divider/__tests__/Divider.test.d.ts +1 -0
  17. package/dist/types/components/atoms/Divider/index.d.ts +1 -1
  18. package/dist/types/components/atoms/Input/Input.d.ts +7 -7
  19. package/dist/types/components/atoms/Input/Input.stories.d.ts +22 -19
  20. package/dist/types/components/atoms/Input/__tests__/Input.test.d.ts +1 -1
  21. package/dist/types/components/atoms/Input/index.d.ts +1 -1
  22. package/dist/types/components/atoms/InputNumber/InputNumber.d.ts +6 -6
  23. package/dist/types/components/atoms/InputNumber/InputNumber.stories.d.ts +16 -16
  24. package/dist/types/components/atoms/InputNumber/__tests__/InputNumber.test.d.ts +1 -1
  25. package/dist/types/components/atoms/InputNumber/index.d.ts +1 -1
  26. package/dist/types/components/atoms/Radio/Radio.d.ts +1 -1
  27. package/dist/types/components/atoms/Radio/Radio.stories.d.ts +17 -0
  28. package/dist/types/components/atoms/Radio/__tests__/Radio.test.d.ts +1 -0
  29. package/dist/types/components/atoms/Radio/index.d.ts +1 -1
  30. package/dist/types/components/atoms/Space/Space.d.ts +1 -1
  31. package/dist/types/components/atoms/Space/Space.stories.d.ts +16 -0
  32. package/dist/types/components/atoms/Space/index.d.ts +1 -1
  33. package/dist/types/components/atoms/Tag/Tag.d.ts +1 -1
  34. package/dist/types/components/atoms/Tag/Tag.stories.d.ts +12 -0
  35. package/dist/types/components/atoms/Tag/index.d.ts +1 -1
  36. package/dist/types/components/atoms/Tooltip/Tooltip.d.ts +1 -1
  37. package/dist/types/components/atoms/Tooltip/Tooltip.stories.d.ts +14 -0
  38. package/dist/types/components/atoms/Tooltip/index.d.ts +1 -1
  39. package/dist/types/components/atoms/Typography/Text.d.ts +1 -1
  40. package/dist/types/components/atoms/Typography/Typography.stories.d.ts +11 -0
  41. package/dist/types/components/atoms/Typography/index.d.ts +1 -1
  42. package/dist/types/components/atoms/index.d.ts +10 -10
  43. package/dist/types/components/common/ConfigProvider/ConfigProvider.d.ts +10 -10
  44. package/dist/types/components/common/ConfigProvider/GlobalStyle.d.ts +5 -5
  45. package/dist/types/components/common/ConfigProvider/index.d.ts +1 -1
  46. package/dist/types/components/common/index.d.ts +1 -1
  47. package/dist/types/components/icons/ArrowGrowIcon.d.ts +1 -1
  48. package/dist/types/components/icons/AudioRecordIcon.d.ts +1 -1
  49. package/dist/types/components/icons/BugIcon.d.ts +1 -1
  50. package/dist/types/components/icons/CameraIcon.d.ts +1 -1
  51. package/dist/types/components/icons/CaptureIcon.d.ts +1 -1
  52. package/dist/types/components/icons/CheckSlimIcon.d.ts +1 -1
  53. package/dist/types/components/icons/CloseIcon.d.ts +3 -3
  54. package/dist/types/components/icons/CommentIcon.d.ts +1 -1
  55. package/dist/types/components/icons/EventIcon.d.ts +3 -3
  56. package/dist/types/components/icons/FreeDrawIcon.d.ts +1 -1
  57. package/dist/types/components/icons/GPTIcon.d.ts +1 -1
  58. package/dist/types/components/icons/GPTIconV2.d.ts +1 -1
  59. package/dist/types/components/icons/GPTIconV3.d.ts +1 -1
  60. package/dist/types/components/icons/HighlightIcon.d.ts +1 -1
  61. package/dist/types/components/icons/IdeaIcon.d.ts +1 -1
  62. package/dist/types/components/icons/InvisibleIcon.d.ts +1 -1
  63. package/dist/types/components/icons/MuteIcon.d.ts +1 -1
  64. package/dist/types/components/icons/OpenUrlIcon.d.ts +1 -1
  65. package/dist/types/components/icons/PauseIcon.d.ts +1 -1
  66. package/dist/types/components/icons/PlaneIcon.d.ts +1 -1
  67. package/dist/types/components/icons/StopRecordIcon.d.ts +1 -1
  68. package/dist/types/components/icons/UserIcon.d.ts +1 -1
  69. package/dist/types/components/icons/VerticalDotsIcon.d.ts +1 -1
  70. package/dist/types/components/icons/WarningIcon.d.ts +1 -1
  71. package/dist/types/components/icons/index.d.ts +24 -24
  72. package/dist/types/components/index.d.ts +4 -4
  73. package/dist/types/components/molecules/Alert/Alert.d.ts +1 -1
  74. package/dist/types/components/molecules/Alert/Alert.stories.d.ts +21 -0
  75. package/dist/types/components/molecules/Alert/index.d.ts +1 -1
  76. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.d.ts +11 -11
  77. package/dist/types/components/molecules/CaptureScreen/CaptureScreen.stories.d.ts +21 -21
  78. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +16 -16
  79. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/index.d.ts +1 -1
  80. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/styled.d.ts +12 -12
  81. package/dist/types/components/molecules/CaptureScreen/components/CommentBox/types.d.ts +15 -15
  82. package/dist/types/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +3 -3
  83. package/dist/types/components/molecules/CaptureScreen/components/Cursor/index.d.ts +1 -1
  84. package/dist/types/components/molecules/CaptureScreen/components/Cursor/styled.d.ts +7 -7
  85. package/dist/types/components/molecules/CaptureScreen/components/Cursor/types.d.ts +10 -10
  86. package/dist/types/components/molecules/CaptureScreen/constants.d.ts +34 -34
  87. package/dist/types/components/molecules/CaptureScreen/hooks/useImageEditor.d.ts +5 -5
  88. package/dist/types/components/molecules/CaptureScreen/index.d.ts +1 -1
  89. package/dist/types/components/molecules/CaptureScreen/styled.d.ts +26 -26
  90. package/dist/types/components/molecules/CaptureScreen/themes/black.d.ts +54 -54
  91. package/dist/types/components/molecules/CaptureScreen/themes/white.d.ts +54 -54
  92. package/dist/types/components/molecules/CaptureScreen/types.d.ts +102 -102
  93. package/dist/types/components/molecules/CaptureScreen/utils.d.ts +13 -13
  94. package/dist/types/components/molecules/Cascader/Cascader.d.ts +1 -1
  95. package/dist/types/components/molecules/Cascader/Cascader.stories.d.ts +37 -0
  96. package/dist/types/components/molecules/Cascader/index.d.ts +1 -1
  97. package/dist/types/components/molecules/ChatBox/ChatBox.d.ts +3 -3
  98. package/dist/types/components/molecules/ChatBox/MessageItem.d.ts +5 -5
  99. package/dist/types/components/molecules/ChatBox/constants.d.ts +6 -6
  100. package/dist/types/components/molecules/ChatBox/index.d.ts +1 -1
  101. package/dist/types/components/molecules/ChatBox/styled.d.ts +10 -10
  102. package/dist/types/components/molecules/ChatBox/types.d.ts +32 -32
  103. package/dist/types/components/molecules/DatePicker/DatePicker.d.ts +8 -8
  104. package/dist/types/components/molecules/DatePicker/DatePicker.stories.d.ts +4 -4
  105. package/dist/types/components/molecules/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  106. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.d.ts +28 -28
  107. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.stories.d.ts +5 -5
  108. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/constants.d.ts +53 -53
  109. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/index.d.ts +3 -3
  110. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/styled.d.ts +7 -7
  111. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +14 -14
  112. package/dist/types/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +15 -15
  113. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.d.ts +15 -15
  114. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/AdvancedRangePicker.stories.d.ts +9 -9
  115. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/constants.d.ts +4 -4
  116. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/index.d.ts +2 -2
  117. package/dist/types/components/molecules/DatePicker/components/AdvancedRangePicker/types.d.ts +17 -17
  118. package/dist/types/components/molecules/DatePicker/index.d.ts +3 -3
  119. package/dist/types/components/molecules/Dropdown/Dropdown.d.ts +1 -1
  120. package/dist/types/components/molecules/Dropdown/Dropdown.stories.d.ts +23 -0
  121. package/dist/types/components/molecules/Dropdown/index.d.ts +1 -1
  122. package/dist/types/components/molecules/Modal/Modal.d.ts +1 -1
  123. package/dist/types/components/molecules/Modal/Modal.stories.d.ts +28 -0
  124. package/dist/types/components/molecules/Modal/index.d.ts +1 -1
  125. package/dist/types/components/molecules/PopupDraggable/PopupDraggable.d.ts +6 -6
  126. package/dist/types/components/molecules/PopupDraggable/index.d.ts +1 -1
  127. package/dist/types/components/molecules/PopupDraggable/styled.d.ts +4 -4
  128. package/dist/types/components/molecules/PopupDraggable/types.d.ts +12 -12
  129. package/dist/types/components/molecules/Select/Select.d.ts +15 -15
  130. package/dist/types/components/molecules/Select/Select.stories.d.ts +28 -28
  131. package/dist/types/components/molecules/Select/Test.d.ts +3 -3
  132. package/dist/types/components/molecules/Select/index.d.ts +2 -2
  133. package/dist/types/components/molecules/Select/styled.d.ts +4 -4
  134. package/dist/types/components/molecules/Tabs/Tabs.d.ts +1 -1
  135. package/dist/types/components/molecules/Tabs/index.d.ts +1 -1
  136. package/dist/types/components/molecules/index.d.ts +11 -11
  137. package/dist/types/components/organism/Help/Help.d.ts +5 -5
  138. package/dist/types/components/organism/Help/constants.d.ts +138 -138
  139. package/dist/types/components/organism/Help/index.d.ts +1 -1
  140. package/dist/types/components/organism/Help/styled.d.ts +78 -78
  141. package/dist/types/components/organism/Help/types.d.ts +65 -65
  142. package/dist/types/components/organism/Help/utils.d.ts +14 -14
  143. package/dist/types/components/organism/Table/CrossTabTable/CrossTabTable.d.ts +18 -18
  144. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/CustomCell.d.ts +11 -11
  145. package/dist/types/components/organism/Table/CrossTabTable/components/CustomCell/styled.d.ts +1 -1
  146. package/dist/types/components/organism/Table/CrossTabTable/constants.d.ts +75 -75
  147. package/dist/types/components/organism/Table/CrossTabTable/index.d.ts +1 -1
  148. package/dist/types/components/organism/Table/CrossTabTable/styled.d.ts +1 -1
  149. package/dist/types/components/organism/Table/CrossTabTable/types.d.ts +1 -1
  150. package/dist/types/components/organism/Table/CrossTabTable/utils.d.ts +1 -1
  151. package/dist/types/components/organism/Table/ExplorePivotTable/ExplorePivotTable.d.ts +11 -11
  152. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/CustomCell.d.ts +12 -12
  153. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/index.d.ts +1 -1
  154. package/dist/types/components/organism/Table/ExplorePivotTable/components/CustomCell/styled.d.ts +3 -3
  155. package/dist/types/components/organism/Table/ExplorePivotTable/constants.d.ts +4 -4
  156. package/dist/types/components/organism/Table/ExplorePivotTable/index.d.ts +2 -2
  157. package/dist/types/components/organism/Table/ExplorePivotTable/styled.d.ts +11 -11
  158. package/dist/types/components/organism/Table/ExplorePivotTable/types.d.ts +17 -17
  159. package/dist/types/components/organism/Table/ExplorePivotTable/utils.d.ts +4 -4
  160. package/dist/types/components/organism/Table/Table.d.ts +1 -1
  161. package/dist/types/components/organism/Table/Table.stories.d.ts +39 -0
  162. package/dist/types/components/organism/Table/index.d.ts +2 -1
  163. package/dist/types/components/organism/index.d.ts +2 -2
  164. package/dist/types/constants/index.d.ts +2 -1
  165. package/dist/types/constants/storybook.d.ts +11 -0
  166. package/dist/types/constants/theme.d.ts +12 -12
  167. package/dist/types/hooks/index.d.ts +2 -2
  168. package/dist/types/hooks/useDebounce.d.ts +3 -3
  169. package/dist/types/index.d.ts +1 -1
  170. package/dist/types/locales/i18n.d.ts +73 -73
  171. package/dist/types/locales/translations.d.ts +37 -37
  172. package/dist/types/locales/types.d.ts +15 -15
  173. package/dist/types/services/Ticket.d.ts +67 -67
  174. package/dist/types/services/constants.d.ts +20 -20
  175. package/dist/types/stories/components/TableApiTypeTag/index.d.ts +6 -0
  176. package/dist/types/stories/components/index.d.ts +1 -0
  177. package/dist/types/test.d.ts +3 -3
  178. package/dist/types/types/index.d.ts +6 -6
  179. package/dist/types/utils/color.d.ts +9 -9
  180. package/dist/types/utils/common.d.ts +46 -46
  181. package/dist/types/utils/handleError.d.ts +2 -2
  182. package/dist/types/utils/index.d.ts +3 -3
  183. package/package.json +135 -135
  184. package/dist/types/components/molecules/ChatBox/ask.d.ts +0 -3
  185. package/dist/types/components/molecules/ChatBox/utils.d.ts +0 -0
@@ -1,54 +1,54 @@
1
- export declare const whiteTheme: {
2
- 'common.bi.image': string;
3
- 'common.bisize.width': string;
4
- 'common.bisize.height': string;
5
- 'common.backgroundImage': string;
6
- 'common.backgroundColor': string;
7
- 'common.border': string;
8
- 'header.backgroundImage': string;
9
- 'header.backgroundColor': string;
10
- 'header.border': string;
11
- 'loadButton.backgroundColor': string;
12
- 'loadButton.border': string;
13
- 'loadButton.color': string;
14
- 'loadButton.fontFamily': string;
15
- 'loadButton.fontSize': string;
16
- 'downloadButton.backgroundColor': string;
17
- 'downloadButton.border': string;
18
- 'downloadButton.color': string;
19
- 'downloadButton.fontFamily': string;
20
- 'downloadButton.fontSize': string;
21
- 'menu.normalIcon.color': string;
22
- 'menu.activeIcon.color': string;
23
- 'menu.disabledIcon.color': string;
24
- 'menu.hoverIcon.color': string;
25
- 'menu.iconSize.width': string;
26
- 'menu.iconSize.height': string;
27
- 'submenu.normalIcon.color': string;
28
- 'submenu.activeIcon.color': string;
29
- 'submenu.iconSize.width': string;
30
- 'submenu.iconSize.height': string;
31
- 'submenu.backgroundColor': string;
32
- 'submenu.partition.color': string;
33
- 'submenu.normalLabel.color': string;
34
- 'submenu.normalLabel.fontWeight': string;
35
- 'submenu.activeLabel.color': string;
36
- 'submenu.activeLabel.fontWeight': string;
37
- 'checkbox.border': string;
38
- 'checkbox.backgroundColor': string;
39
- 'range.pointer.color': string;
40
- 'range.bar.color': string;
41
- 'range.subbar.color': string;
42
- 'range.disabledPointer.color': string;
43
- 'range.disabledBar.color': string;
44
- 'range.disabledSubbar.color': string;
45
- 'range.value.color': string;
46
- 'range.value.fontWeight': string;
47
- 'range.value.fontSize': string;
48
- 'range.value.border': string;
49
- 'range.value.backgroundColor': string;
50
- 'range.title.color': string;
51
- 'range.title.fontWeight': string;
52
- 'colorpicker.button.border': string;
53
- 'colorpicker.title.color': string;
54
- };
1
+ export declare const whiteTheme: {
2
+ 'common.bi.image': string;
3
+ 'common.bisize.width': string;
4
+ 'common.bisize.height': string;
5
+ 'common.backgroundImage': string;
6
+ 'common.backgroundColor': string;
7
+ 'common.border': string;
8
+ 'header.backgroundImage': string;
9
+ 'header.backgroundColor': string;
10
+ 'header.border': string;
11
+ 'loadButton.backgroundColor': string;
12
+ 'loadButton.border': string;
13
+ 'loadButton.color': string;
14
+ 'loadButton.fontFamily': string;
15
+ 'loadButton.fontSize': string;
16
+ 'downloadButton.backgroundColor': string;
17
+ 'downloadButton.border': string;
18
+ 'downloadButton.color': string;
19
+ 'downloadButton.fontFamily': string;
20
+ 'downloadButton.fontSize': string;
21
+ 'menu.normalIcon.color': string;
22
+ 'menu.activeIcon.color': string;
23
+ 'menu.disabledIcon.color': string;
24
+ 'menu.hoverIcon.color': string;
25
+ 'menu.iconSize.width': string;
26
+ 'menu.iconSize.height': string;
27
+ 'submenu.normalIcon.color': string;
28
+ 'submenu.activeIcon.color': string;
29
+ 'submenu.iconSize.width': string;
30
+ 'submenu.iconSize.height': string;
31
+ 'submenu.backgroundColor': string;
32
+ 'submenu.partition.color': string;
33
+ 'submenu.normalLabel.color': string;
34
+ 'submenu.normalLabel.fontWeight': string;
35
+ 'submenu.activeLabel.color': string;
36
+ 'submenu.activeLabel.fontWeight': string;
37
+ 'checkbox.border': string;
38
+ 'checkbox.backgroundColor': string;
39
+ 'range.pointer.color': string;
40
+ 'range.bar.color': string;
41
+ 'range.subbar.color': string;
42
+ 'range.disabledPointer.color': string;
43
+ 'range.disabledBar.color': string;
44
+ 'range.disabledSubbar.color': string;
45
+ 'range.value.color': string;
46
+ 'range.value.fontWeight': string;
47
+ 'range.value.fontSize': string;
48
+ 'range.value.border': string;
49
+ 'range.value.backgroundColor': string;
50
+ 'range.title.color': string;
51
+ 'range.title.fontWeight': string;
52
+ 'colorpicker.button.border': string;
53
+ 'colorpicker.title.color': string;
54
+ };
@@ -1,102 +1,102 @@
1
- import ImageEditor from 'tui-image-editor';
2
- import { DRAW_KEYS } from './constants';
3
- import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
4
- import { StreamTrackProps } from 'src/components/organism/Help/types';
5
- interface RecorderConfigProps {
6
- isMute: boolean;
7
- recorder?: MediaRecorder;
8
- streamTracks?: StreamTrackProps;
9
- }
10
- export interface IImageEditorProps {
11
- src?: string;
12
- alt?: string;
13
- recorderConfigs: RecorderConfigProps;
14
- captureType: CaptureTypeProps;
15
- callback: Function;
16
- }
17
- export type CaptureTypeProps = ATTACH_KEYS.CAPTURE | ATTACH_KEYS.RECORD;
18
- export interface IncludeUIOptionProps {
19
- loadImage?: {
20
- path: string;
21
- name: string;
22
- };
23
- theme?: any;
24
- menu?: string[];
25
- initMenu?: string;
26
- uiSize?: {
27
- width: string;
28
- height: string;
29
- };
30
- menuBarPosition?: string;
31
- usageStatistics?: boolean;
32
- }
33
- export interface SelectionStyleConfigProps {
34
- cornerStyle?: string;
35
- cornerSize?: number;
36
- cornerColor?: string;
37
- cornerStrokeColor?: string;
38
- transparentCorners?: boolean;
39
- lineWidth?: number;
40
- borderColor?: string;
41
- rotatingPointOffset?: number;
42
- }
43
- export interface EditorConfigProps {
44
- includeUI?: IncludeUIOptionProps;
45
- cssMaxWidth?: number;
46
- cssMaxHeight?: number;
47
- usageStatistics?: boolean;
48
- selectionStyle?: SelectionStyleConfigProps;
49
- }
50
- export interface DrawItemProps {
51
- key: string;
52
- icon: string;
53
- type?: string;
54
- label?: string;
55
- isShowColorList: boolean;
56
- colorList?: Array<string>;
57
- }
58
- export interface MethodImageEditorProps {
59
- activateShapeMode: Function;
60
- activateTextMode: Function;
61
- getSettings: Function;
62
- }
63
- export interface ImageEditorInstanceProps {
64
- editorInstance: ImageEditor | null;
65
- canvasEditor: any;
66
- methods: MethodImageEditorProps;
67
- }
68
- export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
69
- export type ColorKeys = DRAW_KEYS.HIGHLIGHT | DRAW_KEYS.COMMENT | DRAW_KEYS.PEN | DRAW_KEYS.ARROW | DRAW_KEYS.HIDE;
70
- export interface ShapeOptionProps {
71
- fill?: string;
72
- stroke?: string;
73
- strokeWidth?: number;
74
- width?: number;
75
- height?: number;
76
- rx?: number;
77
- ry?: number;
78
- left?: number;
79
- top?: number;
80
- isRegular?: boolean;
81
- }
82
- interface ArrowTypeProps {
83
- tail?: 'chevron' | 'triangle';
84
- head?: 'chevron' | 'triangle';
85
- }
86
- export interface DrawingModeOptionProps {
87
- width?: number;
88
- color?: string;
89
- arrowType?: ArrowTypeProps;
90
- }
91
- export interface CommentListProps {
92
- id: string;
93
- index: number;
94
- color: string;
95
- content?: string;
96
- isSubmitted: boolean;
97
- left: number;
98
- top: number;
99
- isReverseAxisX: boolean;
100
- isReverseAxisY: boolean;
101
- }
102
- export {};
1
+ import ImageEditor from 'tui-image-editor';
2
+ import { DRAW_KEYS } from './constants';
3
+ import { ATTACH_KEYS } from 'src/components/organism/Help/constants';
4
+ import { StreamTrackProps } from 'src/components/organism/Help/types';
5
+ interface RecorderConfigProps {
6
+ isMute: boolean;
7
+ recorder?: MediaRecorder;
8
+ streamTracks?: StreamTrackProps;
9
+ }
10
+ export interface IImageEditorProps {
11
+ src?: string;
12
+ alt?: string;
13
+ recorderConfigs: RecorderConfigProps;
14
+ captureType: CaptureTypeProps;
15
+ callback: Function;
16
+ }
17
+ export type CaptureTypeProps = ATTACH_KEYS.CAPTURE | ATTACH_KEYS.RECORD;
18
+ export interface IncludeUIOptionProps {
19
+ loadImage?: {
20
+ path: string;
21
+ name: string;
22
+ };
23
+ theme?: any;
24
+ menu?: string[];
25
+ initMenu?: string;
26
+ uiSize?: {
27
+ width: string;
28
+ height: string;
29
+ };
30
+ menuBarPosition?: string;
31
+ usageStatistics?: boolean;
32
+ }
33
+ export interface SelectionStyleConfigProps {
34
+ cornerStyle?: string;
35
+ cornerSize?: number;
36
+ cornerColor?: string;
37
+ cornerStrokeColor?: string;
38
+ transparentCorners?: boolean;
39
+ lineWidth?: number;
40
+ borderColor?: string;
41
+ rotatingPointOffset?: number;
42
+ }
43
+ export interface EditorConfigProps {
44
+ includeUI?: IncludeUIOptionProps;
45
+ cssMaxWidth?: number;
46
+ cssMaxHeight?: number;
47
+ usageStatistics?: boolean;
48
+ selectionStyle?: SelectionStyleConfigProps;
49
+ }
50
+ export interface DrawItemProps {
51
+ key: string;
52
+ icon: string;
53
+ type?: string;
54
+ label?: string;
55
+ isShowColorList: boolean;
56
+ colorList?: Array<string>;
57
+ }
58
+ export interface MethodImageEditorProps {
59
+ activateShapeMode: Function;
60
+ activateTextMode: Function;
61
+ getSettings: Function;
62
+ }
63
+ export interface ImageEditorInstanceProps {
64
+ editorInstance: ImageEditor | null;
65
+ canvasEditor: any;
66
+ methods: MethodImageEditorProps;
67
+ }
68
+ export type ColorListProps = '#0f2eae' | '#212b37' | '#1e6be5' | '#17bb84' | '#f5b108' | '#f71007';
69
+ export type ColorKeys = DRAW_KEYS.HIGHLIGHT | DRAW_KEYS.COMMENT | DRAW_KEYS.PEN | DRAW_KEYS.ARROW | DRAW_KEYS.HIDE;
70
+ export interface ShapeOptionProps {
71
+ fill?: string;
72
+ stroke?: string;
73
+ strokeWidth?: number;
74
+ width?: number;
75
+ height?: number;
76
+ rx?: number;
77
+ ry?: number;
78
+ left?: number;
79
+ top?: number;
80
+ isRegular?: boolean;
81
+ }
82
+ interface ArrowTypeProps {
83
+ tail?: 'chevron' | 'triangle';
84
+ head?: 'chevron' | 'triangle';
85
+ }
86
+ export interface DrawingModeOptionProps {
87
+ width?: number;
88
+ color?: string;
89
+ arrowType?: ArrowTypeProps;
90
+ }
91
+ export interface CommentListProps {
92
+ id: string;
93
+ index: number;
94
+ color: string;
95
+ content?: string;
96
+ isSubmitted: boolean;
97
+ left: number;
98
+ top: number;
99
+ isReverseAxisX: boolean;
100
+ isReverseAxisY: boolean;
101
+ }
102
+ export {};
@@ -1,13 +1,13 @@
1
- import { EditorConfigProps } from './types';
2
- export declare const getEditorConfigs: () => EditorConfigProps;
3
- export declare const initDefaultColors: () => {
4
- highlight: string;
5
- comment: string;
6
- pen: string;
7
- arrow: string;
8
- hide: string;
9
- };
10
- export declare const base64ToFile: (dataUrl: string, filename: string) => File | undefined;
11
- export declare const convertBlobToFile: (blob: Blob, fileName: string) => File;
12
- export declare const generateUniqueId: () => string;
13
- export declare const mergeAudioStreams: (desktopStream: MediaStream, voiceStream: MediaStream) => any[];
1
+ import { EditorConfigProps } from './types';
2
+ export declare const getEditorConfigs: () => EditorConfigProps;
3
+ export declare const initDefaultColors: () => {
4
+ highlight: string;
5
+ comment: string;
6
+ pen: string;
7
+ arrow: string;
8
+ hide: string;
9
+ };
10
+ export declare const base64ToFile: (dataUrl: string, filename: string) => File | undefined;
11
+ export declare const convertBlobToFile: (blob: Blob, fileName: string) => File;
12
+ export declare const generateUniqueId: () => string;
13
+ export declare const mergeAudioStreams: (desktopStream: MediaStream, voiceStream: MediaStream) => any[];
@@ -1 +1 @@
1
- export { Cascader } from 'antd';
1
+ export { Cascader } from 'antd';
@@ -0,0 +1,37 @@
1
+ import React from 'react';
2
+ import type { ComponentMeta, ComponentStory } from '@storybook/react';
3
+ import type { DefaultOptionType } from 'antd/es/cascader';
4
+ declare const _default: ComponentMeta<(<OptionType extends DefaultOptionType | import("rc-cascader/lib/Cascader").BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<import("antd").CascaderProps<OptionType>> & {
5
+ ref?: React.Ref<import("antd/es/cascader").CascaderRef> | undefined;
6
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
7
+ displayName: string;
8
+ SHOW_PARENT: "SHOW_PARENT";
9
+ SHOW_CHILD: "SHOW_CHILD";
10
+ _InternalPanelDoNotUseOrYouWillBeFired: any;
11
+ }>;
12
+ export default _default;
13
+ export declare const Default: ComponentStory<(<OptionType extends DefaultOptionType | import("rc-cascader/lib/Cascader").BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<import("antd").CascaderProps<OptionType>> & {
14
+ ref?: React.Ref<import("antd/es/cascader").CascaderRef> | undefined;
15
+ }) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
16
+ displayName: string;
17
+ SHOW_PARENT: "SHOW_PARENT";
18
+ SHOW_CHILD: "SHOW_CHILD";
19
+ _InternalPanelDoNotUseOrYouWillBeFired: any;
20
+ }>;
21
+ export declare const Basic: ComponentStory<any>;
22
+ export declare const CustomTrigger: ComponentStory<any>;
23
+ export declare const DisabledOption: ComponentStory<any>;
24
+ export declare const Multiple: ComponentStory<any>;
25
+ export declare const Size: ComponentStory<any>;
26
+ export declare const Search: ComponentStory<any>;
27
+ export declare const CustomFieldNames: ComponentStory<any>;
28
+ export declare const Placement: ComponentStory<any>;
29
+ export declare const DefaultValue: ComponentStory<any>;
30
+ export declare const Hover: ComponentStory<any>;
31
+ export declare const ChangeOnSelect: ComponentStory<any>;
32
+ export declare const ShowCheckedStrategy: ComponentStory<any>;
33
+ export declare const CustomRender: ComponentStory<any>;
34
+ export declare const LoadOptionsLazily: ComponentStory<any>;
35
+ export declare const CustomDropdown: ComponentStory<any>;
36
+ export declare const Status: ComponentStory<any>;
37
+ export declare const ShowSearchAPI: ComponentStory<any>;
@@ -1 +1 @@
1
- export { Cascader } from './Cascader';
1
+ export { Cascader } from './Cascader';
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- import { IChatBoxProps } from './types';
3
- export declare const ChatBox: React.FC<IChatBoxProps>;
1
+ import React from 'react';
2
+ import { IChatBoxProps } from './types';
3
+ export declare const ChatBox: React.FC<IChatBoxProps>;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import 'highlight.js/styles/vs2015.css';
3
- import { IChatBoxMessageProps } from './types';
4
- declare const _default: React.NamedExoticComponent<IChatBoxMessageProps>;
5
- export default _default;
1
+ import React from 'react';
2
+ import 'highlight.js/styles/vs2015.css';
3
+ import { IChatBoxMessageProps } from './types';
4
+ declare const _default: React.NamedExoticComponent<IChatBoxMessageProps>;
5
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { Role } from './types';
2
- export declare const CONVERSATION: {
3
- role: Role;
4
- content: string;
5
- }[];
6
- export declare const LIMIT_MESSAGE = 10;
1
+ import { Role } from './types';
2
+ export declare const CONVERSATION: {
3
+ role: Role;
4
+ content: string;
5
+ }[];
6
+ export declare const LIMIT_MESSAGE = 10;
@@ -1 +1 @@
1
- export { ChatBox } from './ChatBox';
1
+ export { ChatBox } from './ChatBox';
@@ -1,10 +1,10 @@
1
- export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
2
- withoutBox?: boolean | undefined;
3
- }, never>;
4
- export declare const ChatBoxHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export declare const ChatBoxBody: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const ChatBoxFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
- export declare const MessageItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
- export declare const WarningWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const TypingCursor: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const ChatBoxWrapper: import("styled-components").StyledComponent<"div", any, {
2
+ withoutBox?: boolean | undefined;
3
+ }, never>;
4
+ export declare const ChatBoxHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
5
+ export declare const ChatBoxBody: import("styled-components").StyledComponent<"div", any, {}, never>;
6
+ export declare const ChatBoxFooter: import("styled-components").StyledComponent<"div", any, {}, never>;
7
+ export declare const MessageItemWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
+ export declare const WarningWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const InputWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const TypingCursor: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,32 +1,32 @@
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
- isPlaceholder?: boolean;
16
- scrollBody: Function;
17
- renderDone: Function;
18
- doAnimation: boolean;
19
- answeringContent: string;
20
- avatar?: string;
21
- idx?: number;
22
- renderType: 'text' | 'markdown';
23
- }
24
- export interface IChatBoxProps {
25
- onClose?: Function;
26
- withoutBox?: boolean;
27
- domain: string;
28
- userId: string | number;
29
- token: string;
30
- avatar?: string;
31
- style?: Record<string, any>;
32
- }
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
+ isPlaceholder?: boolean;
16
+ scrollBody: Function;
17
+ renderDone: Function;
18
+ doAnimation: boolean;
19
+ answeringContent: string;
20
+ avatar?: string;
21
+ idx?: number;
22
+ renderType: 'text' | 'markdown';
23
+ }
24
+ export interface IChatBoxProps {
25
+ onClose?: Function;
26
+ withoutBox?: boolean;
27
+ domain: string;
28
+ userId: string | number;
29
+ token: string;
30
+ avatar?: string;
31
+ style?: Record<string, any>;
32
+ }
@@ -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>;
@@ -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>>;