@oceanbase/ui 0.4.8 → 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.
Files changed (46) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/Action/Item.d.ts +2 -2
  3. package/es/DateRanger/PickerPanel.d.ts +1 -1
  4. package/es/DateRanger/Ranger.d.ts +3 -0
  5. package/es/DateRanger/Ranger.js +9 -3
  6. package/es/DateRanger/locale/en-US.d.ts +1 -0
  7. package/es/DateRanger/locale/zh-CN.d.ts +1 -0
  8. package/es/DateRanger/locale/zh-TW.d.ts +1 -0
  9. package/es/Dialog/Anchor.d.ts +1 -1
  10. package/es/Dialog/EventProxy.d.ts +1 -1
  11. package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
  12. package/es/Highlight/HighlightCell.d.ts +1 -1
  13. package/es/Highlight/JsonView.d.ts +1 -1
  14. package/es/Highlight/index.d.ts +1 -1
  15. package/es/IconFont/index.d.ts +1 -1
  16. package/es/NavMenu/index.d.ts +1 -1
  17. package/es/PageContainer/ItemRender.d.ts +1 -1
  18. package/es/ProCard/index.js +5 -3
  19. package/es/ProCard/style/index.js +9 -4
  20. package/es/ProTable/index.js +4 -2
  21. package/es/Ranger/QuickPicker.d.ts +1 -1
  22. package/es/SideTip/Dragger.d.ts +1 -1
  23. package/es/SideTip/IconLoading.d.ts +1 -1
  24. package/lib/Action/Item.d.ts +2 -2
  25. package/lib/DateRanger/PickerPanel.d.ts +1 -1
  26. package/lib/DateRanger/Ranger.d.ts +3 -0
  27. package/lib/DateRanger/Ranger.js +36 -22
  28. package/lib/DateRanger/locale/en-US.d.ts +1 -0
  29. package/lib/DateRanger/locale/zh-CN.d.ts +1 -0
  30. package/lib/DateRanger/locale/zh-TW.d.ts +1 -0
  31. package/lib/Dialog/Anchor.d.ts +1 -1
  32. package/lib/Dialog/EventProxy.d.ts +1 -1
  33. package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
  34. package/lib/Highlight/HighlightCell.d.ts +1 -1
  35. package/lib/Highlight/JsonView.d.ts +1 -1
  36. package/lib/Highlight/index.d.ts +1 -1
  37. package/lib/IconFont/index.d.ts +1 -1
  38. package/lib/NavMenu/index.d.ts +1 -1
  39. package/lib/PageContainer/ItemRender.d.ts +1 -1
  40. package/lib/ProCard/index.js +3 -1
  41. package/lib/ProCard/style/index.js +12 -2
  42. package/lib/ProTable/index.js +3 -1
  43. package/lib/Ranger/QuickPicker.d.ts +1 -1
  44. package/lib/SideTip/Dragger.d.ts +1 -1
  45. package/lib/SideTip/IconLoading.d.ts +1 -1
  46. package/package.json +10 -10
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
22
+ declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
23
  export default InternalPickerPanel;
@@ -35,6 +35,9 @@ export interface DateRangerProps extends Omit<RangePickerProps, 'mode' | 'picker
35
35
  defaultValue?: RangeValue;
36
36
  size?: 'small' | 'large' | 'middle';
37
37
  tooltipProps?: TooltipProps;
38
+ autoAdjustOverflow?: boolean;
39
+ overlayClassName?: string;
40
+ overlayStyle?: React.CSSProperties;
38
41
  locale?: any;
39
42
  }
40
43
  declare const _default: React.ForwardRefExoticComponent<DateRangerProps & React.RefAttributes<unknown>>;
@@ -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 = ["selects", "value", "defaultValue", "defaultQuickValue", "hasRewind", "hasPlay", "hasSync", "hasForward", "hasZoomOut", "hasTagInPicker", "pastOnly", "simpleMode", "hideYear", "hideSecond", "autoCalcRange", "onChange", "disabledDate", "locale", "size", "stickRangeName", "tooltipProps", "isMoment", "rules", "tip"];
2
+ var _excluded = ["selects", "value", "defaultValue", "defaultQuickValue", "hasRewind", "hasPlay", "hasSync", "hasForward", "hasZoomOut", "hasTagInPicker", "pastOnly", "simpleMode", "hideYear", "hideSecond", "autoCalcRange", "onChange", "disabledDate", "locale", "size", "stickRangeName", "tooltipProps", "isMoment", "rules", "tip", "autoAdjustOverflow", "overlayClassName", "overlayStyle"];
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; }
@@ -69,6 +69,9 @@ var Ranger = /*#__PURE__*/React.forwardRef(function (props, ref) {
69
69
  isMomentProps = props.isMoment,
70
70
  rules = props.rules,
71
71
  tip = props.tip,
72
+ autoAdjustOverflow = props.autoAdjustOverflow,
73
+ overlayClassName = props.overlayClassName,
74
+ overlayStyle = props.overlayStyle,
72
75
  rest = _objectWithoutProperties(props, _excluded);
73
76
  var _theme$useToken = theme.useToken(),
74
77
  token = _theme$useToken.token;
@@ -255,7 +258,9 @@ var Ranger = /*#__PURE__*/React.forwardRef(function (props, ref) {
255
258
  className: classNames("".concat(prefix, "-wrapper"), _defineProperty({}, "".concat(prefix, "-wrapper-has-jumper"), hasRewind || hasForward)),
256
259
  children: [/*#__PURE__*/_jsx(Dropdown, {
257
260
  trigger: ['click'],
258
- open: open
261
+ open: open,
262
+ placement: rest.placement,
263
+ autoAdjustOverflow: autoAdjustOverflow
259
264
  // 关闭后进行销毁,才可以将 Tooltip 进行同步关闭
260
265
  ,
261
266
  destroyPopupOnHide: true
@@ -269,7 +274,8 @@ var Ranger = /*#__PURE__*/React.forwardRef(function (props, ref) {
269
274
  },
270
275
  dropdownRender: function dropdownRender(originNode) {
271
276
  return /*#__PURE__*/_jsxs("div", {
272
- className: "".concat(prefix, "-dropdown-picker"),
277
+ className: classNames("".concat(prefix, "-dropdown-picker"), overlayClassName),
278
+ style: overlayStyle,
273
279
  children: [originNode, /*#__PURE__*/_jsx(Divider, {
274
280
  type: "vertical",
275
281
  style: {
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
6
+ declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
7
  export default _default;
@@ -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" | "go" | "css" | "java" | "json" | "bash" | "javascript" | "typescript" | "groovy" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
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
  /**
@@ -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/types/jsx-namespace").EmotionJSX.Element;
11
+ declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export default IconFont;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
18
+ declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
19
  export default _default;
@@ -3,5 +3,5 @@ declare const _default: ({ route, params, routes, paths }: {
3
3
  params: any;
4
4
  routes: any;
5
5
  paths: any;
6
- }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
6
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
7
7
  export default _default;
@@ -1,4 +1,4 @@
1
- var _excluded = ["title", "tabs", "headerBordered", "bodyStyle", "prefixCls", "className"];
1
+ var _excluded = ["ghost", "title", "tabs", "headerBordered", "bodyStyle", "prefixCls", "className"];
2
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
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
4
  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); }
@@ -15,7 +15,8 @@ import useStyle from "./style";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  // @ts-ignore
17
17
  var ProCard = function ProCard(_ref) {
18
- var title = _ref.title,
18
+ var ghost = _ref.ghost,
19
+ title = _ref.title,
19
20
  tabs = _ref.tabs,
20
21
  headerBordered = _ref.headerBordered,
21
22
  bodyStyle = _ref.bodyStyle,
@@ -29,10 +30,11 @@ var ProCard = function ProCard(_ref) {
29
30
  wrapSSR = _useStyle.wrapSSR;
30
31
  var zeroPaddingList = [0, '0', '0px'];
31
32
  // ProCard body has no padding
32
- var noBodyPadding = zeroPaddingList.includes(bodyStyle === null || bodyStyle === void 0 ? void 0 : bodyStyle.padding);
33
+ var noBodyPadding = zeroPaddingList.includes(bodyStyle === null || bodyStyle === void 0 ? void 0 : bodyStyle.padding) || ghost;
33
34
  var proCardCls = classNames(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-has-title"), !!title), "".concat(prefixCls, "-no-body-padding"), noBodyPadding), "".concat(prefixCls, "-no-divider"), !headerBordered), "".concat(prefixCls, "-contain-tabs"), !!tabs), className);
34
35
  return wrapSSR( /*#__PURE__*/_jsx(AntProCard, _objectSpread({
35
36
  prefixCls: customizePrefixCls,
37
+ ghost: ghost,
36
38
  title: title,
37
39
  tabs: _typeof(tabs) === 'object' ? _objectSpread({
38
40
  size: 'large'
@@ -12,15 +12,20 @@ export var genProCardStyle = function genProCardStyle(token) {
12
12
  prefixCls = token.prefixCls;
13
13
  var tabsComponentCls = "".concat(antCls, "-tabs");
14
14
  var tabsPrefixCls = "".concat(prefixCls, "-tabs");
15
- return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "div".concat(componentCls), {
15
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "div".concat(componentCls), {
16
16
  borderRadius: token.borderRadiusLG
17
- }), "".concat(componentCls, ":not(").concat(componentCls, "-border)"), {
17
+ }), "".concat(componentCls, ":not(").concat(componentCls, "-border):not(").concat(componentCls, "-ghost)"), {
18
18
  boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)'
19
- }), "".concat(componentCls, ":not(").concat(componentCls, "-size-small)"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-body"), {
19
+ }), "".concat(componentCls, ":not(").concat(componentCls, "-size-small):not(").concat(componentCls, "-ghost)"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-body"), {
20
20
  paddingBlock: token.paddingLG
21
21
  }), "&".concat(componentCls, "-has-title").concat(componentCls, "-no-divider"), _defineProperty({}, "".concat(componentCls, "-body"), {
22
22
  paddingBlockStart: token.padding
23
- }))), "".concat(componentCls).concat(componentCls, "-no-body-padding:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
23
+ }))), "".concat(componentCls).concat(componentCls, "-size-small").concat(componentCls, "-ghost"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-header"), {
24
+ paddingInline: 0
25
+ }), "".concat(componentCls, "-body"), {
26
+ paddingBlock: 0,
27
+ paddingInline: 0
28
+ })), "".concat(componentCls).concat(componentCls, "-no-body-padding:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
24
29
  paddingBlockEnd: token.padding
25
30
  }), Card.genTableStyle(token.paddingLG, token))), "".concat(componentCls).concat(componentCls, "-no-body-padding").concat(componentCls, "-size-small:not(").concat(componentCls, "-contain-tabs)"), _objectSpread(_defineProperty({}, "".concat(componentCls, "-header"), {
26
31
  paddingBlockEnd: token.paddingXS
@@ -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/types/jsx-namespace").EmotionJSX.Element;
16
+ declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
17
  export default _default;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
1
+ declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
2
2
  export default iconLoading;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
22
+ declare const InternalPickerPanel: (props: PickerPanelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
23
  export default InternalPickerPanel;
@@ -35,6 +35,9 @@ export interface DateRangerProps extends Omit<RangePickerProps, 'mode' | 'picker
35
35
  defaultValue?: RangeValue;
36
36
  size?: 'small' | 'large' | 'middle';
37
37
  tooltipProps?: TooltipProps;
38
+ autoAdjustOverflow?: boolean;
39
+ overlayClassName?: string;
40
+ overlayStyle?: React.CSSProperties;
38
41
  locale?: any;
39
42
  }
40
43
  declare const _default: React.ForwardRefExoticComponent<DateRangerProps & React.RefAttributes<unknown>>;
@@ -82,6 +82,9 @@ var Ranger = import_react.default.forwardRef((props, ref) => {
82
82
  isMoment: isMomentProps,
83
83
  rules,
84
84
  tip,
85
+ autoAdjustOverflow,
86
+ overlayClassName,
87
+ overlayStyle,
85
88
  ...rest
86
89
  } = props;
87
90
  const { token } = import_design.theme.useToken();
@@ -246,6 +249,8 @@ var Ranger = import_react.default.forwardRef((props, ref) => {
246
249
  {
247
250
  trigger: ["click"],
248
251
  open,
252
+ placement: rest.placement,
253
+ autoAdjustOverflow,
249
254
  destroyPopupOnHide: true,
250
255
  onOpenChange: (o) => {
251
256
  if (o === false && refState.current.tooltipOpen) {
@@ -254,30 +259,39 @@ var Ranger = import_react.default.forwardRef((props, ref) => {
254
259
  setOpen(o);
255
260
  },
256
261
  dropdownRender: (originNode) => {
257
- return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-dropdown-picker` }, originNode, /* @__PURE__ */ import_react.default.createElement(import_design.Divider, { type: "vertical", style: { height: "auto", margin: "0px 4px 0px 0px" } }), /* @__PURE__ */ import_react.default.createElement(
258
- import_PickerPanel.default,
262
+ return /* @__PURE__ */ import_react.default.createElement(
263
+ "div",
259
264
  {
260
- defaultValue: innerValue || [],
261
- locale,
262
- disabledDate: pastOnly ? disabledFuture : disabledDate,
263
- tip,
264
- isMoment,
265
- rules,
266
- onOk: (vList) => {
267
- setIsPlay(false);
268
- handleNameChange(import_constant.CUSTOMIZE);
269
- rangeChange(
270
- vList.map((v) => {
271
- return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
272
- })
273
- );
274
- closeTooltip();
275
- },
276
- onCancel: () => {
277
- closeTooltip();
265
+ className: (0, import_classnames.default)(`${prefix}-dropdown-picker`, overlayClassName),
266
+ style: overlayStyle
267
+ },
268
+ originNode,
269
+ /* @__PURE__ */ import_react.default.createElement(import_design.Divider, { type: "vertical", style: { height: "auto", margin: "0px 4px 0px 0px" } }),
270
+ /* @__PURE__ */ import_react.default.createElement(
271
+ import_PickerPanel.default,
272
+ {
273
+ defaultValue: innerValue || [],
274
+ locale,
275
+ disabledDate: pastOnly ? disabledFuture : disabledDate,
276
+ tip,
277
+ isMoment,
278
+ rules,
279
+ onOk: (vList) => {
280
+ setIsPlay(false);
281
+ handleNameChange(import_constant.CUSTOMIZE);
282
+ rangeChange(
283
+ vList.map((v) => {
284
+ return isMoment ? (0, import_moment.default)(v) : (0, import_dayjs.default)(v);
285
+ })
286
+ );
287
+ closeTooltip();
288
+ },
289
+ onCancel: () => {
290
+ closeTooltip();
291
+ }
278
292
  }
279
- }
280
- ));
293
+ )
294
+ );
281
295
  },
282
296
  menu: {
283
297
  selectable: true,
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -25,6 +25,7 @@ declare const _default: {
25
25
  dateSelect: string;
26
26
  weekSelect?: string;
27
27
  clear: string;
28
+ week: string;
28
29
  month: string;
29
30
  year: string;
30
31
  previousMonth: string;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
6
+ declare const _default: ({ json, theme, style, className, height, onCopyChange, copyable, }: JsonViewProps) => import("@emotion/react/jsx-runtime").JSX.Element;
7
7
  export default _default;
@@ -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" | "go" | "css" | "java" | "json" | "bash" | "javascript" | "typescript" | "groovy" | "python" | "cpp" | "http" | "markdown" | "nginx" | "sql" | "xml" | "dockerfile" | "yaml" | "solidity" | "tsx" | "jsx")[];
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
  /**
@@ -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/types/jsx-namespace").EmotionJSX.Element;
11
+ declare const IconFont: (props: IconFontProps) => import("@emotion/react/jsx-runtime").JSX.Element;
12
12
  export default IconFont;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
18
+ declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
19
19
  export default _default;
@@ -3,5 +3,5 @@ declare const _default: ({ route, params, routes, paths }: {
3
3
  params: any;
4
4
  routes: any;
5
5
  paths: any;
6
- }) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
6
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
7
7
  export default _default;
@@ -38,6 +38,7 @@ var import_design = require("@oceanbase/design");
38
38
  var import_classnames = __toESM(require("classnames"));
39
39
  var import_style = __toESM(require("./style"));
40
40
  var ProCard = ({
41
+ ghost,
41
42
  title,
42
43
  tabs,
43
44
  headerBordered,
@@ -50,7 +51,7 @@ var ProCard = ({
50
51
  const prefixCls = getPrefixCls("pro-card", customizePrefixCls);
51
52
  const { wrapSSR } = (0, import_style.default)(prefixCls);
52
53
  const zeroPaddingList = [0, "0", "0px"];
53
- const noBodyPadding = zeroPaddingList.includes(bodyStyle == null ? void 0 : bodyStyle.padding);
54
+ const noBodyPadding = zeroPaddingList.includes(bodyStyle == null ? void 0 : bodyStyle.padding) || ghost;
54
55
  const proCardCls = (0, import_classnames.default)(
55
56
  {
56
57
  [`${prefixCls}-has-title`]: !!title,
@@ -65,6 +66,7 @@ var ProCard = ({
65
66
  import_pro_components.ProCard,
66
67
  {
67
68
  prefixCls: customizePrefixCls,
69
+ ghost,
68
70
  title,
69
71
  tabs: typeof tabs === "object" ? {
70
72
  size: "large",
@@ -35,10 +35,10 @@ var genProCardStyle = (token) => {
35
35
  [`div${componentCls}`]: {
36
36
  borderRadius: token.borderRadiusLG
37
37
  },
38
- [`${componentCls}:not(${componentCls}-border)`]: {
38
+ [`${componentCls}:not(${componentCls}-border):not(${componentCls}-ghost)`]: {
39
39
  boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.03),0 1px 6px -1px rgba(0, 0, 0, 0.02),0 2px 4px 0 rgba(0, 0, 0, 0.02)"
40
40
  },
41
- [`${componentCls}:not(${componentCls}-size-small)`]: {
41
+ [`${componentCls}:not(${componentCls}-size-small):not(${componentCls}-ghost)`]: {
42
42
  [`${componentCls}-body`]: {
43
43
  paddingBlock: token.paddingLG
44
44
  },
@@ -48,6 +48,16 @@ var genProCardStyle = (token) => {
48
48
  }
49
49
  }
50
50
  },
51
+ // need to handle style for small and ghost ProCard
52
+ [`${componentCls}${componentCls}-size-small${componentCls}-ghost`]: {
53
+ [`${componentCls}-header`]: {
54
+ paddingInline: 0
55
+ },
56
+ [`${componentCls}-body`]: {
57
+ paddingBlock: 0,
58
+ paddingInline: 0
59
+ }
60
+ },
51
61
  // no body padding card
52
62
  [`${componentCls}${componentCls}-no-body-padding:not(${componentCls}-contain-tabs)`]: {
53
63
  [`${componentCls}-header`]: {
@@ -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/types/jsx-namespace").EmotionJSX.Element;
16
+ declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
17
  export default _default;
@@ -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/types/jsx-namespace").EmotionJSX.Element;
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/types/jsx-namespace").EmotionJSX.Element;
1
+ declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
2
2
  export default iconLoading;