@oceanbase/ui 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (297) hide show
  1. package/dist/ui.min.css +1 -1
  2. package/dist/ui.min.js +1 -1
  3. package/es/Action/Group.js +121 -15
  4. package/es/Action/Item.d.ts +6 -15
  5. package/es/Action/Item.js +85 -128
  6. package/es/Action/index.d.ts +6 -3
  7. package/es/Action/style/index.js +8 -4
  8. package/es/BasicLayout/locale/ja-JP.d.ts +13 -0
  9. package/es/BasicLayout/locale/ja-JP.js +12 -0
  10. package/es/BasicLayout/style/index.js +35 -23
  11. package/es/BatchOperationBar/index.d.ts +0 -1
  12. package/es/BatchOperationBar/index.js +17 -13
  13. package/es/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  14. package/es/BatchOperationBar/locale/ja-JP.js +6 -0
  15. package/es/BatchOperationBar/style/index.d.ts +10 -0
  16. package/es/BatchOperationBar/style/index.js +51 -0
  17. package/es/Boundary/Components/Code.js +11 -5
  18. package/es/Boundary/Components/Exception.js +85 -74
  19. package/es/Boundary/Components/Function.js +11 -5
  20. package/es/Boundary/index.d.ts +0 -1
  21. package/es/Boundary/index.js +0 -1
  22. package/es/Boundary/locale/ja-JP.d.ts +11 -0
  23. package/es/Boundary/locale/ja-JP.js +10 -0
  24. package/es/Boundary/style/index.d.ts +10 -0
  25. package/es/Boundary/style/index.js +46 -0
  26. package/es/ContentWithIcon/index.d.ts +0 -1
  27. package/es/ContentWithIcon/index.js +29 -29
  28. package/es/ContentWithIcon/style/index.d.ts +10 -0
  29. package/es/ContentWithIcon/style/index.js +26 -0
  30. package/es/DateRanger/PickerPanel.js +5 -4
  31. package/es/DateRanger/Ranger.d.ts +0 -1
  32. package/es/DateRanger/Ranger.js +13 -8
  33. package/es/DateRanger/locale/ja-JP.d.ts +56 -0
  34. package/es/DateRanger/locale/ja-JP.js +20 -0
  35. package/es/DateRanger/style/index.d.ts +10 -0
  36. package/es/DateRanger/style/index.js +126 -0
  37. package/es/Dialog/Anchor.d.ts +2 -10
  38. package/es/Dialog/Anchor.js +67 -96
  39. package/es/Dialog/index.d.ts +0 -1
  40. package/es/Dialog/index.js +537 -578
  41. package/es/Dialog/locale/ja-JP.d.ts +5 -0
  42. package/es/Dialog/locale/ja-JP.js +4 -0
  43. package/es/Dialog/style/index.d.ts +10 -0
  44. package/es/Dialog/style/index.js +97 -0
  45. package/es/DocDialog/locale/ja-JP.d.ts +2 -0
  46. package/es/DocDialog/locale/ja-JP.js +1 -0
  47. package/es/FooterToolbar/style/index.js +7 -1
  48. package/es/FullscreenBox/index.d.ts +0 -1
  49. package/es/FullscreenBox/index.js +46 -37
  50. package/es/FullscreenBox/locale/ja-JP.d.ts +2 -0
  51. package/es/FullscreenBox/locale/ja-JP.js +1 -0
  52. package/es/FullscreenBox/style/index.d.ts +10 -0
  53. package/es/FullscreenBox/style/index.js +53 -0
  54. package/es/GraphToolbar/index.d.ts +0 -1
  55. package/es/GraphToolbar/index.js +19 -16
  56. package/es/GraphToolbar/locale/ja-JP.d.ts +9 -0
  57. package/es/GraphToolbar/locale/ja-JP.js +8 -0
  58. package/es/GraphToolbar/style/index.d.ts +10 -0
  59. package/es/GraphToolbar/style/index.js +60 -0
  60. package/es/Highlight/DiffView/index.d.ts +0 -1
  61. package/es/Highlight/DiffView/index.js +5 -5
  62. package/es/Highlight/JsonView.d.ts +0 -1
  63. package/es/Highlight/JsonView.js +5 -5
  64. package/es/Highlight/index.d.ts +0 -1
  65. package/es/Highlight/index.js +23 -23
  66. package/es/Highlight/locale/ja-JP.d.ts +4 -0
  67. package/es/Highlight/locale/ja-JP.js +3 -0
  68. package/es/Highlight/style/index.d.ts +10 -0
  69. package/es/Highlight/style/index.js +213 -0
  70. package/es/LocaleDropdown/index.js +4 -2
  71. package/es/Login/ActivateForm.d.ts +0 -1
  72. package/es/Login/ActivateForm.js +12 -9
  73. package/es/Login/LoginForm.d.ts +0 -1
  74. package/es/Login/LoginForm.js +20 -15
  75. package/es/Login/RegisterForm.d.ts +0 -1
  76. package/es/Login/RegisterForm.js +14 -11
  77. package/es/Login/index.d.ts +0 -1
  78. package/es/Login/index.js +24 -22
  79. package/es/Login/locale/ja-JP.d.ts +28 -0
  80. package/es/Login/locale/ja-JP.js +27 -0
  81. package/es/Login/style/index.d.ts +10 -0
  82. package/es/Login/style/index.js +182 -0
  83. package/es/NavMenu/index.d.ts +1 -2
  84. package/es/NavMenu/index.js +11 -8
  85. package/es/NavMenu/style/index.d.ts +10 -0
  86. package/es/NavMenu/style/index.js +47 -0
  87. package/es/PageContainer/locale/ja-JP.d.ts +4 -0
  88. package/es/PageContainer/locale/ja-JP.js +3 -0
  89. package/es/PageContainer/style/index.js +5 -5
  90. package/es/Password/locale/ja-JP.d.ts +13 -0
  91. package/es/Password/locale/ja-JP.js +12 -0
  92. package/es/Ranger/QuickPicker.js +8 -4
  93. package/es/Ranger/Ranger.d.ts +0 -1
  94. package/es/Ranger/Ranger.js +12 -9
  95. package/es/Ranger/locale/ja-JP.d.ts +28 -0
  96. package/es/Ranger/locale/ja-JP.js +29 -0
  97. package/es/Ranger/style/index.d.ts +10 -0
  98. package/es/Ranger/style/index.js +44 -0
  99. package/es/SideTip/index.d.ts +0 -1
  100. package/es/SideTip/index.js +24 -22
  101. package/es/SideTip/locale/ja-JP.d.ts +2 -0
  102. package/es/SideTip/locale/ja-JP.js +1 -0
  103. package/es/SideTip/style/index.d.ts +10 -0
  104. package/es/SideTip/style/index.js +162 -0
  105. package/es/TagSelect/Group.d.ts +6 -6
  106. package/es/TagSelect/Group.js +5 -3
  107. package/es/TagSelect/Item.js +5 -3
  108. package/es/TaskGraph/Graph/style/index.d.ts +10 -0
  109. package/es/TaskGraph/Graph/style/index.js +28 -0
  110. package/es/TaskGraph/Graph.d.ts +0 -1
  111. package/es/TaskGraph/Graph.js +26 -10
  112. package/es/TaskGraph/index.d.ts +0 -1
  113. package/es/TaskGraph/index.js +10 -7
  114. package/es/TaskGraph/locale/ja-JP.d.ts +13 -0
  115. package/es/TaskGraph/locale/ja-JP.js +12 -0
  116. package/es/TaskGraph/style/index.d.ts +10 -0
  117. package/es/TaskGraph/style/index.js +102 -0
  118. package/es/Welcome/index.d.ts +0 -1
  119. package/es/Welcome/index.js +30 -26
  120. package/es/Welcome/locale/ja-JP.d.ts +5 -0
  121. package/es/Welcome/locale/ja-JP.js +4 -0
  122. package/es/Welcome/step/style/index.d.ts +10 -0
  123. package/es/Welcome/step/style/index.js +44 -0
  124. package/es/Welcome/step.d.ts +0 -1
  125. package/es/Welcome/step.js +17 -14
  126. package/es/Welcome/style/index.d.ts +10 -0
  127. package/es/Welcome/style/index.js +141 -0
  128. package/es/index.d.ts +0 -1
  129. package/es/index.js +0 -1
  130. package/es/locale/ja-JP.d.ts +3 -0
  131. package/es/locale/ja-JP.js +42 -0
  132. package/lib/Action/Group.js +85 -20
  133. package/lib/Action/Item.d.ts +6 -15
  134. package/lib/Action/Item.js +66 -81
  135. package/lib/Action/index.d.ts +6 -3
  136. package/lib/Action/style/index.js +16 -1
  137. package/lib/BasicLayout/locale/ja-JP.d.ts +13 -0
  138. package/lib/BasicLayout/locale/ja-JP.js +36 -0
  139. package/lib/BasicLayout/style/index.js +32 -23
  140. package/lib/BatchOperationBar/index.d.ts +0 -1
  141. package/lib/BatchOperationBar/index.js +54 -50
  142. package/lib/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  143. package/lib/BatchOperationBar/locale/ja-JP.js +30 -0
  144. package/lib/BatchOperationBar/style/index.d.ts +10 -0
  145. package/lib/BatchOperationBar/style/index.js +82 -0
  146. package/lib/Boundary/Components/Code.js +23 -17
  147. package/lib/Boundary/Components/Exception.js +40 -29
  148. package/lib/Boundary/Components/Function.js +18 -12
  149. package/lib/Boundary/index.d.ts +0 -1
  150. package/lib/Boundary/index.js +0 -1
  151. package/lib/Boundary/locale/ja-JP.d.ts +11 -0
  152. package/lib/Boundary/locale/ja-JP.js +34 -0
  153. package/lib/Boundary/style/index.d.ts +10 -0
  154. package/lib/Boundary/style/index.js +74 -0
  155. package/lib/ContentWithIcon/index.d.ts +0 -1
  156. package/lib/ContentWithIcon/index.js +35 -32
  157. package/lib/ContentWithIcon/style/index.d.ts +10 -0
  158. package/lib/ContentWithIcon/style/index.js +57 -0
  159. package/lib/DateRanger/PickerPanel.js +2 -2
  160. package/lib/DateRanger/Ranger.d.ts +0 -1
  161. package/lib/DateRanger/Ranger.js +353 -348
  162. package/lib/DateRanger/locale/ja-JP.d.ts +56 -0
  163. package/lib/DateRanger/locale/ja-JP.js +49 -0
  164. package/lib/DateRanger/style/index.d.ts +10 -0
  165. package/lib/DateRanger/style/index.js +195 -0
  166. package/lib/Dialog/Anchor.d.ts +2 -10
  167. package/lib/Dialog/Anchor.js +58 -60
  168. package/lib/Dialog/index.d.ts +0 -1
  169. package/lib/Dialog/index.js +446 -422
  170. package/lib/Dialog/locale/ja-JP.d.ts +5 -0
  171. package/lib/Dialog/locale/ja-JP.js +28 -0
  172. package/lib/Dialog/style/index.d.ts +10 -0
  173. package/lib/Dialog/style/index.js +135 -0
  174. package/lib/DocDialog/locale/ja-JP.d.ts +2 -0
  175. package/lib/DocDialog/locale/ja-JP.js +25 -0
  176. package/lib/FooterToolbar/style/index.js +7 -1
  177. package/lib/FullscreenBox/index.d.ts +0 -1
  178. package/lib/FullscreenBox/index.js +47 -38
  179. package/lib/FullscreenBox/locale/ja-JP.d.ts +2 -0
  180. package/lib/FullscreenBox/locale/ja-JP.js +25 -0
  181. package/lib/FullscreenBox/style/index.d.ts +10 -0
  182. package/lib/FullscreenBox/style/index.js +86 -0
  183. package/lib/GraphToolbar/index.d.ts +0 -1
  184. package/lib/GraphToolbar/index.js +69 -66
  185. package/lib/GraphToolbar/locale/ja-JP.d.ts +9 -0
  186. package/lib/GraphToolbar/locale/ja-JP.js +32 -0
  187. package/lib/GraphToolbar/style/index.d.ts +10 -0
  188. package/lib/GraphToolbar/style/index.js +91 -0
  189. package/lib/Highlight/DiffView/index.d.ts +0 -1
  190. package/lib/Highlight/DiffView/index.js +3 -3
  191. package/lib/Highlight/JsonView.d.ts +0 -1
  192. package/lib/Highlight/JsonView.js +3 -3
  193. package/lib/Highlight/index.d.ts +0 -1
  194. package/lib/Highlight/index.js +32 -29
  195. package/lib/Highlight/locale/ja-JP.d.ts +4 -0
  196. package/lib/Highlight/locale/ja-JP.js +27 -0
  197. package/lib/Highlight/style/index.d.ts +10 -0
  198. package/lib/Highlight/style/index.js +293 -0
  199. package/lib/LocaleDropdown/index.js +2 -1
  200. package/lib/Login/ActivateForm.d.ts +0 -1
  201. package/lib/Login/ActivateForm.js +17 -9
  202. package/lib/Login/LoginForm.d.ts +0 -1
  203. package/lib/Login/LoginForm.js +25 -13
  204. package/lib/Login/RegisterForm.d.ts +0 -1
  205. package/lib/Login/RegisterForm.js +17 -9
  206. package/lib/Login/index.d.ts +0 -1
  207. package/lib/Login/index.js +96 -94
  208. package/lib/Login/locale/ja-JP.d.ts +28 -0
  209. package/lib/Login/locale/ja-JP.js +51 -0
  210. package/lib/Login/style/index.d.ts +10 -0
  211. package/lib/Login/style/index.js +267 -0
  212. package/lib/NavMenu/index.d.ts +1 -2
  213. package/lib/NavMenu/index.js +20 -17
  214. package/lib/NavMenu/style/index.d.ts +10 -0
  215. package/lib/NavMenu/style/index.js +78 -0
  216. package/lib/PageContainer/locale/ja-JP.d.ts +4 -0
  217. package/lib/PageContainer/locale/ja-JP.js +27 -0
  218. package/lib/PageContainer/style/index.js +5 -5
  219. package/lib/Password/locale/ja-JP.d.ts +13 -0
  220. package/lib/Password/locale/ja-JP.js +36 -0
  221. package/lib/Ranger/QuickPicker.js +4 -2
  222. package/lib/Ranger/Ranger.d.ts +0 -1
  223. package/lib/Ranger/Ranger.js +48 -45
  224. package/lib/Ranger/locale/ja-JP.d.ts +28 -0
  225. package/lib/Ranger/locale/ja-JP.js +53 -0
  226. package/lib/Ranger/style/index.d.ts +10 -0
  227. package/lib/Ranger/style/index.js +82 -0
  228. package/lib/SideTip/index.d.ts +0 -1
  229. package/lib/SideTip/index.js +46 -38
  230. package/lib/SideTip/locale/ja-JP.d.ts +2 -0
  231. package/lib/SideTip/locale/ja-JP.js +25 -0
  232. package/lib/SideTip/style/index.d.ts +10 -0
  233. package/lib/SideTip/style/index.js +211 -0
  234. package/lib/TagSelect/Group.d.ts +6 -6
  235. package/lib/TagSelect/Group.js +3 -2
  236. package/lib/TagSelect/Item.js +3 -2
  237. package/lib/TaskGraph/Graph/style/index.d.ts +10 -0
  238. package/lib/TaskGraph/Graph/style/index.js +56 -0
  239. package/lib/TaskGraph/Graph.d.ts +0 -1
  240. package/lib/TaskGraph/Graph.js +16 -7
  241. package/lib/TaskGraph/index.d.ts +0 -1
  242. package/lib/TaskGraph/index.js +6 -5
  243. package/lib/TaskGraph/locale/ja-JP.d.ts +13 -0
  244. package/lib/TaskGraph/locale/ja-JP.js +36 -0
  245. package/lib/TaskGraph/style/index.d.ts +10 -0
  246. package/lib/TaskGraph/style/index.js +143 -0
  247. package/lib/Welcome/index.d.ts +0 -1
  248. package/lib/Welcome/index.js +64 -59
  249. package/lib/Welcome/locale/ja-JP.d.ts +5 -0
  250. package/lib/Welcome/locale/ja-JP.js +28 -0
  251. package/lib/Welcome/step/style/index.d.ts +10 -0
  252. package/lib/Welcome/step/style/index.js +74 -0
  253. package/lib/Welcome/step.d.ts +0 -1
  254. package/lib/Welcome/step.js +17 -13
  255. package/lib/Welcome/style/index.d.ts +10 -0
  256. package/lib/Welcome/style/index.js +188 -0
  257. package/lib/index.d.ts +0 -1
  258. package/lib/index.js +0 -1
  259. package/lib/locale/ja-JP.d.ts +3 -0
  260. package/lib/locale/ja-JP.js +71 -0
  261. package/package.json +6 -9
  262. package/es/BatchOperationBar/index.less +0 -46
  263. package/es/BatchOperationBar/index.less.d.ts +0 -15
  264. package/es/Boundary/index.less +0 -36
  265. package/es/ContentWithIcon/index.less +0 -21
  266. package/es/DateRanger/index.less +0 -180
  267. package/es/Dialog/index.less +0 -116
  268. package/es/FullscreenBox/index.less +0 -49
  269. package/es/GraphToolbar/index.less +0 -65
  270. package/es/Highlight/index.less +0 -381
  271. package/es/Login/index.less +0 -268
  272. package/es/NavMenu/index.less +0 -50
  273. package/es/Ranger/index.less +0 -57
  274. package/es/SideTip/index.less +0 -180
  275. package/es/TaskGraph/graph.less +0 -23
  276. package/es/TaskGraph/index.less +0 -117
  277. package/es/Welcome/index.less +0 -185
  278. package/es/index.less +0 -1
  279. package/es/variable.less +0 -54
  280. package/lib/BatchOperationBar/index.less +0 -46
  281. package/lib/BatchOperationBar/index.less.d.ts +0 -15
  282. package/lib/Boundary/index.less +0 -36
  283. package/lib/ContentWithIcon/index.less +0 -21
  284. package/lib/DateRanger/index.less +0 -180
  285. package/lib/Dialog/index.less +0 -116
  286. package/lib/FullscreenBox/index.less +0 -49
  287. package/lib/GraphToolbar/index.less +0 -65
  288. package/lib/Highlight/index.less +0 -381
  289. package/lib/Login/index.less +0 -268
  290. package/lib/NavMenu/index.less +0 -50
  291. package/lib/Ranger/index.less +0 -57
  292. package/lib/SideTip/index.less +0 -180
  293. package/lib/TaskGraph/graph.less +0 -23
  294. package/lib/TaskGraph/index.less +0 -117
  295. package/lib/Welcome/index.less +0 -185
  296. package/lib/index.less +0 -1
  297. package/lib/variable.less +0 -54
@@ -38,7 +38,6 @@ var import_design2 = require("@oceanbase/design");
38
38
  var import_classnames = __toESM(require("classnames"));
39
39
  var import_react = require("react");
40
40
  var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
41
- var import_util = require("../_util");
42
41
  var import_ActivateForm = __toESM(require("./ActivateForm"));
43
42
  var import_zh_CN = __toESM(require("./locale/zh-CN"));
44
43
  var import_LoginForm = __toESM(require("./LoginForm"));
@@ -46,9 +45,8 @@ var import_RegisterForm = __toESM(require("./RegisterForm"));
46
45
  var import_oceanbase_logo = __toESM(require("../assets/logo/oceanbase_logo.svg"));
47
46
  var import_oceanbase_logo_dark = __toESM(require("../assets/logo/oceanbase_logo_dark.svg"));
48
47
  var import_LocaleDropdown = __toESM(require("../LocaleDropdown"));
49
- var import_index = require("./index.less");
48
+ var import_style = __toESM(require("./style"));
50
49
  var import_jsx_runtime = require("react/jsx-runtime");
51
- var prefix = (0, import_util.getPrefix)("login");
52
50
  var Login = (props) => {
53
51
  const {
54
52
  logo,
@@ -72,6 +70,9 @@ var Login = (props) => {
72
70
  isMobile,
73
71
  style = {}
74
72
  } = props;
73
+ const { getPrefixCls, theme } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
74
+ const prefixCls = getPrefixCls("login");
75
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
75
76
  const [showRegister, setShowRegister] = (0, import_ahooks.useControllableValue)(props, {
76
77
  defaultValue: false,
77
78
  valuePropName: "showRegister",
@@ -83,7 +84,6 @@ var Login = (props) => {
83
84
  trigger: "onShowActivateChange"
84
85
  });
85
86
  const isLoading = (loginProps == null ? void 0 : loginProps.loading) || (registerProps == null ? void 0 : registerProps.loading) || (otherLoginProps == null ? void 0 : otherLoginProps.loading);
86
- const { theme } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
87
87
  const switchForm = (0, import_react.useCallback)(() => {
88
88
  if (isLoading) {
89
89
  import_design2.message.warning(locale.isLoadingWarn);
@@ -97,102 +97,104 @@ var Login = (props) => {
97
97
  setShowActivate(!showActivate);
98
98
  }, [showActivate, isLoading]);
99
99
  const showWaterMark = !showRegister;
100
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.App, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
101
- "div",
102
- {
103
- className: (0, import_classnames.default)(`${prefix}-container`, {
104
- [`${prefix}-container-with-board`]: board,
105
- [`${prefix}-container-mobile`]: isMobile
106
- }),
107
- style,
108
- children: [
109
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-bg`, style: { backgroundImage: `url(${bgImage})` }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefix}-info`, children: [
110
- title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-welcome`, children: title }),
111
- description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-start`, children: description })
112
- ] }) }),
113
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefix}-card`, children: [
114
- showLocale && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LocaleDropdown.default, { locales, className: `${prefix}-locale` }),
115
- board && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-board`, children: board }),
116
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefix}-content`, children: [
117
- showActivate ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
118
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefix}-activate-logo` }),
119
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
120
- import_design.Divider,
121
- {
122
- style: {
123
- marginTop: 14,
124
- marginBottom: 20
100
+ return wrapSSR(
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.App, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
102
+ "div",
103
+ {
104
+ className: (0, import_classnames.default)(`${prefixCls}-container`, {
105
+ [`${prefixCls}-container-with-board`]: board,
106
+ [`${prefixCls}-container-mobile`]: isMobile
107
+ }),
108
+ style,
109
+ children: [
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-bg`, style: { backgroundImage: `url(${bgImage})` }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-info`, children: [
111
+ title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-welcome`, children: title }),
112
+ description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-start`, children: description })
113
+ ] }) }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-card`, children: [
115
+ showLocale && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_LocaleDropdown.default, { locales, className: `${prefixCls}-locale` }),
116
+ board && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-board`, children: board }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-content`, children: [
118
+ showActivate ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefixCls}-activate-logo` }),
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
+ import_design.Divider,
122
+ {
123
+ style: {
124
+ marginTop: 14,
125
+ marginBottom: 20
126
+ }
125
127
  }
126
- }
127
- ),
128
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Title, { level: 3, children: locale.activeTitle }),
129
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Paragraph, { children: locale.activeTitleDescrition }),
130
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
131
- import_ActivateForm.default,
132
- {
133
- ...activateFormProps,
134
- locale,
135
- errorMessage: alertProps == null ? void 0 : alertProps.message,
136
- goBack
137
- }
138
- )
139
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: showRegister ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
140
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefix}-reigster-logo` }),
141
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
- import_design.Divider,
143
- {
144
- style: {
145
- marginTop: 14,
146
- marginBottom: 20
128
+ ),
129
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Title, { level: 3, children: locale.activeTitle }),
130
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Paragraph, { children: locale.activeTitleDescrition }),
131
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
132
+ import_ActivateForm.default,
133
+ {
134
+ ...activateFormProps,
135
+ locale,
136
+ errorMessage: alertProps == null ? void 0 : alertProps.message,
137
+ goBack
147
138
  }
148
- }
149
- ),
150
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Title, { level: 3, children: locale.registerTitle }),
151
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
152
- import_RegisterForm.default,
153
- {
154
- ...registerProps,
155
- locale,
156
- errorMessage: alertProps == null ? void 0 : alertProps.message
157
- }
158
- )
159
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
160
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefix}-logo` }),
161
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
162
- import_LoginForm.default,
163
- {
164
- ...loginProps,
165
- otherLoginProps,
166
- locale,
167
- errorMessage: alertProps == null ? void 0 : alertProps.message,
168
- showAuthCode,
169
- showOtherLoginButton,
170
- authCodeImg,
171
- onAuthCodeImgChange
172
- }
173
- )
174
- ] }) }),
175
- !!enableRegister && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-switch-btn`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Button, { type: "link", onClick: switchForm, "data-testid": "login.register.btn", children: showRegister ? locale.switchLoginLabel : locale.switchRegisterLabel }) }),
176
- showWaterMark ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
177
- "div",
178
- {
179
- className: `${prefix}-watermark-wrapper`,
180
- style: { paddingLeft: showAuthCode ? 96 : 0 },
181
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
182
- "img",
139
+ )
140
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: showRegister ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
141
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefixCls}-reigster-logo` }),
142
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
143
+ import_design.Divider,
144
+ {
145
+ style: {
146
+ marginTop: 14,
147
+ marginBottom: 20
148
+ }
149
+ }
150
+ ),
151
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Typography.Title, { level: 3, children: locale.registerTitle }),
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
+ import_RegisterForm.default,
154
+ {
155
+ ...registerProps,
156
+ locale,
157
+ errorMessage: alertProps == null ? void 0 : alertProps.message
158
+ }
159
+ )
160
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
161
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: logo, alt: "", className: `${prefixCls}-logo` }),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
163
+ import_LoginForm.default,
183
164
  {
184
- src: (theme == null ? void 0 : theme.isDark) ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default,
185
- alt: "",
186
- className: `${prefix}-watermark`
165
+ ...loginProps,
166
+ otherLoginProps,
167
+ locale,
168
+ errorMessage: alertProps == null ? void 0 : alertProps.message,
169
+ showAuthCode,
170
+ showOtherLoginButton,
171
+ authCodeImg,
172
+ onAuthCodeImgChange
187
173
  }
188
174
  )
189
- }
190
- ) : null
175
+ ] }) }),
176
+ !!enableRegister && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-switch-btn`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Button, { type: "link", onClick: switchForm, "data-testid": "login.register.btn", children: showRegister ? locale.switchLoginLabel : locale.switchRegisterLabel }) }),
177
+ showWaterMark ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
178
+ "div",
179
+ {
180
+ className: `${prefixCls}-watermark-wrapper`,
181
+ style: { paddingLeft: showAuthCode ? 96 : 0 },
182
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
183
+ "img",
184
+ {
185
+ src: (theme == null ? void 0 : theme.isDark) ? import_oceanbase_logo_dark.default : import_oceanbase_logo.default,
186
+ alt: "",
187
+ className: `${prefixCls}-watermark`
188
+ }
189
+ )
190
+ }
191
+ ) : null
192
+ ] })
191
193
  ] })
192
- ] })
193
- ]
194
- }
195
- ) });
194
+ ]
195
+ }
196
+ ) })
197
+ );
196
198
  };
197
199
  var Login_default = (0, import_LocaleWrapper.default)({
198
200
  componentName: "Login",
@@ -0,0 +1,28 @@
1
+ declare const _default: {
2
+ usernamePlaceholder: string;
3
+ usernameMessage: string;
4
+ passwordPlaceholder: string;
5
+ passwordMessage: string;
6
+ loginText: string;
7
+ otherLoginText: string;
8
+ isLoadingWarn: string;
9
+ usernameLabel: string;
10
+ switchLoginLabel: string;
11
+ switchRegisterLabel: string;
12
+ userExistMessage: string;
13
+ usernameFormatMessage: string;
14
+ samePasswordMessage: string;
15
+ usernameHelp: string;
16
+ usernameLengthMessage: string;
17
+ passwordLabel: string;
18
+ passwordHelp: string;
19
+ confirmPwdLabel: string;
20
+ confirmPwdMessage: string;
21
+ registerBtn: string;
22
+ registerTitle: string;
23
+ activeTitle: string;
24
+ activeTitleDescrition: string;
25
+ activeSubmitBtn: string;
26
+ activeBackBtn: string;
27
+ };
28
+ export default _default;
@@ -0,0 +1,51 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/Login/locale/ja-JP.ts
20
+ var ja_JP_exports = {};
21
+ __export(ja_JP_exports, {
22
+ default: () => ja_JP_default
23
+ });
24
+ module.exports = __toCommonJS(ja_JP_exports);
25
+ var ja_JP_default = {
26
+ usernamePlaceholder: "アカウントを入力してください",
27
+ usernameMessage: "アカウントを入力してください",
28
+ passwordPlaceholder: "パスワードを入力してください",
29
+ passwordMessage: "パスワードを入力してください",
30
+ loginText: "ログイン",
31
+ otherLoginText: "サードパーティログイン",
32
+ isLoadingWarn: "実行中",
33
+ usernameLabel: "ユーザー名",
34
+ switchLoginLabel: "既存アカウントでログイン",
35
+ switchRegisterLabel: "アカウント登録",
36
+ userExistMessage: "ユーザー名は既に存在します",
37
+ usernameFormatMessage: "ユーザー名の形式が要件を満たしていません",
38
+ samePasswordMessage: "確認パスワードが一致しません",
39
+ usernameHelp: "英字、数字、アンダースコア、特殊文字 (._+@#$%) をサポート、長さ 4~48 文字",
40
+ usernameLengthMessage: "ユーザー名の長さは 4~48 文字",
41
+ passwordLabel: "パスワード",
42
+ passwordHelp: "少なくとも 2 桁の数字、2 文字の大文字、2 文字の小文字、2 文字の特殊文字 (._+@#$%) を含み、長さ 8~32 文字",
43
+ confirmPwdLabel: "パスワード確認",
44
+ confirmPwdMessage: "パスワードを再度入力してください",
45
+ registerBtn: "今すぐ登録",
46
+ registerTitle: "アカウント登録",
47
+ activeTitle: "パスワードを設定してアカウントを有効化",
48
+ activeTitleDescrition: "アカウントのセキュリティのため、パスワードを設定してアカウントを有効化する必要があります",
49
+ activeSubmitBtn: "有効化",
50
+ activeBackBtn: "前のステップに戻る"
51
+ };
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { GenerateStyle } from '@oceanbase/design/es/theme';
3
+ import type { OBToken } from '../../_util/genComponentStyleHook';
4
+ export type LoginToken = OBToken;
5
+ export declare const genLoginStyle: GenerateStyle<LoginToken>;
6
+ declare const _default: (prefixCls: string) => {
7
+ wrapSSR: (node: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) => import("react").JSX.Element;
8
+ hashId: string;
9
+ };
10
+ export default _default;
@@ -0,0 +1,267 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/Login/style/index.ts
20
+ var style_exports = {};
21
+ __export(style_exports, {
22
+ default: () => style_default,
23
+ genLoginStyle: () => genLoginStyle
24
+ });
25
+ module.exports = __toCommonJS(style_exports);
26
+ var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
+ var genLoginStyle = (token) => {
28
+ const {
29
+ componentCls,
30
+ antCls,
31
+ iconCls,
32
+ colorTextTertiary,
33
+ colorPrimary,
34
+ colorBorder,
35
+ borderRadius
36
+ } = token;
37
+ return {
38
+ [`${componentCls}-container`]: {
39
+ display: "flex",
40
+ justifyContent: "space-between",
41
+ minWidth: 960,
42
+ height: "100vh",
43
+ minHeight: 600,
44
+ overflow: "auto",
45
+ [`${componentCls}-bg`]: {
46
+ width: "40%",
47
+ height: "100%",
48
+ backgroundRepeat: "no-repeat",
49
+ backgroundSize: "cover",
50
+ backgroundPosition: "center",
51
+ [`${componentCls}-info`]: {
52
+ margin: "185px 48px 0 48px",
53
+ color: "#fff",
54
+ fontWeight: token.fontWeightStrong,
55
+ fontSize: 56,
56
+ fontFamily: "PingFangSC",
57
+ [`${componentCls}-start`]: {
58
+ marginTop: 22,
59
+ color: "#f4f4f4",
60
+ fontWeight: token.fontWeightStrong,
61
+ fontSize: 32,
62
+ letterSpacing: 0
63
+ }
64
+ }
65
+ },
66
+ [`${componentCls}-card`]: {
67
+ display: "flex",
68
+ flex: 1,
69
+ alignItems: "center",
70
+ justifyContent: "center",
71
+ height: "100%",
72
+ minHeight: 600,
73
+ backgroundColor: "#fff",
74
+ [`${componentCls}-locale`]: {
75
+ position: "absolute",
76
+ top: 24,
77
+ right: 24,
78
+ color: colorTextTertiary,
79
+ fontFamily: "PingFangSC-Regular",
80
+ cursor: "pointer"
81
+ },
82
+ [`${componentCls}-board`]: {
83
+ position: "absolute",
84
+ top: 48
85
+ },
86
+ [`${componentCls}-content`]: {
87
+ marginTop: -60,
88
+ width: 404,
89
+ [`${componentCls}-logo`]: {
90
+ display: "block",
91
+ height: 68,
92
+ margin: "0 auto",
93
+ marginBottom: 40
94
+ },
95
+ [`${componentCls}-activate-logo, ${componentCls}-reigster-logo`]: {
96
+ display: "block",
97
+ height: 68,
98
+ margin: "0 auto"
99
+ },
100
+ [`${componentCls}-register, ${componentCls}-activate`]: {
101
+ [`${antCls}-form-item-with-help`]: {
102
+ marginBottom: 24
103
+ }
104
+ },
105
+ [`${componentCls}-form`]: {
106
+ width: "100%",
107
+ "input::placeholder": {
108
+ fontSize: 14
109
+ },
110
+ [`${antCls}-form-item`]: {
111
+ marginBottom: 24,
112
+ paddingBottom: 0
113
+ },
114
+ [`${antCls}-input-affix-wrapper`]: {
115
+ [`${antCls}-input:not(${antCls}-input-disabled)`]: {
116
+ boxShadow: "inset 0 0 0 1000px white !important"
117
+ },
118
+ [`${antCls}-input:-internal-autofill-selected`]: {
119
+ boxShadow: "inset 0 0 0 1000px white !important"
120
+ },
121
+ [`${antCls}-input:focus:-internal-autofill-selected`]: {
122
+ boxShadow: "inset 0 0 0 1000px white !important"
123
+ }
124
+ },
125
+ [`${antCls}-input-affix-wrapper ${antCls}-input:not(:first-child)`]: {
126
+ paddingLeft: 8
127
+ },
128
+ [`${antCls}-input-affix-wrapper-focused`]: {
129
+ borderColor: colorPrimary
130
+ },
131
+ [`${componentCls}-form-focus-input`]: {
132
+ [`${antCls}-input-prefix`]: {
133
+ [`${iconCls}`]: {
134
+ color: colorPrimary
135
+ }
136
+ }
137
+ }
138
+ },
139
+ [`${componentCls}-auth-code`]: {
140
+ display: "flex",
141
+ alignItems: "start",
142
+ width: "100%",
143
+ marginBottom: 24,
144
+ paddingBottom: 0,
145
+ [`> ${antCls}-space-item:first-child`]: {
146
+ flex: 1
147
+ },
148
+ [`${antCls}-form-item`]: {
149
+ marginBottom: 0
150
+ },
151
+ [`${componentCls}-code-btn`]: {
152
+ position: "relative",
153
+ height: 38,
154
+ border: `1px solid ${colorBorder}`,
155
+ borderRadius,
156
+ cursor: "pointer",
157
+ img: {
158
+ height: 38,
159
+ borderRadius
160
+ },
161
+ [`${componentCls}-code-mask`]: {
162
+ position: "absolute",
163
+ display: "flex",
164
+ alignItems: "center",
165
+ justifyContent: "center",
166
+ height: 38,
167
+ color: "#fff",
168
+ background: "rgba(0, 0, 0, 0.5)",
169
+ borderRadius,
170
+ cursor: "pointer",
171
+ opacity: 0,
172
+ transition: "opacity 0.3s",
173
+ inset: 0
174
+ },
175
+ [`&.${componentCls}-error, &:hover`]: {
176
+ [`${componentCls}-code-mask`]: {
177
+ opacity: 1
178
+ }
179
+ }
180
+ }
181
+ },
182
+ [`${componentCls}-submit-btn`]: {},
183
+ [`${componentCls}-switch-btn`]: {
184
+ marginTop: 24,
185
+ textAlign: "center",
186
+ cursor: "pointer"
187
+ },
188
+ [`${componentCls}-watermark-wrapper`]: {
189
+ position: "absolute",
190
+ bottom: 40,
191
+ width: 404,
192
+ textAlign: "center",
193
+ [`${componentCls}-watermark`]: {
194
+ height: 16
195
+ }
196
+ },
197
+ [`${componentCls}-alert`]: {
198
+ marginBottom: 24,
199
+ borderRadius
200
+ }
201
+ }
202
+ },
203
+ "@media (max-height: 650px)": {
204
+ [`${componentCls}-watermark-wrapper`]: {
205
+ position: "absolute",
206
+ top: 600
207
+ }
208
+ }
209
+ },
210
+ [`${componentCls}-container-with-board`]: {
211
+ [`${componentCls}-card`]: {
212
+ [`${componentCls}-content`]: {
213
+ marginTop: 0
214
+ }
215
+ }
216
+ },
217
+ [`${componentCls}-container-mobile`]: {
218
+ flexDirection: "column",
219
+ minWidth: "auto",
220
+ [`${componentCls}-banner`]: {
221
+ height: "25%"
222
+ },
223
+ [`${componentCls}-bg`]: {
224
+ width: "100%"
225
+ },
226
+ [`${componentCls}-card`]: {
227
+ alignItems: "start",
228
+ width: "100%",
229
+ height: "75%",
230
+ marginTop: -48,
231
+ padding: "0 32px",
232
+ borderRadius: "16px 16px 0 0",
233
+ position: "relative",
234
+ [`${componentCls}-board`]: {
235
+ top: 8,
236
+ left: 24
237
+ },
238
+ [`${componentCls}-locale`]: {
239
+ top: 8
240
+ },
241
+ [`${componentCls}-content`]: {
242
+ width: "100%",
243
+ marginTop: 40,
244
+ [`${componentCls}-logo`]: {
245
+ height: 48,
246
+ marginBottom: 24
247
+ },
248
+ [`${componentCls}-watermark-wrapper`]: {
249
+ width: "100%",
250
+ position: "static",
251
+ marginTop: 96
252
+ }
253
+ }
254
+ }
255
+ }
256
+ };
257
+ };
258
+ var style_default = (prefixCls) => {
259
+ const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("Login", (token) => {
260
+ return [genLoginStyle(token)];
261
+ });
262
+ return useStyle(prefixCls);
263
+ };
264
+ // Annotate the CommonJS export names for ESM import in node:
265
+ 0 && (module.exports = {
266
+ genLoginStyle
267
+ });
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import './index.less';
3
2
  export interface NavMenuItem {
4
3
  key: string;
5
4
  title: string;
@@ -15,5 +14,5 @@ export interface NavMenuProps {
15
14
  className?: string;
16
15
  style?: React.CSSProperties;
17
16
  }
18
- declare const _default: (props: NavMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
+ declare const _default: (props: NavMenuProps) => React.JSX.Element;
19
18
  export default _default;
@@ -36,13 +36,14 @@ var import_design = require("@oceanbase/design");
36
36
  var import_lodash = require("lodash");
37
37
  var import_path_to_regexp = require("path-to-regexp");
38
38
  var import_react = require("react");
39
- var import_util = require("../_util");
40
39
  var import_useNavigate = __toESM(require("../_util/useNavigate"));
41
- var import_index = require("./index.less");
40
+ var import_style = __toESM(require("./style"));
42
41
  var import_jsx_runtime = require("react/jsx-runtime");
43
- var prefix = (0, import_util.getPrefix)("menu");
44
42
  var NavMenu_default = (props) => {
45
43
  const { menuList, className, style } = props;
44
+ const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
45
+ const prefixCls = getPrefixCls("menu");
46
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
46
47
  const [selectedKeys, setSelectedKeys] = (0, import_react.useState)(["0"]);
47
48
  const [menus, setMenus] = (0, import_react.useState)([]);
48
49
  const location = window.location;
@@ -96,18 +97,20 @@ var NavMenu_default = (props) => {
96
97
  },
97
98
  [navigate]
98
99
  );
99
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-container ${className}`, style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
- import_design.Menu,
101
- {
102
- style: { height: "100%", borderRight: 0 },
103
- defaultSelectedKeys: ["0"],
104
- selectedKeys,
105
- onSelect: onMenuItemSelect,
106
- mode: "inline",
107
- theme: "light",
108
- children: menus.map((config) => {
109
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu.Item, { disabled: config.disabled ?? false, children: config.openNewTab ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { id: config.id, href: config.link, target: "_blank", rel: "noreferrer", children: config.title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { id: config.id, onClick: () => onMenuClick(config.link), children: config.title }) }, config.key);
110
- })
111
- }
112
- ) });
100
+ return wrapSSR(
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-container ${className || ""}`, style, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ import_design.Menu,
103
+ {
104
+ style: { height: "100%", borderRight: 0 },
105
+ defaultSelectedKeys: ["0"],
106
+ selectedKeys,
107
+ onSelect: onMenuItemSelect,
108
+ mode: "inline",
109
+ theme: "light",
110
+ children: menus.map((config) => {
111
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Menu.Item, { disabled: config.disabled ?? false, children: config.openNewTab ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { id: config.id, href: config.link, target: "_blank", rel: "noreferrer", children: config.title }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", { id: config.id, onClick: () => onMenuClick(config.link), children: config.title }) }, config.key);
112
+ })
113
+ }
114
+ ) })
115
+ );
113
116
  };