@oceanbase/design 0.4.19 → 0.4.21

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.
@@ -27,6 +27,7 @@ var import_internal = require("antd/es/theme/internal");
27
27
  var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
28
28
  var import_internal2 = require("antd/lib/theme/internal");
29
29
  var import_getWeakenBorderColor = require("../../_util/getWeakenBorderColor");
30
+ var import_cssinjs = require("@ant-design/cssinjs");
30
31
  var getTagBorderColor = (color) => {
31
32
  return (0, import_getWeakenBorderColor.getWeakenBorderColor)(color);
32
33
  };
@@ -52,6 +53,7 @@ var genPresetStyle = (token) => (0, import_internal2.genPresetColor)(token, (col
52
53
  });
53
54
  var genTagStyle = (token) => {
54
55
  const { antCls, componentCls, tagPaddingHorizontal, lineWidth, calc } = token;
56
+ const typographyComponentCls = `${antCls}-typography`;
55
57
  const paddingInline = calc(tagPaddingHorizontal).sub(lineWidth).equal();
56
58
  return {
57
59
  [`${componentCls}`]: {
@@ -65,10 +67,14 @@ var genTagStyle = (token) => {
65
67
  },
66
68
  ["&-ellipsis"]: {
67
69
  maxWidth: "100%",
68
- textOverflow: "ellipsis",
69
- overflow: "hidden",
70
70
  verticalAlign: "bottom"
71
71
  },
72
+ ["&-closable&-ellipsis"]: {
73
+ verticalAlign: "bottom",
74
+ [`${typographyComponentCls}`]: {
75
+ maxWidth: `calc(100% - ${(0, import_cssinjs.unit)(token.margin)})`
76
+ }
77
+ },
72
78
  ["&-checkable"]: {
73
79
  borderColor: "transparent"
74
80
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oceanbase/design",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "The Design System of OceanBase",
5
5
  "keywords": [
6
6
  "oceanbase",
@@ -42,10 +42,10 @@
42
42
  "@ctrl/tinycolor": "^4.2.0",
43
43
  "@inline-svg-unique-id/react": "^1.2.3",
44
44
  "@oceanbase/aliyun-theme": "^0.1.6",
45
- "@oceanbase/icons": "^0.4.7",
45
+ "@oceanbase/icons": "^0.4.8",
46
46
  "@oceanbase/util": "^0.4.6",
47
47
  "ahooks": "^2.10.14",
48
- "antd": "^5.29.1",
48
+ "antd": "^5.29.3",
49
49
  "classnames": "^2.5.1",
50
50
  "lodash": "^4.17.21",
51
51
  "lottie-web": "^5.13.0",
@@ -65,5 +65,5 @@
65
65
  "react": ">=16.9.0",
66
66
  "react-dom": ">=16.9.0"
67
67
  },
68
- "gitHead": "ca53c6686a0e6b1b16c84672d8bdd15a720d9a03"
68
+ "gitHead": "8875a7b1b11fd04bf2c8b704083a0f6785a2c91c"
69
69
  }