@cloudtower/eagle 0.27.89 → 0.27.91
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/dist/cjs/core/Antd5Dropdown/Antd5Dropdown.js +30 -0
- package/dist/cjs/core/InputPassword/index.js +72 -0
- package/dist/cjs/core/Modal/index.js +5 -3
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/index.js +180 -175
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2235 -2227
- package/dist/esm/core/Antd5Dropdown/Antd5Dropdown.js +24 -0
- package/dist/esm/core/InputPassword/index.js +62 -0
- package/dist/esm/core/Modal/index.js +5 -3
- package/dist/esm/index.js +2 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Antd5Dropdown/Antd5Dropdown.d.ts +3 -0
- package/dist/src/core/Antd5Dropdown/Antd5Dropdown.type.d.ts +2 -0
- package/dist/src/core/Antd5Dropdown/index.d.ts +2 -0
- package/dist/src/core/InputPassword/index.d.ts +10 -0
- package/dist/src/core/Modal/modal.type.d.ts +1 -0
- package/dist/src/core/index.d.ts +3 -0
- package/dist/stories/docs/core/Antd5Dropdown.stories.d.ts +12 -0
- package/dist/stories/docs/core/Input.simple.stories.d.ts +8 -10
- package/dist/stories/docs/core/InputPassword.stories.d.ts +20 -0
- package/dist/style.css +2084 -2077
- package/package.json +4 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Dropdown } from 'antd5';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
8
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9
|
+
var __spreadValues = (a, b) => {
|
|
10
|
+
for (var prop in b || (b = {}))
|
|
11
|
+
if (__hasOwnProp.call(b, prop))
|
|
12
|
+
__defNormalProp(a, prop, b[prop]);
|
|
13
|
+
if (__getOwnPropSymbols)
|
|
14
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
15
|
+
if (__propIsEnum.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
}
|
|
18
|
+
return a;
|
|
19
|
+
};
|
|
20
|
+
const Antd5Dropdown = (props) => {
|
|
21
|
+
return /* @__PURE__ */ React__default.createElement(Dropdown, __spreadValues({}, props));
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { Antd5Dropdown };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { styled } from '@linaria/react';
|
|
2
|
+
import { InputStyle } from '../Styled/index.js';
|
|
3
|
+
import { Typo } from '../Typo/index.js';
|
|
4
|
+
import { Input } from 'antd';
|
|
5
|
+
import cs from 'classnames';
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __defProps = Object.defineProperties;
|
|
10
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
11
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
12
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true,
|
|
18
|
+
value
|
|
19
|
+
}) : obj[key] = value;
|
|
20
|
+
var __spreadValues = (a, b) => {
|
|
21
|
+
for (var prop in b || (b = {})) if (__hasOwnProp.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop)) __defNormalProp(a, prop, b[prop]);
|
|
24
|
+
}
|
|
25
|
+
return a;
|
|
26
|
+
};
|
|
27
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
28
|
+
var __objRest = (source, exclude) => {
|
|
29
|
+
var target = {};
|
|
30
|
+
for (var prop in source) if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
31
|
+
if (source != null && __getOwnPropSymbols) for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) target[prop] = source[prop];
|
|
33
|
+
}
|
|
34
|
+
return target;
|
|
35
|
+
};
|
|
36
|
+
const _exp = /*#__PURE__*/() => Input.Password;
|
|
37
|
+
const AntdPasswordInputStyled = /*#__PURE__*/styled(_exp())({
|
|
38
|
+
name: "AntdPasswordInputStyled",
|
|
39
|
+
class: "E_atcz0kf",
|
|
40
|
+
propsAsIs: true
|
|
41
|
+
});
|
|
42
|
+
const InputPassword = _a => {
|
|
43
|
+
var _b = _a,
|
|
44
|
+
{
|
|
45
|
+
size = "small",
|
|
46
|
+
error,
|
|
47
|
+
className
|
|
48
|
+
} = _b,
|
|
49
|
+
props = __objRest(_b, ["size", "error", "className"]);
|
|
50
|
+
const typo = {
|
|
51
|
+
large: Typo.Label.l2_regular,
|
|
52
|
+
middle: Typo.Label.l3_regular,
|
|
53
|
+
small: Typo.Label.l4_regular
|
|
54
|
+
}[size];
|
|
55
|
+
return /* @__PURE__ */React__default.createElement(AntdPasswordInputStyled, __spreadProps(__spreadValues({}, props), {
|
|
56
|
+
size,
|
|
57
|
+
className: cs(className, InputStyle, typo, error && "error")
|
|
58
|
+
}));
|
|
59
|
+
};
|
|
60
|
+
var InputPassword$1 = InputPassword;
|
|
61
|
+
|
|
62
|
+
export { AntdPasswordInputStyled, InputPassword$1 as default };
|
|
@@ -61,7 +61,8 @@ const Modal = (props) => {
|
|
|
61
61
|
width,
|
|
62
62
|
showCancel = true,
|
|
63
63
|
showOk = true,
|
|
64
|
-
afterClose
|
|
64
|
+
afterClose,
|
|
65
|
+
closeIcon
|
|
65
66
|
} = _a, restProps = __objRest(_a, [
|
|
66
67
|
"error",
|
|
67
68
|
"okText",
|
|
@@ -80,7 +81,8 @@ const Modal = (props) => {
|
|
|
80
81
|
"width",
|
|
81
82
|
"showCancel",
|
|
82
83
|
"showOk",
|
|
83
|
-
"afterClose"
|
|
84
|
+
"afterClose",
|
|
85
|
+
"closeIcon"
|
|
84
86
|
]);
|
|
85
87
|
const stack = useKitSelector(
|
|
86
88
|
(state) => state.modal.stack
|
|
@@ -130,7 +132,7 @@ const Modal = (props) => {
|
|
|
130
132
|
onCancel == null ? void 0 : onCancel(e);
|
|
131
133
|
transitionClass.current = fullscreen ? "" : "modal-zoom";
|
|
132
134
|
},
|
|
133
|
-
closeIcon: /* @__PURE__ */ React__default.createElement(CloseCircleFilled, null),
|
|
135
|
+
closeIcon: closeIcon != null ? closeIcon : /* @__PURE__ */ React__default.createElement(CloseCircleFilled, null),
|
|
134
136
|
destroyOnClose: true,
|
|
135
137
|
focusTriggerAfterClose: false,
|
|
136
138
|
transitionName: transitionClass.current
|
package/dist/esm/index.js
CHANGED
|
@@ -38,6 +38,7 @@ export { default as Input } from './core/Input/index.js';
|
|
|
38
38
|
export { default as InputGroup } from './core/InputGroup/index.js';
|
|
39
39
|
export { AntdIntStyled, default as InputInteger } from './core/InputInteger/index.js';
|
|
40
40
|
export { AntdInputNumberStyled, default as InputNumber } from './core/InputNumber/index.js';
|
|
41
|
+
export { AntdPasswordInputStyled, default as InputPassword } from './core/InputPassword/index.js';
|
|
41
42
|
export { default as InputTagItem } from './core/InputTagItem/index.js';
|
|
42
43
|
export { default as KitStoreProvider, useKitDispatch, useKitSelector } from './core/KitStoreProvider/index.js';
|
|
43
44
|
export { default as Link } from './core/Link/index.js';
|
|
@@ -96,6 +97,7 @@ export { useTableBodyHasScrollBar } from './core/Table/common.js';
|
|
|
96
97
|
export { ColumnTitle, EmptyRowMenu, KitTableContext, TableLoading } from './core/Table/TableWidget.js';
|
|
97
98
|
export { ValidateTriggerType } from './core/TableForm/types.js';
|
|
98
99
|
export { Typo } from './core/Typo/index.js';
|
|
100
|
+
export { Antd5Dropdown } from './core/Antd5Dropdown/Antd5Dropdown.js';
|
|
99
101
|
export { default as BarChart, getWidth } from './coreX/BarChart/index.js';
|
|
100
102
|
export { default as BatchOperation, renderBatchOperationMenuItem } from './coreX/BatchOperation/index.js';
|
|
101
103
|
export { default as ChartWithTooltip, ChartWithUnit } from './coreX/ChartWithTooltip/index.js';
|