@agentscope-ai/design 1.0.7 → 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/_readme.txt +1 -0
- package/lib/antd/themes/bailianTheme.json +1 -1
- package/lib/antd/themes/generateThemeByToken.d.ts +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 +10 -7
- package/lib/components/commonComponents/Breadcrumb/index.style.d.ts +1 -107
- package/lib/components/commonComponents/Breadcrumb/index.style.js +32 -60
- package/lib/components/commonComponents/Button/index.js +27 -5
- 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 +16 -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 +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/Empty/svg/Illustrate.js +2 -2
- 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/VarRender.d.ts +6 -0
- package/lib/components/commonComponents/PromptsEditor/VarRender.js +84 -0
- package/lib/components/commonComponents/PromptsEditor/VarSelectInput.d.ts +6 -0
- package/lib/components/commonComponents/PromptsEditor/VarSelectInput.js +60 -0
- package/lib/components/commonComponents/PromptsEditor/demo/basic.d.ts +1 -0
- package/lib/components/commonComponents/PromptsEditor/demo/basic.js +30 -0
- package/lib/components/commonComponents/PromptsEditor/index.d.ts +42 -0
- package/lib/components/commonComponents/PromptsEditor/index.js +134 -0
- 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/demo/demo2.js +0 -1
- package/lib/components/commonComponents/Tag/demo/demo3.js +0 -2
- package/lib/components/commonComponents/Tag/index.js +14 -10
- 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 -13
- 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 -2
- package/lib/index.js +10 -5
- 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 +11 -8
- 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
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { Slider } from "../../../..";
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
var App = function App() {
|
|
11
|
+
var _useState = useState(10),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
value = _useState2[0],
|
|
14
|
+
setValue = _useState2[1];
|
|
15
|
+
return /*#__PURE__*/_jsx(Slider.Input, {
|
|
16
|
+
min: 1,
|
|
17
|
+
max: 20,
|
|
18
|
+
step: 1,
|
|
19
|
+
onChange: function onChange(val) {
|
|
20
|
+
setValue(val);
|
|
21
|
+
},
|
|
22
|
+
value: value,
|
|
23
|
+
styles: {
|
|
24
|
+
wrapper: {
|
|
25
|
+
width: '320px'
|
|
26
|
+
},
|
|
27
|
+
inputNumber: {
|
|
28
|
+
width: '80px'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export default App;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { Slider } from "../../../..";
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
var App = function App() {
|
|
11
|
+
var _useState = useState(10),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
value = _useState2[0],
|
|
14
|
+
setValue = _useState2[1];
|
|
15
|
+
return /*#__PURE__*/_jsx(Slider.Input, {
|
|
16
|
+
min: 1,
|
|
17
|
+
max: 20,
|
|
18
|
+
step: 1,
|
|
19
|
+
marks: {},
|
|
20
|
+
onChange: function onChange(val) {
|
|
21
|
+
setValue(val);
|
|
22
|
+
},
|
|
23
|
+
value: value,
|
|
24
|
+
styles: {
|
|
25
|
+
wrapper: {
|
|
26
|
+
width: '320px'
|
|
27
|
+
},
|
|
28
|
+
inputNumber: {
|
|
29
|
+
width: '80px'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default App;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SliderRangeProps, SliderSingleProps } from 'antd/es/slider';
|
|
2
2
|
import { SliderRef } from 'rc-slider';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import SliderInput from './
|
|
4
|
+
import SliderInput from './Input';
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<(SliderSingleProps | SliderRangeProps) & React.RefAttributes<SliderRef>> & {
|
|
6
6
|
Input: typeof SliderInput;
|
|
7
7
|
};
|
|
8
8
|
export declare const SparkSliderBasic: React.ForwardRefExoticComponent<(SliderSingleProps | SliderRangeProps) & React.RefAttributes<SliderRef>>;
|
|
9
9
|
declare const SparkSlider: CompoundedComponent;
|
|
10
10
|
export default SparkSlider;
|
|
11
|
-
export type { SliderInputProps } from './
|
|
11
|
+
export type { SliderInputProps } from './Input';
|
|
@@ -8,17 +8,21 @@ import { getCommonConfig } from "../../..";
|
|
|
8
8
|
import { Slider } from 'antd';
|
|
9
9
|
import classNames from 'classnames';
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import
|
|
12
|
-
import SliderInput from "./
|
|
11
|
+
import { useStyle } from "./index.style";
|
|
12
|
+
import SliderInput from "./Input";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
16
|
export var SparkSliderBasic = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15
17
|
var _getCommonConfig = getCommonConfig(),
|
|
16
18
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
17
|
-
|
|
18
|
-
return /*#__PURE__*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
var Style = useStyle();
|
|
20
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
21
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Slider, _objectSpread(_objectSpread({}, props), {}, {
|
|
22
|
+
className: classNames("".concat(sparkPrefix, "-slider"), _defineProperty({}, "".concat(sparkPrefix, "-slider-no-marks"), !Object.keys(props.marks || {}).length), props.className),
|
|
23
|
+
ref: ref
|
|
24
|
+
}))]
|
|
25
|
+
});
|
|
22
26
|
});
|
|
23
27
|
var SparkSlider = SparkSliderBasic;
|
|
24
28
|
Object.assign(SparkSlider, {
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
margin: number;
|
|
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,22 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
antPrefix = params.antPrefix;
|
|
12
|
-
return _defineProperty({}, ".".concat(antPrefix, "-slider.").concat(sparkPrefix, "-slider.").concat(sparkPrefix, "-slider-no-marks"), {
|
|
13
|
-
margin: 0
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
17
|
-
var css = _ref2.css,
|
|
18
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
19
|
-
var result = css(getIndexStyleData(params));
|
|
20
|
-
return result;
|
|
21
|
-
});
|
|
22
|
-
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.", "-slider.", "-slider.", "-slider-no-marks {\n margin: 0;\n}\n"])), function (p) {
|
|
5
|
+
return p.antPrefix;
|
|
6
|
+
}, function (p) {
|
|
7
|
+
return p.sparkPrefix;
|
|
8
|
+
}, function (p) {
|
|
9
|
+
return p.sparkPrefix;
|
|
10
|
+
});
|
|
@@ -7,13 +7,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import { getCommonConfig } from "../../../config";
|
|
8
8
|
import { InputNumber, Slider } from "../../..";
|
|
9
9
|
import cls from 'classnames';
|
|
10
|
-
import
|
|
10
|
+
import { useStyle } from "./index.style";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
14
|
export default function SliderSelector(props) {
|
|
14
15
|
var _getCommonConfig = getCommonConfig(),
|
|
15
16
|
sparkPrefix = _getCommonConfig.sparkPrefix;
|
|
16
|
-
|
|
17
|
+
var Style = useStyle();
|
|
17
18
|
var onNumberChange = function onNumberChange(val) {
|
|
18
19
|
/**InputNumber为受控组件,会导致min和max失效,所以需要手动处理 */
|
|
19
20
|
var numVal = typeof val === 'string' ? parseFloat(val) : val;
|
|
@@ -29,43 +30,45 @@ export default function SliderSelector(props) {
|
|
|
29
30
|
props.onChange(numVal);
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
return /*#__PURE__*/_jsxs(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
onChange: onNumberChange,
|
|
41
|
-
value: props.value === null ? undefined : props.value,
|
|
42
|
-
min: props.min,
|
|
43
|
-
max: props.max,
|
|
44
|
-
step: props.step,
|
|
45
|
-
marks: props.marks || _defineProperty(_defineProperty({}, props.min, props.min), props.max, props.max),
|
|
46
|
-
tooltip: {
|
|
47
|
-
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
48
|
-
return triggerNode;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
52
|
-
style: _objectSpread({
|
|
53
|
-
width: '48px'
|
|
54
|
-
}, props.inputNumberWrapperStyle),
|
|
55
|
-
children: /*#__PURE__*/_jsx(InputNumber, {
|
|
33
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
35
|
+
onMouseUp: function onMouseUp() {
|
|
36
|
+
var _props$onBlur;
|
|
37
|
+
return (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 ? void 0 : _props$onBlur.call(props);
|
|
38
|
+
},
|
|
39
|
+
className: cls("".concat(sparkPrefix, "-slider-selector"), props.className),
|
|
40
|
+
children: [/*#__PURE__*/_jsx(Slider, {
|
|
56
41
|
disabled: props.disabled,
|
|
57
|
-
|
|
42
|
+
onChange: onNumberChange,
|
|
43
|
+
value: props.value === null ? undefined : props.value,
|
|
58
44
|
min: props.min,
|
|
59
45
|
max: props.max,
|
|
60
|
-
onBlur: function onBlur() {
|
|
61
|
-
var _props$onBlur2;
|
|
62
|
-
return (_props$onBlur2 = props.onBlur) === null || _props$onBlur2 === void 0 ? void 0 : _props$onBlur2.call(props);
|
|
63
|
-
},
|
|
64
46
|
step: props.step,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
47
|
+
marks: props.marks || _defineProperty(_defineProperty({}, props.min, props.min), props.max, props.max),
|
|
48
|
+
tooltip: {
|
|
49
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
50
|
+
return triggerNode;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
54
|
+
style: _objectSpread({
|
|
55
|
+
width: '48px'
|
|
56
|
+
}, props.inputNumberWrapperStyle),
|
|
57
|
+
children: /*#__PURE__*/_jsx(InputNumber, {
|
|
58
|
+
disabled: props.disabled,
|
|
59
|
+
controls: false,
|
|
60
|
+
min: props.min,
|
|
61
|
+
max: props.max,
|
|
62
|
+
onBlur: function onBlur() {
|
|
63
|
+
var _props$onBlur2;
|
|
64
|
+
return (_props$onBlur2 = props.onBlur) === null || _props$onBlur2 === void 0 ? void 0 : _props$onBlur2.call(props);
|
|
65
|
+
},
|
|
66
|
+
step: props.step,
|
|
67
|
+
value: props.value,
|
|
68
|
+
onChange: onNumberChange,
|
|
69
|
+
precision: props.precision
|
|
70
|
+
})
|
|
71
|
+
})]
|
|
69
72
|
})]
|
|
70
73
|
});
|
|
71
74
|
}
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
[x: string]: string | {
|
|
4
|
-
[x: string]: number | {
|
|
5
|
-
margin: number;
|
|
6
|
-
};
|
|
7
|
-
flex: number;
|
|
8
|
-
width?: undefined;
|
|
9
|
-
height?: undefined;
|
|
10
|
-
marginTop?: undefined;
|
|
11
|
-
opacity?: undefined;
|
|
12
|
-
} | {
|
|
13
|
-
flex: number;
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
marginTop?: undefined;
|
|
17
|
-
opacity?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
marginTop: number;
|
|
20
|
-
flex?: undefined;
|
|
21
|
-
width?: undefined;
|
|
22
|
-
height?: undefined;
|
|
23
|
-
opacity?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
opacity: number;
|
|
26
|
-
flex?: undefined;
|
|
27
|
-
width?: undefined;
|
|
28
|
-
height?: undefined;
|
|
29
|
-
marginTop?: undefined;
|
|
30
|
-
};
|
|
31
|
-
display: string;
|
|
32
|
-
gap: string;
|
|
33
|
-
height: string;
|
|
34
|
-
margin: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
38
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,37 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})), ".".concat(antPrefix, "-input-number"), {
|
|
22
|
-
flex: 1,
|
|
23
|
-
width: '100%',
|
|
24
|
-
height: '100%'
|
|
25
|
-
}), "".concat(antPrefix, "-input-number ").concat(antPrefix, "-input-number-outlined"), {
|
|
26
|
-
marginTop: 16
|
|
27
|
-
}), ".".concat(antPrefix, "-slider-dot"), {
|
|
28
|
-
opacity: 0
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
var useIndexStyle = createStyle(function (_ref2) {
|
|
32
|
-
var css = _ref2.css,
|
|
33
|
-
params = _objectWithoutProperties(_ref2, _excluded);
|
|
34
|
-
var result = css(getIndexStyleData(params));
|
|
35
|
-
return result;
|
|
36
|
-
});
|
|
37
|
-
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.", "-slider-selector {\n display: flex;\n gap: 16px;\n height: 32px;\n margin: 12px;\n \n .", "-slider {\n flex: 1;\n \n &.", "-slider-horizontal.", "-slider-with-marks {\n margin: 0;\n }\n }\n \n .", "-input-number {\n flex: 1;\n width: 100%;\n height: 100%;\n }\n \n .", "-input-number .", "-input-number-outlined {\n margin-top: 16px;\n }\n \n .", "-slider-dot {\n opacity: 0;\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
|
+
});
|
|
@@ -7,8 +7,8 @@ export interface SparkSpinnerProps {
|
|
|
7
7
|
*/
|
|
8
8
|
tip?: React.ReactNode;
|
|
9
9
|
/**
|
|
10
|
-
* @description 自定义indicator
|
|
11
|
-
* @descriptionEn custom indicator
|
|
10
|
+
* @description 自定义indicator,用于展示progress的百分比和加载文案
|
|
11
|
+
* @descriptionEn custom indicator, used to show the percentage of progress and loading text
|
|
12
12
|
* @default -
|
|
13
13
|
*/
|
|
14
14
|
indicator?: React.ReactNode;
|
|
@@ -43,8 +43,8 @@ export interface SparkSpinnerProps {
|
|
|
43
43
|
*/
|
|
44
44
|
spinning?: boolean;
|
|
45
45
|
/**
|
|
46
|
-
* @description
|
|
47
|
-
* @descriptionEn show progress bar
|
|
46
|
+
* @description 是否显示进度条,如果为true,不需要手动在children中添加Progress组件
|
|
47
|
+
* @descriptionEn show progress bar, if true, you don't need to manually add Progress component in children
|
|
48
48
|
* @default false
|
|
49
49
|
*/
|
|
50
50
|
showProgress?: boolean;
|
|
@@ -5,7 +5,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
5
5
|
import { getCommonConfig } from "../../../config";
|
|
6
6
|
import { Progress, theme } from 'antd';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import
|
|
8
|
+
import { useStyle } from "./index.style";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -19,7 +19,7 @@ export default (function (props) {
|
|
|
19
19
|
var commonConfig = getCommonConfig();
|
|
20
20
|
var sparkPrefix = commonConfig.sparkPrefix;
|
|
21
21
|
var token = theme.useToken();
|
|
22
|
-
|
|
22
|
+
var Style = useStyle();
|
|
23
23
|
var defaultIndicator = /*#__PURE__*/_jsxs("svg", {
|
|
24
24
|
className: "".concat(sparkPrefix, "-default-indicator"),
|
|
25
25
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -81,14 +81,31 @@ export default (function (props) {
|
|
|
81
81
|
})]
|
|
82
82
|
}) || null;
|
|
83
83
|
if (children) {
|
|
84
|
-
return /*#__PURE__*/_jsxs(
|
|
85
|
-
|
|
84
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
85
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsxs("div", {
|
|
86
|
+
className: classNames("".concat(sparkPrefix, "-spinner-overlay"), className),
|
|
87
|
+
style: style,
|
|
88
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
89
|
+
className: classNames("".concat(sparkPrefix, "-spinner-content"), _defineProperty({}, "".concat(sparkPrefix, "-spinning"), spinning)),
|
|
90
|
+
children: children
|
|
91
|
+
}), spinning && /*#__PURE__*/_jsxs("div", {
|
|
92
|
+
className: "".concat(sparkPrefix, "-spinner"),
|
|
93
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
94
|
+
className: "".concat(sparkPrefix, "-indicator"),
|
|
95
|
+
children: indicator || defaultIndicator
|
|
96
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
97
|
+
className: "".concat(sparkPrefix, "-title"),
|
|
98
|
+
children: tip
|
|
99
|
+
})]
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
105
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx("div", {
|
|
106
|
+
className: classNames("".concat(sparkPrefix, "-spinner"), className),
|
|
86
107
|
style: style,
|
|
87
|
-
children:
|
|
88
|
-
className: classNames("".concat(sparkPrefix, "-spinner-content"), _defineProperty({}, "".concat(sparkPrefix, "-spinning"), spinning)),
|
|
89
|
-
children: children
|
|
90
|
-
}), spinning && /*#__PURE__*/_jsxs("div", {
|
|
91
|
-
className: "".concat(sparkPrefix, "-spinner"),
|
|
108
|
+
children: spinning && /*#__PURE__*/_jsxs(_Fragment, {
|
|
92
109
|
children: [/*#__PURE__*/_jsx("div", {
|
|
93
110
|
className: "".concat(sparkPrefix, "-indicator"),
|
|
94
111
|
children: indicator || defaultIndicator
|
|
@@ -96,20 +113,7 @@ export default (function (props) {
|
|
|
96
113
|
className: "".concat(sparkPrefix, "-title"),
|
|
97
114
|
children: tip
|
|
98
115
|
})]
|
|
99
|
-
})
|
|
100
|
-
})
|
|
101
|
-
}
|
|
102
|
-
return /*#__PURE__*/_jsx("div", {
|
|
103
|
-
className: classNames("".concat(sparkPrefix, "-spinner"), className),
|
|
104
|
-
style: style,
|
|
105
|
-
children: spinning && /*#__PURE__*/_jsxs(_Fragment, {
|
|
106
|
-
children: [/*#__PURE__*/_jsx("div", {
|
|
107
|
-
className: "".concat(sparkPrefix, "-indicator"),
|
|
108
|
-
children: indicator || defaultIndicator
|
|
109
|
-
}), /*#__PURE__*/_jsx("div", {
|
|
110
|
-
className: "".concat(sparkPrefix, "-title"),
|
|
111
|
-
children: tip
|
|
112
|
-
})]
|
|
113
|
-
})
|
|
116
|
+
})
|
|
117
|
+
})]
|
|
114
118
|
});
|
|
115
119
|
});
|
|
@@ -1,79 +1 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
[x: string]: {
|
|
3
|
-
'0%': {
|
|
4
|
-
transform: string;
|
|
5
|
-
};
|
|
6
|
-
'100%': {
|
|
7
|
-
transform: string;
|
|
8
|
-
};
|
|
9
|
-
display?: undefined;
|
|
10
|
-
position?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
[x: string]: string | {
|
|
13
|
-
[x: string]: string | {
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
animation: string;
|
|
17
|
-
};
|
|
18
|
-
display: string;
|
|
19
|
-
justifyContent: string;
|
|
20
|
-
alignItems: string;
|
|
21
|
-
marginTop?: undefined;
|
|
22
|
-
fontWeight?: undefined;
|
|
23
|
-
fontSize?: undefined;
|
|
24
|
-
color?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
marginTop: string;
|
|
27
|
-
fontWeight: number;
|
|
28
|
-
fontSize: string;
|
|
29
|
-
color: string;
|
|
30
|
-
display?: undefined;
|
|
31
|
-
justifyContent?: undefined;
|
|
32
|
-
alignItems?: undefined;
|
|
33
|
-
};
|
|
34
|
-
display: string;
|
|
35
|
-
'0%'?: undefined;
|
|
36
|
-
'100%'?: undefined;
|
|
37
|
-
position?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
[x: string]: string | {
|
|
40
|
-
position: string;
|
|
41
|
-
opacity: number;
|
|
42
|
-
top?: undefined;
|
|
43
|
-
left?: undefined;
|
|
44
|
-
width?: undefined;
|
|
45
|
-
height?: undefined;
|
|
46
|
-
display?: undefined;
|
|
47
|
-
justifyContent?: undefined;
|
|
48
|
-
alignItems?: undefined;
|
|
49
|
-
flexDirection?: undefined;
|
|
50
|
-
zIndex?: undefined;
|
|
51
|
-
} | {
|
|
52
|
-
position: string;
|
|
53
|
-
top: number;
|
|
54
|
-
left: number;
|
|
55
|
-
width: string;
|
|
56
|
-
height: string;
|
|
57
|
-
display: string;
|
|
58
|
-
justifyContent: string;
|
|
59
|
-
alignItems: string;
|
|
60
|
-
flexDirection: string;
|
|
61
|
-
zIndex: number;
|
|
62
|
-
opacity?: undefined;
|
|
63
|
-
};
|
|
64
|
-
position: string;
|
|
65
|
-
display: string;
|
|
66
|
-
'0%'?: undefined;
|
|
67
|
-
'100%'?: undefined;
|
|
68
|
-
};
|
|
69
|
-
'@keyframes loading': {
|
|
70
|
-
'0%': {
|
|
71
|
-
transform: string;
|
|
72
|
-
};
|
|
73
|
-
'100%': {
|
|
74
|
-
transform: string;
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
declare const useIndexStyle: (props?: {}) => import("../../../config").CommonConfig;
|
|
79
|
-
export default useIndexStyle;
|
|
1
|
+
export declare const useStyle: () => () => import("react/jsx-runtime").JSX.Element;
|