@agentscope-ai/design 1.0.8 → 1.0.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/lib/antd/styles/alert.style.d.ts +2 -10
- package/lib/antd/styles/alert.style.js +11 -12
- package/lib/antd/styles/breadcrumb.style.d.ts +2 -18
- package/lib/antd/styles/breadcrumb.style.js +13 -15
- package/lib/antd/styles/button.style.d.ts +2 -80
- package/lib/antd/styles/button.style.js +63 -47
- package/lib/antd/styles/dropdown.style.d.ts +2 -15
- package/lib/antd/styles/dropdown.style.js +27 -16
- package/lib/antd/styles/floatButton.style.d.ts +2 -8
- package/lib/antd/styles/floatButton.style.js +13 -12
- package/lib/antd/styles/index.style.d.ts +4 -18
- package/lib/antd/styles/index.style.js +52 -53
- package/lib/antd/styles/inputNumber.style.d.ts +2 -18
- package/lib/antd/styles/inputNumber.style.js +23 -17
- package/lib/antd/styles/message.style.d.ts +2 -5
- package/lib/antd/styles/message.style.js +9 -10
- package/lib/antd/styles/notification.style.d.ts +2 -46
- package/lib/antd/styles/notification.style.js +31 -29
- package/lib/antd/styles/popover.style.d.ts +2 -13
- package/lib/antd/styles/popover.style.js +15 -14
- package/lib/antd/styles/radio.style.d.ts +2 -24
- package/lib/antd/styles/radio.style.js +29 -18
- package/lib/antd/styles/segment.style.d.ts +2 -7
- package/lib/antd/styles/segment.style.js +11 -12
- package/lib/antd/styles/select.style.d.ts +2 -31
- package/lib/antd/styles/select.style.js +51 -28
- package/lib/antd/styles/slider.style.d.ts +2 -22
- package/lib/antd/styles/slider.style.js +19 -21
- package/lib/antd/styles/table.style.d.ts +2 -5
- package/lib/antd/styles/table.style.js +7 -10
- package/lib/antd/styles/tooltip.style.d.ts +2 -8
- package/lib/antd/styles/tooltip.style.js +13 -11
- package/lib/antd/themes/bailianTheme.json +1 -1
- package/lib/antd/themes/generateThemeByToken.js +1 -1
- package/lib/components/commonComponents/AlertDialog/demo/demo1.js +13 -79
- package/lib/components/commonComponents/AlertDialog/demo/demo2.js +44 -64
- package/lib/components/commonComponents/AlertDialog/index.d.ts +14 -1
- package/lib/components/commonComponents/AlertDialog/index.js +25 -17
- package/lib/components/commonComponents/AlertDialog/index.style.d.ts +1 -17
- package/lib/components/commonComponents/AlertDialog/index.style.js +16 -30
- package/lib/components/commonComponents/Anchor/demo/demo1.d.ts +0 -4
- package/lib/components/commonComponents/Anchor/demo/demo1.js +3 -4
- package/lib/components/commonComponents/Anchor/demo/demo2.d.ts +0 -4
- package/lib/components/commonComponents/Anchor/demo/demo2.js +3 -5
- package/lib/components/commonComponents/Anchor/index.js +7 -3
- package/lib/components/commonComponents/Anchor/index.style.d.ts +1 -14
- package/lib/components/commonComponents/Anchor/index.style.js +18 -23
- package/lib/components/commonComponents/Avatar/index.js +11 -7
- package/lib/components/commonComponents/Avatar/index.style.d.ts +1 -7
- package/lib/components/commonComponents/Avatar/index.style.js +6 -21
- package/lib/components/commonComponents/Breadcrumb/index.js +9 -6
- package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +1 -117
- package/lib/components/commonComponents/Breadcrumb/index.style.js +32 -61
- package/lib/components/commonComponents/Card/index.js +23 -20
- package/lib/components/commonComponents/Card/index.style.d.ts +1 -71
- package/lib/components/commonComponents/Card/index.style.js +24 -46
- package/lib/components/commonComponents/Checkbox/index.js +13 -10
- package/lib/components/commonComponents/Checkbox/index.style.d.ts +1 -34
- package/lib/components/commonComponents/Checkbox/index.style.js +50 -38
- package/lib/components/commonComponents/CodeBlock/index.js +13 -12
- package/lib/components/commonComponents/CodeBlock/index.style.d.ts +1 -354
- package/lib/components/commonComponents/CodeBlock/index.style.js +26 -72
- package/lib/components/commonComponents/Collapse/index.js +7 -3
- package/lib/components/commonComponents/Collapse/index.style.d.ts +1 -57
- package/lib/components/commonComponents/Collapse/index.style.js +34 -47
- package/lib/components/commonComponents/CollapsePanel/index.d.ts +10 -0
- package/lib/components/commonComponents/CollapsePanel/index.js +56 -44
- package/lib/components/commonComponents/CollapsePanel/index.style.d.ts +1 -287
- package/lib/components/commonComponents/CollapsePanel/index.style.js +42 -97
- package/lib/components/commonComponents/ConfigProvider/index.js +11 -8
- package/lib/components/commonComponents/DatePicker/index.js +45 -39
- package/lib/components/commonComponents/DatePicker/index.style.d.ts +1 -102
- package/lib/components/commonComponents/DatePicker/index.style.js +66 -61
- package/lib/components/commonComponents/Descriptions/index.js +14 -10
- package/lib/components/commonComponents/Descriptions/index.style.d.ts +1 -17
- package/lib/components/commonComponents/Descriptions/index.style.js +32 -29
- package/lib/components/commonComponents/Drawer/Confirm.d.ts +1 -1
- package/lib/components/commonComponents/Drawer/Confirm.js +26 -24
- package/lib/components/commonComponents/Drawer/index.js +15 -11
- package/lib/components/commonComponents/Drawer/index.style.d.ts +1 -84
- package/lib/components/commonComponents/Drawer/index.style.js +44 -54
- package/lib/components/commonComponents/Dropdown/index.d.ts +1 -2
- package/lib/components/commonComponents/Dropdown/index.js +15 -12
- package/lib/components/commonComponents/Dropdown/index.style.d.ts +1 -78
- package/lib/components/commonComponents/Dropdown/index.style.js +48 -40
- package/lib/components/commonComponents/EllipsisTip/index.js +14 -10
- package/lib/components/commonComponents/EllipsisTip/index.style.d.ts +1 -10
- package/lib/components/commonComponents/EllipsisTip/index.style.js +6 -24
- package/lib/components/commonComponents/Empty/index.js +46 -44
- package/lib/components/commonComponents/Empty/index.style.d.ts +1 -113
- package/lib/components/commonComponents/Empty/index.style.js +22 -51
- package/lib/components/commonComponents/FileIcon/index.js +27 -24
- package/lib/components/commonComponents/FileIcon/index.style.d.ts +1 -61
- package/lib/components/commonComponents/FileIcon/index.style.js +20 -42
- package/lib/components/commonComponents/FloatButton/demo/demo1.js +1 -1
- package/lib/components/commonComponents/FloatButton/demo/demo2.js +1 -1
- package/lib/components/commonComponents/Form/index.js +6 -5
- package/lib/components/commonComponents/Form/index.style.d.ts +1 -53
- package/lib/components/commonComponents/Form/index.style.js +26 -38
- package/lib/components/commonComponents/HelpIcon/index.js +25 -20
- package/lib/components/commonComponents/HelpIcon/index.style.d.ts +1 -16
- package/lib/components/commonComponents/HelpIcon/index.style.js +16 -29
- package/lib/components/commonComponents/IconButton/index.js +15 -11
- package/lib/components/commonComponents/IconButton/index.style.d.ts +1 -11
- package/lib/components/commonComponents/IconButton/index.style.js +10 -24
- package/lib/components/commonComponents/IconFont/index.d.ts +1 -2
- package/lib/components/commonComponents/IconFont/index.js +14 -9
- package/lib/components/commonComponents/IconFont/index.style.d.ts +1 -67
- package/lib/components/commonComponents/IconFont/index.style.js +14 -44
- package/lib/components/commonComponents/Image/index.js +8 -5
- package/lib/components/commonComponents/Image/index.style.d.ts +1 -22
- package/lib/components/commonComponents/Image/index.style.js +16 -30
- package/lib/components/commonComponents/Input/index.js +17 -11
- package/lib/components/commonComponents/Input/index.style.d.ts +1 -70
- package/lib/components/commonComponents/Input/index.style.js +46 -42
- package/lib/components/commonComponents/Modal/index.js +19 -16
- package/lib/components/commonComponents/Modal/index.style.d.ts +1 -111
- package/lib/components/commonComponents/Modal/index.style.js +54 -72
- package/lib/components/commonComponents/Pagination/index.d.ts +1 -1
- package/lib/components/commonComponents/Pagination/index.js +36 -31
- package/lib/components/commonComponents/Pagination/index.style.d.ts +1 -49
- package/lib/components/commonComponents/Pagination/index.style.js +26 -42
- package/lib/components/commonComponents/Popconfirm/demo/demo1.js +13 -0
- package/lib/components/commonComponents/Popconfirm/demo/demo2.d.ts +3 -0
- package/lib/components/commonComponents/Popconfirm/demo/demo2.js +49 -0
- package/lib/components/commonComponents/Popconfirm/index.d.ts +9 -2
- package/lib/components/commonComponents/Popconfirm/index.js +50 -8
- package/lib/components/commonComponents/PromptsEditor/index.js +2 -2
- package/lib/components/commonComponents/RadioButton/index.js +9 -10
- package/lib/components/commonComponents/RadioButton/index.style.d.ts +1 -72
- package/lib/components/commonComponents/RadioButton/index.style.js +52 -63
- package/lib/components/commonComponents/Result/index.style.d.ts +1 -3
- package/lib/components/commonComponents/Result/index.style.js +4 -16
- package/lib/components/commonComponents/Select/demo/demo2.js +0 -1
- package/lib/components/commonComponents/SlateEditor/elements/Var.js +11 -8
- package/lib/components/commonComponents/SlateEditor/elements/index.style.d.ts +1 -14
- package/lib/components/commonComponents/SlateEditor/elements/index.style.js +4 -21
- package/lib/components/commonComponents/SlateEditor/index.js +34 -31
- package/lib/components/commonComponents/SlateEditor/index.style.d.ts +1 -28
- package/lib/components/commonComponents/SlateEditor/index.style.js +4 -36
- package/lib/components/commonComponents/Slider/{slider.input.d.ts → Input/index.d.ts} +1 -1
- package/lib/components/commonComponents/Slider/Input/index.js +91 -0
- package/lib/components/commonComponents/Slider/Input/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Slider/Input/index.style.js +22 -0
- package/lib/components/commonComponents/Slider/demo/demo4.d.ts +3 -0
- package/lib/components/commonComponents/Slider/demo/demo4.js +33 -0
- package/lib/components/commonComponents/Slider/demo/demo5.d.ts +3 -0
- package/lib/components/commonComponents/Slider/demo/demo5.js +34 -0
- package/lib/components/commonComponents/Slider/index.d.ts +2 -2
- package/lib/components/commonComponents/Slider/index.js +11 -7
- package/lib/components/commonComponents/Slider/index.style.d.ts +1 -7
- package/lib/components/commonComponents/Slider/index.style.js +10 -22
- package/lib/components/commonComponents/SliderSelector/index.js +38 -35
- package/lib/components/commonComponents/SliderSelector/index.style.d.ts +1 -38
- package/lib/components/commonComponents/SliderSelector/index.style.js +20 -37
- package/lib/components/commonComponents/Spinner/index.d.ts +4 -4
- package/lib/components/commonComponents/Spinner/index.js +28 -24
- package/lib/components/commonComponents/Spinner/index.style.d.ts +1 -79
- package/lib/components/commonComponents/Spinner/index.style.js +30 -61
- package/lib/components/commonComponents/Statistic/index.js +7 -3
- package/lib/components/commonComponents/Statistic/index.style.d.ts +1 -15
- package/lib/components/commonComponents/Statistic/index.style.js +14 -26
- package/lib/components/commonComponents/Steps/index.js +10 -6
- package/lib/components/commonComponents/Steps/index.style.d.ts +1 -162
- package/lib/components/commonComponents/Steps/index.style.js +68 -78
- package/lib/components/commonComponents/Switch/index.js +13 -10
- package/lib/components/commonComponents/Switch/index.style.d.ts +1 -25
- package/lib/components/commonComponents/Switch/index.style.js +22 -33
- package/lib/components/commonComponents/Table/index.js +10 -6
- package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
- package/lib/components/commonComponents/Table/index.style.js +18 -32
- package/lib/components/commonComponents/Tabs/index.js +35 -29
- package/lib/components/commonComponents/Tabs/index.style.d.ts +1 -55
- package/lib/components/commonComponents/Tabs/index.style.js +38 -44
- package/lib/components/commonComponents/Tag/index.js +13 -9
- package/lib/components/commonComponents/Tag/index.style.d.ts +1 -56
- package/lib/components/commonComponents/Tag/index.style.js +54 -58
- package/lib/components/commonComponents/TimePicker/index.js +36 -30
- package/lib/components/commonComponents/TimePicker/index.style.d.ts +1 -71
- package/lib/components/commonComponents/TimePicker/index.style.js +54 -50
- package/lib/components/commonComponents/Tooltip/index.js +14 -10
- package/lib/components/commonComponents/Tooltip/index.style.d.ts +1 -24
- package/lib/components/commonComponents/Tooltip/index.style.js +26 -32
- package/lib/components/commonComponents/Upload/index.js +15 -9
- package/lib/components/commonComponents/Upload/index.style.d.ts +1 -125
- package/lib/components/commonComponents/Upload/index.style.js +80 -90
- package/lib/index.d.ts +3 -3
- package/lib/index.js +2 -2
- package/lib/libs/env/index.js +1 -1
- package/lib/libs/newCreateStyle/index.d.ts +7 -0
- package/lib/libs/newCreateStyle/index.js +26 -0
- package/llms/index.llms.txt +43 -43
- package/package.json +3 -3
- package/lib/components/commonComponents/Popconfirm/demo/demo.js +0 -155
- package/lib/components/commonComponents/Slider/slider.input.js +0 -76
- package/lib/components/commonComponents/spark.style.d.ts +0 -45
- package/lib/components/commonComponents/spark.style.js +0 -62
- /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
|
@@ -1,71 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
[x: string]: string | {
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
color: string;
|
|
8
|
-
borderColor: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
marginLeft?: undefined;
|
|
11
|
-
marginRight?: undefined;
|
|
12
|
-
display?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
marginLeft: string;
|
|
15
|
-
color: string;
|
|
16
|
-
borderColor?: undefined;
|
|
17
|
-
backgroundColor?: undefined;
|
|
18
|
-
marginRight?: undefined;
|
|
19
|
-
display?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
marginRight: string;
|
|
22
|
-
color?: undefined;
|
|
23
|
-
borderColor?: undefined;
|
|
24
|
-
backgroundColor?: undefined;
|
|
25
|
-
marginLeft?: undefined;
|
|
26
|
-
display?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
[x: string]: string | {
|
|
29
|
-
width: string;
|
|
30
|
-
height: string;
|
|
31
|
-
background: string;
|
|
32
|
-
".anticon": {
|
|
33
|
-
display: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
display: string;
|
|
37
|
-
color?: undefined;
|
|
38
|
-
borderColor?: undefined;
|
|
39
|
-
backgroundColor?: undefined;
|
|
40
|
-
marginLeft?: undefined;
|
|
41
|
-
marginRight?: undefined;
|
|
42
|
-
};
|
|
43
|
-
borderColor: string;
|
|
44
|
-
backgroundColor: string;
|
|
45
|
-
} | {
|
|
46
|
-
[x: string]: {
|
|
47
|
-
border: string;
|
|
48
|
-
display?: undefined;
|
|
49
|
-
color?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
display: string;
|
|
52
|
-
border?: undefined;
|
|
53
|
-
color?: undefined;
|
|
54
|
-
} | {
|
|
55
|
-
[x: string]: {
|
|
56
|
-
background: string;
|
|
57
|
-
};
|
|
58
|
-
border?: undefined;
|
|
59
|
-
display?: undefined;
|
|
60
|
-
color?: undefined;
|
|
61
|
-
} | {
|
|
62
|
-
color: string;
|
|
63
|
-
border?: undefined;
|
|
64
|
-
display?: undefined;
|
|
65
|
-
};
|
|
66
|
-
borderColor?: undefined;
|
|
67
|
-
backgroundColor?: undefined;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
71
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,50 +1,54 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import createGlobalStyle from "../../../libs/newCreateStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-picker {\n border-color: var(--", "-color-border-secondary);\n background-color: var(--", "-color-bg-base);\n \n &.", "-picker-disabled {\n color: var(--", "-color-text-quaternary);\n border-color: var(--", "-color-border-secondary) !important;\n background-color: var(--", "-color-fill-tertiary) !important;\n \n .", "-picker-suffix {\n color: var(--", "-color-text-quaternary) !important;\n }\n }\n \n .", "-picker-suffix {\n margin-left: 8px;\n color: var(--", "-color-text-tertiary) !important;\n }\n \n .", "-picker-clear {\n margin-right: 3px;\n }\n \n .", "-picker-range-separator {\n display: flex;\n \n .", "-picker-separator {\n width: 8px;\n height: 1px;\n background: var(--", "-color-text-tertiary);\n \n .anticon {\n display: none;\n }\n }\n }\n}\n\n.", "-picker-dropdown {\n .", "-picker-panel-container {\n border: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-picker-range-arrow {\n display: none !important;\n }\n \n .", "-picker-time-panel-column > li.", "-picker-time-panel-cell-selected {\n .", "-picker-time-panel-cell-inner {\n background: var(--", "-color-primary-bg);\n }\n }\n \n .", "-picker-now-btn {\n color: var(--", "-color-primary);\n }\n}\n"])), function (p) {
|
|
5
|
+
return p.sparkPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.antPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.antPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.antPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.antPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.antPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.antPrefix;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.antPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.antPrefix;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.antPrefix;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.antPrefix;
|
|
28
|
+
}, function (p) {
|
|
29
|
+
return p.antPrefix;
|
|
30
|
+
}, function (p) {
|
|
31
|
+
return p.antPrefix;
|
|
32
|
+
}, function (p) {
|
|
33
|
+
return p.antPrefix;
|
|
34
|
+
}, function (p) {
|
|
35
|
+
return p.sparkPrefix;
|
|
36
|
+
}, function (p) {
|
|
37
|
+
return p.antPrefix;
|
|
38
|
+
}, function (p) {
|
|
39
|
+
return p.antPrefix;
|
|
40
|
+
}, function (p) {
|
|
41
|
+
return p.antPrefix;
|
|
42
|
+
}, function (p) {
|
|
43
|
+
return p.antPrefix;
|
|
44
|
+
}, function (p) {
|
|
45
|
+
return p.antPrefix;
|
|
46
|
+
}, function (p) {
|
|
47
|
+
return p.antPrefix;
|
|
48
|
+
}, function (p) {
|
|
49
|
+
return p.antPrefix;
|
|
50
|
+
}, function (p) {
|
|
51
|
+
return p.antPrefix;
|
|
52
|
+
}, function (p) {
|
|
53
|
+
return p.antPrefix;
|
|
54
|
+
});
|
|
@@ -12,10 +12,12 @@ import { findClosestBySelector } from "../../../libs/dom";
|
|
|
12
12
|
import { Tooltip } from 'antd';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { forwardRef } from 'react';
|
|
15
|
-
import
|
|
15
|
+
import { useStyle } from "./index.style";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
19
|
var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
18
|
-
|
|
20
|
+
var Style = useStyle();
|
|
19
21
|
var _props$mode = props.mode,
|
|
20
22
|
mode = _props$mode === void 0 ? 'dark' : _props$mode,
|
|
21
23
|
arrow = props.arrow,
|
|
@@ -26,13 +28,15 @@ var SparkTooltip = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
26
28
|
var _getCommonConfig = getCommonConfig(),
|
|
27
29
|
sparkPrefix = _getCommonConfig.sparkPrefix,
|
|
28
30
|
antPrefix = _getCommonConfig.antPrefix;
|
|
29
|
-
return /*#__PURE__*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
32
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
33
|
+
arrow: arrow !== null && arrow !== void 0 ? arrow : false,
|
|
34
|
+
overlayClassName: classNames(overlayClassName, mode === 'light' && "".concat(sparkPrefix, "-tooltip-light")),
|
|
35
|
+
getPopupContainer: getPopupContainer || function (triggerNode) {
|
|
36
|
+
return findClosestBySelector(triggerNode, ".".concat(antPrefix, "-app")); // 默认放到App组件下,获取自定义css变量
|
|
37
|
+
},
|
|
38
|
+
ref: ref
|
|
39
|
+
}))]
|
|
40
|
+
});
|
|
37
41
|
});
|
|
38
42
|
export default SparkTooltip;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: {
|
|
4
|
-
border: string;
|
|
5
|
-
padding: string;
|
|
6
|
-
background: string;
|
|
7
|
-
color: string;
|
|
8
|
-
};
|
|
9
|
-
} | {
|
|
10
|
-
[x: string]: {
|
|
11
|
-
background: string;
|
|
12
|
-
color: string;
|
|
13
|
-
'&::after'?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
'&::after': {
|
|
16
|
-
background: string;
|
|
17
|
-
};
|
|
18
|
-
background?: undefined;
|
|
19
|
-
color?: undefined;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
24
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +1,26 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var css = _ref2.css,
|
|
28
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
29
|
-
var result = css(getIndexStyleData(params));
|
|
30
|
-
return result;
|
|
31
|
-
});
|
|
32
|
-
export default useIndexStyle;
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import createGlobalStyle from "../../../libs/newCreateStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n/* \u9ED8\u8BA4\u6DF1\u8272 */\n.", "-tooltip-content {\n .", "-tooltip-inner {\n border: 1px solid transparent;\n padding: 6px 12px;\n background: var(--", "-color-text-base);\n color: var(--", "-color-bg-base);\n }\n}\n\n/* \u6D45\u8272\u6A21\u5F0F */\n.", "-tooltip-light {\n .", "-tooltip-content .", "-tooltip-inner {\n background: var(--", "-color-bg-base);\n color: var(--", "-color-text);\n }\n \n .", "-tooltip-arrow {\n &::after {\n background: var(--", "-color-bg-base);\n }\n }\n}\n"])), function (p) {
|
|
5
|
+
return p.antPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.antPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.antPrefix;
|
|
10
|
+
}, function (p) {
|
|
11
|
+
return p.antPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.sparkPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.antPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.antPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.antPrefix;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.antPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.antPrefix;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.antPrefix;
|
|
26
|
+
});
|
|
@@ -11,27 +11,33 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
11
11
|
import { getCommonConfig } from "../../../config";
|
|
12
12
|
import { Upload as AntdUpload } from 'antd';
|
|
13
13
|
import classNames from 'classnames';
|
|
14
|
-
import
|
|
14
|
+
import { useStyle } from "./index.style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
18
|
var Upload = function Upload(props) {
|
|
17
19
|
var className = props.className,
|
|
18
20
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
19
21
|
var commonConfig = getCommonConfig();
|
|
20
22
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
21
|
-
|
|
22
|
-
return /*#__PURE__*/
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
var Style = useStyle();
|
|
24
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
25
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdUpload, _objectSpread({
|
|
26
|
+
className: classNames("".concat(sparkPrefix, "-upload"), className)
|
|
27
|
+
}, restProps))]
|
|
28
|
+
});
|
|
25
29
|
};
|
|
26
30
|
var Dragger = function Dragger(props) {
|
|
27
31
|
var className = props.className,
|
|
28
32
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
29
33
|
var commonConfig = getCommonConfig();
|
|
30
34
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
31
|
-
|
|
32
|
-
return /*#__PURE__*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
+
var Style = useStyle();
|
|
36
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
37
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(AntdUpload.Dragger, _objectSpread({
|
|
38
|
+
className: classNames("".concat(sparkPrefix, "-upload"), className)
|
|
39
|
+
}, restProps))]
|
|
40
|
+
});
|
|
35
41
|
};
|
|
36
42
|
Upload.Dragger = Dragger;
|
|
37
43
|
Upload.LIST_IGNORE = AntdUpload.LIST_IGNORE;
|
|
@@ -1,125 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: {
|
|
4
|
-
border: string;
|
|
5
|
-
backgroundColor: string;
|
|
6
|
-
};
|
|
7
|
-
} | {
|
|
8
|
-
[x: string]: {
|
|
9
|
-
[x: string]: {
|
|
10
|
-
marginTop: number;
|
|
11
|
-
width: string;
|
|
12
|
-
display?: undefined;
|
|
13
|
-
alignItems?: undefined;
|
|
14
|
-
height?: undefined;
|
|
15
|
-
padding?: undefined;
|
|
16
|
-
borderColor?: undefined;
|
|
17
|
-
borderStyle?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
[x: string]: string | {
|
|
20
|
-
display: string;
|
|
21
|
-
justifyContent: string;
|
|
22
|
-
alignItems: string;
|
|
23
|
-
width: string;
|
|
24
|
-
height: string;
|
|
25
|
-
color?: undefined;
|
|
26
|
-
lineHeight?: undefined;
|
|
27
|
-
fontWeight?: undefined;
|
|
28
|
-
overflow?: undefined;
|
|
29
|
-
textOverflow?: undefined;
|
|
30
|
-
whiteSpace?: undefined;
|
|
31
|
-
bottom?: undefined;
|
|
32
|
-
paddingLeft?: undefined;
|
|
33
|
-
borderColor?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
width: string;
|
|
36
|
-
color: string;
|
|
37
|
-
lineHeight: string;
|
|
38
|
-
fontWeight: number;
|
|
39
|
-
overflow: string;
|
|
40
|
-
textOverflow: string;
|
|
41
|
-
whiteSpace: string;
|
|
42
|
-
display?: undefined;
|
|
43
|
-
justifyContent?: undefined;
|
|
44
|
-
alignItems?: undefined;
|
|
45
|
-
height?: undefined;
|
|
46
|
-
bottom?: undefined;
|
|
47
|
-
paddingLeft?: undefined;
|
|
48
|
-
borderColor?: undefined;
|
|
49
|
-
} | {
|
|
50
|
-
[x: string]: {
|
|
51
|
-
width: string;
|
|
52
|
-
height: string;
|
|
53
|
-
color: string;
|
|
54
|
-
};
|
|
55
|
-
display?: undefined;
|
|
56
|
-
justifyContent?: undefined;
|
|
57
|
-
alignItems?: undefined;
|
|
58
|
-
width?: undefined;
|
|
59
|
-
height?: undefined;
|
|
60
|
-
color?: undefined;
|
|
61
|
-
lineHeight?: undefined;
|
|
62
|
-
fontWeight?: undefined;
|
|
63
|
-
overflow?: undefined;
|
|
64
|
-
textOverflow?: undefined;
|
|
65
|
-
whiteSpace?: undefined;
|
|
66
|
-
bottom?: undefined;
|
|
67
|
-
paddingLeft?: undefined;
|
|
68
|
-
borderColor?: undefined;
|
|
69
|
-
} | {
|
|
70
|
-
[x: string]: string | {
|
|
71
|
-
display: string;
|
|
72
|
-
alignItems: string;
|
|
73
|
-
height: string;
|
|
74
|
-
};
|
|
75
|
-
bottom: string;
|
|
76
|
-
paddingLeft: string;
|
|
77
|
-
display?: undefined;
|
|
78
|
-
justifyContent?: undefined;
|
|
79
|
-
alignItems?: undefined;
|
|
80
|
-
width?: undefined;
|
|
81
|
-
height?: undefined;
|
|
82
|
-
color?: undefined;
|
|
83
|
-
lineHeight?: undefined;
|
|
84
|
-
fontWeight?: undefined;
|
|
85
|
-
overflow?: undefined;
|
|
86
|
-
textOverflow?: undefined;
|
|
87
|
-
whiteSpace?: undefined;
|
|
88
|
-
borderColor?: undefined;
|
|
89
|
-
} | {
|
|
90
|
-
[x: string]: string | {
|
|
91
|
-
color: string;
|
|
92
|
-
};
|
|
93
|
-
borderColor: string;
|
|
94
|
-
display?: undefined;
|
|
95
|
-
justifyContent?: undefined;
|
|
96
|
-
alignItems?: undefined;
|
|
97
|
-
width?: undefined;
|
|
98
|
-
height?: undefined;
|
|
99
|
-
color?: undefined;
|
|
100
|
-
lineHeight?: undefined;
|
|
101
|
-
fontWeight?: undefined;
|
|
102
|
-
overflow?: undefined;
|
|
103
|
-
textOverflow?: undefined;
|
|
104
|
-
whiteSpace?: undefined;
|
|
105
|
-
bottom?: undefined;
|
|
106
|
-
paddingLeft?: undefined;
|
|
107
|
-
};
|
|
108
|
-
display: string;
|
|
109
|
-
alignItems: string;
|
|
110
|
-
height: string;
|
|
111
|
-
padding: string;
|
|
112
|
-
marginTop: string;
|
|
113
|
-
borderColor: string;
|
|
114
|
-
borderStyle: string;
|
|
115
|
-
width?: undefined;
|
|
116
|
-
};
|
|
117
|
-
"&:first-child": {
|
|
118
|
-
marginTop: number;
|
|
119
|
-
width: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
125
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|