@chaoswise/ui 3.0.12 → 3.0.13
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/AppHolder/index.js +19 -0
- package/lib/Badge/index.style.js +42 -10
- package/lib/BasicLayout/Sider.js +6 -2
- package/lib/BasicLayout/style/sider.js +53 -49
- package/lib/CWMessage/MessageContent/TabList/index.js +2 -2
- package/lib/CWMessage/MessageContent/index.js +6 -6
- package/lib/CWMessage/index.js +80 -90
- package/lib/CWMessage/index.style.js +1 -3
- package/lib/CWRangePicker/DropdownMenu/index.js +39 -35
- package/lib/CWRangePicker/DropdownMenu/index.style.js +129 -130
- package/lib/CWRangePicker/Refresh/index.js +6 -2
- package/lib/CWRangePicker/Refresh/index.style.js +16 -19
- package/lib/CWRangePicker/TimeSpan/index.js +7 -2
- package/lib/CWRangePicker/TimeSpan/index.style.js +9 -12
- package/lib/CWRangePicker/index.js +6 -2
- package/lib/CWRangePicker/index.style.js +47 -52
- package/lib/CWTable/CWTable.js +1 -1
- package/lib/CWTree/index.js +6 -2
- package/lib/CWTree/index.style.js +97 -99
- package/lib/ChangeIcon/index.js +1 -1
- package/lib/ConfigProvider/ConfigProvider.js +15 -3
- package/lib/Exception/index.js +1 -1
- package/lib/FilterDropDown/index.js +1 -1
- package/lib/Header/TopNavigationMenu/index.js +1 -1
- package/lib/Header/UserSetting/index.js +1 -1
- package/lib/Header/index.js +1 -1
- package/lib/IconSelect/index.js +1 -1
- package/lib/LayoutWrapper/Footer.js +5 -1
- package/lib/LayoutWrapper/Header.js +5 -1
- package/lib/LayoutWrapper/index.js +5 -2
- package/lib/LeftNavigation/index.js +1 -1
- package/lib/QuickTransfer/index.js +5 -1
- package/lib/SearchBar/index.js +1 -1
- package/lib/SimplePagination/index.js +1 -1
- package/lib/Tag/index.style.js +41 -9
- package/lib/Tooltip/index.js +2 -2
- package/lib/TooltipText/index.js +1 -1
- package/lib/UniversalLayout/index.js +5 -1
- package/lib/antd-style/functions/index.js +6 -5
- package/package.json +1 -1
package/lib/Tag/index.style.js
CHANGED
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
2
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
3
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
5
4
|
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); }
|
|
6
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
5
|
import { genStyleHooks } from "../Antd5/theme/internal";
|
|
8
|
-
import {
|
|
9
|
-
var k_loadingK =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import { Keyframes } from "@ant-design/cssinjs";
|
|
7
|
+
var k_loadingK = new Keyframes("k_loadingK", {
|
|
8
|
+
"0%": {
|
|
9
|
+
left: 0,
|
|
10
|
+
transform: "scale(1.1)",
|
|
11
|
+
zIndex: 0
|
|
12
|
+
},
|
|
13
|
+
"50%": {
|
|
14
|
+
left: "100%",
|
|
15
|
+
transform: "scale(1)",
|
|
16
|
+
zIndex: 1
|
|
17
|
+
},
|
|
18
|
+
"100%": {
|
|
19
|
+
left: 0,
|
|
20
|
+
transform: 'scale(1.1)',
|
|
21
|
+
zIndex: 0
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
var k_loadingL = new Keyframes("k_loadingL", {
|
|
25
|
+
"0%": {
|
|
26
|
+
left: "100%",
|
|
27
|
+
transform: 'scale(1.1)',
|
|
28
|
+
zIndex: 1
|
|
29
|
+
},
|
|
30
|
+
"50%": {
|
|
31
|
+
left: 0,
|
|
32
|
+
transform: "scale(1)",
|
|
33
|
+
zIndex: 1
|
|
34
|
+
},
|
|
35
|
+
"100%": {
|
|
36
|
+
left: "100%",
|
|
37
|
+
transform: 'scale(1.1)',
|
|
38
|
+
zIndex: 0
|
|
39
|
+
}
|
|
40
|
+
});
|
|
13
41
|
var prepareComponentToken = function prepareComponentToken(token) {
|
|
14
42
|
return {
|
|
15
43
|
checkableTagBg: token.Tag.checkableTagBg,
|
|
@@ -90,11 +118,15 @@ var genCustomCWTagStyle = function genCustomCWTagStyle(token) {
|
|
|
90
118
|
},
|
|
91
119
|
"&::before": {
|
|
92
120
|
background: token.colorPrimary,
|
|
93
|
-
|
|
121
|
+
animationName: k_loadingK,
|
|
122
|
+
animationDuration: '1s',
|
|
123
|
+
animationIterationCount: 'infinite'
|
|
94
124
|
},
|
|
95
125
|
"&:after": {
|
|
96
126
|
background: token.colorSuccess,
|
|
97
|
-
|
|
127
|
+
animationName: k_loadingL,
|
|
128
|
+
animationDuration: '1s',
|
|
129
|
+
animationIterationCount: 'infinite'
|
|
98
130
|
}
|
|
99
131
|
}), "".concat(tagPrefix, "-processing-text"), {
|
|
100
132
|
display: "inline-block",
|
package/lib/Tooltip/index.js
CHANGED
|
@@ -31,14 +31,14 @@ function CWTooltip(_ref, ref) {
|
|
|
31
31
|
resp = _objectWithoutProperties(_ref, _excluded);
|
|
32
32
|
var _useConfigContext = useConfigContext(),
|
|
33
33
|
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
34
|
-
var prefixCls = getPrefixCls("tooltip
|
|
34
|
+
var prefixCls = getPrefixCls("tooltip");
|
|
35
35
|
var _useStyle = useStyle(prefixCls),
|
|
36
36
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
37
37
|
wrapCSSVar = _useStyle2[0],
|
|
38
38
|
hashId = _useStyle2[1],
|
|
39
39
|
cssVarCls = _useStyle2[2];
|
|
40
40
|
return wrapCSSVar( /*#__PURE__*/React.createElement(AntdTooltip, _extends({
|
|
41
|
-
overlayClassName: classnames(_defineProperty({}, "".concat(prefixCls), useUiRule), overlayClassName),
|
|
41
|
+
overlayClassName: classnames(_defineProperty({}, "".concat(prefixCls, "-use-ui-rule"), useUiRule), overlayClassName),
|
|
42
42
|
ref: ref,
|
|
43
43
|
open: visible,
|
|
44
44
|
onOpenChange: onVisibleChange
|
package/lib/TooltipText/index.js
CHANGED
|
@@ -105,7 +105,7 @@ var TooltipText = function TooltipText(_ref) {
|
|
|
105
105
|
}, children));
|
|
106
106
|
}
|
|
107
107
|
return children;
|
|
108
|
-
}, [width, wrapperWidth, children, isCenterEllipsis, isShowTooltip]);
|
|
108
|
+
}, [ellipsisWidth, width, wrapperWidth, children, isCenterEllipsis, isShowTooltip]);
|
|
109
109
|
return wrapCSSVar( /*#__PURE__*/React.createElement(_Tooltip, _extends({
|
|
110
110
|
title: isShowTooltip ? title ? title : children : ""
|
|
111
111
|
}, resP), /*#__PURE__*/React.createElement("span", {
|
|
@@ -8,6 +8,7 @@ import React from "react";
|
|
|
8
8
|
import PropTypes from "prop-types";
|
|
9
9
|
import useStyle from "./index.style";
|
|
10
10
|
import classnames from "classnames";
|
|
11
|
+
import useConfigContext from "../useConfigContext";
|
|
11
12
|
var _ = require("lodash-es");
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -19,7 +20,10 @@ export default function UniversalLayout(_ref) {
|
|
|
19
20
|
style = _ref.style,
|
|
20
21
|
itemStyle = _ref.itemStyle,
|
|
21
22
|
children = _ref.children;
|
|
22
|
-
var
|
|
23
|
+
var _useConfigContext = useConfigContext(),
|
|
24
|
+
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
25
|
+
var prefixCls = getPrefixCls();
|
|
26
|
+
var _useStyle = useStyle("".concat(prefixCls, "-universal-layout")),
|
|
23
27
|
_useStyle2 = _slicedToArray(_useStyle, 3),
|
|
24
28
|
wrapCSSVar = _useStyle2[0],
|
|
25
29
|
hashId = _useStyle2[1],
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
var _process, _process2;
|
|
2
|
+
import { DEFAULT_CSS_PREFIX_KEY } from "../core";
|
|
3
|
+
import { createInstance } from "./createInstance";
|
|
4
|
+
export { extractStaticStyle } from "./extractStaticStyle";
|
|
5
|
+
export { setupStyled } from "./setupStyled";
|
|
5
6
|
export { createInstance };
|
|
6
7
|
var styleInstance = createInstance({
|
|
7
|
-
key: DEFAULT_CSS_PREFIX_KEY,
|
|
8
|
+
key: (_process = process) !== null && _process !== void 0 && (_process = _process.env) !== null && _process !== void 0 && _process.DEFAULT_CSS_PREFIX_KEY ? (_process2 = process) === null || _process2 === void 0 || (_process2 = _process2.env) === null || _process2 === void 0 ? void 0 : _process2.DEFAULT_CSS_PREFIX_KEY : DEFAULT_CSS_PREFIX_KEY,
|
|
8
9
|
speedy: false
|
|
9
10
|
});
|
|
10
11
|
var createStyles = styleInstance.createStyles,
|