@antscorp/antsomi-ui 1.3.3-beta.8 → 1.3.3-beta.9
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/0173b5993573afa04880.woff +0 -0
- package/dist/0dfb9214dfd945cd7290.png +1 -0
- package/dist/2883cad25a2b4e87ce5f.eot +0 -0
- package/dist/4f54a37971347e3d7122.png +1 -0
- package/dist/574b7bee0563a9fe9a29.png +1 -0
- package/dist/6b586356e837581204dc.svg +1 -0
- package/dist/72eec5c1c786b45a667f.ttf +0 -0
- package/dist/bc6bf11c6f5e6743aa4c.png +1 -0
- package/dist/dbc405edd6e0806efbc9.svg +1 -0
- package/dist/e32f09119052a55cce3c.png +1 -0
- package/dist/e3851b9384a984c6fdb5.png +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +69 -0
- package/dist/main.css +168 -0
- package/dist/public/icons/2d496b55d85a9545d7311c073af442bb.png +0 -0
- package/dist/public/icons/2fbb4e0927d18e3f8e5c6511ab88d5b3.png +0 -0
- package/dist/public/icons/725a52bd91a3ce534b10833df510e5fa.png +0 -0
- package/dist/public/icons/7d037e0b378e87a82804443636cd0e13.svg +346 -0
- package/dist/public/icons/90553767e0a05b9585a54797cfd9ce51.png +0 -0
- package/dist/public/icons/bb64e23a1ff390a416d765ee556096ab.svg +87 -0
- package/dist/public/icons/d327b24e9c5d8f486f08d253aab58ce6.png +0 -0
- package/dist/public/icons/f1cf266d0a0a53ce07f2dbb859869b7a.png +0 -0
- package/dist/public/icons/placeholder-image.png +0 -0
- package/dist/public/icons/transparent.svg +1 -0
- package/es/components/atoms/Input/Input.d.ts +3 -11
- package/es/components/atoms/Input/Input.js +0 -3
- package/es/components/atoms/Slider/index.d.ts +2 -1
- package/es/components/atoms/Slider/index.js +7 -14
- package/es/components/atoms/SliderV2/index.d.ts +5 -0
- package/es/components/atoms/SliderV2/index.js +23 -0
- package/es/components/atoms/Spin/Spin.d.ts +2 -1
- package/es/components/atoms/index.d.ts +1 -1
- package/es/components/atoms/index.js +1 -1
- package/es/components/common/ConfigProvider/GlobalStyle.js +1 -38
- package/es/components/icons/ArrowGrowIcon.d.ts +2 -1
- package/es/components/icons/AudioRecordIcon.d.ts +2 -1
- package/es/components/icons/BugIcon.d.ts +2 -1
- package/es/components/icons/CameraIcon.d.ts +2 -1
- package/es/components/icons/CaptureIcon.d.ts +2 -1
- package/es/components/icons/CheckSlimIcon.d.ts +2 -1
- package/es/components/icons/CloseIcon.d.ts +2 -1
- package/es/components/icons/CommentIcon.d.ts +2 -1
- package/es/components/icons/EventIcon.d.ts +2 -1
- package/es/components/icons/FreeDrawIcon.d.ts +2 -1
- package/es/components/icons/GPTIcon.d.ts +2 -1
- package/es/components/icons/GPTIconV2.d.ts +2 -1
- package/es/components/icons/GPTIconV3.d.ts +2 -1
- package/es/components/icons/HighlightIcon.d.ts +2 -1
- package/es/components/icons/IdeaIcon.d.ts +2 -1
- package/es/components/icons/InvisibleIcon.d.ts +2 -1
- package/es/components/icons/MuteIcon.d.ts +2 -1
- package/es/components/icons/OpenUrlIcon.d.ts +2 -1
- package/es/components/icons/PauseIcon.d.ts +2 -1
- package/es/components/icons/PlaneIcon.d.ts +2 -1
- package/es/components/icons/RequestIcon.d.ts +2 -1
- package/es/components/icons/StopRecordIcon.d.ts +2 -1
- package/es/components/icons/UserIcon.d.ts +2 -1
- package/es/components/icons/VerticalDotsIcon.d.ts +2 -1
- package/es/components/icons/WarningIcon.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/CommentBox/CommentBox.d.ts +2 -1
- package/es/components/molecules/CaptureScreen/components/Cursor/Cursor.d.ts +2 -1
- package/es/components/molecules/Collapse/Collapse.d.ts +3 -3
- package/es/components/molecules/Collapse/Collapse.js +0 -9
- package/es/components/molecules/Modal/styled.d.ts +1 -1
- package/es/components/molecules/Select/Select.d.ts +0 -3
- package/es/components/molecules/Select/Select.js +2 -23
- package/es/components/molecules/Select/Test.d.ts +2 -1
- package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
- package/es/components/molecules/UploadImage/MediaIcon.d.ts +2 -1
- package/es/components/molecules/index.d.ts +0 -1
- package/es/components/molecules/index.js +0 -1
- package/es/constants/storybook.d.ts +2 -1
- package/es/constants/theme.js +3 -25
- package/es/test.d.ts +2 -1
- package/es/test.js +50 -141
- package/package.json +1 -1
- package/es/components/atoms/Flex/Flex.d.ts +0 -2
- package/es/components/atoms/Flex/Flex.js +0 -1
- package/es/components/atoms/Flex/index.d.ts +0 -1
- package/es/components/atoms/Flex/index.js +0 -1
- package/es/components/molecules/Form/Form.d.ts +0 -1
- package/es/components/molecules/Form/Form.js +0 -1
- package/es/components/molecules/Form/index.d.ts +0 -1
- package/es/components/molecules/Form/index.js +0 -1
|
Binary file
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="100" height="300" viewBox="0 0 100 300" preserveAspectRatio="none">
|
|
2
|
+
<style type="text/css">
|
|
3
|
+
.st0{fill:#B2B2B2;}
|
|
4
|
+
.st1{fill:#9B9B9B;}
|
|
5
|
+
</style>
|
|
6
|
+
<path d="M53.7,36.8v3.8h3.8l11.1-11.1l-3.8-3.8L53.7,36.8z M71.4,26.5c0.4-0.4,0.4-1,0-1.4l0,0L69,22.8c-0.4-0.4-1-0.4-1.4,0l0,0
|
|
7
|
+
l-1.8,1.8l3.8,3.8L71.4,26.5z"/>
|
|
8
|
+
<path d="M5.9,31.1H9L7.5,27L5.9,31.1z M13.5,22.5h-12C0.7,22.5,0,23.2,0,24v12c0,0.8,0.7,1.5,1.5,1.5h12c0.8,0,1.5-0.7,1.5-1.5V24
|
|
9
|
+
C15,23.2,14.3,22.5,13.5,22.5z M10.5,34.9l-0.9-2.3H5.4l-0.8,2.3H3l3.8-9.8h1.4l3.8,9.8H10.5z"/>
|
|
10
|
+
<path d="M95.6,8.9l-9-8.9l-1.4,1.4l2.4,2.4L82.5,9c-0.6,0.6-0.6,1.5,0,2.1l0,0l5.5,5.5c0.3,0.3,0.7,0.4,1.1,0.4s0.8-0.2,1.1-0.4
|
|
11
|
+
l5.5-5.5C96.2,10.5,96.2,9.5,95.6,8.9L95.6,8.9z M84.2,10L89,5.2l4.8,4.8H84.2z M98,11.5c0,0-2,2.2-2,3.5c0,1.1,0.9,2,2,2s2-0.9,2-2
|
|
12
|
+
C100,13.7,98,11.5,98,11.5z"/>
|
|
13
|
+
<path d="M95.2,26.7L91,22.5l-4.2,4.2C85.6,27.9,85,29.5,85,31s0.6,3.1,1.8,4.3c2.3,2.3,6.1,2.4,8.5,0l0,0C96.4,34,97,32.5,97,31
|
|
14
|
+
S96.4,27.9,95.2,26.7L95.2,26.7z M86.5,31.2c0-1.5,0.5-2.5,1.3-3.3l3.2-3.2l3.2,3.3c0.9,0.9,1.3,1.8,1.3,3.3L86.5,31.2L86.5,31.2z"
|
|
15
|
+
/>
|
|
16
|
+
<g transform="translate(138 2337)">
|
|
17
|
+
</g>
|
|
18
|
+
<path d="M4,8h4.1L6,2.5L4,8z M10,13l-1.1-3H3.2l-1.1,3H0L5.1,0H7l5.1,13H10z"/>
|
|
19
|
+
<path d="M27.6,9.8h13.5V8.3H27.6V9.8z M27.6,12h13.5v-0.8H27.6V12z M27.6,6.8h13.5V4.5H27.6V6.8z M27.6,0v3h13.5V0H27.6z"/>
|
|
20
|
+
<path d="M67.9,12h1.5v1.5h-1.5V12z M67.9,10.5h1.5V9h-1.5V10.5z M55.9,7.5h1.5V6h-1.5V7.5z M55.9,10.5h1.5V9h-1.5V10.5z M55.9,4.5
|
|
21
|
+
h1.5V3h-1.5V4.5z M55.9,1.5h1.5V0h-1.5V1.5z M58.9,1.5h1.5V0h-1.5V1.5z M64.9,13.5h1.5V12h-1.5V13.5z M61.9,13.5h1.5V12h-1.5V13.5z
|
|
22
|
+
M64.9,13.5h1.5V12h-1.5V13.5z M58.9,13.5h1.5V12h-1.5V13.5z M55.9,13.5h1.5V12h-1.5V13.5z M69.4,3.8c0-2.1-1.7-3.8-3.8-3.8h-3.8
|
|
23
|
+
v1.5h3.8c1.2,0,2.3,1,2.3,2.3v3.8h1.5V3.8z"/>
|
|
24
|
+
<path d="M27.6,31.5h3.8V30h-3.8V31.5z M32.5,31.5h3.8V30h-3.8V31.5z M37.4,31.5h3.8V30h-3.8V31.5z M27.6,34.5h1.5V33h-1.5V34.5z
|
|
25
|
+
M30.6,34.5h1.5V33h-1.5C30.6,33,30.6,34.5,30.6,34.5z M33.6,34.5h1.5V33h-1.5V34.5z M36.6,34.5h1.5V33h-1.5V34.5z M39.6,34.5h1.5
|
|
26
|
+
V33h-1.5V34.5z M27.6,28.5h6V27h-6C27.6,27,27.6,28.5,27.6,28.5z M35.1,28.5h6V27h-6V28.5z M27.6,22.5v3h13.5v-3H27.6z"/>
|
|
27
|
+
<g>
|
|
28
|
+
<path class="st0" d="M0,46.1v5v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-5H0z M17.1,63.1H0.9v-2H17v2H17.1z M17.1,60.1H0.9
|
|
29
|
+
v-2H17v2H17.1z M17.1,57.1H0.9v-2H17v2H17.1z M17.1,54.1H0.9v-2H17v2H17.1z M0.9,51.1V47H17v4.1H0.9z"/>
|
|
30
|
+
<g>
|
|
31
|
+
<path d="M0,46.1h18v3H0V46.1z"/>
|
|
32
|
+
</g>
|
|
33
|
+
</g>
|
|
34
|
+
<g>
|
|
35
|
+
<path class="st0" d="M54.7,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H54.7z M71.7,63.1H55.6v-2h16.1V63.1z
|
|
36
|
+
M71.7,60.1H55.6v-2h16.1V60.1z M71.7,57.1H55.6v-2h16.1V57.1z M71.7,54.1H55.6v-2h16.1V54.1z M71.7,51.1H55.6v-2h16.1V51.1z"/>
|
|
37
|
+
<g>
|
|
38
|
+
<rect x="55.6" y="61.1" width="16.1" height="2"/>
|
|
39
|
+
<rect x="55.6" y="55.1" width="16.1" height="2"/>
|
|
40
|
+
<rect x="55.6" y="49.1" width="16.1" height="2"/>
|
|
41
|
+
</g>
|
|
42
|
+
</g>
|
|
43
|
+
<g>
|
|
44
|
+
<path class="st0" d="M82,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H82z M99.1,63.1H82.9v-2H99L99.1,63.1
|
|
45
|
+
L99.1,63.1z M99.1,60.1H82.9v-2H99L99.1,60.1L99.1,60.1z M99.1,57.1H82.9v-2H99L99.1,57.1L99.1,57.1z M99.1,54.1H82.9v-2H99
|
|
46
|
+
L99.1,54.1L99.1,54.1z M99.1,51.1H82.9v-2H99L99.1,51.1L99.1,51.1z"/>
|
|
47
|
+
<g>
|
|
48
|
+
<rect x="82.9" y="58.1" width="16.1" height="2"/>
|
|
49
|
+
<rect x="82.9" y="52.1" width="16.1" height="2"/>
|
|
50
|
+
</g>
|
|
51
|
+
</g>
|
|
52
|
+
<g>
|
|
53
|
+
<path class="st0" d="M27.3,46.1v3v2v1v2v1v2v1v2v1V64h18v-2.9v-1v-2v-1v-2v-1v-2v-1v-2v-3H27.3z M44.4,63.1H28.3v-2h16.1V63.1z
|
|
54
|
+
M44.4,60.1H28.3v-2h16.1V60.1z M44.4,57.1H28.3v-2h16.1V57.1z M44.4,54.1H28.3v-2h16.1V54.1z M44.4,51.1H28.3v-2h16.1V51.1z"/>
|
|
55
|
+
<g>
|
|
56
|
+
<rect x="28.3" y="51.1" width="16.1" height="1"/>
|
|
57
|
+
<rect x="28.3" y="54.1" width="16.1" height="1"/>
|
|
58
|
+
<rect x="28.3" y="57.1" width="16.1" height="1"/>
|
|
59
|
+
<rect x="28.3" y="60.1" width="16.1" height="1"/>
|
|
60
|
+
</g>
|
|
61
|
+
</g>
|
|
62
|
+
<g>
|
|
63
|
+
<polygon class="st0" points="30.3,86.1 30.3,73.1 27.3,73.1 27.3,86.1 27.3,89.1 30.3,89.1 43.3,89.1 43.3,86.1 "/>
|
|
64
|
+
<path d="M30.3,74.1v1h2v2h-2v1h2v2h-2v1h2v2h-2v1h2v2h1v-2h2v2h1v-2h2v2h1v-2h2v2h1v-12H30.3z M35.3,83.1h-2v-2h2V83.1z M35.3,80.1
|
|
65
|
+
h-2v-2h2V80.1z M35.3,77.1h-2v-2h2V77.1z M38.3,83.1h-2v-2h2V83.1z M38.3,80.1h-2v-2h2V80.1z M38.3,77.1h-2v-2h2V77.1z M41.3,83.1
|
|
66
|
+
h-2v-2h2V83.1z M41.3,80.1h-2v-2h2V80.1z M41.3,77.1h-2v-2h2V77.1z"/>
|
|
67
|
+
</g>
|
|
68
|
+
<g>
|
|
69
|
+
<polygon points="3,86.1 3,73.1 0,73.1 0,86.1 0,89.1 3,89.1 16,89.1 16,86.1 "/>
|
|
70
|
+
<path class="st0" d="M3,74.1v1h2v2H3v1h2v2H3v1h2v2H3v1h2v2h1v-2h2v2h1v-2h2v2h1v-2h2v2h1v-12H3z M8,83.1H6v-2h2V83.1z M8,80.1H6
|
|
71
|
+
v-2h2V80.1z M8,77.1H6v-2h2V77.1z M11,83.1H9v-2h2V83.1z M11,80.1H9v-2h2V80.1z M11,77.1H9v-2h2V77.1z M14,83.1h-2v-2h2V83.1z
|
|
72
|
+
M14,80.1h-2v-2h2V80.1z M14,77.1h-2v-2h2V77.1z"/>
|
|
73
|
+
</g>
|
|
74
|
+
<path d="M52.6,77.1h2v-2h-2V77.1z M52.6,81.1h2v-2h-2V81.1z M52.6,73.1h2v-2C53.5,71.1,52.6,72,52.6,73.1z M72.6,71.1v2h2
|
|
75
|
+
C74.6,72,73.8,71.1,72.6,71.1z M60.6,89.1h2v-2h-2V89.1z M52.6,85.1h2v-2h-2V85.1z M54.6,89.1v-2h-2C52.6,88.2,53.5,89.1,54.6,89.1z
|
|
76
|
+
M52.6,75.1v3h22v-3H52.6z M56.6,71.1v18h6v-18H56.6z M72.6,85.1h2v-2h-2V85.1z M60.6,73.1h2v-2h-2V73.1z M56.6,89.1h2v-2h-2V89.1z
|
|
77
|
+
M56.6,73.1h2v-2h-2V73.1z M72.6,89.1c1.1,0,2-0.9,2-2h-2V89.1z M72.6,81.1h2v-2h-2V81.1z M72.6,77.1h2v-2h-2V77.1z M64.6,89.1h2v-2
|
|
78
|
+
h-2V89.1z M64.6,73.1h2v-2h-2V73.1z M68.6,89.1h2v-2h-2V89.1z M68.6,73.1h2v-2h-2V73.1z"/>
|
|
79
|
+
<g>
|
|
80
|
+
<path d="M83,80.1h7v9h-7V80.1z M92,80.1h7v9h-7V80.1z"/>
|
|
81
|
+
<path class="st1" d="M82,83.1h18v3H82V83.1z"/>
|
|
82
|
+
</g>
|
|
83
|
+
<g>
|
|
84
|
+
<path class="st1" d="M1,98.3h7v9H1V98.3z M10,98.3h7v9h-7V98.3z"/>
|
|
85
|
+
<path d="M0,101.3h8v3H0V101.3z M10,101.3h8v3h-8V101.3z"/>
|
|
86
|
+
</g>
|
|
87
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg height="10" version="1.1" viewBox="0 0 512 512" width="10" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path fill="currentColor" fill-opacity=".125" d="M0 256h256v256H0z"></path><path fill="currentColor" fill-opacity=".25" d="M256 256h256v256H256z"></path><path fill="currentColor" fill-opacity=".125" d="M256 0h256v256H256z"></path><path fill="currentColor" fill-opacity=".25" d="M0 0h256v256H0z"></path></svg>
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="hoist-non-react-statics" />
|
|
2
1
|
import React, { ReactNode } from 'react';
|
|
3
|
-
import { InputProps as AntdInputProps
|
|
2
|
+
import { InputProps as AntdInputProps } from 'antd';
|
|
4
3
|
export interface InputProps extends AntdInputProps {
|
|
5
4
|
noborder?: 'true' | 'false' | boolean;
|
|
6
5
|
debounce?: number;
|
|
@@ -12,17 +11,10 @@ export interface InputProps extends AntdInputProps {
|
|
|
12
11
|
errorMsg?: string;
|
|
13
12
|
disableUndo?: boolean;
|
|
14
13
|
}
|
|
15
|
-
export declare const Input:
|
|
14
|
+
export declare const Input: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<AntdInputProps & React.RefAttributes<import("antd").InputRef>> & {
|
|
16
15
|
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
17
16
|
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
18
17
|
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
19
18
|
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
20
|
-
}, any, InputProps, never
|
|
21
|
-
Group: React.FC<import("antd/es/input").GroupProps>;
|
|
22
|
-
Search: React.ForwardRefExoticComponent<import("antd/es/input").SearchProps & React.RefAttributes<import("antd").InputRef>>;
|
|
23
|
-
TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
24
|
-
Password: React.ForwardRefExoticComponent<import("antd/es/input").PasswordProps & React.RefAttributes<import("antd").InputRef>>;
|
|
25
|
-
}, {}> & {
|
|
26
|
-
DefaultInput: typeof AntdInput;
|
|
27
|
-
};
|
|
19
|
+
}, any, InputProps, never>;
|
|
28
20
|
export declare const TextArea: React.ForwardRefExoticComponent<import("antd/es/input").TextAreaProps & React.RefAttributes<import("antd/es/input/TextArea").TextAreaRef>>;
|
|
@@ -13,8 +13,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
13
13
|
/* eslint-disable react/destructuring-assignment */
|
|
14
14
|
// Libraries
|
|
15
15
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
16
|
-
// Types
|
|
17
|
-
import { Input as AntdInput } from 'antd';
|
|
18
16
|
// Components
|
|
19
17
|
import { RequiredLabel, Text } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
20
18
|
// Utils
|
|
@@ -91,5 +89,4 @@ OriginInput.defaultProps = {
|
|
|
91
89
|
};
|
|
92
90
|
export const Input = OriginInput;
|
|
93
91
|
Input.TextArea = StyledInput.TextArea;
|
|
94
|
-
Input.DefaultInput = AntdInput;
|
|
95
92
|
export const { TextArea } = StyledInput;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SliderRangeProps, SliderSingleProps } from 'antd/es/slider';
|
|
3
|
-
export interface SliderProps extends SliderSingleProps {
|
|
3
|
+
export interface SliderProps extends Omit<SliderSingleProps, 'tooltipVisible'> {
|
|
4
|
+
tooltipVisible?: boolean | 'default';
|
|
4
5
|
}
|
|
5
6
|
export declare const Slider: React.FC<SliderProps | SliderRangeProps>;
|
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
// Libraries
|
|
13
2
|
import React, { memo, useMemo } from 'react';
|
|
14
3
|
// Antd Components
|
|
15
4
|
import { Slider as AntdSlider } from 'antd';
|
|
16
5
|
// Styled
|
|
17
6
|
import { SliderWrapper } from './styled';
|
|
7
|
+
import { omit } from 'lodash';
|
|
18
8
|
export const Slider = memo(props => {
|
|
19
|
-
const { range, value, min = 0, max = 0, className } = props
|
|
9
|
+
const { range, value, min = 0, max = 0, className, tooltipVisible } = props;
|
|
20
10
|
const isNegative = useMemo(() => !!(!range && min < 0), [range, min]);
|
|
21
11
|
const calculateWidth = useMemo(() => ((value || 0) * 100) / (Math.abs(max) + Math.abs(min) || 1), [min, max, value]);
|
|
12
|
+
const restProps = tooltipVisible === 'default' ? omit(props, ['tooltipVisible']) : props;
|
|
22
13
|
if (isNegative) {
|
|
23
14
|
return (React.createElement(SliderWrapper, { isNegative: true, width: calculateWidth, className: className },
|
|
24
|
-
React.createElement(AntdSlider, Object.assign({
|
|
15
|
+
React.createElement(AntdSlider, Object.assign({}, omit(restProps, ['marks', 'className']), { marks: {
|
|
16
|
+
0: ' ',
|
|
17
|
+
} }))));
|
|
25
18
|
}
|
|
26
19
|
return (React.createElement(SliderWrapper, { className: className },
|
|
27
|
-
React.createElement(AntdSlider, Object.assign({},
|
|
20
|
+
React.createElement(AntdSlider, Object.assign({}, restProps))));
|
|
28
21
|
});
|
|
29
22
|
Slider.defaultProps = {
|
|
30
23
|
tooltipVisible: false,
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Libraries
|
|
2
|
+
import React, { useState } from 'react';
|
|
3
|
+
// Antd Components
|
|
4
|
+
import { Slider as AntdSlider } from 'antd';
|
|
5
|
+
// React.FC<SliderProps>
|
|
6
|
+
export const SliderV2 = props => {
|
|
7
|
+
const [value, setValue] = useState(0);
|
|
8
|
+
// console.log('sliderRef:: ', sliderRef);
|
|
9
|
+
// const min = props.min || 0;
|
|
10
|
+
// const max = props.max || 100;
|
|
11
|
+
const { min, max, onChange, styles, range } = props;
|
|
12
|
+
if (min && max && min < 0 && max > 0 && !range) {
|
|
13
|
+
const sliderWidth = max - min;
|
|
14
|
+
const leftTrackPosition = `${(Math.abs(value > 0 ? min : min - value) / sliderWidth) * 100}%`;
|
|
15
|
+
const sliderTrackWidth = `${(Math.abs(value) / sliderWidth) * 100}%`;
|
|
16
|
+
return (React.createElement(AntdSlider, Object.assign({ value: value, onChange: value => {
|
|
17
|
+
setValue(value);
|
|
18
|
+
if (onChange)
|
|
19
|
+
onChange(value);
|
|
20
|
+
}, styles: Object.assign({ track: Object.assign({ left: leftTrackPosition, width: sliderTrackWidth }, styles === null || styles === void 0 ? void 0 : styles.track) }, styles), marks: { 0: ' ' } }, props)));
|
|
21
|
+
}
|
|
22
|
+
return React.createElement(AntdSlider, Object.assign({}, props));
|
|
23
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SpinProps as AntdSpinProps } from 'antd';
|
|
2
3
|
export interface TSpinProps extends AntdSpinProps {
|
|
3
4
|
indicatorSize?: number;
|
|
4
5
|
children?: any;
|
|
5
6
|
}
|
|
6
7
|
export declare const Spin: {
|
|
7
|
-
(props: TSpinProps): JSX.Element;
|
|
8
|
+
(props: TSpinProps): React.JSX.Element;
|
|
8
9
|
defaultProps: {};
|
|
9
10
|
};
|
|
@@ -10,7 +10,7 @@ import { far } from '@fortawesome/free-regular-svg-icons';
|
|
|
10
10
|
import { fab } from '@fortawesome/free-brands-svg-icons';
|
|
11
11
|
library.add(fas, far, fab);
|
|
12
12
|
export const GlobalStyle = () => {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30
|
|
13
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
|
|
14
14
|
return (React.createElement(Global, { styles: css `
|
|
15
15
|
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');
|
|
16
16
|
|
|
@@ -486,42 +486,5 @@ export const GlobalStyle = () => {
|
|
|
486
486
|
.ant-message {
|
|
487
487
|
z-index: 999999 !important;
|
|
488
488
|
}
|
|
489
|
-
|
|
490
|
-
/* Collapse */
|
|
491
|
-
.antsomi-collapse-header {
|
|
492
|
-
font-size: 14px;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
.antsomi-collapse {
|
|
496
|
-
&.antsomi-collapse-borderless {
|
|
497
|
-
border-bottom: 1px solid ${(_31 = THEME.token) === null || _31 === void 0 ? void 0 : _31.gray5};
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
> .antsomi-collapse-item > .antsomi-collapse-header .antsomi-collapse-arrow {
|
|
501
|
-
transition: all 200ms;
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
/* Switch */
|
|
506
|
-
.antsomi-switch {
|
|
507
|
-
border: 2px solid ${(_32 = THEME.token) === null || _32 === void 0 ? void 0 : _32.colorPrimary} !important;
|
|
508
|
-
|
|
509
|
-
&.antsomi-switch-checked {
|
|
510
|
-
> .antsomi-switch-handle {
|
|
511
|
-
&::before {
|
|
512
|
-
background-color: ${(_33 = THEME.token) === null || _33 === void 0 ? void 0 : _33.bw0} !important;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
/* Tabs */
|
|
519
|
-
.antsomi-tabs {
|
|
520
|
-
.antsomi-tabs-tab {
|
|
521
|
-
&.antsomi-tabs-tab-active {
|
|
522
|
-
font-weight: bold;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
489
|
` }));
|
|
527
490
|
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const ArrowGrowIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AudioRecordIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const BugIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CameraIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CaptureIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CheckSlimIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CommentIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const FreeDrawIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const GPTIcon: () => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const GPTIconV2: () => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const GPTIconV3: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const HighlightIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const IdeaIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const InvisibleIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const MuteIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const OpenUrlIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PauseIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const PlaneIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const RequestIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StopRecordIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const UserIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const VerticalDotsIcon: (props: any) => React.JSX.Element;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const WarningIcon: (props: any) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Collapse:
|
|
3
|
-
Panel:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Collapse: import("react").ForwardRefExoticComponent<import("antd").CollapseProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Panel: import("react").ForwardRefExoticComponent<import("antd").CollapsePanelProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
4
|
};
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import React from 'react';
|
|
3
1
|
import { Collapse as AntdCollapse } from 'antd';
|
|
4
|
-
// Icons
|
|
5
|
-
import { Icon } from '../../atoms';
|
|
6
2
|
export const Collapse = AntdCollapse;
|
|
7
|
-
Collapse.defaultProps = {
|
|
8
|
-
expandIcon({ isActive }) {
|
|
9
|
-
return (React.createElement(Icon, { type: "icon-ants-expand-more", size: 24, style: { transform: `rotate(${isActive ? -180 : 0}deg)`, color: '#666' } }));
|
|
10
|
-
},
|
|
11
|
-
};
|
|
@@ -10,6 +10,6 @@ export declare const StyledModal: import("styled-components").StyledComponent<im
|
|
|
10
10
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
11
11
|
destroyAll: () => void;
|
|
12
12
|
config: typeof import("antd/es/modal/confirm").modalGlobalConfig;
|
|
13
|
-
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) =>
|
|
13
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/modal/PurePanel").PurePanelProps) => import("react").JSX.Element;
|
|
14
14
|
}, any, CustomModalProps, never>;
|
|
15
15
|
export declare const WrapperSpin: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { SelectProps as AntdSelectProps } from 'antd';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TextProps } from '../../atoms/Text';
|
|
4
3
|
export interface SelectProps extends AntdSelectProps {
|
|
5
|
-
label?: string | React.ReactNode;
|
|
6
|
-
labelProps?: TextProps;
|
|
7
4
|
}
|
|
8
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> & {
|
|
9
6
|
children?: React.ReactNode;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
var _a;
|
|
13
2
|
// Libraries
|
|
14
3
|
import { Select as AntdSelect } from 'antd';
|
|
15
4
|
import React from 'react';
|
|
16
|
-
// Components
|
|
17
|
-
import { Flex } from '@antscorp/antsomi-ui/es/components/atoms';
|
|
18
|
-
import { Text } from '../../atoms/Text';
|
|
19
5
|
// Icons
|
|
20
6
|
import Icon from '@antscorp/icons';
|
|
21
7
|
// Constants
|
|
22
|
-
import { THEME } from '
|
|
23
|
-
// Styled
|
|
8
|
+
import { THEME } from '../../../constants';
|
|
24
9
|
import { StyledTag, TagCloseBtn } from './styled';
|
|
25
10
|
const tagRender = (props) => {
|
|
26
11
|
const { label, closable, onClose } = props;
|
|
@@ -33,17 +18,11 @@ const tagRender = (props) => {
|
|
|
33
18
|
fontSize: 10,
|
|
34
19
|
} })) }, label));
|
|
35
20
|
};
|
|
36
|
-
const CustomSelect = props => {
|
|
37
|
-
const { label, labelProps } = props, rest = __rest(props, ["label", "labelProps"]);
|
|
38
|
-
return (React.createElement(Flex, { vertical: true, gap: 4 },
|
|
39
|
-
typeof label === 'string' ? React.createElement(Text, Object.assign({}, labelProps), label) : label,
|
|
40
|
-
React.createElement(AntdSelect, Object.assign({}, rest))));
|
|
41
|
-
};
|
|
21
|
+
const CustomSelect = props => React.createElement(AntdSelect, Object.assign({}, props));
|
|
42
22
|
const Select = CustomSelect;
|
|
43
23
|
Select.OptGroup = AntdSelect.OptGroup;
|
|
44
24
|
Select.Option = AntdSelect.Option;
|
|
45
25
|
Select.defaultProps = {
|
|
46
|
-
labelProps: { color: '#66666' },
|
|
47
26
|
suffixIcon: (React.createElement(Icon, { type: "icon-ants-expand-more", style: { fontSize: 16, color: (_a = THEME.token) === null || _a === void 0 ? void 0 : _a.bw10 } })),
|
|
48
27
|
tagRender,
|
|
49
28
|
};
|
|
@@ -7,5 +7,5 @@ export declare const TreeSelect: (<ValueType = any, OptionType extends import("r
|
|
|
7
7
|
SHOW_ALL: "SHOW_ALL";
|
|
8
8
|
SHOW_PARENT: "SHOW_PARENT";
|
|
9
9
|
SHOW_CHILD: "SHOW_CHILD";
|
|
10
|
-
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) =>
|
|
10
|
+
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
|
|
11
11
|
};
|
|
@@ -31,7 +31,6 @@ export { FontFamilySelect } from './FontFamilySelect';
|
|
|
31
31
|
export { TextDecorationSelect } from './TextDecorationSelect';
|
|
32
32
|
export { TextTransformSelect } from './TextTransformSelect';
|
|
33
33
|
export { FontSetting, FontSettingEdit } from './FontSetting';
|
|
34
|
-
export { Form } from './Form';
|
|
35
34
|
export type { AdvancedPickerProps, TAdvancedPickerOption, TAdvancedRangePickerTimeRange, } from './DatePicker';
|
|
36
35
|
export type { ColorPickerProps } from './ColorPicker';
|
|
37
36
|
export type { AlignEditProps, AlignSettingProps } from './AlignSetting';
|
|
@@ -31,4 +31,3 @@ export { FontFamilySelect } from './FontFamilySelect';
|
|
|
31
31
|
export { TextDecorationSelect } from './TextDecorationSelect';
|
|
32
32
|
export { TextTransformSelect } from './TextTransformSelect';
|
|
33
33
|
export { FontSetting, FontSettingEdit } from './FontSetting';
|
|
34
|
-
export { Form } from './Form';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export declare const TABLE_API_COLUMNS: ({
|
|
2
3
|
title: string;
|
|
3
4
|
dataIndex: string;
|
|
@@ -7,5 +8,5 @@ export declare const TABLE_API_COLUMNS: ({
|
|
|
7
8
|
title: string;
|
|
8
9
|
dataIndex: string;
|
|
9
10
|
key: string;
|
|
10
|
-
render: (text: any) => JSX.Element;
|
|
11
|
+
render: (text: any) => React.JSX.Element;
|
|
11
12
|
})[];
|