@chaoswise/ui 3.0.11 → 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 +20 -13
- package/lib/CWMessage/MessageContent/index.js +6 -6
- package/lib/CWMessage/index.js +79 -77
- package/lib/CWMessage/index.style.js +16 -6
- 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/lib/locales/en_US.json +1 -0
- package/lib/locales/index.js +1 -1
- package/lib/locales/zh_CN.json +1 -0
- package/lib/locales/zh_TW.json +1 -0
- 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,
|
package/lib/locales/en_US.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"54653cf2-ee7e-4091-b778-30d21facc877": "The page is lost and the platform is retrieving it",
|
|
24
24
|
"56a89179-5086-4c43-8814-06eac1ba9983": "Increase the time span by {span} times",
|
|
25
25
|
"58bc27cb-aac5-49f8-8c9e-3b0fbb9d9c61": "Mark all read",
|
|
26
|
+
"5cc44ee5-8da3-446b-b962-3fe7f77d4f38": "Top",
|
|
26
27
|
"5fe60774-0f08-450f-a9d9-998996485fec": "Drag Move",
|
|
27
28
|
"627a6799-d6da-421d-a2c4-d6982c27a258": "Do you want to continue?",
|
|
28
29
|
"6356dd5c-b99d-4b34-acb3-683e4d5edb40": "Skip",
|
package/lib/locales/index.js
CHANGED
|
@@ -43,7 +43,7 @@ export var useIntl = function useIntl() {
|
|
|
43
43
|
var forceUpdate = useForceUpdate();
|
|
44
44
|
var initLocale = function initLocale() {
|
|
45
45
|
if (!TagInitInstance.getInit()) {
|
|
46
|
-
injectLocale('
|
|
46
|
+
injectLocale('zh_CN', function () {
|
|
47
47
|
TagInitInstance.setInit();
|
|
48
48
|
forceUpdate();
|
|
49
49
|
});
|
package/lib/locales/zh_CN.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"54653cf2-ee7e-4091-b778-30d21facc877": "页面走丢了,平台正在找回页面",
|
|
24
24
|
"56a89179-5086-4c43-8814-06eac1ba9983": "按{span}倍增加时间跨度",
|
|
25
25
|
"58bc27cb-aac5-49f8-8c9e-3b0fbb9d9c61": "全部已读",
|
|
26
|
+
"5cc44ee5-8da3-446b-b962-3fe7f77d4f38": "置顶",
|
|
26
27
|
"5fe60774-0f08-450f-a9d9-998996485fec": "拖拽移动",
|
|
27
28
|
"627a6799-d6da-421d-a2c4-d6982c27a258": "需要继续下一个任务吗?",
|
|
28
29
|
"6356dd5c-b99d-4b34-acb3-683e4d5edb40": "跳过",
|
package/lib/locales/zh_TW.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"54653cf2-ee7e-4091-b778-30d21facc877": "頁面走丟了,平臺正在找回頁面",
|
|
24
24
|
"56a89179-5086-4c43-8814-06eac1ba9983": "按{span}倍增加時間跨度",
|
|
25
25
|
"58bc27cb-aac5-49f8-8c9e-3b0fbb9d9c61": "全部已讀",
|
|
26
|
+
"5cc44ee5-8da3-446b-b962-3fe7f77d4f38": "置頂",
|
|
26
27
|
"5fe60774-0f08-450f-a9d9-998996485fec": "拖拽移動",
|
|
27
28
|
"627a6799-d6da-421d-a2c4-d6982c27a258": "需要繼續下一個任務嗎?",
|
|
28
29
|
"6356dd5c-b99d-4b34-acb3-683e4d5edb40": "跳過",
|