@oceanbase/design 1.0.0-alpha.10 → 1.0.0-alpha.11
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/_util/index.js +1 -0
- package/es/_util/styleChecker.js +1 -0
- package/es/affix/index.js +1 -0
- package/es/alert/index.d.ts +1 -1
- package/es/alert/index.js +5 -2
- package/es/alert/style/index.js +17 -8
- package/es/anchor/index.js +1 -0
- package/es/app/index.js +1 -0
- package/es/auto-complete/index.js +1 -0
- package/es/avatar/index.js +1 -0
- package/es/badge/index.d.ts +2 -0
- package/es/badge/index.js +26 -10
- package/es/badge/style/index.js +3 -1
- package/es/breadcrumb/Breadcrumb.js +1 -0
- package/es/breadcrumb/index.js +1 -0
- package/es/button/index.js +1 -0
- package/es/calendar/index.js +1 -0
- package/es/card/index.js +2 -0
- package/es/card/style/index.js +3 -1
- package/es/carousel/index.js +1 -0
- package/es/cascader/index.js +1 -0
- package/es/checkbox/index.js +1 -0
- package/es/collapse/index.js +1 -0
- package/es/color-picker/index.js +1 -0
- package/es/config-provider/DefaultRenderEmpty.js +1 -0
- package/es/config-provider/index.js +1 -0
- package/es/date-picker/index.js +1 -0
- package/es/descriptions/hooks/useItems.d.ts +4 -4
- package/es/descriptions/hooks/useItems.js +1 -0
- package/es/descriptions/index.js +1 -0
- package/es/divider/index.js +1 -0
- package/es/drawer/index.js +1 -0
- package/es/dropdown/dropdown-button.js +1 -0
- package/es/dropdown/index.js +1 -0
- package/es/empty/colored.js +1 -0
- package/es/empty/database.js +1 -0
- package/es/empty/default.js +1 -0
- package/es/empty/guide.js +1 -0
- package/es/empty/index.js +1 -0
- package/es/float-button/index.js +1 -0
- package/es/form/FormItem.js +1 -0
- package/es/form/index.js +1 -0
- package/es/grid/col.js +1 -0
- package/es/grid/index.js +1 -0
- package/es/grid/row.js +1 -0
- package/es/image/index.js +1 -0
- package/es/index.js +1 -0
- package/es/input/Input.js +1 -0
- package/es/input/Password.js +1 -0
- package/es/input/Search.js +1 -0
- package/es/input/TextArea.js +1 -0
- package/es/input/index.js +1 -0
- package/es/input-number/index.js +1 -0
- package/es/layout/index.js +1 -0
- package/es/list/index.js +1 -0
- package/es/locale/index.js +1 -0
- package/es/lottie/index.js +1 -0
- package/es/mentions/index.js +1 -0
- package/es/menu/index.js +1 -0
- package/es/message/index.js +1 -0
- package/es/modal/Modal.d.ts +1 -1
- package/es/modal/Modal.js +7 -4
- package/es/modal/Progress.js +1 -0
- package/es/modal/index.js +1 -0
- package/es/modal/style/index.js +9 -5
- package/es/notification/index.js +1 -0
- package/es/pagination/index.js +1 -0
- package/es/popconfirm/index.js +1 -0
- package/es/popover/index.js +1 -0
- package/es/progress/index.js +1 -0
- package/es/qrcode/index.js +1 -0
- package/es/radio/index.js +1 -0
- package/es/rate/index.js +1 -0
- package/es/result/403.js +1 -0
- package/es/result/404.js +1 -0
- package/es/result/500.js +1 -0
- package/es/result/Error.js +1 -0
- package/es/result/Processing.js +1 -0
- package/es/result/Success.js +1 -0
- package/es/result/Warning.js +1 -0
- package/es/result/index.js +1 -0
- package/es/segmented/index.js +1 -0
- package/es/select/index.js +1 -0
- package/es/skeleton/index.js +1 -0
- package/es/slider/index.js +1 -0
- package/es/space/index.js +1 -0
- package/es/spin/index.js +1 -0
- package/es/static-function/index.js +1 -0
- package/es/statistic/index.js +1 -0
- package/es/steps/index.js +1 -0
- package/es/style/cssVariables.js +2 -1
- package/es/style/cssVariablesMeta.js +7 -7
- package/es/style/global.js +1 -0
- package/es/switch/index.js +1 -0
- package/es/table/index.js +38 -61
- package/es/table/style/index.js +23 -17
- package/es/tabs/TabPane.js +1 -0
- package/es/tabs/hooks/useLegacyItems.js +1 -0
- package/es/tabs/index.js +1 -0
- package/es/tag/index.js +1 -0
- package/es/tag/style/index.js +4 -1
- package/es/theme/index.js +1 -0
- package/es/theme/interface.d.ts +7 -0
- package/es/theme/style/aliyun.less +1 -1
- package/es/theme/style/compact.less +3 -3
- package/es/theme/style/dark.less +1 -1
- package/es/theme/style/default.less +3 -3
- package/es/time-picker/index.js +1 -0
- package/es/timeline/index.js +1 -0
- package/es/tooltip/MouseTooltip.js +1 -0
- package/es/tooltip/ReactStickyMouseTooltip.js +1 -0
- package/es/tooltip/index.js +1 -0
- package/es/tour/index.js +1 -0
- package/es/transfer/index.js +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree-select/index.js +1 -0
- package/es/typography/Link.js +1 -0
- package/es/typography/Paragraph.js +1 -0
- package/es/typography/Text.js +1 -0
- package/es/typography/Title.js +1 -0
- package/es/typography/index.js +1 -0
- package/es/upload/index.js +1 -0
- package/es/watermark/index.js +1 -0
- package/lib/_util/genComponentStyleHook.js +52 -59
- package/lib/_util/getEllipsisConfig.js +16 -39
- package/lib/_util/index.js +13 -29
- package/lib/_util/styleChecker.js +33 -53
- package/lib/_util/type.js +4 -16
- package/lib/_util/useFlexGapSupport.js +11 -36
- package/lib/affix/index.js +15 -21
- package/lib/alert/index.d.ts +1 -1
- package/lib/alert/index.js +63 -82
- package/lib/alert/style/index.js +111 -108
- package/lib/anchor/index.js +26 -23
- package/lib/app/index.js +47 -54
- package/lib/app/style/index.js +13 -32
- package/lib/auto-complete/index.js +15 -21
- package/lib/avatar/index.js +26 -23
- package/lib/badge/index.d.ts +2 -0
- package/lib/badge/index.js +108 -110
- package/lib/badge/style/index.js +21 -40
- package/lib/breadcrumb/Breadcrumb.js +15 -21
- package/lib/breadcrumb/index.js +31 -31
- package/lib/button/index.js +50 -60
- package/lib/button/style/index.js +35 -57
- package/lib/calendar/index.js +15 -21
- package/lib/card/Card.js +14 -21
- package/lib/card/index.js +246 -255
- package/lib/card/style/index.js +50 -61
- package/lib/carousel/index.js +15 -21
- package/lib/cascader/index.js +15 -21
- package/lib/checkbox/index.js +52 -69
- package/lib/checkbox/style/index.js +20 -35
- package/lib/collapse/index.js +15 -21
- package/lib/color-picker/index.js +15 -21
- package/lib/color-picker/interface.js +14 -21
- package/lib/config-provider/DefaultRenderEmpty.js +34 -48
- package/lib/config-provider/SizeContext.js +14 -21
- package/lib/config-provider/context.js +14 -21
- package/lib/config-provider/index.js +200 -233
- package/lib/config-provider/navigate.js +4 -16
- package/lib/date-picker/index.js +15 -21
- package/lib/descriptions/Item.js +6 -24
- package/lib/descriptions/hooks/useItems.d.ts +4 -4
- package/lib/descriptions/hooks/useItems.js +50 -73
- package/lib/descriptions/index.js +83 -101
- package/lib/descriptions/style/index.js +46 -64
- package/lib/divider/index.js +15 -21
- package/lib/drawer/index.js +108 -127
- package/lib/drawer/style/index.js +36 -51
- package/lib/dropdown/dropdown-button.js +30 -57
- package/lib/dropdown/index.js +30 -46
- package/lib/dropdown/style/index.js +13 -32
- package/lib/empty/colored.js +198 -314
- package/lib/empty/database.js +117 -185
- package/lib/empty/default.js +53 -48
- package/lib/empty/guide.js +145 -224
- package/lib/empty/index.js +77 -95
- package/lib/empty/style/index.js +28 -43
- package/lib/float-button/index.js +15 -21
- package/lib/float-button/interface.js +14 -21
- package/lib/form/FormItem.js +78 -84
- package/lib/form/index.js +57 -77
- package/lib/form/interface.js +14 -21
- package/lib/form/style/index.js +16 -35
- package/lib/grid/col.js +28 -45
- package/lib/grid/index.js +26 -44
- package/lib/grid/row.js +30 -45
- package/lib/image/index.js +15 -21
- package/lib/index.js +333 -154
- package/lib/input/Input.js +65 -78
- package/lib/input/Password.js +59 -76
- package/lib/input/Search.js +59 -76
- package/lib/input/TextArea.js +59 -76
- package/lib/input/index.js +30 -49
- package/lib/input/style/index.js +19 -36
- package/lib/input-number/index.js +56 -76
- package/lib/input-number/style/index.js +13 -32
- package/lib/layout/index.js +15 -21
- package/lib/list/index.js +52 -59
- package/lib/locale/en-US.js +22 -49
- package/lib/locale/index.js +25 -38
- package/lib/locale/ja-JP.js +22 -49
- package/lib/locale/useLocale.js +6 -24
- package/lib/locale/zh-CN.js +22 -49
- package/lib/locale/zh-TW.js +22 -49
- package/lib/lottie/index.js +61 -80
- package/lib/mentions/index.js +15 -21
- package/lib/menu/index.js +15 -21
- package/lib/menu/interface.js +14 -21
- package/lib/message/index.js +15 -21
- package/lib/message/interface.js +14 -21
- package/lib/modal/Modal.d.ts +1 -1
- package/lib/modal/Modal.js +69 -80
- package/lib/modal/Progress.js +44 -61
- package/lib/modal/index.js +23 -42
- package/lib/modal/interface.js +14 -21
- package/lib/modal/style/index.js +34 -46
- package/lib/notification/index.js +15 -21
- package/lib/notification/interface.js +14 -21
- package/lib/pagination/index.js +15 -21
- package/lib/popconfirm/index.js +15 -21
- package/lib/popover/index.js +15 -21
- package/lib/progress/index.js +26 -23
- package/lib/progress/progress.js +14 -21
- package/lib/qrcode/index.js +15 -21
- package/lib/qrcode/interface.js +14 -21
- package/lib/radio/index.js +53 -62
- package/lib/radio/interface.js +14 -21
- package/lib/radio/style/index.js +18 -33
- package/lib/rate/index.js +15 -21
- package/lib/result/403.js +164 -195
- package/lib/result/404.js +291 -354
- package/lib/result/500.js +156 -259
- package/lib/result/Error.js +127 -161
- package/lib/result/Processing.js +320 -252
- package/lib/result/Success.js +202 -261
- package/lib/result/Warning.js +302 -434
- package/lib/result/index.js +65 -80
- package/lib/result/style/index.js +15 -35
- package/lib/segmented/index.js +86 -83
- package/lib/segmented/style/index.js +19 -36
- package/lib/select/index.js +63 -81
- package/lib/select/style/index.js +12 -32
- package/lib/skeleton/index.js +15 -21
- package/lib/slider/index.js +48 -58
- package/lib/slider/style/index.js +19 -37
- package/lib/space/index.js +63 -69
- package/lib/space/style/index.js +16 -36
- package/lib/spin/index.js +58 -76
- package/lib/spin/style/index.js +48 -52
- package/lib/static-function/index.js +48 -73
- package/lib/statistic/index.js +15 -21
- package/lib/steps/index.js +15 -21
- package/lib/style/cssVariables.js +237 -256
- package/lib/style/cssVariablesMeta.js +978 -1057
- package/lib/style/global.js +119 -155
- package/lib/switch/index.js +52 -60
- package/lib/switch/style/index.js +12 -32
- package/lib/table/hooks/useDefaultPagination.js +18 -46
- package/lib/table/index.js +179 -219
- package/lib/table/interface.js +14 -21
- package/lib/table/style/index.js +59 -73
- package/lib/tabs/TabPane.js +7 -24
- package/lib/tabs/hooks/useLegacyItems.js +27 -43
- package/lib/tabs/index.js +107 -124
- package/lib/tabs/style/index.js +23 -38
- package/lib/tag/index.js +78 -98
- package/lib/tag/style/index.js +35 -57
- package/lib/theme/aliyun.js +7 -34
- package/lib/theme/compact.js +9 -36
- package/lib/theme/dark.js +9 -36
- package/lib/theme/default.js +130 -232
- package/lib/theme/index.js +48 -55
- package/lib/theme/interface.d.ts +7 -0
- package/lib/theme/interface.js +14 -21
- package/lib/theme/internal.js +14 -21
- package/lib/theme/style/aliyun.less +1 -1
- package/lib/theme/style/compact.less +3 -3
- package/lib/theme/style/dark.less +1 -1
- package/lib/theme/style/default.less +3 -3
- package/lib/theme/themes/compact/index.js +19 -39
- package/lib/theme/themes/dark/index.js +19 -39
- package/lib/theme/themes/default/index.js +19 -39
- package/lib/theme/themes/seed.js +24 -43
- package/lib/theme/util/alias.js +19 -39
- package/lib/theme/util/format.js +15 -35
- package/lib/time-picker/index.js +15 -21
- package/lib/timeline/index.js +15 -21
- package/lib/tooltip/MouseTooltip.js +84 -98
- package/lib/tooltip/ReactStickyMouseTooltip.js +63 -88
- package/lib/tooltip/hooks/useTooltipTypeList.js +28 -61
- package/lib/tooltip/index.js +123 -137
- package/lib/tooltip/style/index.js +26 -47
- package/lib/tour/index.js +15 -21
- package/lib/tour/interface.js +14 -21
- package/lib/transfer/index.js +15 -21
- package/lib/transfer/interface.js +14 -21
- package/lib/tree/index.js +15 -21
- package/lib/tree-select/index.js +67 -85
- package/lib/tree-select/style/index.js +9 -31
- package/lib/typography/Link.js +54 -68
- package/lib/typography/Paragraph.js +54 -68
- package/lib/typography/Text.js +55 -68
- package/lib/typography/Title.js +54 -68
- package/lib/typography/hooks/useClassName.js +12 -43
- package/lib/typography/index.js +89 -58
- package/lib/typography/style/index.js +29 -45
- package/lib/upload/index.js +15 -21
- package/lib/upload/interface.js +14 -21
- package/lib/watermark/index.js +15 -21
- package/package.json +3 -3
package/es/_util/index.js
CHANGED
package/es/_util/styleChecker.js
CHANGED
package/es/affix/index.js
CHANGED
package/es/alert/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface AlertProps extends AntAlertProps {
|
|
|
6
6
|
mini?: boolean;
|
|
7
7
|
}
|
|
8
8
|
declare const Alert: {
|
|
9
|
-
({ type: typeProp, showIcon, closable, ghost, mini, banner, prefixCls: customizePrefixCls, className, ...restProps }: AlertProps): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
9
|
+
({ type: typeProp, showIcon, closable, ghost, mini, banner, action, 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 = ["type", "showIcon", "closable", "ghost", "mini", "banner", "prefixCls", "className"];
|
|
2
|
+
var _excluded = ["type", "showIcon", "closable", "ghost", "mini", "banner", "action", "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; }
|
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
18
|
import { Alert as AntAlert } from 'antd';
|
|
18
19
|
import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined } from '@oceanbase/icons';
|
|
@@ -35,6 +36,7 @@ var Alert = function Alert(_ref) {
|
|
|
35
36
|
ghost = _ref.ghost,
|
|
36
37
|
mini = _ref.mini,
|
|
37
38
|
banner = _ref.banner,
|
|
39
|
+
action = _ref.action,
|
|
38
40
|
customizePrefixCls = _ref.prefixCls,
|
|
39
41
|
className = _ref.className,
|
|
40
42
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -46,13 +48,14 @@ var Alert = function Alert(_ref) {
|
|
|
46
48
|
var _useStyle = useStyle(prefixCls),
|
|
47
49
|
_useStyle2 = _slicedToArray(_useStyle, 1),
|
|
48
50
|
wrapCSSVar = _useStyle2[0];
|
|
49
|
-
var alertCls = classNames(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-closable"), closable), "".concat(prefixCls, "-ghost"), ghost), "".concat(prefixCls, "-mini"), mini), className);
|
|
51
|
+
var alertCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-closable"), closable), "".concat(prefixCls, "-ghost"), ghost), "".concat(prefixCls, "-mini"), mini), "".concat(prefixCls, "-with-action"), !!action), className);
|
|
50
52
|
return wrapCSSVar( /*#__PURE__*/_jsx(AntAlert, _objectSpread({
|
|
51
53
|
type: type,
|
|
52
54
|
showIcon: showIcon,
|
|
53
55
|
closable: closable,
|
|
54
56
|
banner: banner,
|
|
55
57
|
icon: iconMapOutlined[type],
|
|
58
|
+
action: action,
|
|
56
59
|
prefixCls: customizePrefixCls,
|
|
57
60
|
className: alertCls
|
|
58
61
|
}, restProps)));
|
package/es/alert/style/index.js
CHANGED
|
@@ -44,9 +44,9 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
44
44
|
// close icon width (approximate)
|
|
45
45
|
var closeIconWidth = height;
|
|
46
46
|
// Common calculated values
|
|
47
|
-
var contentWidth = unit(calc(contentStartOffset).
|
|
48
|
-
var
|
|
49
|
-
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
47
|
+
var contentWidth = unit(calc(contentStartOffset).equal());
|
|
48
|
+
var closableContentWidth = unit(calc(contentStartOffset).add(closeIconWidth).equal());
|
|
49
|
+
return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
50
50
|
// vertical align to flex-start
|
|
51
51
|
alignItems: 'flex-start !important',
|
|
52
52
|
paddingInline: token.padding,
|
|
@@ -57,7 +57,7 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
57
57
|
maxWidth: "calc(100% - ".concat(contentWidth, ")"),
|
|
58
58
|
wordBreak: 'break-word'
|
|
59
59
|
}), "".concat(componentCls, "-action"), {
|
|
60
|
-
width: "calc(100% - ".concat(
|
|
60
|
+
width: "calc(100% - ".concat(contentWidth, ")"),
|
|
61
61
|
marginInlineStart: contentStartOffset
|
|
62
62
|
}), "".concat(componentCls, "-icon"), {
|
|
63
63
|
height: height,
|
|
@@ -85,7 +85,12 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
85
85
|
a: {
|
|
86
86
|
textDecoration: 'underline'
|
|
87
87
|
}
|
|
88
|
-
}), "&".concat(componentCls, "-success"), genAlertTypeStyle('success', token)), "&".concat(componentCls, "-info"), genAlertTypeStyle('info', token)), "&".concat(componentCls, "-warning"), genAlertTypeStyle('warning', token)), "&".concat(componentCls, "-error"), genAlertTypeStyle('error', token))), "".concat(componentCls, "
|
|
88
|
+
}), "&".concat(componentCls, "-success"), genAlertTypeStyle('success', token)), "&".concat(componentCls, "-info"), genAlertTypeStyle('info', token)), "&".concat(componentCls, "-warning"), genAlertTypeStyle('warning', token)), "&".concat(componentCls, "-error"), genAlertTypeStyle('error', token))), "".concat(componentCls).concat(componentCls, "-closable"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-content"), {
|
|
89
|
+
flex: "1 1 calc(100% - ".concat(closableContentWidth, ")"),
|
|
90
|
+
maxWidth: "calc(100% - ".concat(closableContentWidth, ")")
|
|
91
|
+
}), "".concat(componentCls, "-action"), {
|
|
92
|
+
width: "calc(100% - ".concat(closableContentWidth, ")")
|
|
93
|
+
})), "".concat(componentCls, ":not(").concat(componentCls, "-with-description)"), _defineProperty({
|
|
89
94
|
flexWrap: 'wrap'
|
|
90
95
|
}, "".concat(componentCls, "-action"), {
|
|
91
96
|
marginTop: token.marginXS
|
|
@@ -103,13 +108,15 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
103
108
|
marginTop: token.marginSM
|
|
104
109
|
}), "".concat(componentCls, "-close-icon"), {
|
|
105
110
|
top: token.paddingSM
|
|
106
|
-
})), "".concat(componentCls).concat(componentCls, "-
|
|
111
|
+
})), "".concat(componentCls).concat(componentCls, "-with-action"), {
|
|
112
|
+
paddingBlock: token.paddingSM
|
|
113
|
+
}), "".concat(componentCls).concat(componentCls, "-ghost"), {
|
|
107
114
|
backgroundColor: 'transparent',
|
|
108
115
|
border: 'none',
|
|
109
116
|
padding: '0px !important',
|
|
110
117
|
borderRadius: 0
|
|
111
118
|
}), "".concat(componentCls).concat(componentCls, "-mini"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
112
|
-
paddingBlock:
|
|
119
|
+
paddingBlock: 1,
|
|
113
120
|
paddingInline: token.paddingXS,
|
|
114
121
|
border: 'none',
|
|
115
122
|
width: 'fit-content',
|
|
@@ -122,7 +129,9 @@ export var genAlertStyle = function genAlertStyle(token) {
|
|
|
122
129
|
display: 'flex',
|
|
123
130
|
alignItems: 'center',
|
|
124
131
|
justifyContent: 'center',
|
|
125
|
-
lineHeight: 1
|
|
132
|
+
lineHeight: 1,
|
|
133
|
+
//
|
|
134
|
+
fontSize: token.fontSizeSM
|
|
126
135
|
}), "".concat(componentCls, "-message"), {
|
|
127
136
|
whiteSpace: 'nowrap',
|
|
128
137
|
wordBreak: 'normal',
|
package/es/anchor/index.js
CHANGED
package/es/app/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
18
|
import { App as AntApp } from 'antd';
|
|
18
19
|
import classNames from 'classnames';
|
package/es/avatar/index.js
CHANGED
package/es/badge/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BadgeProps as AntBadgeProps } from 'antd/es/badge';
|
|
3
|
+
import type { ProgressProps as AntProgressProps } from 'antd/es/progress';
|
|
3
4
|
export * from 'antd/es/badge';
|
|
4
5
|
export interface BadgeProps extends AntBadgeProps {
|
|
5
6
|
icon?: boolean | React.ReactNode;
|
|
7
|
+
progressProps?: AntProgressProps;
|
|
6
8
|
}
|
|
7
9
|
declare const _default: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>> & {
|
|
8
10
|
Ribbon: React.FC<import("antd/es/badge/Ribbon").RibbonProps>;
|
package/es/badge/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 = ["prefixCls", "className", "status", "text", "icon"];
|
|
2
|
+
var _excluded = ["prefixCls", "className", "status", "text", "icon", "progressProps"];
|
|
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; }
|
|
@@ -13,40 +13,56 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
|
-
import { Badge as AntBadge } from 'antd';
|
|
18
|
-
import { CloseCircleFilled, CheckCircleFilled,
|
|
18
|
+
import { Badge as AntBadge, Progress } from 'antd';
|
|
19
|
+
import { CloseCircleFilled, CheckCircleFilled, MinusCircleFilled, EllipsisCircleFilled } from '@oceanbase/icons';
|
|
19
20
|
import classNames from 'classnames';
|
|
20
21
|
import ConfigProvider from "../config-provider";
|
|
22
|
+
import theme from "../theme";
|
|
21
23
|
import useStyle from "./style";
|
|
22
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
26
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
27
|
export * from 'antd/es/badge';
|
|
26
28
|
var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
29
|
+
var _progressProps$percen;
|
|
27
30
|
var customizePrefixCls = _ref.prefixCls,
|
|
28
31
|
className = _ref.className,
|
|
29
32
|
status = _ref.status,
|
|
30
33
|
text = _ref.text,
|
|
31
34
|
icon = _ref.icon,
|
|
35
|
+
progressProps = _ref.progressProps,
|
|
32
36
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
33
37
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
34
|
-
getPrefixCls = _useContext.getPrefixCls
|
|
38
|
+
getPrefixCls = _useContext.getPrefixCls,
|
|
39
|
+
_useContext$iconPrefi = _useContext.iconPrefixCls,
|
|
40
|
+
iconPrefixCls = _useContext$iconPrefi === void 0 ? 'anticon' : _useContext$iconPrefi;
|
|
35
41
|
var prefixCls = getPrefixCls('badge', customizePrefixCls);
|
|
36
42
|
var _useStyle = useStyle(prefixCls),
|
|
37
43
|
_useStyle2 = _slicedToArray(_useStyle, 2),
|
|
38
44
|
wrapCSSVar = _useStyle2[0],
|
|
39
45
|
hashId = _useStyle2[1];
|
|
46
|
+
var _theme$useToken = theme.useToken(),
|
|
47
|
+
token = _theme$useToken.token;
|
|
48
|
+
var hasPercent = (progressProps === null || progressProps === void 0 ? void 0 : progressProps.percent) !== undefined;
|
|
40
49
|
var iconMap = {
|
|
41
50
|
default: /*#__PURE__*/_jsx(MinusCircleFilled, {
|
|
42
51
|
rotate: 45
|
|
43
52
|
}),
|
|
44
|
-
processing: /*#__PURE__*/_jsx(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
53
|
+
processing: /*#__PURE__*/_jsx(Progress, _objectSpread(_objectSpread({
|
|
54
|
+
type: "circle",
|
|
55
|
+
trailColor: "transparent",
|
|
56
|
+
strokeColor: token.colorPrimary,
|
|
57
|
+
percent: (_progressProps$percen = progressProps === null || progressProps === void 0 ? void 0 : progressProps.percent) !== null && _progressProps$percen !== void 0 ? _progressProps$percen : 75,
|
|
58
|
+
strokeWidth: 18,
|
|
59
|
+
size: token.fontSize
|
|
60
|
+
}, progressProps), {}, {
|
|
61
|
+
className: classNames(_defineProperty({}, "".concat(iconPrefixCls, "-spin"), !hasPercent), progressProps === null || progressProps === void 0 ? void 0 : progressProps.className),
|
|
62
|
+
style: _objectSpread(_objectSpread({}, hasPercent ? {} : {
|
|
63
|
+
pointerEvents: 'none'
|
|
64
|
+
}), progressProps === null || progressProps === void 0 ? void 0 : progressProps.style)
|
|
65
|
+
})),
|
|
50
66
|
success: /*#__PURE__*/_jsx(CheckCircleFilled, {}),
|
|
51
67
|
error: /*#__PURE__*/_jsx(CloseCircleFilled, {}),
|
|
52
68
|
warning: /*#__PURE__*/_jsx(EllipsisCircleFilled, {})
|
package/es/badge/style/index.js
CHANGED
|
@@ -9,7 +9,9 @@ export var genBadgeStyle = function genBadgeStyle(token) {
|
|
|
9
9
|
// make status text inherit parent style
|
|
10
10
|
color: 'inherit',
|
|
11
11
|
fontSize: 'inherit'
|
|
12
|
-
}), "".concat(componentCls).concat(componentCls, "-status"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-status-dot"), _defineProperty({
|
|
12
|
+
}), "".concat(componentCls).concat(componentCls, "-status"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-status-dot"), _defineProperty({
|
|
13
|
+
margin: 1
|
|
14
|
+
}, "&".concat(componentCls, "-status-default"), {})), "".concat(componentCls, "-status-processing::after"), {
|
|
13
15
|
// remove animation for processing status dot
|
|
14
16
|
display: 'none'
|
|
15
17
|
}), "".concat(componentCls, "-status-icon"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
package/es/breadcrumb/index.js
CHANGED
package/es/button/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import { Button as AntButton } from 'antd';
|
|
17
18
|
import classNames from 'classnames';
|
|
18
19
|
import React, { useContext } from 'react';
|
package/es/calendar/index.js
CHANGED
package/es/card/index.js
CHANGED
|
@@ -14,6 +14,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
14
14
|
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); }
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
+
"use client";
|
|
17
18
|
import { isNullValue } from '@oceanbase/util';
|
|
18
19
|
import { Card as AntCard, Space, Tag, Divider, Tooltip } from 'antd';
|
|
19
20
|
import classNames from 'classnames';
|
|
@@ -88,6 +89,7 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
88
89
|
}
|
|
89
90
|
var titleContent = /*#__PURE__*/_jsxs(_Fragment, {
|
|
90
91
|
children: [/*#__PURE__*/_jsx("span", {
|
|
92
|
+
className: "".concat(prefixCls, "-title-content"),
|
|
91
93
|
children: title
|
|
92
94
|
}), (subTitle || document) && /*#__PURE__*/_jsxs(Space, {
|
|
93
95
|
className: "".concat(prefixCls, "-sub-title-wrapper"),
|
package/es/card/style/index.js
CHANGED
|
@@ -29,7 +29,9 @@ export var genCardStyle = function genCardStyle(token) {
|
|
|
29
29
|
paddingLG = token.paddingLG,
|
|
30
30
|
calc = token.calc;
|
|
31
31
|
var tableComponentCls = "".concat(antCls, "-table");
|
|
32
|
-
return _ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-head"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-
|
|
32
|
+
return _ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "".concat(componentCls), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-head"), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-title-content"), {
|
|
33
|
+
lineHeight: token.lineHeightLG
|
|
34
|
+
}), "".concat(componentCls, "-sub-title-wrapper"), {
|
|
33
35
|
marginInlineStart: token.marginXS
|
|
34
36
|
}), "".concat(componentCls, "-sub-title"), {
|
|
35
37
|
fontWeight: 'normal',
|
package/es/carousel/index.js
CHANGED
package/es/cascader/index.js
CHANGED
package/es/checkbox/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import { Checkbox as AntCheckbox } from 'antd';
|
|
17
18
|
import classNames from 'classnames';
|
|
18
19
|
import React, { useContext } from 'react';
|
package/es/collapse/index.js
CHANGED
package/es/color-picker/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
13
13
|
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; }
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
15
15
|
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); }
|
|
16
|
+
"use client";
|
|
16
17
|
import React from 'react';
|
|
17
18
|
import { ConfigProvider as AntConfigProvider } from 'antd';
|
|
18
19
|
import { StyleProvider } from '@ant-design/cssinjs';
|
package/es/date-picker/index.js
CHANGED
|
@@ -3,7 +3,11 @@ import type { DescriptionsItemType } from '..';
|
|
|
3
3
|
export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
|
|
4
4
|
children: string | number | boolean | Iterable<React.ReactNode> | import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
5
|
key?: React.Key;
|
|
6
|
+
style?: React.CSSProperties;
|
|
6
7
|
label?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
classNames?: Partial<Record<"content" | "label", string>>;
|
|
10
|
+
styles?: Partial<Record<"content" | "label", React.CSSProperties>>;
|
|
7
11
|
span?: number | "filled" | {
|
|
8
12
|
xxl?: number;
|
|
9
13
|
xl?: number;
|
|
@@ -12,10 +16,6 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
|
|
|
12
16
|
sm?: number;
|
|
13
17
|
xs?: number;
|
|
14
18
|
};
|
|
15
|
-
style?: React.CSSProperties;
|
|
16
|
-
className?: string;
|
|
17
|
-
classNames?: Partial<Record<"label" | "content", string>>;
|
|
18
|
-
styles?: Partial<Record<"label" | "content", React.CSSProperties>>;
|
|
19
19
|
labelStyle?: React.CSSProperties;
|
|
20
20
|
contentStyle?: React.CSSProperties;
|
|
21
21
|
}[];
|
|
@@ -8,6 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
10
10
|
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); }
|
|
11
|
+
"use client";
|
|
11
12
|
import React from 'react';
|
|
12
13
|
import warning from 'antd/es/_util/warning';
|
|
13
14
|
import toArray from 'rc-util/lib/Children/toArray';
|
package/es/descriptions/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import { Descriptions as AntDescriptions } from 'antd';
|
|
17
18
|
import classNames from 'classnames';
|
|
18
19
|
import React, { useContext, useState, useCallback, useMemo } from 'react';
|
package/es/divider/index.js
CHANGED
package/es/drawer/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { isValidElement, useState, useContext } from 'react';
|
|
17
18
|
import { Drawer as AntDrawer, Space } from 'antd';
|
|
18
19
|
import { useScroll, useSize } from 'ahooks';
|
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
18
|
import { Dropdown } from 'antd';
|
|
18
19
|
import { DownOutlined } from '@oceanbase/icons';
|
package/es/dropdown/index.js
CHANGED
|
@@ -4,6 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
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
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
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
|
+
"use client";
|
|
7
8
|
import React from 'react';
|
|
8
9
|
import { Dropdown as AntDropdown } from 'antd';
|
|
9
10
|
import DropdownButton from "./dropdown-button";
|
package/es/empty/colored.js
CHANGED
package/es/empty/database.js
CHANGED
package/es/empty/default.js
CHANGED
package/es/empty/guide.js
CHANGED
package/es/empty/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
13
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
15
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
18
|
import { Empty as AntEmpty, Steps } from 'antd';
|
|
18
19
|
import classNames from 'classnames';
|
package/es/float-button/index.js
CHANGED
package/es/form/FormItem.js
CHANGED
|
@@ -14,6 +14,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
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; }
|
|
16
16
|
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; }
|
|
17
|
+
"use client";
|
|
17
18
|
import React, { useContext } from 'react';
|
|
18
19
|
import { Form as AntForm } from 'antd';
|
|
19
20
|
import { FormContext } from 'antd/es/form/context';
|
package/es/form/index.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { useContext } from 'react';
|
|
17
18
|
import { Form as AntForm } from 'antd';
|
|
18
19
|
import classNames from 'classnames';
|
package/es/grid/col.js
CHANGED
|
@@ -7,6 +7,7 @@ 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
|
+
"use client";
|
|
10
11
|
import * as React from 'react';
|
|
11
12
|
import useFlexGapSupport from "../_util/useFlexGapSupport";
|
|
12
13
|
import { Col as AntCol } from 'antd';
|
package/es/grid/index.js
CHANGED
package/es/grid/row.js
CHANGED
|
@@ -7,6 +7,7 @@ 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
|
+
"use client";
|
|
10
11
|
import * as React from 'react';
|
|
11
12
|
import useFlexGapSupport from "../_util/useFlexGapSupport";
|
|
12
13
|
import { Row as AntRow } from 'antd';
|
package/es/image/index.js
CHANGED
package/es/index.js
CHANGED
package/es/input/Input.js
CHANGED
|
@@ -13,6 +13,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
13
13
|
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); }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { forwardRef, useContext } from 'react';
|
|
17
18
|
import { Input as AntInput } from 'antd';
|
|
18
19
|
import ConfigProvider from "../config-provider";
|
package/es/input/Password.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { forwardRef, useContext } from 'react';
|
|
17
18
|
import { Input as AntInput } from 'antd';
|
|
18
19
|
import ConfigProvider from "../config-provider";
|
package/es/input/Search.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { forwardRef, useContext } from 'react';
|
|
17
18
|
import { Input as AntInput } from 'antd';
|
|
18
19
|
import ConfigProvider from "../config-provider";
|
package/es/input/TextArea.js
CHANGED
|
@@ -13,6 +13,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
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; }
|
|
15
15
|
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; }
|
|
16
|
+
"use client";
|
|
16
17
|
import React, { forwardRef, useContext } from 'react';
|
|
17
18
|
import { Input as AntInput } from 'antd';
|
|
18
19
|
import ConfigProvider from "../config-provider";
|
package/es/input/index.js
CHANGED