@oceanbase/ui 0.4.9 → 0.4.10
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/ui.min.js +1 -1
- package/es/Action/Item.d.ts +2 -2
- package/es/DateRanger/PickerPanel.d.ts +1 -1
- package/es/Dialog/Anchor.d.ts +1 -1
- package/es/Dialog/EventProxy.d.ts +1 -1
- package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/es/Highlight/HighlightCell.d.ts +1 -1
- package/es/Highlight/JsonView.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/NavMenu/index.d.ts +1 -1
- package/es/PageContainer/ItemRender.d.ts +1 -1
- package/es/ProTable/index.js +4 -2
- package/es/Ranger/QuickPicker.d.ts +1 -1
- package/es/SideTip/Dragger.d.ts +1 -1
- package/es/SideTip/IconLoading.d.ts +1 -1
- package/lib/Action/Item.d.ts +2 -2
- package/lib/DateRanger/PickerPanel.d.ts +1 -1
- package/lib/Dialog/Anchor.d.ts +1 -1
- package/lib/Dialog/EventProxy.d.ts +1 -1
- package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/lib/Highlight/HighlightCell.d.ts +1 -1
- package/lib/Highlight/JsonView.d.ts +1 -1
- package/lib/Highlight/index.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/NavMenu/index.d.ts +1 -1
- package/lib/PageContainer/ItemRender.d.ts +1 -1
- package/lib/ProTable/index.js +3 -1
- package/lib/Ranger/QuickPicker.d.ts +1 -1
- package/lib/SideTip/Dragger.d.ts +1 -1
- package/lib/SideTip/IconLoading.d.ts +1 -1
- package/package.json +3 -3
package/es/Action/Item.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
|
16
16
|
state: {
|
|
17
17
|
loading: boolean;
|
|
18
18
|
};
|
|
19
|
-
render(): import("@emotion/react/
|
|
19
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
22
22
|
static __DISPLAY_NAME: string;
|
|
@@ -24,5 +24,5 @@ export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
};
|
|
27
|
-
render(): import("@emotion/react/
|
|
27
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
}
|
|
@@ -19,5 +19,5 @@ export interface PickerPanelProps {
|
|
|
19
19
|
disabledDate: any;
|
|
20
20
|
locale: any;
|
|
21
21
|
}
|
|
22
|
-
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/
|
|
22
|
+
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default InternalPickerPanel;
|
package/es/Dialog/Anchor.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class Anchor extends React.Component<IAnchorProps> {
|
|
|
15
15
|
onDragStart: (event: PointerEvent) => void;
|
|
16
16
|
onDragMove: (event: PointerEvent) => void;
|
|
17
17
|
onDragEnd: (event: PointerEvent) => void;
|
|
18
|
-
render(): import("@emotion/react/
|
|
18
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/
|
|
2
|
+
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface DiffCellsProps {
|
|
|
14
14
|
onMouseDown?: React.MouseEventHandler;
|
|
15
15
|
hashId?: string;
|
|
16
16
|
}
|
|
17
|
-
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/
|
|
17
|
+
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface HighlightCellProps {
|
|
|
15
15
|
lineNumber?: boolean;
|
|
16
16
|
hashId?: string;
|
|
17
17
|
}
|
|
18
|
-
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/
|
|
18
|
+
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import './index.less';
|
|
|
3
3
|
export interface JsonViewProps extends HighlightProps {
|
|
4
4
|
json: object;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/
|
|
6
|
+
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default _default;
|
package/es/IconFont/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface IconFontProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Please use `@oceanbase/icons` instead.
|
|
10
10
|
*/
|
|
11
|
-
declare const IconFont: (props: IconFontProps) => import("@emotion/react/
|
|
11
|
+
declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default IconFont;
|
package/es/NavMenu/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface NavMenuProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: NavMenuProps) => import("@emotion/react/
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default _default;
|
package/es/ProTable/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 = ["form", "headerTitle", "options", "optionsRender", "toolbar", "toolBarRender", "expandable", "rowSelection", "pagination", "footer", "locale", "cardProps", "prefixCls", "tableClassName", "className"],
|
|
2
|
+
var _excluded = ["form", "headerTitle", "options", "optionsRender", "toolbar", "toolBarRender", "size", "expandable", "rowSelection", "pagination", "footer", "locale", "cardProps", "prefixCls", "tableClassName", "className"],
|
|
3
3
|
_excluded2 = ["emptyText"];
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
@@ -23,6 +23,7 @@ var ProTable = function ProTable(_ref) {
|
|
|
23
23
|
optionsRender = _ref.optionsRender,
|
|
24
24
|
toolbar = _ref.toolbar,
|
|
25
25
|
toolBarRender = _ref.toolBarRender,
|
|
26
|
+
size = _ref.size,
|
|
26
27
|
expandable = _ref.expandable,
|
|
27
28
|
rowSelection = _ref.rowSelection,
|
|
28
29
|
customPagination = _ref.pagination,
|
|
@@ -63,6 +64,7 @@ var ProTable = function ProTable(_ref) {
|
|
|
63
64
|
// default size change to `large` as same as Table
|
|
64
65
|
, _objectSpread({
|
|
65
66
|
defaultSize: "large",
|
|
67
|
+
size: size,
|
|
66
68
|
form: _objectSpread({
|
|
67
69
|
// query form should remove required mark
|
|
68
70
|
requiredMark: false
|
|
@@ -76,7 +78,7 @@ var ProTable = function ProTable(_ref) {
|
|
|
76
78
|
className: classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(proCardCls, "-has-title"), !!headerTitle || options || options === undefined || optionsRender || toolbar || toolBarRender), "".concat(proCardCls, "-no-divider"), !(cardProps !== null && cardProps !== void 0 && cardProps.headerBordered)), "".concat(proCardCls, "-no-padding"), true), "".concat(proCardCls, "-contain-tabs"), !!(cardProps !== null && cardProps !== void 0 && cardProps.tabs)), cardProps === null || cardProps === void 0 ? void 0 : cardProps.className)
|
|
77
79
|
}),
|
|
78
80
|
expandable: expandable ? _objectSpread({
|
|
79
|
-
columnWidth: 32
|
|
81
|
+
columnWidth: !size || size === 'large' ? 40 : 32
|
|
80
82
|
}, expandable) : undefined,
|
|
81
83
|
rowSelection: rowSelection,
|
|
82
84
|
pagination: pagination,
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default _default;
|
package/es/SideTip/Dragger.d.ts
CHANGED
|
@@ -40,6 +40,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
40
40
|
handleMouseDown: (e: any) => void;
|
|
41
41
|
handleMouseMove: (e: any) => void;
|
|
42
42
|
handleMouseUp: (e: any) => void;
|
|
43
|
-
render(): import("@emotion/react/
|
|
43
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
44
44
|
}
|
|
45
45
|
export default Draggable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/lib/Action/Item.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare class ActionButton extends React.PureComponent<BaseProps> {
|
|
|
16
16
|
state: {
|
|
17
17
|
loading: boolean;
|
|
18
18
|
};
|
|
19
|
-
render(): import("@emotion/react/
|
|
19
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
20
|
}
|
|
21
21
|
export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
22
22
|
static __DISPLAY_NAME: string;
|
|
@@ -24,5 +24,5 @@ export declare class ActionLink extends React.PureComponent<BaseProps> {
|
|
|
24
24
|
loading: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
};
|
|
27
|
-
render(): import("@emotion/react/
|
|
27
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
28
|
}
|
|
@@ -19,5 +19,5 @@ export interface PickerPanelProps {
|
|
|
19
19
|
disabledDate: any;
|
|
20
20
|
locale: any;
|
|
21
21
|
}
|
|
22
|
-
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/
|
|
22
|
+
declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default InternalPickerPanel;
|
package/lib/Dialog/Anchor.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export declare class Anchor extends React.Component<IAnchorProps> {
|
|
|
15
15
|
onDragStart: (event: PointerEvent) => void;
|
|
16
16
|
onDragMove: (event: PointerEvent) => void;
|
|
17
17
|
onDragEnd: (event: PointerEvent) => void;
|
|
18
|
-
render(): import("@emotion/react/
|
|
18
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/
|
|
2
|
+
export declare const EventProxy: (props: HTMLAttributes<HTMLDivElement>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -14,4 +14,4 @@ export interface DiffCellsProps {
|
|
|
14
14
|
onMouseDown?: React.MouseEventHandler;
|
|
15
15
|
hashId?: string;
|
|
16
16
|
}
|
|
17
|
-
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/
|
|
17
|
+
export default function DiffCells({ diffPrefixCls, data, emptyText, width, lock, rowOffset, onMouseDown, hashId, }: DiffCellsProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -15,4 +15,4 @@ export interface HighlightCellProps {
|
|
|
15
15
|
lineNumber?: boolean;
|
|
16
16
|
hashId?: string;
|
|
17
17
|
}
|
|
18
|
-
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/
|
|
18
|
+
export default function HighlightCell({ prefixCls, theme, data, emptyText, width, lock, lineNumber, onMouseDown, hashId, }: HighlightCellProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import './index.less';
|
|
|
3
3
|
export interface JsonViewProps extends HighlightProps {
|
|
4
4
|
json: object;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/
|
|
6
|
+
declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
7
|
export default _default;
|
package/lib/Highlight/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const THEME_DARK = "dark";
|
|
|
29
29
|
export declare const THEME_LIGHT = "light";
|
|
30
30
|
declare const ThemeTypes: ["dark", "light"];
|
|
31
31
|
export type ThemeType = (typeof ThemeTypes)[number];
|
|
32
|
-
declare const supportedLanguages: ("ruby" | "css" | "go" | "
|
|
32
|
+
declare const supportedLanguages: ("ruby" | "css" | "go" | "bash" | "json" | "java" | "javascript" | "typescript" | "groovy" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
|
|
33
33
|
export type LanguageType = (typeof supportedLanguages)[number] | 'html';
|
|
34
34
|
export interface HighlightProps extends LocaleWrapperProps {
|
|
35
35
|
/**
|
package/lib/IconFont/index.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export interface IconFontProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated Please use `@oceanbase/icons` instead.
|
|
10
10
|
*/
|
|
11
|
-
declare const IconFont: (props: IconFontProps) => import("@emotion/react/
|
|
11
|
+
declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default IconFont;
|
package/lib/NavMenu/index.d.ts
CHANGED
|
@@ -15,5 +15,5 @@ export interface NavMenuProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
style?: React.CSSProperties;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: NavMenuProps) => import("@emotion/react/
|
|
18
|
+
declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
19
|
export default _default;
|
package/lib/ProTable/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var ProTable = ({
|
|
|
46
46
|
optionsRender,
|
|
47
47
|
toolbar,
|
|
48
48
|
toolBarRender,
|
|
49
|
+
size,
|
|
49
50
|
expandable,
|
|
50
51
|
rowSelection,
|
|
51
52
|
pagination: customPagination,
|
|
@@ -84,6 +85,7 @@ var ProTable = ({
|
|
|
84
85
|
import_pro_components.ProTable,
|
|
85
86
|
{
|
|
86
87
|
defaultSize: "large",
|
|
88
|
+
size,
|
|
87
89
|
form: {
|
|
88
90
|
// query form should remove required mark
|
|
89
91
|
requiredMark: false,
|
|
@@ -107,7 +109,7 @@ var ProTable = ({
|
|
|
107
109
|
)
|
|
108
110
|
},
|
|
109
111
|
expandable: expandable ? {
|
|
110
|
-
columnWidth: 32,
|
|
112
|
+
columnWidth: !size || size === "large" ? 40 : 32,
|
|
111
113
|
...expandable
|
|
112
114
|
} : void 0,
|
|
113
115
|
rowSelection,
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default _default;
|
package/lib/SideTip/Dragger.d.ts
CHANGED
|
@@ -40,6 +40,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
40
40
|
handleMouseDown: (e: any) => void;
|
|
41
41
|
handleMouseMove: (e: any) => void;
|
|
42
42
|
handleMouseUp: (e: any) => void;
|
|
43
|
-
render(): import("@emotion/react/
|
|
43
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
44
44
|
}
|
|
45
45
|
export default Draggable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@ant-design/cssinjs": "^1.23.0",
|
|
43
43
|
"@ant-design/pro-components": "^2.8.5",
|
|
44
44
|
"@antv/g6": "3.4.10",
|
|
45
|
-
"@oceanbase/design": "^0.4.
|
|
45
|
+
"@oceanbase/design": "^0.4.9",
|
|
46
46
|
"@oceanbase/icons": "^0.4.5",
|
|
47
47
|
"@oceanbase/util": "^0.4.2",
|
|
48
48
|
"ahooks": "^2.10.14",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"react": ">=16.9.0",
|
|
72
72
|
"react-dom": ">=16.9.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "b9a6e4edde09d388777caade3586a12ddf51779e"
|
|
75
75
|
}
|