@oceanbase/design 0.4.8 → 0.4.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/dist/design.min.js +1 -1
- package/es/alert/index.d.ts +2 -2
- package/es/alert/index.js +13 -3
- package/es/button/index.d.ts +1 -1
- package/es/config-provider/index.d.ts +1 -1
- package/es/config-provider/index.js +7 -6
- package/es/descriptions/hooks/useItems.d.ts +6 -6
- package/es/dropdown/dropdown-button.d.ts +8 -0
- package/es/dropdown/dropdown-button.js +23 -0
- package/es/dropdown/index.d.ts +10 -0
- package/es/dropdown/index.js +17 -1
- package/es/form/FormItem.d.ts +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/es/list/index.d.ts +1 -1
- package/es/modal/Progress.d.ts +1 -1
- package/es/table/index.js +3 -1
- package/es/table/style/index.js +7 -3
- package/es/tooltip/ReactStickyMouseTooltip.d.ts +1 -1
- package/lib/alert/index.d.ts +2 -2
- package/lib/alert/index.js +21 -2
- package/lib/button/index.d.ts +1 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +6 -4
- package/lib/descriptions/hooks/useItems.d.ts +5 -5
- package/lib/dropdown/dropdown-button.d.ts +8 -0
- package/lib/dropdown/dropdown-button.js +42 -0
- package/lib/dropdown/index.d.ts +10 -0
- package/lib/dropdown/index.js +27 -1
- package/lib/form/FormItem.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lib/list/index.d.ts +1 -1
- package/lib/modal/Progress.d.ts +1 -1
- package/lib/table/index.d.ts +2 -2
- package/lib/table/index.js +3 -1
- package/lib/table/style/index.js +9 -3
- package/lib/tooltip/ReactStickyMouseTooltip.d.ts +1 -1
- package/package.json +2 -2
package/es/alert/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
3
3
|
export * from 'antd/es/alert';
|
|
4
4
|
export interface AlertProps extends AntAlertProps {
|
|
5
5
|
ghost?: boolean;
|
|
6
6
|
colored?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const Alert: {
|
|
9
|
-
({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
({ type, ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
10
|
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
package/es/alert/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 _excluded = ["ghost", "colored", "prefixCls", "className"];
|
|
2
|
+
var _excluded = ["type", "ghost", "colored", "prefixCls", "className"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -7,15 +7,23 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
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); }
|
|
8
8
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
9
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import React, { useContext } from 'react';
|
|
10
11
|
import { Alert as AntAlert } from 'antd';
|
|
12
|
+
import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined } from '@oceanbase/icons';
|
|
11
13
|
import classNames from 'classnames';
|
|
12
|
-
import React, { useContext } from 'react';
|
|
13
14
|
import ConfigProvider from "../config-provider";
|
|
14
15
|
import useStyle from "./style";
|
|
15
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
export * from 'antd/es/alert';
|
|
18
|
+
var iconMapOutlined = {
|
|
19
|
+
success: /*#__PURE__*/_jsx(CheckCircleOutlined, {}),
|
|
20
|
+
info: /*#__PURE__*/_jsx(InfoCircleOutlined, {}),
|
|
21
|
+
error: /*#__PURE__*/_jsx(CloseCircleOutlined, {}),
|
|
22
|
+
warning: /*#__PURE__*/_jsx(ExclamationCircleOutlined, {})
|
|
23
|
+
};
|
|
17
24
|
var Alert = function Alert(_ref) {
|
|
18
|
-
var
|
|
25
|
+
var type = _ref.type,
|
|
26
|
+
ghost = _ref.ghost,
|
|
19
27
|
colored = _ref.colored,
|
|
20
28
|
customizePrefixCls = _ref.prefixCls,
|
|
21
29
|
className = _ref.className,
|
|
@@ -27,6 +35,8 @@ var Alert = function Alert(_ref) {
|
|
|
27
35
|
wrapSSR = _useStyle.wrapSSR;
|
|
28
36
|
var alertCls = classNames(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-ghost"), ghost), "".concat(prefixCls, "-colored"), colored), className);
|
|
29
37
|
return wrapSSR( /*#__PURE__*/_jsx(AntAlert, _objectSpread({
|
|
38
|
+
type: type,
|
|
39
|
+
icon: iconMapOutlined[type],
|
|
30
40
|
prefixCls: customizePrefixCls,
|
|
31
41
|
className: alertCls
|
|
32
42
|
}, restProps)));
|
package/es/button/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export * from 'antd/es/button';
|
|
4
4
|
export type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<
|
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
6
6
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
7
7
|
__ANT_BUTTON: boolean;
|
|
8
8
|
};
|
|
@@ -45,13 +45,13 @@ export interface ConfigProviderProps extends AntConfigProviderProps {
|
|
|
45
45
|
pagination?: PaginationConfig;
|
|
46
46
|
spin?: SpinConfig;
|
|
47
47
|
table?: TableConfig;
|
|
48
|
-
injectStaticFunction?: boolean;
|
|
49
48
|
styleProviderProps?: StyleProviderProps;
|
|
50
49
|
appProps?: AppProps;
|
|
51
50
|
}
|
|
52
51
|
export interface ExtendedConfigConsumerProps {
|
|
53
52
|
navigate?: NavigateFunction;
|
|
54
53
|
hideOnSinglePage?: boolean;
|
|
54
|
+
injectStaticFunction?: boolean;
|
|
55
55
|
}
|
|
56
56
|
declare const ExtendedConfigContext: React.Context<ExtendedConfigConsumerProps>;
|
|
57
57
|
export type ConfigProviderType = React.FC<ConfigProviderProps> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
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 _excluded = ["children", "theme", "locale", "navigate", "hideOnSinglePage", "card", "collapse", "form", "spin", "table", "tabs", "
|
|
2
|
+
var _excluded = ["children", "theme", "locale", "navigate", "hideOnSinglePage", "card", "collapse", "form", "spin", "table", "tabs", "styleProviderProps", "appProps"];
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -28,7 +28,8 @@ export * from 'antd/es/config-provider/DisabledContext';
|
|
|
28
28
|
export * from 'antd/es/config-provider';
|
|
29
29
|
var ExtendedConfigContext = /*#__PURE__*/React.createContext({
|
|
30
30
|
navigate: undefined,
|
|
31
|
-
hideOnSinglePage: false
|
|
31
|
+
hideOnSinglePage: false,
|
|
32
|
+
injectStaticFunction: true
|
|
32
33
|
});
|
|
33
34
|
var ConfigProvider = function ConfigProvider(_ref) {
|
|
34
35
|
var _mergedTheme$token, _parentContext$pagina;
|
|
@@ -43,8 +44,6 @@ var ConfigProvider = function ConfigProvider(_ref) {
|
|
|
43
44
|
spin = _ref.spin,
|
|
44
45
|
table = _ref.table,
|
|
45
46
|
tabs = _ref.tabs,
|
|
46
|
-
_ref$injectStaticFunc = _ref.injectStaticFunction,
|
|
47
|
-
injectStaticFunction = _ref$injectStaticFunc === void 0 ? true : _ref$injectStaticFunc,
|
|
48
47
|
styleProviderProps = _ref.styleProviderProps,
|
|
49
48
|
appProps = _ref.appProps,
|
|
50
49
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -105,13 +104,15 @@ var ConfigProvider = function ConfigProvider(_ref) {
|
|
|
105
104
|
children: /*#__PURE__*/_jsx(ExtendedConfigContext.Provider, {
|
|
106
105
|
value: {
|
|
107
106
|
navigate: navigate === undefined ? parentExtendedContext.navigate : navigate,
|
|
108
|
-
hideOnSinglePage: (_parentContext$pagina = parentContext.pagination) !== null && _parentContext$pagina !== void 0 && _parentContext$pagina.showSizeChanger ? false : hideOnSinglePage !== undefined ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage
|
|
107
|
+
hideOnSinglePage: (_parentContext$pagina = parentContext.pagination) !== null && _parentContext$pagina !== void 0 && _parentContext$pagina.showSizeChanger ? false : hideOnSinglePage !== undefined ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage,
|
|
108
|
+
// inject static function to outermost ConfigProvider only
|
|
109
|
+
injectStaticFunction: false
|
|
109
110
|
},
|
|
110
111
|
children: /*#__PURE__*/_jsx(StyleProvider, _objectSpread(_objectSpread({}, mergedStyleProviderProps), {}, {
|
|
111
112
|
children: /*#__PURE__*/_jsxs(App, _objectSpread(_objectSpread({
|
|
112
113
|
component: false
|
|
113
114
|
}, appProps), {}, {
|
|
114
|
-
children: [children, injectStaticFunction && /*#__PURE__*/_jsx(StaticFunction, {})]
|
|
115
|
+
children: [children, parentExtendedContext.injectStaticFunction && /*#__PURE__*/_jsx(StaticFunction, {})]
|
|
115
116
|
}))
|
|
116
117
|
}))
|
|
117
118
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DescriptionsItemType } from '..';
|
|
3
3
|
export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
|
|
4
|
-
children: string | number | boolean | import("@emotion/react/
|
|
4
|
+
children: string | number | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<React.ReactNode>;
|
|
5
5
|
span?: number | "filled" | {
|
|
6
6
|
xxl?: number;
|
|
7
7
|
xl?: number;
|
|
@@ -10,13 +10,13 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
|
|
|
10
10
|
sm?: number;
|
|
11
11
|
xs?: number;
|
|
12
12
|
};
|
|
13
|
-
|
|
14
|
-
className?: string;
|
|
13
|
+
label?: React.ReactNode;
|
|
15
14
|
style?: React.CSSProperties;
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
className?: string;
|
|
16
|
+
prefixCls?: string;
|
|
18
17
|
key?: React.Key;
|
|
19
|
-
|
|
18
|
+
classNames?: Partial<Record<"label" | "content", string>>;
|
|
19
|
+
styles?: Partial<Record<"label" | "content", React.CSSProperties>>;
|
|
20
20
|
labelStyle?: React.CSSProperties;
|
|
21
21
|
contentStyle?: React.CSSProperties;
|
|
22
22
|
}[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownButtonProps } from 'antd/es/dropdown';
|
|
3
|
+
type CompoundedComponent = React.FC<DropdownButtonProps> & {
|
|
4
|
+
/** @internal */
|
|
5
|
+
__ANT_BUTTON: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const DropdownButton: CompoundedComponent;
|
|
8
|
+
export default DropdownButton;
|
|
@@ -0,0 +1,23 @@
|
|
|
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 _excluded = ["icon"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
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); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { Dropdown } from 'antd';
|
|
12
|
+
import { DownOutlined } from '@oceanbase/icons';
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
var DropdownButton = function DropdownButton(_ref) {
|
|
15
|
+
var _ref$icon = _ref.icon,
|
|
16
|
+
icon = _ref$icon === void 0 ? /*#__PURE__*/_jsx(DownOutlined, {}) : _ref$icon,
|
|
17
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
18
|
+
return /*#__PURE__*/_jsx(Dropdown.Button, _objectSpread({
|
|
19
|
+
icon: icon
|
|
20
|
+
}, restProps));
|
|
21
|
+
};
|
|
22
|
+
DropdownButton.__ANT_BUTTON = true;
|
|
23
|
+
export default DropdownButton;
|
package/es/dropdown/index.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown as AntDropdown } from 'antd';
|
|
3
|
+
import type { DropDownProps } from 'antd/es/dropdown';
|
|
4
|
+
import DropdownButton from './dropdown-button';
|
|
1
5
|
export * from 'antd/es/dropdown';
|
|
6
|
+
type CompoundedComponent = React.FC<DropDownProps> & {
|
|
7
|
+
Button: typeof DropdownButton;
|
|
8
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof AntDropdown._InternalPanelDoNotUseOrYouWillBeFired;
|
|
9
|
+
};
|
|
10
|
+
declare const Dropdown: CompoundedComponent;
|
|
11
|
+
export default Dropdown;
|
package/es/dropdown/index.js
CHANGED
|
@@ -1 +1,17 @@
|
|
|
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
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
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); }
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Dropdown as AntDropdown } from 'antd';
|
|
9
|
+
import DropdownButton from "./dropdown-button";
|
|
10
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
+
export * from 'antd/es/dropdown';
|
|
12
|
+
var Dropdown = function Dropdown(props) {
|
|
13
|
+
return /*#__PURE__*/_jsx(AntDropdown, _objectSpread({}, props));
|
|
14
|
+
};
|
|
15
|
+
Dropdown._InternalPanelDoNotUseOrYouWillBeFired = AntDropdown._InternalPanelDoNotUseOrYouWillBeFired;
|
|
16
|
+
Dropdown.Button = DropdownButton;
|
|
17
|
+
export default Dropdown;
|
package/es/form/FormItem.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface FormItemProps extends AntFormItemProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
13
13
|
useStatus: () => {
|
|
14
|
-
status?: "" | "
|
|
14
|
+
status?: "" | "success" | "warning" | "error" | "validating";
|
|
15
15
|
errors: ReactNode[];
|
|
16
16
|
warnings: ReactNode[];
|
|
17
17
|
};
|
package/es/index.d.ts
CHANGED
|
@@ -56,6 +56,8 @@ export { default as Segmented } from './segmented';
|
|
|
56
56
|
export type { SegmentedProps } from './segmented';
|
|
57
57
|
export { default as Breadcrumb } from './breadcrumb';
|
|
58
58
|
export type { BreadcrumbProps, BreadcrumbItemProps } from './breadcrumb';
|
|
59
|
+
export { default as Dropdown } from './dropdown';
|
|
60
|
+
export type { DropdownProps, DropdownButtonProps, DropdownButtonType } from './dropdown';
|
|
59
61
|
export { default as Result } from './result';
|
|
60
62
|
export type { ResultProps, ResultType, ResultStatusType } from './result';
|
|
61
63
|
export { default as Spin } from './spin';
|
package/es/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export { default as Slider } from "./slider";
|
|
|
29
29
|
export { default as Tooltip } from "./tooltip";
|
|
30
30
|
export { default as Segmented } from "./segmented";
|
|
31
31
|
export { default as Breadcrumb } from "./breadcrumb";
|
|
32
|
+
export { default as Dropdown } from "./dropdown";
|
|
32
33
|
export { default as Result } from "./result";
|
|
33
34
|
export { default as Spin } from "./spin";
|
|
34
35
|
export { default as Badge } from "./badge";
|
package/es/list/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ListProps } from 'antd/es/list';
|
|
2
2
|
export * from 'antd/es/list';
|
|
3
3
|
export * from 'antd/es/list/Item';
|
|
4
|
-
declare function List<T>({ pagination, ...restProps }: ListProps<T>): import("@emotion/react/
|
|
4
|
+
declare function List<T>({ pagination, ...restProps }: ListProps<T>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace List {
|
|
6
6
|
var Item: import("antd/es/list/Item").ListItemTypeProps;
|
|
7
7
|
var displayName: string;
|
package/es/modal/Progress.d.ts
CHANGED
|
@@ -6,5 +6,5 @@ export interface ModalProgressProps extends ModalProps {
|
|
|
6
6
|
progress?: ProgressProps;
|
|
7
7
|
description?: React.ReactNode;
|
|
8
8
|
}
|
|
9
|
-
declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => import("@emotion/react/
|
|
9
|
+
declare const Progress: ({ prefixCls: customizePrefixCls, className, width, maskClosable, loading, progress, description, footer, ...restProps }: ModalProgressProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default Progress;
|
package/es/table/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export * from 'antd/es/table';
|
|
|
30
30
|
function Table(props, ref) {
|
|
31
31
|
var _enUS$Table, _locale$Table;
|
|
32
32
|
var customLocale = props.locale,
|
|
33
|
+
size = props.size,
|
|
33
34
|
columns = props.columns,
|
|
34
35
|
footer = props.footer,
|
|
35
36
|
customPagination = props.pagination,
|
|
@@ -188,12 +189,13 @@ function Table(props, ref) {
|
|
|
188
189
|
children: typeof emptyText === 'function' ? emptyText() : emptyText
|
|
189
190
|
})
|
|
190
191
|
}),
|
|
192
|
+
size: size,
|
|
191
193
|
columns: newColumns,
|
|
192
194
|
rowClassName: function rowClassName() {
|
|
193
195
|
return classNames(typeof _rowClassName === 'function' ? _rowClassName.apply(void 0, arguments) : _rowClassName, _defineProperty({}, "".concat(prefixCls, "-expand-row-by-click"), expandable === null || expandable === void 0 ? void 0 : expandable.expandRowByClick));
|
|
194
196
|
},
|
|
195
197
|
expandable: expandable ? _objectSpread({
|
|
196
|
-
columnWidth: 32
|
|
198
|
+
columnWidth: !size || size === 'large' ? 40 : 32
|
|
197
199
|
}, expandable) : undefined,
|
|
198
200
|
rowSelection: rowSelection ? _objectSpread(_objectSpread({
|
|
199
201
|
columnWidth: table === null || table === void 0 ? void 0 : table.selectionColumnWidth
|
package/es/table/style/index.js
CHANGED
|
@@ -91,20 +91,24 @@ export var genTableStyle = function genTableStyle(token) {
|
|
|
91
91
|
borderBottomRightRadius: 0
|
|
92
92
|
}), "".concat(componentCls, "-wrapper:not(").concat(componentCls, "-expandable)"), _defineProperty({}, "".concat(componentCls, ":not(").concat(componentCls, "-bordered)"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr:not(".concat(componentCls, "-measure-row) > td"), {
|
|
93
93
|
border: 'none'
|
|
94
|
-
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(
|
|
94
|
+
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty(_defineProperty({}, "tr:nth-child(n):not(".concat(componentCls, "-placeholder):not(").concat(componentCls, "-row-selected):not(").concat(componentCls, "-expanded-row)"), _defineProperty(_defineProperty({}, '& > td', {
|
|
95
95
|
backgroundColor: colorBgBase
|
|
96
96
|
}), '&:hover', {
|
|
97
97
|
td: {
|
|
98
98
|
backgroundColor: colorPrimaryBg
|
|
99
99
|
}
|
|
100
|
-
})), "".concat(componentCls, "-expanded-row > td"), _defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper)"), {
|
|
100
|
+
})), "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
101
101
|
marginLeft: token.marginXL + token.lineWidth * 2
|
|
102
|
+
}), "& > *".concat(componentCls, "-expanded-row-fixed"), {
|
|
103
|
+
paddingLeft: token.marginXL + token.lineWidth * 2 + token.padding
|
|
102
104
|
})), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
103
105
|
marginLeft: token.margin + token.lineWidth * 2
|
|
104
106
|
}))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
105
107
|
marginLeft: token.margin + token.lineWidth * 2 + token.margin
|
|
106
|
-
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper)"), {
|
|
108
|
+
})))), "".concat(componentCls, "-wrapper").concat(componentCls, "-expandable").concat(componentCls, "-selectable"), _defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-expanded-row > td"), _defineProperty(_defineProperty({}, "& > *:not(".concat(componentCls, "-wrapper):not(").concat(componentCls, "-expanded-row-fixed)"), {
|
|
107
109
|
marginLeft: token.marginXL + token.marginXL + token.lineWidth * 2
|
|
110
|
+
}), "& > *".concat(componentCls, "-expanded-row-fixed"), {
|
|
111
|
+
paddingLeft: token.marginXL + token.marginXL + token.lineWidth * 2 + token.padding
|
|
108
112
|
})), "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
109
113
|
marginLeft: token.margin + token.marginXL + token.lineWidth * 2
|
|
110
114
|
}))), "".concat(componentCls, "-middle, ").concat(componentCls, "-small"), _defineProperty({}, "".concat(componentCls, "-tbody"), _defineProperty({}, "tr > td > ".concat(componentCls, "-wrapper:only-child ").concat(componentCls), {
|
|
@@ -35,6 +35,6 @@ declare class ReactStickyMouseTooltip extends React.PureComponent<ReactStickyMou
|
|
|
35
35
|
addListener: () => void;
|
|
36
36
|
removeListener: () => void;
|
|
37
37
|
updateListener: () => void;
|
|
38
|
-
render(): import("@emotion/react/
|
|
38
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
39
|
}
|
|
40
40
|
export default ReactStickyMouseTooltip;
|
package/lib/alert/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { AlertProps as AntAlertProps } from 'antd/es/alert';
|
|
3
3
|
export * from 'antd/es/alert';
|
|
4
4
|
export interface AlertProps extends AntAlertProps {
|
|
5
5
|
ghost?: boolean;
|
|
6
6
|
colored?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const Alert: {
|
|
9
|
-
({ ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
({ type, ghost, colored, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
10
|
ErrorBoundary: typeof import("antd/es/alert/ErrorBoundary").default;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
package/lib/alert/index.js
CHANGED
|
@@ -33,13 +33,21 @@ __export(alert_exports, {
|
|
|
33
33
|
default: () => alert_default
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(alert_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
36
37
|
var import_antd = require("antd");
|
|
38
|
+
var import_icons = require("@oceanbase/icons");
|
|
37
39
|
var import_classnames = __toESM(require("classnames"));
|
|
38
|
-
var import_react = __toESM(require("react"));
|
|
39
40
|
var import_config_provider = __toESM(require("../config-provider"));
|
|
40
41
|
var import_style = __toESM(require("./style"));
|
|
41
42
|
__reExport(alert_exports, require("antd/es/alert"), module.exports);
|
|
43
|
+
var iconMapOutlined = {
|
|
44
|
+
success: /* @__PURE__ */ import_react.default.createElement(import_icons.CheckCircleOutlined, null),
|
|
45
|
+
info: /* @__PURE__ */ import_react.default.createElement(import_icons.InfoCircleOutlined, null),
|
|
46
|
+
error: /* @__PURE__ */ import_react.default.createElement(import_icons.CloseCircleOutlined, null),
|
|
47
|
+
warning: /* @__PURE__ */ import_react.default.createElement(import_icons.ExclamationCircleOutlined, null)
|
|
48
|
+
};
|
|
42
49
|
var Alert = ({
|
|
50
|
+
type,
|
|
43
51
|
ghost,
|
|
44
52
|
colored,
|
|
45
53
|
prefixCls: customizePrefixCls,
|
|
@@ -56,7 +64,18 @@ var Alert = ({
|
|
|
56
64
|
},
|
|
57
65
|
className
|
|
58
66
|
);
|
|
59
|
-
return wrapSSR(
|
|
67
|
+
return wrapSSR(
|
|
68
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_antd.Alert,
|
|
70
|
+
{
|
|
71
|
+
type,
|
|
72
|
+
icon: iconMapOutlined[type],
|
|
73
|
+
prefixCls: customizePrefixCls,
|
|
74
|
+
className: alertCls,
|
|
75
|
+
...restProps
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
);
|
|
60
79
|
};
|
|
61
80
|
Alert.ErrorBoundary = import_antd.Alert.ErrorBoundary;
|
|
62
81
|
if (process.env.NODE_ENV !== "production") {
|
package/lib/button/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ButtonProps as AntButtonProps } from 'antd/es/button';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export * from 'antd/es/button';
|
|
4
4
|
export type ButtonProps = AntButtonProps;
|
|
5
|
-
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<
|
|
5
|
+
declare const _default: React.ForwardRefExoticComponent<AntButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>> & {
|
|
6
6
|
Group: React.FC<import("antd/es/button").ButtonGroupProps>;
|
|
7
7
|
__ANT_BUTTON: boolean;
|
|
8
8
|
};
|
|
@@ -45,13 +45,13 @@ export interface ConfigProviderProps extends AntConfigProviderProps {
|
|
|
45
45
|
pagination?: PaginationConfig;
|
|
46
46
|
spin?: SpinConfig;
|
|
47
47
|
table?: TableConfig;
|
|
48
|
-
injectStaticFunction?: boolean;
|
|
49
48
|
styleProviderProps?: StyleProviderProps;
|
|
50
49
|
appProps?: AppProps;
|
|
51
50
|
}
|
|
52
51
|
export interface ExtendedConfigConsumerProps {
|
|
53
52
|
navigate?: NavigateFunction;
|
|
54
53
|
hideOnSinglePage?: boolean;
|
|
54
|
+
injectStaticFunction?: boolean;
|
|
55
55
|
}
|
|
56
56
|
declare const ExtendedConfigContext: React.Context<ExtendedConfigConsumerProps>;
|
|
57
57
|
export type ConfigProviderType = React.FC<ConfigProviderProps> & {
|
|
@@ -52,7 +52,8 @@ __reExport(config_provider_exports, require("antd/es/config-provider/DisabledCon
|
|
|
52
52
|
__reExport(config_provider_exports, require("antd/es/config-provider"), module.exports);
|
|
53
53
|
var ExtendedConfigContext = import_react.default.createContext({
|
|
54
54
|
navigate: void 0,
|
|
55
|
-
hideOnSinglePage: false
|
|
55
|
+
hideOnSinglePage: false,
|
|
56
|
+
injectStaticFunction: true
|
|
56
57
|
});
|
|
57
58
|
var ConfigProvider = ({
|
|
58
59
|
children,
|
|
@@ -66,7 +67,6 @@ var ConfigProvider = ({
|
|
|
66
67
|
spin,
|
|
67
68
|
table,
|
|
68
69
|
tabs,
|
|
69
|
-
injectStaticFunction = true,
|
|
70
70
|
styleProviderProps,
|
|
71
71
|
appProps,
|
|
72
72
|
...restProps
|
|
@@ -138,10 +138,12 @@ var ConfigProvider = ({
|
|
|
138
138
|
{
|
|
139
139
|
value: {
|
|
140
140
|
navigate: navigate === void 0 ? parentExtendedContext.navigate : navigate,
|
|
141
|
-
hideOnSinglePage: ((_b = parentContext.pagination) == null ? void 0 : _b.showSizeChanger) ? false : hideOnSinglePage !== void 0 ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage
|
|
141
|
+
hideOnSinglePage: ((_b = parentContext.pagination) == null ? void 0 : _b.showSizeChanger) ? false : hideOnSinglePage !== void 0 ? hideOnSinglePage : parentExtendedContext.hideOnSinglePage,
|
|
142
|
+
// inject static function to outermost ConfigProvider only
|
|
143
|
+
injectStaticFunction: false
|
|
142
144
|
}
|
|
143
145
|
},
|
|
144
|
-
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false, ...appProps }, children, injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
146
|
+
/* @__PURE__ */ import_react.default.createElement(import_cssinjs.StyleProvider, { ...mergedStyleProviderProps }, /* @__PURE__ */ import_react.default.createElement(import_antd.App, { component: false, ...appProps }, children, parentExtendedContext.injectStaticFunction && /* @__PURE__ */ import_react.default.createElement(import_static_function.default, null)))
|
|
145
147
|
)
|
|
146
148
|
);
|
|
147
149
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DescriptionsItemType } from '..';
|
|
3
3
|
export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
|
|
4
|
-
children: string | number | boolean |
|
|
4
|
+
children: string | number | boolean | import("@emotion/react/jsx-runtime").JSX.Element | Iterable<React.ReactNode>;
|
|
5
5
|
span?: number | "filled" | {
|
|
6
6
|
xxl?: number;
|
|
7
7
|
xl?: number;
|
|
@@ -10,13 +10,13 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
|
|
|
10
10
|
sm?: number;
|
|
11
11
|
xs?: number;
|
|
12
12
|
};
|
|
13
|
-
prefixCls?: string;
|
|
14
|
-
style?: React.CSSProperties;
|
|
15
13
|
label?: React.ReactNode;
|
|
14
|
+
style?: React.CSSProperties;
|
|
16
15
|
className?: string;
|
|
16
|
+
prefixCls?: string;
|
|
17
17
|
key?: React.Key;
|
|
18
|
-
classNames?: Partial<Record<"
|
|
19
|
-
styles?: Partial<Record<"
|
|
18
|
+
classNames?: Partial<Record<"label" | "content", string>>;
|
|
19
|
+
styles?: Partial<Record<"label" | "content", React.CSSProperties>>;
|
|
20
20
|
labelStyle?: React.CSSProperties;
|
|
21
21
|
contentStyle?: React.CSSProperties;
|
|
22
22
|
}[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DropdownButtonProps } from 'antd/es/dropdown';
|
|
3
|
+
type CompoundedComponent = React.FC<DropdownButtonProps> & {
|
|
4
|
+
/** @internal */
|
|
5
|
+
__ANT_BUTTON: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const DropdownButton: CompoundedComponent;
|
|
8
|
+
export default DropdownButton;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/dropdown/dropdown-button.tsx
|
|
30
|
+
var dropdown_button_exports = {};
|
|
31
|
+
__export(dropdown_button_exports, {
|
|
32
|
+
default: () => dropdown_button_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(dropdown_button_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_antd = require("antd");
|
|
37
|
+
var import_icons = require("@oceanbase/icons");
|
|
38
|
+
var DropdownButton = ({ icon = /* @__PURE__ */ import_react.default.createElement(import_icons.DownOutlined, null), ...restProps }) => {
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Dropdown.Button, { icon, ...restProps });
|
|
40
|
+
};
|
|
41
|
+
DropdownButton.__ANT_BUTTON = true;
|
|
42
|
+
var dropdown_button_default = DropdownButton;
|
package/lib/dropdown/index.d.ts
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dropdown as AntDropdown } from 'antd';
|
|
3
|
+
import type { DropDownProps } from 'antd/es/dropdown';
|
|
4
|
+
import DropdownButton from './dropdown-button';
|
|
1
5
|
export * from 'antd/es/dropdown';
|
|
6
|
+
type CompoundedComponent = React.FC<DropDownProps> & {
|
|
7
|
+
Button: typeof DropdownButton;
|
|
8
|
+
_InternalPanelDoNotUseOrYouWillBeFired: typeof AntDropdown._InternalPanelDoNotUseOrYouWillBeFired;
|
|
9
|
+
};
|
|
10
|
+
declare const Dropdown: CompoundedComponent;
|
|
11
|
+
export default Dropdown;
|
package/lib/dropdown/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
5
11
|
var __copyProps = (to, from, except, desc) => {
|
|
6
12
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
13
|
for (let key of __getOwnPropNames(from))
|
|
@@ -11,12 +17,32 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
11
17
|
return to;
|
|
12
18
|
};
|
|
13
19
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
14
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
29
|
|
|
16
|
-
// src/dropdown/index.
|
|
30
|
+
// src/dropdown/index.tsx
|
|
17
31
|
var dropdown_exports = {};
|
|
32
|
+
__export(dropdown_exports, {
|
|
33
|
+
default: () => dropdown_default
|
|
34
|
+
});
|
|
18
35
|
module.exports = __toCommonJS(dropdown_exports);
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_antd = require("antd");
|
|
38
|
+
var import_dropdown_button = __toESM(require("./dropdown-button"));
|
|
19
39
|
__reExport(dropdown_exports, require("antd/es/dropdown"), module.exports);
|
|
40
|
+
var Dropdown = (props) => {
|
|
41
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd.Dropdown, { ...props });
|
|
42
|
+
};
|
|
43
|
+
Dropdown._InternalPanelDoNotUseOrYouWillBeFired = import_antd.Dropdown._InternalPanelDoNotUseOrYouWillBeFired;
|
|
44
|
+
Dropdown.Button = import_dropdown_button.default;
|
|
45
|
+
var dropdown_default = Dropdown;
|
|
20
46
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21
47
|
0 && (module.exports = {
|
|
22
48
|
...require("antd/es/dropdown")
|
package/lib/form/FormItem.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface FormItemProps extends AntFormItemProps {
|
|
|
11
11
|
}
|
|
12
12
|
declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
|
|
13
13
|
useStatus: () => {
|
|
14
|
-
status?: "" | "success" | "
|
|
14
|
+
status?: "" | "success" | "warning" | "error" | "validating";
|
|
15
15
|
errors: ReactNode[];
|
|
16
16
|
warnings: ReactNode[];
|
|
17
17
|
};
|