@oceanbase/design 0.4.3 → 0.4.4

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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { DescriptionsItemType } from '..';
3
3
  export default function useItems(items?: DescriptionsItemType[], children?: React.ReactNode, bordered?: boolean): {
4
- children: string | number | boolean | Iterable<React.ReactNode> | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ children: string | number | boolean | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | Iterable<React.ReactNode>;
5
5
  span?: number | "filled" | {
6
6
  xxl?: number;
7
7
  xl?: number;
@@ -10,11 +10,11 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
10
10
  sm?: number;
11
11
  xs?: number;
12
12
  };
13
- label?: React.ReactNode;
13
+ prefixCls?: string;
14
+ className?: string;
14
15
  style?: React.CSSProperties;
15
16
  key?: React.Key;
16
- className?: string;
17
- prefixCls?: string;
17
+ label?: React.ReactNode;
18
18
  labelStyle?: React.CSSProperties;
19
19
  contentStyle?: React.CSSProperties;
20
20
  }[];
@@ -11,7 +11,7 @@ export interface FormItemProps extends AntFormItemProps {
11
11
  }
12
12
  declare const FormItem: (<Values = any>(props: AntFormItemProps<Values>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
13
13
  useStatus: () => {
14
- status?: "" | "success" | "error" | "warning" | "validating";
14
+ status?: "" | "warning" | "error" | "success" | "validating";
15
15
  errors: ReactNode[];
16
16
  warnings: ReactNode[];
17
17
  };
package/es/global.css CHANGED
@@ -1,4 +1,4 @@
1
- @import 'antd/dist/reset.css';
1
+ @import '~antd/dist/reset.css';
2
2
 
3
3
  @font-face {
4
4
  font-family: 'Inter';
@@ -10,11 +10,11 @@ export default function useItems(items?: DescriptionsItemType[], children?: Reac
10
10
  sm?: number;
11
11
  xs?: number;
12
12
  };
13
- label?: React.ReactNode;
13
+ prefixCls?: string;
14
14
  style?: React.CSSProperties;
15
- key?: React.Key;
15
+ label?: React.ReactNode;
16
16
  className?: string;
17
- prefixCls?: string;
17
+ key?: React.Key;
18
18
  labelStyle?: React.CSSProperties;
19
19
  contentStyle?: React.CSSProperties;
20
20
  }[];
package/lib/global.css CHANGED
@@ -1,4 +1,4 @@
1
- @import 'antd/dist/reset.css';
1
+ @import '~antd/dist/reset.css';
2
2
 
3
3
  @font-face {
4
4
  font-family: 'Inter';
@@ -37,8 +37,8 @@ declare const _default: (<RecordType extends AnyObject = AnyObject>(props: Table
37
37
  SELECTION_ALL: "SELECT_ALL";
38
38
  SELECTION_INVERT: "SELECT_INVERT";
39
39
  SELECTION_NONE: "SELECT_NONE";
40
- Column: <RecordType extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType>) => null;
41
- ColumnGroup: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_1>) => null;
40
+ Column: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType_1>) => null;
41
+ ColumnGroup: <RecordType_2 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_2>) => null;
42
42
  Summary: typeof Summary;
43
43
  useStyle: (prefixCls: string) => {
44
44
  wrapSSR: (node: ReactNode) => ReactElement<any, string | React.JSXElementConstructor<any>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -39,31 +39,31 @@
39
39
  "build": "father build && cp src/style/reset.css dist/"
40
40
  },
41
41
  "dependencies": {
42
- "@ant-design/cssinjs": "^1.22.0",
42
+ "@ant-design/cssinjs": "^1.22.1",
43
43
  "@oceanbase/aliyun-theme": "^0.1.6",
44
- "@oceanbase/icons": "^0.4.2",
44
+ "@oceanbase/icons": "^0.4.3",
45
45
  "@oceanbase/util": "^0.4.2",
46
46
  "ahooks": "^2.10.14",
47
- "antd": "^5.22.1",
47
+ "antd": "^5.22.5",
48
48
  "classnames": "^2.5.1",
49
49
  "lodash": "^4.17.21",
50
50
  "lottie-web": "^5.12.2",
51
51
  "prop-types": "^15.8.1",
52
- "rc-util": "^5.43.0",
52
+ "rc-util": "^5.44.2",
53
53
  "react-sticky-mouse-tooltip": "^0.0.1"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/cli": "^7.25.9",
57
57
  "@babel/preset-env": "^7.26.0",
58
58
  "antd-token-previewer": "^2.0.8",
59
- "rc-select": "^14.16.3",
59
+ "rc-select": "^14.16.4",
60
60
  "rc-slider": "^11.1.7",
61
- "rc-table": "^7.48.1",
62
- "rc-tree-select": "^5.24.4"
61
+ "rc-table": "^7.49.0",
62
+ "rc-tree-select": "^5.25.0"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "react": ">=16.9.0",
66
66
  "react-dom": ">=16.9.0"
67
67
  },
68
- "gitHead": "c2d5b32ba8c8a2ec90de8477cfa0bb808b616cb7"
68
+ "gitHead": "e1ce421fe9247b2cbc1b6e43caac780c45559fed"
69
69
  }