@oceanbase/ui 0.4.11 → 0.4.12

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 (58) hide show
  1. package/dist/ui.min.js +1 -1
  2. package/es/Action/Group.js +6 -7
  3. package/es/Action/Item.d.ts +3 -2
  4. package/es/BasicLayout/Header.d.ts +2 -0
  5. package/es/BasicLayout/Header.js +7 -2
  6. package/es/BasicLayout/locale/en-US.d.ts +1 -0
  7. package/es/BasicLayout/locale/en-US.js +1 -0
  8. package/es/BasicLayout/locale/zh-CN.d.ts +1 -0
  9. package/es/BasicLayout/locale/zh-CN.js +1 -0
  10. package/es/BasicLayout/locale/zh-TW.d.ts +1 -0
  11. package/es/BasicLayout/locale/zh-TW.js +1 -0
  12. package/es/ContentWithIcon/index.js +1 -1
  13. package/es/DateRanger/PickerPanel.d.ts +1 -1
  14. package/es/DateRanger/PickerPanel.js +88 -140
  15. package/es/Dialog/Anchor.d.ts +1 -1
  16. package/es/Dialog/EventProxy.d.ts +1 -1
  17. package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
  18. package/es/Highlight/HighlightCell.d.ts +1 -1
  19. package/es/Highlight/JsonView.d.ts +1 -1
  20. package/es/IconFont/index.d.ts +1 -1
  21. package/es/NavMenu/index.d.ts +1 -1
  22. package/es/PageContainer/ItemRender.d.ts +1 -1
  23. package/es/ProCard/index.js +5 -4
  24. package/es/ProCard/style/index.js +6 -3
  25. package/es/ProTable/index.d.ts +9 -4
  26. package/es/ProTable/index.js +9 -4
  27. package/es/Ranger/QuickPicker.d.ts +1 -1
  28. package/es/SideTip/Dragger.d.ts +1 -1
  29. package/es/SideTip/IconLoading.d.ts +1 -1
  30. package/lib/Action/Group.js +15 -15
  31. package/lib/Action/Item.d.ts +3 -2
  32. package/lib/BasicLayout/Header.d.ts +2 -0
  33. package/lib/BasicLayout/Header.js +4 -0
  34. package/lib/BasicLayout/locale/en-US.d.ts +1 -0
  35. package/lib/BasicLayout/locale/en-US.js +1 -0
  36. package/lib/BasicLayout/locale/zh-CN.d.ts +1 -0
  37. package/lib/BasicLayout/locale/zh-CN.js +1 -0
  38. package/lib/BasicLayout/locale/zh-TW.d.ts +1 -0
  39. package/lib/BasicLayout/locale/zh-TW.js +1 -0
  40. package/lib/ContentWithIcon/index.js +1 -1
  41. package/lib/DateRanger/PickerPanel.d.ts +1 -1
  42. package/lib/DateRanger/PickerPanel.js +57 -122
  43. package/lib/Dialog/Anchor.d.ts +1 -1
  44. package/lib/Dialog/EventProxy.d.ts +1 -1
  45. package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
  46. package/lib/Highlight/HighlightCell.d.ts +1 -1
  47. package/lib/Highlight/JsonView.d.ts +1 -1
  48. package/lib/IconFont/index.d.ts +1 -1
  49. package/lib/NavMenu/index.d.ts +1 -1
  50. package/lib/PageContainer/ItemRender.d.ts +1 -1
  51. package/lib/ProCard/index.js +3 -3
  52. package/lib/ProCard/style/index.js +13 -4
  53. package/lib/ProTable/index.d.ts +9 -4
  54. package/lib/ProTable/index.js +8 -4
  55. package/lib/Ranger/QuickPicker.d.ts +1 -1
  56. package/lib/SideTip/Dragger.d.ts +1 -1
  57. package/lib/SideTip/IconLoading.d.ts +1 -1
  58. package/package.json +9 -9
@@ -27,6 +27,7 @@ var import_design = require("@oceanbase/design");
27
27
  var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
28
28
  var genProCardStyle = (token) => {
29
29
  const { componentCls, antCls, prefixCls } = token;
30
+ const tableComponentCls = `${antCls}-table`;
30
31
  const tabsComponentCls = `${antCls}-tabs`;
31
32
  const tabsPrefixCls = `${prefixCls}-tabs`;
32
33
  return {
@@ -58,15 +59,23 @@ var genProCardStyle = (token) => {
58
59
  paddingInline: 0
59
60
  }
60
61
  },
61
- // no body padding card
62
- [`${componentCls}${componentCls}-no-body-padding:not(${componentCls}-contain-tabs)`]: {
62
+ // reduce margin between card title and table
63
+ [`&${componentCls}-has-title${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
64
+ [`${componentCls}-body`]: {
65
+ [`& > ${tableComponentCls}-wrapper ${tableComponentCls}:not(${tableComponentCls}-bordered):first-child`]: {
66
+ marginTop: -token.marginSM
67
+ }
68
+ }
69
+ },
70
+ // no body horizontal padding card
71
+ [`${componentCls}${componentCls}-no-body-horizontal-padding:not(${componentCls}-contain-tabs)`]: {
63
72
  [`${componentCls}-header`]: {
64
73
  paddingBlockEnd: token.padding
65
74
  },
66
75
  ...import_design.Card.genTableStyle(token.paddingLG, token)
67
76
  },
68
- // no body padding small card
69
- [`${componentCls}${componentCls}-no-body-padding${componentCls}-size-small:not(${componentCls}-contain-tabs)`]: {
77
+ // no body horizontal padding small card
78
+ [`${componentCls}${componentCls}-no-body-horizontal-padding${componentCls}-size-small:not(${componentCls}-contain-tabs)`]: {
70
79
  [`${componentCls}-header`]: {
71
80
  paddingBlockEnd: token.paddingXS
72
81
  },
@@ -1,5 +1,10 @@
1
- import { ProTable as AntProTable } from '@ant-design/pro-components';
2
- import type { ProTableProps } from '@ant-design/pro-components';
3
- export { ProTableProps };
4
- declare const ProTable: typeof AntProTable;
1
+ import React from 'react';
2
+ import type { ProTableProps as AntProTableProps } from '@ant-design/pro-components';
3
+ export interface ProTableProps<T, U, ValueType> extends AntProTableProps<T, U, ValueType> {
4
+ innerBordered?: boolean;
5
+ }
6
+ declare function ProTable<T, U, ValueType>({ form, headerTitle, options, optionsRender, toolbar, toolBarRender, size, bordered, innerBordered, expandable, rowSelection, pagination: customPagination, footer, locale, cardProps: outerCardProps, prefixCls: customizePrefixCls, tableClassName, className, ...restProps }: ProTableProps<T, U, ValueType>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
7
+ declare namespace ProTable {
8
+ var Summary;
9
+ }
5
10
  export default ProTable;
@@ -39,7 +39,7 @@ var import_classnames = __toESM(require("classnames"));
39
39
  var import_lodash = require("lodash");
40
40
  var import_style = __toESM(require("../LightFilter/style"));
41
41
  var import_style2 = __toESM(require("./style"));
42
- var ProTable = ({
42
+ function ProTable({
43
43
  form,
44
44
  headerTitle,
45
45
  options,
@@ -47,6 +47,8 @@ var ProTable = ({
47
47
  toolbar,
48
48
  toolBarRender,
49
49
  size,
50
+ bordered,
51
+ innerBordered,
50
52
  expandable,
51
53
  rowSelection,
52
54
  pagination: customPagination,
@@ -57,7 +59,7 @@ var ProTable = ({
57
59
  tableClassName,
58
60
  className,
59
61
  ...restProps
60
- }) => {
62
+ }) {
61
63
  const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
62
64
  const tablePrefixCls = getPrefixCls("table", customizePrefixCls);
63
65
  const { wrapSSR: tableWrapSSR } = import_design.Table.useStyle(tablePrefixCls);
@@ -66,7 +68,8 @@ var ProTable = ({
66
68
  {
67
69
  [`${tablePrefixCls}-expandable`]: !(0, import_lodash.isEmpty)(expandable),
68
70
  [`${tablePrefixCls}-selectable`]: !!rowSelection,
69
- [`${tablePrefixCls}-has-footer`]: !!footer
71
+ [`${tablePrefixCls}-has-footer`]: !!footer,
72
+ [`${tablePrefixCls}-inner-bordered`]: innerBordered
70
73
  },
71
74
  tableClassName
72
75
  );
@@ -86,6 +89,7 @@ var ProTable = ({
86
89
  {
87
90
  defaultSize: "large",
88
91
  size,
92
+ bordered: bordered || innerBordered,
89
93
  form: {
90
94
  // query form should remove required mark
91
95
  requiredMark: false,
@@ -128,6 +132,6 @@ var ProTable = ({
128
132
  )
129
133
  )
130
134
  );
131
- };
135
+ }
132
136
  ProTable.Summary = import_pro_components.ProTable.Summary;
133
137
  var ProTable_default = ProTable;
@@ -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;
@@ -41,6 +41,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
41
41
  handleMouseDown: (e: any) => void;
42
42
  handleMouseMove: (e: any) => void;
43
43
  handleMouseUp: (e: any) => void;
44
- render(): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
44
+ render(): import("@emotion/react/jsx-runtime").JSX.Element;
45
45
  }
46
46
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/ui",
3
- "version": "0.4.11",
3
+ "version": "0.4.12",
4
4
  "description": "The UI library based on OceanBase Design",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -40,23 +40,23 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@ant-design/cssinjs": "^1.23.0",
43
- "@ant-design/pro-components": "^2.8.5",
43
+ "@ant-design/pro-components": "^2.8.7",
44
44
  "@antv/g6": "3.4.10",
45
- "@oceanbase/design": "^0.4.9",
46
- "@oceanbase/icons": "^0.4.5",
45
+ "@oceanbase/design": "^0.4.10",
46
+ "@oceanbase/icons": "^0.4.6",
47
47
  "@oceanbase/util": "^0.4.2",
48
48
  "ahooks": "^2.10.14",
49
49
  "classnames": "^2.5.1",
50
50
  "dayjs": "^1.11.13",
51
51
  "diff": "^5.2.0",
52
- "highlight.js": "^11.10.0",
52
+ "highlight.js": "^11.11.1",
53
53
  "highlightjs-solidity": "^2.0.6",
54
54
  "hoist-non-react-statics": "^3.3.2",
55
55
  "lodash": "^4.17.21",
56
56
  "moment": "^2.30.1",
57
57
  "path-to-regexp": "^7.2.0",
58
58
  "randexp": "^0.5.3",
59
- "rc-picker": "^4.11.1",
59
+ "rc-picker": "^4.11.3",
60
60
  "rc-util": "^5.44.4",
61
61
  "react-copy-to-clipboard": "^5.1.0",
62
62
  "react-json-view": "^1.21.3",
@@ -64,12 +64,12 @@
64
64
  "screenfull": "^6.0.2"
65
65
  },
66
66
  "devDependencies": {
67
- "@ant-design/pro-form": "^2.31.5",
68
- "@ant-design/pro-layout": "^7.22.2"
67
+ "@ant-design/pro-form": "^2.31.7",
68
+ "@ant-design/pro-layout": "^7.22.4"
69
69
  },
70
70
  "peerDependencies": {
71
71
  "react": ">=16.9.0",
72
72
  "react-dom": ">=16.9.0"
73
73
  },
74
- "gitHead": "94fed4fc95ce62f539ccc9f6c57a746d4a5e0f57"
74
+ "gitHead": "db83d4b1d50b50813d9751f4e8c1189badf67820"
75
75
  }