@agentscope-ai/design 1.0.8 → 1.0.10
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/generateThemeByToken.js +8 -2
- 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/Button/index.d.ts +1 -1
- package/lib/components/commonComponents/Button/index.js +7 -7
- 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 +15 -13
- 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 +20 -14
- 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 +18 -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 +96 -36
- 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/demo/basic.js +5 -4
- package/lib/components/commonComponents/PromptsEditor/index.d.ts +8 -2
- package/lib/components/commonComponents/PromptsEditor/index.js +17 -11
- 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 +93 -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 +14 -11
- 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/demo/demo1.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo2.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo3.js +1 -9
- package/lib/components/commonComponents/Table/demo/demo4.js +1 -9
- package/lib/components/commonComponents/Table/index.d.ts +1 -1
- package/lib/components/commonComponents/Table/index.js +11 -7
- package/lib/components/commonComponents/Table/index.style.d.ts +1 -52
- package/lib/components/commonComponents/Table/index.style.js +34 -32
- package/lib/components/commonComponents/Tabs/index.js +37 -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/components/commonComponents/Video/Control.d.ts +19 -0
- package/lib/components/commonComponents/Video/Control.js +104 -0
- package/lib/components/commonComponents/Video/demo/demo1.d.ts +2 -0
- package/lib/components/commonComponents/Video/demo/demo1.js +12 -0
- package/lib/components/commonComponents/Video/index.d.ts +18 -0
- package/lib/components/commonComponents/Video/index.js +222 -0
- package/lib/components/commonComponents/Video/index.style.d.ts +1 -0
- package/lib/components/commonComponents/Video/index.style.js +40 -0
- package/lib/i18n/strings/en-US.json +3 -1
- package/lib/i18n/strings/zh-CN.json +3 -1
- package/lib/index.d.ts +5 -4
- package/lib/index.js +3 -2
- package/lib/libs/createStyle/index.d.ts +7 -1
- package/lib/libs/createStyle/index.js +24 -72
- package/lib/libs/env/index.js +1 -1
- package/lib/libs/generateCssVars/index.js +1 -1
- 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/llms/all.llms.txt +0 -4235
- package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +0 -74
- package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +0 -61
- package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +0 -89
- package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +0 -99
- package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +0 -79
- package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +0 -88
- package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +0 -34
- package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +0 -76
- package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +0 -227
- package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +0 -60
- package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +0 -87
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +0 -100
- package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +0 -70
- package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +0 -383
- package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +0 -68
- package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +0 -168
- package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +0 -66
- package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +0 -114
- package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +0 -154
- package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +0 -118
- package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +0 -62
- package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +0 -56
- package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +0 -64
- package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +0 -75
- package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +0 -94
- package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +0 -120
- package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +0 -71
- package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +0 -83
- package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +0 -38
- package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +0 -77
- package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +0 -82
- package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +0 -58
- package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +0 -228
- package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +0 -95
- package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +0 -57
- package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +0 -104
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +0 -63
- package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +0 -105
- package/llms/index.llms.txt +0 -45
- /package/lib/components/commonComponents/Popconfirm/demo/{demo.d.ts → demo1.d.ts} +0 -0
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
cursor: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
7
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
import createStyle from "../../../libs/createStyle";
|
|
9
|
-
export function getIndexStyleData(params) {
|
|
10
|
-
var antPrefix = params.antPrefix;
|
|
11
|
-
return _defineProperty({}, ".".concat(antPrefix, "-avatar"), {
|
|
12
|
-
cursor: 'default'
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
16
|
-
var css = _ref2.css,
|
|
17
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
18
|
-
var result = css(getIndexStyleData(params));
|
|
19
|
-
return result;
|
|
20
|
-
});
|
|
21
|
-
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-avatar {\n cursor: default;\n}\n"])), function (p) {
|
|
5
|
+
return p.antPrefix;
|
|
6
|
+
});
|
|
@@ -11,16 +11,17 @@ import { SparkDownLine } from '@agentscope-ai/icons';
|
|
|
11
11
|
import { Avatar, Breadcrumb, Dropdown } from 'antd';
|
|
12
12
|
import React from 'react';
|
|
13
13
|
import { getCommonConfig } from "../../../config";
|
|
14
|
-
import
|
|
14
|
+
import { useStyle } from "./index.style";
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
18
|
var SparkBreadcrumb = function SparkBreadcrumb(_ref) {
|
|
18
19
|
var _ref$items = _ref.items,
|
|
19
20
|
items = _ref$items === void 0 ? [] : _ref$items,
|
|
20
21
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
21
22
|
var _getCommonConfig = getCommonConfig(),
|
|
22
23
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
23
|
-
|
|
24
|
+
var Style = useStyle();
|
|
24
25
|
var processedItems = React.useMemo(function () {
|
|
25
26
|
return items.map(function (item) {
|
|
26
27
|
var titleContent = item.title;
|
|
@@ -66,9 +67,11 @@ var SparkBreadcrumb = function SparkBreadcrumb(_ref) {
|
|
|
66
67
|
});
|
|
67
68
|
});
|
|
68
69
|
}, [items]);
|
|
69
|
-
return /*#__PURE__*/
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
71
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Breadcrumb, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
72
|
+
items: processedItems,
|
|
73
|
+
className: "".concat(sparkPrefix, "-breadcrumb ").concat(restProps.className || '')
|
|
74
|
+
}))]
|
|
75
|
+
});
|
|
73
76
|
};
|
|
74
77
|
export default SparkBreadcrumb;
|
|
@@ -1,117 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
cursor: string;
|
|
5
|
-
color?: undefined;
|
|
6
|
-
height?: undefined;
|
|
7
|
-
'&:hover'?: undefined;
|
|
8
|
-
display?: undefined;
|
|
9
|
-
alignItems?: undefined;
|
|
10
|
-
gap?: undefined;
|
|
11
|
-
justifyContent?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
[x: string]: {
|
|
14
|
-
color: string;
|
|
15
|
-
display: string;
|
|
16
|
-
alignItems: string;
|
|
17
|
-
};
|
|
18
|
-
cursor?: undefined;
|
|
19
|
-
color?: undefined;
|
|
20
|
-
height?: undefined;
|
|
21
|
-
'&:hover'?: undefined;
|
|
22
|
-
display?: undefined;
|
|
23
|
-
alignItems?: undefined;
|
|
24
|
-
gap?: undefined;
|
|
25
|
-
justifyContent?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
color: string;
|
|
28
|
-
height: string;
|
|
29
|
-
'&:hover': {
|
|
30
|
-
backgroundColor: string;
|
|
31
|
-
};
|
|
32
|
-
cursor?: undefined;
|
|
33
|
-
display?: undefined;
|
|
34
|
-
alignItems?: undefined;
|
|
35
|
-
gap?: undefined;
|
|
36
|
-
justifyContent?: undefined;
|
|
37
|
-
} | {
|
|
38
|
-
color: string;
|
|
39
|
-
cursor?: undefined;
|
|
40
|
-
height?: undefined;
|
|
41
|
-
'&:hover'?: undefined;
|
|
42
|
-
display?: undefined;
|
|
43
|
-
alignItems?: undefined;
|
|
44
|
-
gap?: undefined;
|
|
45
|
-
justifyContent?: undefined;
|
|
46
|
-
} | {
|
|
47
|
-
display: string;
|
|
48
|
-
alignItems: string;
|
|
49
|
-
cursor?: undefined;
|
|
50
|
-
color?: undefined;
|
|
51
|
-
height?: undefined;
|
|
52
|
-
'&:hover'?: undefined;
|
|
53
|
-
gap?: undefined;
|
|
54
|
-
justifyContent?: undefined;
|
|
55
|
-
} | {
|
|
56
|
-
[x: string]: string | number | {
|
|
57
|
-
width: string;
|
|
58
|
-
height: string;
|
|
59
|
-
};
|
|
60
|
-
cursor: string;
|
|
61
|
-
display: string;
|
|
62
|
-
alignItems: string;
|
|
63
|
-
gap: number;
|
|
64
|
-
color?: undefined;
|
|
65
|
-
height?: undefined;
|
|
66
|
-
'&:hover'?: undefined;
|
|
67
|
-
justifyContent?: undefined;
|
|
68
|
-
} | {
|
|
69
|
-
display: string;
|
|
70
|
-
alignItems: string;
|
|
71
|
-
gap: number;
|
|
72
|
-
cursor?: undefined;
|
|
73
|
-
color?: undefined;
|
|
74
|
-
height?: undefined;
|
|
75
|
-
'&:hover'?: undefined;
|
|
76
|
-
justifyContent?: undefined;
|
|
77
|
-
} | {
|
|
78
|
-
[x: string]: string | number | {
|
|
79
|
-
fontSize: string;
|
|
80
|
-
};
|
|
81
|
-
display: string;
|
|
82
|
-
alignItems: string;
|
|
83
|
-
gap: number;
|
|
84
|
-
height: string;
|
|
85
|
-
cursor?: undefined;
|
|
86
|
-
color?: undefined;
|
|
87
|
-
'&:hover'?: undefined;
|
|
88
|
-
justifyContent?: undefined;
|
|
89
|
-
} | {
|
|
90
|
-
display: string;
|
|
91
|
-
justifyContent: string;
|
|
92
|
-
cursor?: undefined;
|
|
93
|
-
color?: undefined;
|
|
94
|
-
height?: undefined;
|
|
95
|
-
'&:hover'?: undefined;
|
|
96
|
-
alignItems?: undefined;
|
|
97
|
-
gap?: undefined;
|
|
98
|
-
};
|
|
99
|
-
cursor: string;
|
|
100
|
-
'li:last-child': {
|
|
101
|
-
[x: string]: {
|
|
102
|
-
color: string;
|
|
103
|
-
display: string;
|
|
104
|
-
alignItems: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
a: {
|
|
108
|
-
color: string;
|
|
109
|
-
height: string;
|
|
110
|
-
'&:hover': {
|
|
111
|
-
backgroundColor: string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
};
|
|
116
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
117
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,61 +1,32 @@
|
|
|
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
|
-
display: 'flex',
|
|
34
|
-
alignItems: 'center',
|
|
35
|
-
gap: 8
|
|
36
|
-
}, ".".concat(antPrefix, "-avatar>img"), {
|
|
37
|
-
width: '20px',
|
|
38
|
-
height: '20px'
|
|
39
|
-
})), ".".concat(sparkPrefix, "-breadcrumb-item-content"), {
|
|
40
|
-
display: 'flex',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
gap: 8
|
|
43
|
-
}), ".".concat(sparkPrefix, "-breadcrumb-dropdown-title"), _defineProperty({
|
|
44
|
-
display: 'flex',
|
|
45
|
-
alignItems: 'center',
|
|
46
|
-
gap: 4,
|
|
47
|
-
height: '100%'
|
|
48
|
-
}, ".".concat(sparkPrefix, "-breadcrumb-dropdown-icon"), {
|
|
49
|
-
fontSize: '16px !important'
|
|
50
|
-
})), ".".concat(sparkPrefix, "-breadcrumb-dropdown-overlay"), {
|
|
51
|
-
display: 'flex',
|
|
52
|
-
justifyContent: 'center'
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
56
|
-
var css = _ref2.css,
|
|
57
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
58
|
-
var result = css(getIndexStyleData(params));
|
|
59
|
-
return result;
|
|
60
|
-
});
|
|
61
|
-
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-breadcrumb {\n cursor: default;\n \n .", "-breadcrumb-link {\n cursor: pointer;\n }\n \n li:last-child {\n .", "-breadcrumb-link {\n color: var(--", "-color-text);\n display: flex;\n align-items: center;\n }\n }\n \n a {\n color: var(--", "-color-text-secondary);\n height: auto;\n \n &:hover {\n background-color: transparent;\n }\n }\n \n .", "-breadcrumb-separator {\n color: var(--", "-color-text);\n }\n \n .", "-breadcrumb-overlay-link {\n display: flex;\n align-items: center;\n }\n \n .", "-breadcrumb-dropdown {\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 8px;\n \n .", "-avatar > img {\n width: 20px;\n height: 20px;\n }\n }\n \n .", "-breadcrumb-item-content {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n \n .", "-breadcrumb-dropdown-title {\n display: flex;\n align-items: center;\n gap: 4px;\n height: 100%;\n \n .", "-breadcrumb-dropdown-icon {\n font-size: 16px !important;\n }\n }\n \n .", "-breadcrumb-dropdown-overlay {\n display: flex;\n justify-content: center;\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.sparkPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.antPrefix;
|
|
24
|
+
}, function (p) {
|
|
25
|
+
return p.sparkPrefix;
|
|
26
|
+
}, function (p) {
|
|
27
|
+
return p.sparkPrefix;
|
|
28
|
+
}, function (p) {
|
|
29
|
+
return p.sparkPrefix;
|
|
30
|
+
}, function (p) {
|
|
31
|
+
return p.sparkPrefix;
|
|
32
|
+
});
|
|
@@ -15,7 +15,7 @@ export interface SparkButtonProps extends ButtonProps {
|
|
|
15
15
|
*/
|
|
16
16
|
type?: 'primary' | 'dashed' | 'link' | 'text' | 'default' | 'primaryLess' | 'textCompact';
|
|
17
17
|
/**
|
|
18
|
-
* @description hover上去
|
|
18
|
+
* @description hover上去tooltip的内容
|
|
19
19
|
* @descriptionEn content of the tooltip
|
|
20
20
|
*/
|
|
21
21
|
tooltipContent?: string | ReactNode;
|
|
@@ -12,7 +12,7 @@ import { Button as AntdButton, ConfigProvider, theme } from 'antd';
|
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import React, { forwardRef, useMemo } from 'react';
|
|
14
14
|
import IconFont from "../IconFont";
|
|
15
|
-
import
|
|
15
|
+
import { Tooltip } from "../../..";
|
|
16
16
|
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -83,15 +83,15 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
83
83
|
colorPrimaryActive: token.token.colorTextBase
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
children: /*#__PURE__*/_jsx(
|
|
87
|
-
|
|
86
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
87
|
+
title: restProps.tooltipContent,
|
|
88
88
|
children: button
|
|
89
89
|
})
|
|
90
90
|
});
|
|
91
91
|
// @ts-ignore
|
|
92
92
|
} else if (restProps.type === 'textCompact') {
|
|
93
|
-
return /*#__PURE__*/_jsx(
|
|
94
|
-
|
|
93
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
94
|
+
title: restProps.tooltipContent,
|
|
95
95
|
children: /*#__PURE__*/_jsx(AntdButton, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
96
96
|
ref: ref,
|
|
97
97
|
icon: icon,
|
|
@@ -107,8 +107,8 @@ var Button = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
107
107
|
}))
|
|
108
108
|
});
|
|
109
109
|
} else {
|
|
110
|
-
return /*#__PURE__*/_jsx(
|
|
111
|
-
|
|
110
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
|
111
|
+
title: restProps.tooltipContent,
|
|
112
112
|
children: button
|
|
113
113
|
});
|
|
114
114
|
}
|
|
@@ -10,34 +10,37 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
10
|
import { getCommonConfig } from "../../../config";
|
|
11
11
|
import { Card } from 'antd';
|
|
12
12
|
import classNames from 'classnames';
|
|
13
|
-
import
|
|
13
|
+
import { useStyle } from "./index.style";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
17
|
export default (function (props) {
|
|
17
18
|
var title = props.title,
|
|
18
19
|
info = props.info,
|
|
19
20
|
children = props.children,
|
|
20
21
|
className = props.className,
|
|
21
22
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
22
|
-
|
|
23
|
+
var Style = useStyle();
|
|
23
24
|
var commonConfig = getCommonConfig();
|
|
24
25
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
25
|
-
return /*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
26
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({
|
|
28
|
+
className: classNames("".concat(sparkPrefix, "-card"), className)
|
|
29
|
+
}, restProps), {}, {
|
|
30
|
+
title: null,
|
|
31
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
32
|
+
className: "".concat(sparkPrefix, "-card-wrapper"),
|
|
33
|
+
children: [title && /*#__PURE__*/_jsx("div", {
|
|
34
|
+
className: "".concat(sparkPrefix, "-title"),
|
|
35
|
+
children: title
|
|
36
|
+
}), info && /*#__PURE__*/_jsx("div", {
|
|
37
|
+
className: "".concat(sparkPrefix, "-info"),
|
|
38
|
+
children: info
|
|
39
|
+
}), children && /*#__PURE__*/_jsx("div", {
|
|
40
|
+
className: "".concat(sparkPrefix, "-content"),
|
|
41
|
+
children: children
|
|
42
|
+
})]
|
|
43
|
+
})
|
|
44
|
+
}))]
|
|
45
|
+
});
|
|
43
46
|
});
|
|
@@ -1,71 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
borderRadius: string;
|
|
4
|
-
backgroundColor: string;
|
|
5
|
-
border: string;
|
|
6
|
-
transition?: undefined;
|
|
7
|
-
'&:hover'?: undefined;
|
|
8
|
-
cursor?: undefined;
|
|
9
|
-
display?: undefined;
|
|
10
|
-
flexDirection?: undefined;
|
|
11
|
-
padding?: undefined;
|
|
12
|
-
gap?: undefined;
|
|
13
|
-
"> *:only-child"?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
[x: string]: string | {
|
|
16
|
-
padding: number;
|
|
17
|
-
boxShadow?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
boxShadow: string;
|
|
20
|
-
padding?: undefined;
|
|
21
|
-
};
|
|
22
|
-
transition: string;
|
|
23
|
-
'&:hover': {
|
|
24
|
-
boxShadow: string;
|
|
25
|
-
};
|
|
26
|
-
cursor: string;
|
|
27
|
-
borderRadius?: undefined;
|
|
28
|
-
backgroundColor?: undefined;
|
|
29
|
-
border?: undefined;
|
|
30
|
-
display?: undefined;
|
|
31
|
-
flexDirection?: undefined;
|
|
32
|
-
padding?: undefined;
|
|
33
|
-
gap?: undefined;
|
|
34
|
-
"> *:only-child"?: undefined;
|
|
35
|
-
} | {
|
|
36
|
-
[x: string]: string | {
|
|
37
|
-
gap: number;
|
|
38
|
-
fontSize?: undefined;
|
|
39
|
-
fontWeight?: undefined;
|
|
40
|
-
lineHeight?: undefined;
|
|
41
|
-
color?: undefined;
|
|
42
|
-
} | {
|
|
43
|
-
fontSize: string;
|
|
44
|
-
fontWeight: number;
|
|
45
|
-
lineHeight: string;
|
|
46
|
-
color: string;
|
|
47
|
-
gap?: undefined;
|
|
48
|
-
} | {
|
|
49
|
-
fontSize: string;
|
|
50
|
-
fontWeight: string;
|
|
51
|
-
lineHeight: string;
|
|
52
|
-
color: string;
|
|
53
|
-
gap?: undefined;
|
|
54
|
-
};
|
|
55
|
-
display: string;
|
|
56
|
-
flexDirection: string;
|
|
57
|
-
padding: string;
|
|
58
|
-
gap: string;
|
|
59
|
-
"> *:only-child": {
|
|
60
|
-
gap: number;
|
|
61
|
-
};
|
|
62
|
-
borderRadius?: undefined;
|
|
63
|
-
backgroundColor?: undefined;
|
|
64
|
-
border?: undefined;
|
|
65
|
-
transition?: undefined;
|
|
66
|
-
'&:hover'?: undefined;
|
|
67
|
-
cursor?: 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,46 +1,24 @@
|
|
|
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
|
-
}, "> *:only-child", {
|
|
26
|
-
gap: 0
|
|
27
|
-
}), ".".concat(sparkPrefix, "-title"), {
|
|
28
|
-
fontSize: '14px',
|
|
29
|
-
fontWeight: 500,
|
|
30
|
-
lineHeight: '24px',
|
|
31
|
-
/* 中性色/color-text */
|
|
32
|
-
color: "var(--".concat(antPrefix, "-color-text)")
|
|
33
|
-
}), ".".concat(sparkPrefix, "-info"), {
|
|
34
|
-
fontSize: '12px',
|
|
35
|
-
fontWeight: 'normal',
|
|
36
|
-
lineHeight: '18px',
|
|
37
|
-
color: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
41
|
-
var css = _ref2.css,
|
|
42
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
43
|
-
var result = css(getIndexStyleData(params));
|
|
44
|
-
return result;
|
|
45
|
-
});
|
|
46
|
-
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/createStyle";
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-card {\n border-radius: 6px;\n background-color: var(--", "-color-bg-base);\n border: 1px solid var(--", "-color-border-secondary);\n}\n\n.", "-card {\n transition: box-shadow 0.4s ease;\n cursor: pointer;\n \n .", "-card-body {\n padding: 0;\n }\n \n &:hover {\n box-shadow: 0px 4px 6px 0px rgba(0, 0, 0, 0.08);\n }\n}\n\n.", "-card-wrapper {\n display: flex;\n flex-direction: column;\n padding: 12px 16px;\n gap: 4px;\n \n > *:only-child {\n gap: 0;\n }\n \n .", "-title {\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n /* \u4E2D\u6027\u8272/color-text */\n color: var(--", "-color-text);\n }\n \n .", "-info {\n font-size: 12px;\n font-weight: normal;\n line-height: 18px;\n color: var(--", "-color-text-tertiary);\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.sparkPrefix;
|
|
12
|
+
}, function (p) {
|
|
13
|
+
return p.antPrefix;
|
|
14
|
+
}, function (p) {
|
|
15
|
+
return p.sparkPrefix;
|
|
16
|
+
}, function (p) {
|
|
17
|
+
return p.sparkPrefix;
|
|
18
|
+
}, function (p) {
|
|
19
|
+
return p.antPrefix;
|
|
20
|
+
}, function (p) {
|
|
21
|
+
return p.sparkPrefix;
|
|
22
|
+
}, function (p) {
|
|
23
|
+
return p.antPrefix;
|
|
24
|
+
});
|
|
@@ -10,9 +10,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
10
10
|
import { Checkbox as AntCheckbox } from 'antd';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import { getCommonConfig } from "../../../config";
|
|
13
|
-
import
|
|
13
|
+
import { useStyle } from "./index.style";
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
15
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
17
|
var Checkbox = function Checkbox(_ref) {
|
|
17
18
|
var description = _ref.description,
|
|
18
19
|
descriptionClassName = _ref.descriptionClassName,
|
|
@@ -22,21 +23,23 @@ var Checkbox = function Checkbox(_ref) {
|
|
|
22
23
|
var _getCommonConfig = getCommonConfig(),
|
|
23
24
|
antPrefix = _getCommonConfig.antPrefix,
|
|
24
25
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
25
|
-
|
|
26
|
+
var Style = useStyle();
|
|
26
27
|
var defaultDescriptionStyle = {
|
|
27
28
|
marginLeft: '24px',
|
|
28
29
|
marginTop: '6px',
|
|
29
30
|
fontSize: '12px',
|
|
30
31
|
color: "var(--".concat(antPrefix, "-color-text-tertiary)")
|
|
31
32
|
};
|
|
32
|
-
return /*#__PURE__*/_jsxs(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
35
|
+
className: "".concat(sparkPrefix, "-checkbox"),
|
|
36
|
+
children: [/*#__PURE__*/_jsx(AntCheckbox, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
37
|
+
children: children
|
|
38
|
+
})), description && /*#__PURE__*/_jsx("div", {
|
|
39
|
+
className: descriptionClassName,
|
|
40
|
+
style: _objectSpread(_objectSpread({}, defaultDescriptionStyle), descriptionStyle),
|
|
41
|
+
children: description
|
|
42
|
+
})]
|
|
40
43
|
})]
|
|
41
44
|
});
|
|
42
45
|
};
|
|
@@ -1,34 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: {
|
|
4
|
-
[x: string]: {
|
|
5
|
-
color: string;
|
|
6
|
-
};
|
|
7
|
-
border?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
border: string;
|
|
10
|
-
} | {
|
|
11
|
-
[x: string]: {
|
|
12
|
-
borderColor: string;
|
|
13
|
-
};
|
|
14
|
-
border?: undefined;
|
|
15
|
-
} | {
|
|
16
|
-
[x: string]: {
|
|
17
|
-
borderColor: string;
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
};
|
|
20
|
-
border?: undefined;
|
|
21
|
-
} | {
|
|
22
|
-
[x: string]: {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
borderColor: string;
|
|
25
|
-
'&::after': {
|
|
26
|
-
borderColor: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
border?: undefined;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
34
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|