@cloudtower/eagle 0.32.10 → 0.32.12
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/README.md +6 -0
- package/dist/cjs/core/Alert/index.js +10 -4
- package/dist/cjs/core/TableForm/TableFormBodyCell.js +2 -1
- package/dist/cjs/core/TableForm/TableFormHeaderCell.js +4 -2
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2930 -2907
- package/dist/esm/core/Alert/index.js +10 -4
- package/dist/esm/core/TableForm/TableFormBodyCell.js +2 -1
- package/dist/esm/core/TableForm/TableFormHeaderCell.js +4 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/TableForm/types.d.ts +1 -0
- package/dist/stories/docs/core/SearchInput.stories.d.ts +20 -20
- package/dist/style.css +2775 -2757
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -13,6 +13,12 @@ next 分支 storybook [next storybook]
|
|
|
13
13
|
|
|
14
14
|
v3.x 分支 storybook [v3.x storybook]
|
|
15
15
|
|
|
16
|
+
## 发版
|
|
17
|
+
|
|
18
|
+
进入到 [Create Release PR](https://github.com/webzard-io/cloudtower-ui-kit/actions/workflows/create-publish-pr.yml) 的 workflow 界面
|
|
19
|
+
|
|
20
|
+
详见 RELEASE.md
|
|
21
|
+
|
|
16
22
|
## 使用
|
|
17
23
|
|
|
18
24
|
```tsx
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var iconsReact = require('@cloudtower/icons-react');
|
|
3
4
|
var index = require('../Icon/index.js');
|
|
4
5
|
var antd = require('antd');
|
|
5
6
|
var cs = require('classnames');
|
|
@@ -51,14 +52,16 @@ const Alert = _a => {
|
|
|
51
52
|
onClose,
|
|
52
53
|
closeText,
|
|
53
54
|
action,
|
|
54
|
-
message
|
|
55
|
+
message,
|
|
56
|
+
closable
|
|
55
57
|
} = _b,
|
|
56
|
-
props = __objRest(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
|
|
58
|
+
props = __objRest(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message", "closable"]);
|
|
57
59
|
const _icon = /* @__PURE__ */React__default.default.createElement(index, {
|
|
58
60
|
alt: type,
|
|
59
61
|
src: icon.getAlertIcon(type)
|
|
60
62
|
});
|
|
61
63
|
const _type = type === "normal" ? "info" : type;
|
|
64
|
+
const _closable = closable || Boolean(onClose) || Boolean(closeText);
|
|
62
65
|
return /* @__PURE__ */React__default.default.createElement(antd.Alert, __spreadProps(__spreadValues({}, props), {
|
|
63
66
|
className: cs__default.default(AlertStyle, type ? `alert-${type}` : "", className, {
|
|
64
67
|
action
|
|
@@ -76,8 +79,11 @@ const Alert = _a => {
|
|
|
76
79
|
icon: icon$1 || _icon,
|
|
77
80
|
showIcon,
|
|
78
81
|
onClose,
|
|
79
|
-
closeText,
|
|
80
|
-
|
|
82
|
+
closeText: closeText || _closable && /* @__PURE__ */React__default.default.createElement(index, {
|
|
83
|
+
src: iconsReact.XmarkRemove16RegularTertiaryCapsOffIcon,
|
|
84
|
+
hoverSrc: iconsReact.XmarkRemove16RegularPrimaryCapsOffIcon
|
|
85
|
+
}),
|
|
86
|
+
closable: _closable
|
|
81
87
|
}));
|
|
82
88
|
};
|
|
83
89
|
var Alert$1 = Alert;
|
|
@@ -134,7 +134,8 @@ const TableFormBodyCell = (props) => {
|
|
|
134
134
|
},
|
|
135
135
|
onBlur: _onBlur,
|
|
136
136
|
rowIndex,
|
|
137
|
-
error: isCellErrorStyle
|
|
137
|
+
error: isCellErrorStyle,
|
|
138
|
+
formValue: data
|
|
138
139
|
}) : renderDefaultComponent();
|
|
139
140
|
const CellDescription = React.useMemo(() => {
|
|
140
141
|
var _a;
|
|
@@ -77,7 +77,8 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
77
77
|
isHeader: true,
|
|
78
78
|
disabled,
|
|
79
79
|
onChange: headerOnChange,
|
|
80
|
-
onBlur: headerOnBlur
|
|
80
|
+
onBlur: headerOnBlur,
|
|
81
|
+
formValue: data
|
|
81
82
|
});
|
|
82
83
|
}
|
|
83
84
|
if (disableBatchFilling) {
|
|
@@ -95,7 +96,8 @@ const BatchInputListHeaderCell = (props) => {
|
|
|
95
96
|
isHeader: true,
|
|
96
97
|
disabled,
|
|
97
98
|
onChange: headerOnChange,
|
|
98
|
-
onBlur: headerOnBlur
|
|
99
|
+
onBlur: headerOnBlur,
|
|
100
|
+
formValue: data
|
|
99
101
|
}) : renderDefaultComponent()
|
|
100
102
|
);
|
|
101
103
|
};
|