@oceanbase/design 1.0.0-alpha.1 → 1.0.0-alpha.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 (324) hide show
  1. package/dist/design.min.css +1 -1
  2. package/dist/design.min.js +1 -1
  3. package/dist/reset.css +2 -1
  4. package/dist/static/Inter-Medium.ea234620.woff2 +0 -0
  5. package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
  6. package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
  7. package/es/_util/genComponentStyleHook.d.ts +21 -4
  8. package/es/_util/genComponentStyleHook.js +68 -20
  9. package/es/alert/index.d.ts +2 -2
  10. package/es/alert/index.js +22 -6
  11. package/es/alert/style/index.d.ts +2 -5
  12. package/es/alert/style/index.js +157 -67
  13. package/es/app/index.d.ts +8 -0
  14. package/es/app/index.js +43 -1
  15. package/es/app/style/index.d.ts +6 -0
  16. package/es/app/style/index.js +9 -0
  17. package/es/badge/index.js +15 -7
  18. package/es/badge/style/index.d.ts +2 -5
  19. package/es/badge/style/index.js +13 -18
  20. package/es/button/index.js +10 -4
  21. package/es/button/style/index.d.ts +4 -5
  22. package/es/button/style/index.js +40 -7
  23. package/es/card/index.d.ts +11 -0
  24. package/es/card/index.js +151 -9
  25. package/es/card/style/index.d.ts +2 -5
  26. package/es/card/style/index.js +83 -18
  27. package/es/checkbox/index.js +9 -2
  28. package/es/checkbox/style/index.d.ts +2 -5
  29. package/es/checkbox/style/index.js +14 -11
  30. package/es/config-provider/context.d.ts +11 -0
  31. package/es/config-provider/context.js +2 -1
  32. package/es/config-provider/index.d.ts +4 -3
  33. package/es/config-provider/index.js +92 -40
  34. package/es/descriptions/index.d.ts +10 -0
  35. package/es/descriptions/index.js +62 -5
  36. package/es/descriptions/style/index.d.ts +3 -6
  37. package/es/descriptions/style/index.js +70 -10
  38. package/es/drawer/index.js +10 -7
  39. package/es/drawer/style/index.d.ts +2 -5
  40. package/es/drawer/style/index.js +44 -17
  41. package/es/dropdown/dropdown-button.js +26 -6
  42. package/es/dropdown/style/index.d.ts +6 -0
  43. package/es/{_util/genStyle.js → dropdown/style/index.js} +14 -11
  44. package/es/empty/index.js +4 -3
  45. package/es/empty/style/index.d.ts +2 -5
  46. package/es/empty/style/index.js +10 -10
  47. package/es/fonts/Inter-Medium.woff2 +0 -0
  48. package/es/fonts/Inter-Regular.woff2 +0 -0
  49. package/es/fonts/Inter-SemiBold.woff2 +0 -0
  50. package/es/form/FormItem.d.ts +1 -0
  51. package/es/form/FormItem.js +26 -11
  52. package/es/form/index.js +9 -2
  53. package/es/form/style/index.d.ts +2 -5
  54. package/es/form/style/index.js +19 -8
  55. package/es/index.d.ts +4 -3
  56. package/es/index.js +1 -1
  57. package/es/input/Input.d.ts +2 -0
  58. package/es/input/Input.js +30 -7
  59. package/es/input/Password.js +24 -5
  60. package/es/input/Search.js +24 -5
  61. package/es/input/TextArea.js +24 -5
  62. package/es/input/style/index.d.ts +6 -0
  63. package/es/input/style/index.js +32 -0
  64. package/es/input-number/index.d.ts +2 -1
  65. package/es/input-number/index.js +18 -4
  66. package/es/input-number/style/index.d.ts +6 -0
  67. package/es/input-number/style/index.js +19 -0
  68. package/es/locale/en-US.js +4 -1
  69. package/es/locale/index.d.ts +2 -0
  70. package/es/locale/ja-JP.d.ts +3 -0
  71. package/es/locale/ja-JP.js +31 -0
  72. package/es/locale/zh-CN.js +4 -1
  73. package/es/locale/zh-TW.js +4 -1
  74. package/es/modal/Modal.js +29 -8
  75. package/es/modal/style/index.d.ts +2 -5
  76. package/es/modal/style/index.js +67 -26
  77. package/es/radio/index.js +9 -2
  78. package/es/radio/style/index.d.ts +2 -5
  79. package/es/radio/style/index.js +16 -10
  80. package/es/result/index.d.ts +2 -2
  81. package/es/result/index.js +14 -6
  82. package/es/result/style/index.d.ts +2 -5
  83. package/es/result/style/index.js +3 -6
  84. package/es/segmented/index.d.ts +1 -0
  85. package/es/segmented/index.js +24 -9
  86. package/es/segmented/style/index.d.ts +1 -4
  87. package/es/segmented/style/index.js +4 -6
  88. package/es/select/index.js +9 -2
  89. package/es/select/style/index.d.ts +2 -5
  90. package/es/select/style/index.js +6 -7
  91. package/es/slider/index.js +9 -2
  92. package/es/slider/style/index.d.ts +2 -5
  93. package/es/slider/style/index.js +11 -11
  94. package/es/space/index.js +9 -2
  95. package/es/space/style/index.d.ts +2 -5
  96. package/es/space/style/index.js +3 -6
  97. package/es/spin/index.js +9 -2
  98. package/es/spin/style/index.d.ts +2 -5
  99. package/es/spin/style/index.js +27 -27
  100. package/es/static-function/index.js +13 -4
  101. package/es/style/cssVariables.d.ts +25 -0
  102. package/es/style/cssVariables.js +48 -0
  103. package/es/style/cssVariablesMeta.d.ts +24 -0
  104. package/es/style/cssVariablesMeta.js +974 -0
  105. package/es/style/global.d.ts +8 -0
  106. package/es/style/global.js +121 -0
  107. package/es/style/reset.css +2 -1
  108. package/es/switch/index.js +9 -2
  109. package/es/switch/style/index.d.ts +2 -5
  110. package/es/switch/style/index.js +3 -6
  111. package/es/table/index.d.ts +1 -4
  112. package/es/table/index.js +67 -34
  113. package/es/table/style/index.d.ts +2 -5
  114. package/es/table/style/index.js +58 -36
  115. package/es/tabs/index.js +9 -2
  116. package/es/tabs/style/index.d.ts +2 -5
  117. package/es/tabs/style/index.js +10 -10
  118. package/es/tag/index.d.ts +1 -0
  119. package/es/tag/index.js +17 -4
  120. package/es/tag/style/index.d.ts +3 -8
  121. package/es/tag/style/index.js +39 -35
  122. package/es/theme/compact.d.ts +1 -1
  123. package/es/theme/compact.js +2 -6
  124. package/es/theme/dark.d.ts +1 -48
  125. package/es/theme/default.d.ts +48 -2
  126. package/es/theme/default.js +324 -62
  127. package/es/theme/index.d.ts +20 -57
  128. package/es/theme/interface.d.ts +130 -0
  129. package/es/theme/interface.js +4 -1
  130. package/es/theme/style/aliyun.less +41 -41
  131. package/es/theme/style/compact.less +166 -137
  132. package/es/theme/style/dark.less +58 -58
  133. package/es/theme/style/default.less +169 -140
  134. package/es/tooltip/index.js +4 -4
  135. package/es/tooltip/style/index.d.ts +2 -5
  136. package/es/tooltip/style/index.js +10 -13
  137. package/es/tree-select/index.js +9 -2
  138. package/es/tree-select/style/index.d.ts +2 -5
  139. package/es/tree-select/style/index.js +3 -6
  140. package/es/typography/Link.js +9 -2
  141. package/es/typography/Paragraph.js +9 -2
  142. package/es/typography/Text.d.ts +1 -0
  143. package/es/typography/Text.js +12 -4
  144. package/es/typography/Title.js +9 -2
  145. package/es/typography/hooks/useClassName.d.ts +1 -1
  146. package/es/typography/hooks/useClassName.js +2 -2
  147. package/es/typography/index.d.ts +12 -1
  148. package/es/typography/index.js +2 -1
  149. package/es/typography/style/index.d.ts +2 -5
  150. package/es/typography/style/index.js +36 -28
  151. package/lib/_util/genComponentStyleHook.d.ts +21 -4
  152. package/lib/_util/genComponentStyleHook.js +50 -31
  153. package/lib/alert/index.d.ts +2 -2
  154. package/lib/alert/index.js +20 -11
  155. package/lib/alert/style/index.d.ts +2 -5
  156. package/lib/alert/style/index.js +174 -79
  157. package/lib/app/index.d.ts +8 -0
  158. package/lib/app/index.js +36 -1
  159. package/lib/app/style/index.d.ts +6 -0
  160. package/lib/{_util/getWeakenBorderColor.js → app/style/index.js} +15 -10
  161. package/lib/badge/index.js +32 -23
  162. package/lib/badge/style/index.d.ts +2 -5
  163. package/lib/badge/style/index.js +14 -16
  164. package/lib/button/index.js +5 -4
  165. package/lib/button/style/index.d.ts +4 -5
  166. package/lib/button/style/index.js +48 -9
  167. package/lib/card/index.d.ts +11 -0
  168. package/lib/card/index.js +160 -12
  169. package/lib/card/style/index.d.ts +2 -5
  170. package/lib/card/style/index.js +132 -21
  171. package/lib/checkbox/index.js +4 -3
  172. package/lib/checkbox/style/index.d.ts +2 -5
  173. package/lib/checkbox/style/index.js +10 -8
  174. package/lib/config-provider/DefaultRenderEmpty.js +4 -3
  175. package/lib/config-provider/context.d.ts +11 -0
  176. package/lib/config-provider/index.d.ts +4 -3
  177. package/lib/config-provider/index.js +133 -30
  178. package/lib/descriptions/hooks/useItems.js +5 -4
  179. package/lib/descriptions/index.d.ts +10 -0
  180. package/lib/descriptions/index.js +54 -6
  181. package/lib/descriptions/style/index.d.ts +3 -6
  182. package/lib/descriptions/style/index.js +117 -7
  183. package/lib/drawer/index.js +46 -35
  184. package/lib/drawer/style/index.d.ts +2 -5
  185. package/lib/drawer/style/index.js +44 -14
  186. package/lib/dropdown/dropdown-button.js +26 -3
  187. package/lib/dropdown/index.js +2 -2
  188. package/lib/dropdown/style/index.d.ts +6 -0
  189. package/lib/dropdown/style/index.js +46 -0
  190. package/lib/empty/colored.js +413 -327
  191. package/lib/empty/database.js +267 -222
  192. package/lib/empty/default.js +16 -21
  193. package/lib/empty/guide.js +201 -184
  194. package/lib/empty/index.js +25 -20
  195. package/lib/empty/style/index.d.ts +2 -5
  196. package/lib/empty/style/index.js +9 -10
  197. package/lib/fonts/Inter-Medium.woff2 +0 -0
  198. package/lib/fonts/Inter-Regular.woff2 +0 -0
  199. package/lib/fonts/Inter-SemiBold.woff2 +0 -0
  200. package/lib/form/FormItem.d.ts +1 -0
  201. package/lib/form/FormItem.js +19 -8
  202. package/lib/form/index.js +8 -5
  203. package/lib/form/style/index.d.ts +2 -5
  204. package/lib/form/style/index.js +28 -7
  205. package/lib/grid/col.js +2 -1
  206. package/lib/grid/row.js +2 -1
  207. package/lib/index.d.ts +4 -3
  208. package/lib/index.js +3 -1
  209. package/lib/input/Input.d.ts +2 -0
  210. package/lib/input/Input.js +37 -13
  211. package/lib/input/Password.js +22 -4
  212. package/lib/input/Search.js +32 -12
  213. package/lib/input/TextArea.js +22 -4
  214. package/lib/input/style/index.d.ts +6 -0
  215. package/lib/input/style/index.js +74 -0
  216. package/lib/input-number/index.d.ts +2 -1
  217. package/lib/input-number/index.js +19 -3
  218. package/lib/input-number/style/index.d.ts +6 -0
  219. package/lib/{_util/genStyle.js → input-number/style/index.js} +22 -17
  220. package/lib/list/index.js +3 -2
  221. package/lib/locale/en-US.js +3 -0
  222. package/lib/locale/index.d.ts +2 -0
  223. package/lib/locale/ja-JP.d.ts +3 -0
  224. package/lib/locale/ja-JP.js +63 -0
  225. package/lib/locale/zh-CN.js +3 -0
  226. package/lib/locale/zh-TW.js +3 -0
  227. package/lib/lottie/index.js +2 -1
  228. package/lib/modal/Modal.js +35 -11
  229. package/lib/modal/Progress.js +9 -5
  230. package/lib/modal/style/index.d.ts +2 -5
  231. package/lib/modal/style/index.js +81 -24
  232. package/lib/radio/index.js +4 -3
  233. package/lib/radio/style/index.d.ts +2 -5
  234. package/lib/radio/style/index.js +17 -8
  235. package/lib/result/403.js +156 -121
  236. package/lib/result/404.js +328 -267
  237. package/lib/result/500.js +295 -257
  238. package/lib/result/Error.js +127 -99
  239. package/lib/result/Processing.js +246 -213
  240. package/lib/result/Success.js +233 -169
  241. package/lib/result/Warning.js +611 -515
  242. package/lib/result/index.d.ts +2 -2
  243. package/lib/result/index.js +14 -13
  244. package/lib/result/style/index.d.ts +2 -5
  245. package/lib/result/style/index.js +3 -6
  246. package/lib/segmented/index.d.ts +1 -0
  247. package/lib/segmented/index.js +17 -6
  248. package/lib/segmented/style/index.d.ts +1 -4
  249. package/lib/segmented/style/index.js +4 -6
  250. package/lib/select/index.js +4 -3
  251. package/lib/select/style/index.d.ts +2 -5
  252. package/lib/select/style/index.js +7 -7
  253. package/lib/slider/index.js +4 -3
  254. package/lib/slider/style/index.d.ts +2 -5
  255. package/lib/slider/style/index.js +12 -11
  256. package/lib/space/index.js +3 -2
  257. package/lib/space/style/index.d.ts +2 -5
  258. package/lib/space/style/index.js +3 -6
  259. package/lib/spin/index.js +7 -6
  260. package/lib/spin/style/index.d.ts +2 -5
  261. package/lib/spin/style/index.js +26 -28
  262. package/lib/static-function/index.js +7 -1
  263. package/lib/style/cssVariables.d.ts +25 -0
  264. package/lib/style/cssVariables.js +261 -0
  265. package/lib/style/cssVariablesMeta.d.ts +24 -0
  266. package/lib/style/cssVariablesMeta.js +1059 -0
  267. package/lib/style/global.d.ts +8 -0
  268. package/lib/style/global.js +176 -0
  269. package/lib/style/reset.css +2 -1
  270. package/lib/switch/index.js +4 -3
  271. package/lib/switch/style/index.d.ts +2 -5
  272. package/lib/switch/style/index.js +3 -6
  273. package/lib/table/index.d.ts +1 -4
  274. package/lib/table/index.js +114 -68
  275. package/lib/table/style/index.d.ts +2 -5
  276. package/lib/table/style/index.js +68 -32
  277. package/lib/tabs/index.js +12 -7
  278. package/lib/tabs/style/index.d.ts +2 -5
  279. package/lib/tabs/style/index.js +12 -8
  280. package/lib/tag/index.d.ts +1 -0
  281. package/lib/tag/index.js +18 -8
  282. package/lib/tag/style/index.d.ts +3 -8
  283. package/lib/tag/style/index.js +45 -36
  284. package/lib/theme/compact.d.ts +1 -1
  285. package/lib/theme/compact.js +1 -5
  286. package/lib/theme/dark.d.ts +1 -48
  287. package/lib/theme/default.d.ts +48 -2
  288. package/lib/theme/default.js +403 -61
  289. package/lib/theme/index.d.ts +20 -57
  290. package/lib/theme/interface.d.ts +130 -0
  291. package/lib/theme/style/aliyun.less +41 -41
  292. package/lib/theme/style/compact.less +166 -137
  293. package/lib/theme/style/dark.less +58 -58
  294. package/lib/theme/style/default.less +169 -140
  295. package/lib/tooltip/MouseTooltip.js +43 -39
  296. package/lib/tooltip/ReactStickyMouseTooltip.js +5 -4
  297. package/lib/tooltip/index.js +17 -13
  298. package/lib/tooltip/style/index.d.ts +2 -5
  299. package/lib/tooltip/style/index.js +10 -13
  300. package/lib/tree-select/index.js +4 -3
  301. package/lib/tree-select/style/index.d.ts +2 -5
  302. package/lib/tree-select/style/index.js +3 -6
  303. package/lib/typography/Link.js +7 -6
  304. package/lib/typography/Paragraph.js +7 -6
  305. package/lib/typography/Text.d.ts +1 -0
  306. package/lib/typography/Text.js +9 -8
  307. package/lib/typography/Title.js +7 -6
  308. package/lib/typography/hooks/useClassName.d.ts +1 -1
  309. package/lib/typography/hooks/useClassName.js +3 -2
  310. package/lib/typography/index.d.ts +12 -1
  311. package/lib/typography/index.js +6 -5
  312. package/lib/typography/style/index.d.ts +2 -5
  313. package/lib/typography/style/index.js +34 -26
  314. package/package.json +10 -9
  315. package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
  316. package/es/_util/genStyle.d.ts +0 -2
  317. package/es/_util/getWeakenBorderColor.d.ts +0 -1
  318. package/es/_util/getWeakenBorderColor.js +0 -4
  319. package/es/fonts/Inter.woff2 +0 -0
  320. package/es/global.css +0 -48
  321. package/lib/_util/genStyle.d.ts +0 -2
  322. package/lib/_util/getWeakenBorderColor.d.ts +0 -1
  323. package/lib/fonts/Inter.woff2 +0 -0
  324. package/lib/global.css +0 -48
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
 
29
19
  // src/empty/guide.tsx
@@ -32,186 +22,213 @@ __export(guide_exports, {
32
22
  default: () => guide_default
33
23
  });
34
24
  module.exports = __toCommonJS(guide_exports);
35
- var import_react = __toESM(require("react"));
36
- var GuideEmptyImg = (props) => /* @__PURE__ */ import_react.default.createElement(
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var GuideEmptyImg = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
37
27
  "svg",
38
28
  {
39
29
  width: "164.217482px",
40
30
  height: "101.022957px",
41
31
  viewBox: "0 0 164.217482 101.022957",
42
32
  version: "1.1",
43
- xmlns: "http://www.w3.org/2000/svg"
44
- },
45
- /* @__PURE__ */ import_react.default.createElement("defs", null, /* @__PURE__ */ import_react.default.createElement(
46
- "path",
47
- {
48
- d: "M0,0.515265579 L168,0 L168,92.2208281 C114.353827,84.8197407 88.4617315,118.112923 21.8636554,110.957758 L21.8636554,80.9669594 L0,0.515265579 Z",
49
- id: "oceanbase-design-empty-guide-path-1"
50
- }
51
- )),
52
- /* @__PURE__ */ import_react.default.createElement("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(-481.7825, -422.9494)" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(478, 412)" }, /* @__PURE__ */ import_react.default.createElement(
53
- "path",
54
- {
55
- d: "M21.8636554,49.5240485 C75.5098285,56.9251359 101.401924,23.6319532 168,31.02133 L168,92.2091175 C114.353827,84.8080301 88.4617315,118.101213 21.8636554,110.946048 L21.8636554,49.5123379 L21.8636554,49.5240485 Z",
56
- fill: "#0181FD",
57
- fillRule: "nonzero"
58
- }
59
- ), /* @__PURE__ */ import_react.default.createElement("g", null, /* @__PURE__ */ import_react.default.createElement("mask", { id: "oceanbase-design-empty-guide-mask-2", fill: "white" }, /* @__PURE__ */ import_react.default.createElement("use", { xlinkHref: "#oceanbase-design-empty-guide-path-1" })), /* @__PURE__ */ import_react.default.createElement("g", null), /* @__PURE__ */ import_react.default.createElement("g", { mask: "url(#oceanbase-design-empty-guide-mask-2)" }, /* @__PURE__ */ import_react.default.createElement("g", { transform: "translate(3.7825, 10.9494)" }, /* @__PURE__ */ import_react.default.createElement(
60
- "g",
61
- {
62
- strokeWidth: "1",
63
- fill: "none",
64
- fillRule: "evenodd",
65
- transform: "translate(131.6972, 16.6476)"
66
- },
67
- /* @__PURE__ */ import_react.default.createElement(
68
- "path",
69
- {
70
- d: "M19.8143036,18.144528 C21.3601004,26.5761466 18.8189042,34.1060504 14.1463823,34.9609228 C9.47386031,35.8157953 4.43831033,29.6677401 2.90422417,21.2361215 C1.35842744,12.8045029 1.54579674,3.37748496 7.37766625,2.22984798 C13.3969051,1.04707927 18.2685069,9.71290946 19.8025931,18.144528 L19.8143036,18.144528 Z",
71
- fill: "#07C846",
72
- fillRule: "nonzero"
73
- }
74
- ),
75
- /* @__PURE__ */ import_react.default.createElement(
76
- "path",
77
- {
78
- d: "M32.8247595,30.6631395 C31.4194898,36.7994841 27.5315767,41.1558204 24.1355082,40.3712114 C20.7394396,39.5983131 19.1116688,33.9889446 20.5169385,27.8526 C21.9222083,21.7162553 24.7913007,15.3339885 29.0422417,16.3176773 C35.9866165,17.9337376 34.2300293,24.5150843 32.8247595,30.6631395 L32.8247595,30.6631395 Z",
79
- fill: "#07C846",
80
- fillRule: "nonzero"
81
- }
82
- ),
83
- /* @__PURE__ */ import_react.default.createElement(
84
- "path",
85
- {
86
- d: "M22.8005019,9.33817086 C20.4818068,12.382922 17.2379757,13.7999024 15.5633626,12.523449 C13.8887495,11.2469956 14.3923045,7.73382122 16.7109996,4.70078065 C19.0296947,1.6560295 22.2149728,-1.14279944 24.3228775,0.473260782 C27.7540778,3.10814158 25.1309076,6.30513029 22.8122125,9.34988144 L22.8005019,9.33817086 Z",
87
- fill: "#07C846",
88
- fillRule: "nonzero"
89
- }
90
- ),
91
- /* @__PURE__ */ import_react.default.createElement(
92
- "rect",
93
- {
94
- fill: "#E6E6E6",
95
- fillRule: "nonzero",
96
- x: "0.17565872",
97
- y: "32.5836748",
98
- width: "37.4972815",
99
- height: "9.9188624",
100
- rx: "1.15934755"
101
- }
102
- ),
103
- /* @__PURE__ */ import_react.default.createElement(
104
- "path",
105
- {
106
- d: "M8.97030531,42.5025372 L0,42.5025372 L0,32.5836748 L7.20200753,32.5836748 L7.20200753,40.74595 C7.20200753,41.7179283 7.98661648,42.5025372 8.95859473,42.5025372 L8.95859473,42.5025372 L8.97030531,42.5025372 Z",
107
- fill: "#B3B3B3",
108
- fillRule: "nonzero"
109
- }
110
- ),
111
- /* @__PURE__ */ import_react.default.createElement(
112
- "path",
113
- {
114
- d: "M2.08448348,42.5025372 L35.7524049,42.5025372 L35.7524049,58.8153771 C35.7524049,61.4619684 33.5976579,63.6167154 30.9510665,63.6167154 L6.87411125,63.6167154 C4.22751987,63.6167154 2.0727729,61.4619684 2.0727729,58.8153771 L2.0727729,42.5025372 L2.0727729,42.5025372 L2.08448348,42.5025372 Z",
115
- fill: "#E6E6E6",
116
- fillRule: "nonzero"
117
- }
118
- ),
119
- /* @__PURE__ */ import_react.default.createElement(
120
- "path",
121
- {
122
- d: "M35.7524049,42.5025372 L2.08448348,42.5025372 L2.08448348,45.3833402 L3.38435801,45.3833402 L3.38435801,63.6167154 L10.5863655,63.6167154 L10.5863655,47.2219015 C10.5863655,46.2030809 11.4061062,45.3833402 12.4249268,45.3833402 L35.7524049,45.3833402 L35.7524049,42.5025372 Z",
123
- fill: "#B3B3B3",
124
- fillRule: "nonzero"
125
- }
126
- )
127
- ), /* @__PURE__ */ import_react.default.createElement(
128
- "rect",
129
- {
130
- fill: "#005AFD",
131
- fillRule: "nonzero",
132
- x: "0",
133
- y: "82.1614387",
134
- width: "150.199916",
135
- height: "20.7979925"
136
- }
137
- ), /* @__PURE__ */ import_react.default.createElement("g", { strokeWidth: "1", fill: "none", fillRule: "evenodd", transform: "translate(6.6842, 0)" }, /* @__PURE__ */ import_react.default.createElement(
138
- "path",
139
- {
140
- d: "M129.580156,75.8025931 L22.0418879,75.8025931 C18.1422644,75.8025931 14.7696169,73.0740276 13.9615868,69.2563781 L0.0611267521,3.31409452 C-0.30190127,1.60434964 0.99797326,0 2.74284988,0 L110.281118,0 C114.180742,0 117.553389,2.72856545 118.36142,6.54621497 L132.26188,72.4884985 C132.624908,74.1982434 131.325033,75.8025931 129.580156,75.8025931 L129.580156,75.8025931 Z",
141
- fill: "#E6E6E6",
142
- fillRule: "nonzero"
143
- }
144
- ), /* @__PURE__ */ import_react.default.createElement(
145
- "path",
146
- {
147
- d: "M22.0418879,70.8724383 C20.4843806,70.8724383 19.1142426,69.7599331 18.7863463,68.2375575 L5.44799417,4.93015475 L110.292829,4.93015475 C111.850336,4.93015475 113.220474,6.04265997 113.548371,7.56503555 L126.886723,70.8724383 L22.0418879,70.8724383 L22.0418879,70.8724383 Z",
148
- fill: "#132039",
149
- fillRule: "nonzero"
150
- }
151
- ), /* @__PURE__ */ import_react.default.createElement(
152
- "path",
153
- {
154
- d: "M104.343854,12.3312422 L16.3154137,12.3312422 C15.4136989,12.3312422 14.7344852,13.1626934 14.9218545,14.0526976 L24.7938746,60.8833124 C25.1100603,62.405688 26.4567771,63.4830615 28.0025738,63.4830615 L116.031014,63.4830615 C116.932729,63.4830615 117.611942,62.6516102 117.424573,61.761606 L107.552553,14.9309912 C107.236367,13.4086156 105.88965,12.3312422 104.343854,12.3312422 Z",
155
- fill: "#FFFFFF",
156
- fillRule: "nonzero"
157
- }
158
- ), /* @__PURE__ */ import_react.default.createElement(
159
- "path",
160
- {
161
- d: "M36.7620887,33.539105 C50.1707043,35.3425345 54.7612522,27.2505228 71.3200142,29.0422417 L73.8846316,41.174404 C60.4760159,39.3709745 55.885468,47.4629862 39.3384166,45.7298202 L36.7620887,33.539105 Z",
162
- fill: "#0181FD",
163
- fillRule: "nonzero"
164
- }
165
- ), /* @__PURE__ */ import_react.default.createElement(
166
- "path",
167
- {
168
- d: "M104.343854,12.3312422 L80.419136,12.3312422 L91.2045814,63.4830615 L116.031014,63.4830615 C116.932729,63.4830615 117.611942,62.6516102 117.424573,61.761606 L107.552553,14.9309912 C107.236367,13.4086156 105.88965,12.3312422 104.343854,12.3312422 L104.343854,12.3312422 Z",
169
- fill: "#0181FD",
170
- fillRule: "nonzero"
171
- }
172
- ), /* @__PURE__ */ import_react.default.createElement(
173
- "path",
174
- {
175
- d: "M98.9452756,33.902133 C95.5023647,33.902133 92.1062961,31.1033041 91.3685295,27.6603931 C91.0172121,26.0092012 91.3333978,24.4868256 92.2468231,23.3508992 C93.1368273,22.2501046 94.4952547,21.6528649 96.0761832,21.6528649 C99.5190941,21.6528649 102.915163,24.4516939 103.652929,27.8946048 C104.004247,29.5457967 103.688061,31.0681723 102.774636,32.2040987 C101.884632,33.3048934 100.526204,33.902133 98.9452756,33.902133 Z",
176
- fill: "#005AFD",
177
- fillRule: "nonzero"
178
- }
179
- ), /* @__PURE__ */ import_react.default.createElement(
180
- "path",
181
- {
182
- d: "M154.886723,82.1731493 L43.4019883,82.1731493 L43.4019883,75.8025931 L156.84239,75.8025931 C157.45134,75.8025931 157.931474,76.2944375 157.931474,76.8916771 L157.931474,79.1166876 C157.931474,80.8030113 156.561336,82.1731493 154.875012,82.1731493 L154.886723,82.1731493 Z",
183
- fill: "#CCCCCC",
184
- fillRule: "nonzero"
185
- }
186
- ), /* @__PURE__ */ import_react.default.createElement(
187
- "path",
188
- {
189
- d: "M92.4576136,75.8025931 L117.16694,75.8025931 L117.16694,76.0485153 C117.16694,77.1961522 116.230094,78.1329987 115.082457,78.1329987 L94.5420971,78.1329987 C93.3944601,78.1329987 92.4576136,77.1961522 92.4576136,76.0485153 L92.4576136,75.8025931 L92.4576136,75.8025931 L92.4576136,75.8025931 Z",
190
- fill: "#FFFFFF",
191
- fillRule: "nonzero"
192
- }
193
- ), /* @__PURE__ */ import_react.default.createElement(
194
- "path",
195
- {
196
- d: "M50.990445,82.1731493 L17.1468649,82.1731493 C15.3902777,82.1731493 13.9615868,80.7444584 13.9615868,78.9878712 L13.9615868,78.9878712 C13.9615868,77.231284 15.3902777,75.8025931 17.1468649,75.8025931 L44.3856771,75.8025931 C45.5567353,75.8025931 46.6458193,76.3529904 47.3484542,77.2898369 L50.990445,82.1731493 L50.990445,82.1731493 Z",
197
- fill: "#132039",
198
- fillRule: "nonzero"
199
- }
200
- ), /* @__PURE__ */ import_react.default.createElement(
201
- "path",
202
- {
203
- d: "M107.950713,42.5094103 L92.4693242,42.5094103 C91.7315575,42.5094103 91.0874756,41.9824341 90.935238,41.2563781 L90.935238,41.2563781 C90.7361581,40.2843998 91.4739247,39.3709745 92.4693242,39.3709745 L107.950713,39.3709745 C108.688479,39.3709745 109.332561,39.8979506 109.484799,40.6240067 L109.484799,40.6240067 C109.683879,41.5959849 108.946112,42.5094103 107.950713,42.5094103 Z",
204
- fill: "#005AFD",
205
- fillRule: "nonzero"
206
- }
207
- ), /* @__PURE__ */ import_react.default.createElement(
208
- "path",
209
- {
210
- d: "M109.227166,48.083647 L93.7457775,48.083647 C93.0080109,48.083647 92.3639289,47.5566708 92.2116914,46.8306148 L92.2116914,46.8306148 C92.0126115,45.8586366 92.7503781,44.9452112 93.7457775,44.9452112 L109.227166,44.9452112 C109.964933,44.9452112 110.609015,45.4721874 110.761252,46.1982434 L110.761252,46.1982434 C110.960332,47.1702217 110.222565,48.083647 109.227166,48.083647 Z",
211
- fill: "#005AFD",
212
- fillRule: "nonzero"
213
- }
214
- ))))))))
33
+ xmlns: "http://www.w3.org/2000/svg",
34
+ children: [
35
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
+ "path",
37
+ {
38
+ d: "M0,0.515265579 L168,0 L168,92.2208281 C114.353827,84.8197407 88.4617315,118.112923 21.8636554,110.957758 L21.8636554,80.9669594 L0,0.515265579 Z",
39
+ id: "oceanbase-design-empty-guide-path-1"
40
+ }
41
+ ) }),
42
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { transform: "translate(-481.7825, -422.9494)", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { transform: "translate(478, 412)", children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
44
+ "path",
45
+ {
46
+ d: "M21.8636554,49.5240485 C75.5098285,56.9251359 101.401924,23.6319532 168,31.02133 L168,92.2091175 C114.353827,84.8080301 88.4617315,118.101213 21.8636554,110.946048 L21.8636554,49.5123379 L21.8636554,49.5240485 Z",
47
+ fill: "#0181FD",
48
+ fillRule: "nonzero"
49
+ }
50
+ ),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { children: [
52
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("mask", { id: "oceanbase-design-empty-guide-mask-2", fill: "white", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("use", { xlinkHref: "#oceanbase-design-empty-guide-path-1" }) }),
53
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", {}),
54
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { mask: "url(#oceanbase-design-empty-guide-mask-2)", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { transform: "translate(3.7825, 10.9494)", children: [
55
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
56
+ "g",
57
+ {
58
+ strokeWidth: "1",
59
+ fill: "none",
60
+ fillRule: "evenodd",
61
+ transform: "translate(131.6972, 16.6476)",
62
+ children: [
63
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ "path",
65
+ {
66
+ d: "M19.8143036,18.144528 C21.3601004,26.5761466 18.8189042,34.1060504 14.1463823,34.9609228 C9.47386031,35.8157953 4.43831033,29.6677401 2.90422417,21.2361215 C1.35842744,12.8045029 1.54579674,3.37748496 7.37766625,2.22984798 C13.3969051,1.04707927 18.2685069,9.71290946 19.8025931,18.144528 L19.8143036,18.144528 Z",
67
+ fill: "#07C846",
68
+ fillRule: "nonzero"
69
+ }
70
+ ),
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ "path",
73
+ {
74
+ d: "M32.8247595,30.6631395 C31.4194898,36.7994841 27.5315767,41.1558204 24.1355082,40.3712114 C20.7394396,39.5983131 19.1116688,33.9889446 20.5169385,27.8526 C21.9222083,21.7162553 24.7913007,15.3339885 29.0422417,16.3176773 C35.9866165,17.9337376 34.2300293,24.5150843 32.8247595,30.6631395 L32.8247595,30.6631395 Z",
75
+ fill: "#07C846",
76
+ fillRule: "nonzero"
77
+ }
78
+ ),
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
+ "path",
81
+ {
82
+ d: "M22.8005019,9.33817086 C20.4818068,12.382922 17.2379757,13.7999024 15.5633626,12.523449 C13.8887495,11.2469956 14.3923045,7.73382122 16.7109996,4.70078065 C19.0296947,1.6560295 22.2149728,-1.14279944 24.3228775,0.473260782 C27.7540778,3.10814158 25.1309076,6.30513029 22.8122125,9.34988144 L22.8005019,9.33817086 Z",
83
+ fill: "#07C846",
84
+ fillRule: "nonzero"
85
+ }
86
+ ),
87
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
88
+ "rect",
89
+ {
90
+ fill: "#E6E6E6",
91
+ fillRule: "nonzero",
92
+ x: "0.17565872",
93
+ y: "32.5836748",
94
+ width: "37.4972815",
95
+ height: "9.9188624",
96
+ rx: "1.15934755"
97
+ }
98
+ ),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
+ "path",
101
+ {
102
+ d: "M8.97030531,42.5025372 L0,42.5025372 L0,32.5836748 L7.20200753,32.5836748 L7.20200753,40.74595 C7.20200753,41.7179283 7.98661648,42.5025372 8.95859473,42.5025372 L8.95859473,42.5025372 L8.97030531,42.5025372 Z",
103
+ fill: "#B3B3B3",
104
+ fillRule: "nonzero"
105
+ }
106
+ ),
107
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
108
+ "path",
109
+ {
110
+ d: "M2.08448348,42.5025372 L35.7524049,42.5025372 L35.7524049,58.8153771 C35.7524049,61.4619684 33.5976579,63.6167154 30.9510665,63.6167154 L6.87411125,63.6167154 C4.22751987,63.6167154 2.0727729,61.4619684 2.0727729,58.8153771 L2.0727729,42.5025372 L2.0727729,42.5025372 L2.08448348,42.5025372 Z",
111
+ fill: "#E6E6E6",
112
+ fillRule: "nonzero"
113
+ }
114
+ ),
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
+ "path",
117
+ {
118
+ d: "M35.7524049,42.5025372 L2.08448348,42.5025372 L2.08448348,45.3833402 L3.38435801,45.3833402 L3.38435801,63.6167154 L10.5863655,63.6167154 L10.5863655,47.2219015 C10.5863655,46.2030809 11.4061062,45.3833402 12.4249268,45.3833402 L35.7524049,45.3833402 L35.7524049,42.5025372 Z",
119
+ fill: "#B3B3B3",
120
+ fillRule: "nonzero"
121
+ }
122
+ )
123
+ ]
124
+ }
125
+ ),
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
127
+ "rect",
128
+ {
129
+ fill: "#005AFD",
130
+ fillRule: "nonzero",
131
+ x: "0",
132
+ y: "82.1614387",
133
+ width: "150.199916",
134
+ height: "20.7979925"
135
+ }
136
+ ),
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { strokeWidth: "1", fill: "none", fillRule: "evenodd", transform: "translate(6.6842, 0)", children: [
138
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
139
+ "path",
140
+ {
141
+ d: "M129.580156,75.8025931 L22.0418879,75.8025931 C18.1422644,75.8025931 14.7696169,73.0740276 13.9615868,69.2563781 L0.0611267521,3.31409452 C-0.30190127,1.60434964 0.99797326,0 2.74284988,0 L110.281118,0 C114.180742,0 117.553389,2.72856545 118.36142,6.54621497 L132.26188,72.4884985 C132.624908,74.1982434 131.325033,75.8025931 129.580156,75.8025931 L129.580156,75.8025931 Z",
142
+ fill: "#E6E6E6",
143
+ fillRule: "nonzero"
144
+ }
145
+ ),
146
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
147
+ "path",
148
+ {
149
+ d: "M22.0418879,70.8724383 C20.4843806,70.8724383 19.1142426,69.7599331 18.7863463,68.2375575 L5.44799417,4.93015475 L110.292829,4.93015475 C111.850336,4.93015475 113.220474,6.04265997 113.548371,7.56503555 L126.886723,70.8724383 L22.0418879,70.8724383 L22.0418879,70.8724383 Z",
150
+ fill: "#132039",
151
+ fillRule: "nonzero"
152
+ }
153
+ ),
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
+ "path",
156
+ {
157
+ d: "M104.343854,12.3312422 L16.3154137,12.3312422 C15.4136989,12.3312422 14.7344852,13.1626934 14.9218545,14.0526976 L24.7938746,60.8833124 C25.1100603,62.405688 26.4567771,63.4830615 28.0025738,63.4830615 L116.031014,63.4830615 C116.932729,63.4830615 117.611942,62.6516102 117.424573,61.761606 L107.552553,14.9309912 C107.236367,13.4086156 105.88965,12.3312422 104.343854,12.3312422 Z",
158
+ fill: "#FFFFFF",
159
+ fillRule: "nonzero"
160
+ }
161
+ ),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
163
+ "path",
164
+ {
165
+ d: "M36.7620887,33.539105 C50.1707043,35.3425345 54.7612522,27.2505228 71.3200142,29.0422417 L73.8846316,41.174404 C60.4760159,39.3709745 55.885468,47.4629862 39.3384166,45.7298202 L36.7620887,33.539105 Z",
166
+ fill: "#0181FD",
167
+ fillRule: "nonzero"
168
+ }
169
+ ),
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
171
+ "path",
172
+ {
173
+ d: "M104.343854,12.3312422 L80.419136,12.3312422 L91.2045814,63.4830615 L116.031014,63.4830615 C116.932729,63.4830615 117.611942,62.6516102 117.424573,61.761606 L107.552553,14.9309912 C107.236367,13.4086156 105.88965,12.3312422 104.343854,12.3312422 L104.343854,12.3312422 Z",
174
+ fill: "#0181FD",
175
+ fillRule: "nonzero"
176
+ }
177
+ ),
178
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
179
+ "path",
180
+ {
181
+ d: "M98.9452756,33.902133 C95.5023647,33.902133 92.1062961,31.1033041 91.3685295,27.6603931 C91.0172121,26.0092012 91.3333978,24.4868256 92.2468231,23.3508992 C93.1368273,22.2501046 94.4952547,21.6528649 96.0761832,21.6528649 C99.5190941,21.6528649 102.915163,24.4516939 103.652929,27.8946048 C104.004247,29.5457967 103.688061,31.0681723 102.774636,32.2040987 C101.884632,33.3048934 100.526204,33.902133 98.9452756,33.902133 Z",
182
+ fill: "#005AFD",
183
+ fillRule: "nonzero"
184
+ }
185
+ ),
186
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
187
+ "path",
188
+ {
189
+ d: "M154.886723,82.1731493 L43.4019883,82.1731493 L43.4019883,75.8025931 L156.84239,75.8025931 C157.45134,75.8025931 157.931474,76.2944375 157.931474,76.8916771 L157.931474,79.1166876 C157.931474,80.8030113 156.561336,82.1731493 154.875012,82.1731493 L154.886723,82.1731493 Z",
190
+ fill: "#CCCCCC",
191
+ fillRule: "nonzero"
192
+ }
193
+ ),
194
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
195
+ "path",
196
+ {
197
+ d: "M92.4576136,75.8025931 L117.16694,75.8025931 L117.16694,76.0485153 C117.16694,77.1961522 116.230094,78.1329987 115.082457,78.1329987 L94.5420971,78.1329987 C93.3944601,78.1329987 92.4576136,77.1961522 92.4576136,76.0485153 L92.4576136,75.8025931 L92.4576136,75.8025931 L92.4576136,75.8025931 Z",
198
+ fill: "#FFFFFF",
199
+ fillRule: "nonzero"
200
+ }
201
+ ),
202
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
203
+ "path",
204
+ {
205
+ d: "M50.990445,82.1731493 L17.1468649,82.1731493 C15.3902777,82.1731493 13.9615868,80.7444584 13.9615868,78.9878712 L13.9615868,78.9878712 C13.9615868,77.231284 15.3902777,75.8025931 17.1468649,75.8025931 L44.3856771,75.8025931 C45.5567353,75.8025931 46.6458193,76.3529904 47.3484542,77.2898369 L50.990445,82.1731493 L50.990445,82.1731493 Z",
206
+ fill: "#132039",
207
+ fillRule: "nonzero"
208
+ }
209
+ ),
210
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
211
+ "path",
212
+ {
213
+ d: "M107.950713,42.5094103 L92.4693242,42.5094103 C91.7315575,42.5094103 91.0874756,41.9824341 90.935238,41.2563781 L90.935238,41.2563781 C90.7361581,40.2843998 91.4739247,39.3709745 92.4693242,39.3709745 L107.950713,39.3709745 C108.688479,39.3709745 109.332561,39.8979506 109.484799,40.6240067 L109.484799,40.6240067 C109.683879,41.5959849 108.946112,42.5094103 107.950713,42.5094103 Z",
214
+ fill: "#005AFD",
215
+ fillRule: "nonzero"
216
+ }
217
+ ),
218
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
219
+ "path",
220
+ {
221
+ d: "M109.227166,48.083647 L93.7457775,48.083647 C93.0080109,48.083647 92.3639289,47.5566708 92.2116914,46.8306148 L92.2116914,46.8306148 C92.0126115,45.8586366 92.7503781,44.9452112 93.7457775,44.9452112 L109.227166,44.9452112 C109.964933,44.9452112 110.609015,45.4721874 110.761252,46.1982434 L110.761252,46.1982434 C110.960332,47.1702217 110.222565,48.083647 109.227166,48.083647 Z",
222
+ fill: "#005AFD",
223
+ fillRule: "nonzero"
224
+ }
225
+ )
226
+ ] })
227
+ ] }) })
228
+ ] })
229
+ ] }) }) })
230
+ ]
231
+ }
215
232
  );
216
233
  if (process.env.NODE_ENV !== "production") {
217
234
  GuideEmptyImg.displayName = "GuideEmptyImg";
@@ -33,7 +33,7 @@ __export(empty_exports, {
33
33
  default: () => empty_default
34
34
  });
35
35
  module.exports = __toCommonJS(empty_exports);
36
- var import_react = __toESM(require("react"));
36
+ var import_react = require("react");
37
37
  var import_antd = require("antd");
38
38
  var import_classnames = __toESM(require("classnames"));
39
39
  var import_config_provider = __toESM(require("../config-provider"));
@@ -44,11 +44,12 @@ var import_database = __toESM(require("./database"));
44
44
  var import_guide = __toESM(require("./guide"));
45
45
  var import_style = __toESM(require("./style"));
46
46
  __reExport(empty_exports, require("antd/es/empty"), module.exports);
47
- var defaultEmptyImg = /* @__PURE__ */ import_react.default.createElement(import_default.default, null);
48
- var simpleEmptyImg = /* @__PURE__ */ import_react.default.createElement(import_default.default, null);
49
- var coloredEmptyImg = /* @__PURE__ */ import_react.default.createElement(import_colored.default, null);
50
- var databaseEmptyImg = /* @__PURE__ */ import_react.default.createElement(import_database.default, null);
51
- var guideEmptyImg = /* @__PURE__ */ import_react.default.createElement(import_guide.default, null);
47
+ var import_jsx_runtime = require("react/jsx-runtime");
48
+ var defaultEmptyImg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_default.default, {});
49
+ var simpleEmptyImg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_default.default, {});
50
+ var coloredEmptyImg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_colored.default, {});
51
+ var databaseEmptyImg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_database.default, {});
52
+ var guideEmptyImg = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_guide.default, {});
52
53
  var Empty = (props) => {
53
54
  const [locale] = (0, import_locale.useLocale)("Empty");
54
55
  const {
@@ -64,33 +65,37 @@ var Empty = (props) => {
64
65
  } = props;
65
66
  const { getPrefixCls } = (0, import_react.useContext)(import_config_provider.default.ConfigContext);
66
67
  const prefixCls = getPrefixCls("empty", customizePrefixCls);
67
- const { wrapSSR } = (0, import_style.default)(prefixCls);
68
+ const [wrapCSSVar] = (0, import_style.default)(prefixCls);
68
69
  const isHorizontal = layout === "horizontal";
69
70
  const emptyCls = (0, import_classnames.default)(
70
- prefixCls,
71
71
  {
72
72
  [`${prefixCls}-horizontal`]: isHorizontal,
73
73
  [`${prefixCls}-small`]: image === defaultEmptyImg || image === simpleEmptyImg
74
74
  },
75
75
  className
76
76
  );
77
- return wrapSSR(
78
- /* @__PURE__ */ import_react.default.createElement(
77
+ return wrapCSSVar(
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
79
  import_antd.Empty,
80
80
  {
81
81
  image,
82
- description: /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, title && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-title` }, title), description && /* @__PURE__ */ import_react.default.createElement(
83
- "div",
84
- {
85
- className: `${prefixCls}-description-content`
86
- },
87
- description
88
- ), steps && /* @__PURE__ */ import_react.default.createElement(import_antd.Steps, { items: steps }), isHorizontal && children && /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-footer` }, children)),
82
+ description: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
83
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-title`, children: title }),
84
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ "div",
86
+ {
87
+ className: `${prefixCls}-description-content`,
88
+ children: description
89
+ }
90
+ ),
91
+ steps && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_antd.Steps, { items: steps }),
92
+ isHorizontal && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-footer`, children })
93
+ ] }),
89
94
  prefixCls: customizePrefixCls,
90
95
  className: emptyCls,
91
- ...restProps
92
- },
93
- !isHorizontal && children
96
+ ...restProps,
97
+ children: !isHorizontal && children
98
+ }
94
99
  )
95
100
  );
96
101
  };
@@ -1,9 +1,6 @@
1
1
  /// <reference types="react" />
2
- import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
2
+ import type { FullToken, GenerateStyle } from '../../theme/interface';
3
3
  export type EmptyToken = FullToken<'Badge'>;
4
4
  export declare const genEmptyStyle: GenerateStyle<EmptyToken>;
5
- declare const _default: (prefixCls: string) => {
6
- wrapSSR: (node: import("react").ReactNode) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
7
- hashId: string;
8
- };
5
+ declare const _default: (prefixCls: string, rootCls?: string) => readonly [(node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>, string, string];
9
6
  export default _default;
@@ -23,9 +23,10 @@ __export(style_exports, {
23
23
  genEmptyStyle: () => genEmptyStyle
24
24
  });
25
25
  module.exports = __toCommonJS(style_exports);
26
+ var import_cssinjs = require("@ant-design/cssinjs");
26
27
  var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
28
  var genEmptyStyle = (token) => {
28
- const { antCls, componentCls, colorTextTertiary, colorText, colorTextSecondary } = token;
29
+ const { antCls, componentCls, colorTextTertiary, colorText, colorTextSecondary, calc } = token;
29
30
  return {
30
31
  [`${componentCls}`]: {
31
32
  [`${componentCls}-image`]: {
@@ -44,6 +45,7 @@ var genEmptyStyle = (token) => {
44
45
  },
45
46
  [`${componentCls}-description-content`]: {
46
47
  color: colorTextTertiary,
48
+ fontWeight: token.fontWeightWeak,
47
49
  maxWidth: 600,
48
50
  margin: "0px auto",
49
51
  marginTop: token.marginXS
@@ -59,7 +61,7 @@ var genEmptyStyle = (token) => {
59
61
  [`${antCls}-steps-item-icon`]: {
60
62
  height: token.controlHeightSM,
61
63
  width: token.controlHeightSM,
62
- lineHeight: `${token.controlHeightSM}px`,
64
+ lineHeight: (0, import_cssinjs.unit)(token.controlHeightSM),
63
65
  backgroundColor: token.colorFillSecondary,
64
66
  // override default border color
65
67
  borderColor: token.colorFillSecondary,
@@ -73,9 +75,9 @@ var genEmptyStyle = (token) => {
73
75
  color: colorText,
74
76
  fontSize: token.fontSize,
75
77
  fontWeight: token.fontWeightStrong,
76
- lineHeight: `${token.controlHeightSM}px`,
78
+ lineHeight: (0, import_cssinjs.unit)(token.controlHeightSM),
77
79
  "&::after": {
78
- top: token.controlHeightSM / 2
80
+ top: calc(token.controlHeightSM).div(2).equal()
79
81
  }
80
82
  },
81
83
  [`${antCls}-steps-item-description`]: {
@@ -110,12 +112,9 @@ var genEmptyStyle = (token) => {
110
112
  }
111
113
  };
112
114
  };
113
- var style_default = (prefixCls) => {
114
- const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Empty", (token) => {
115
- return [genEmptyStyle(token)];
116
- });
117
- return useStyle(prefixCls);
118
- };
115
+ var style_default = (0, import_genComponentStyleHook.genStyleHooks)("Empty", (token) => {
116
+ return [genEmptyStyle(token)];
117
+ });
119
118
  // Annotate the CommonJS export names for ESM import in node:
120
119
  0 && (module.exports = {
121
120
  genEmptyStyle
Binary file
Binary file
Binary file
@@ -17,6 +17,7 @@ export type LabelTooltipType = WrapperTooltipProps | React.ReactNode;
17
17
  export interface FormItemProps extends AntFormItemProps {
18
18
  tooltip?: WrapperTooltipProps | ReactNode;
19
19
  action?: ReactNode;
20
+ description?: ReactNode;
20
21
  }
21
22
  type CompoundedComponent = React.FC<FormItemProps> & {
22
23
  useStatus: typeof AntFormItem.useStatus;