@oceanbase/ui 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 (384) hide show
  1. package/dist/static/Inter-Medium.ea234620.woff2 +0 -0
  2. package/dist/static/Inter-Regular.34ba43c9.woff2 +0 -0
  3. package/dist/static/Inter-SemiBold.95439fb4.woff2 +0 -0
  4. package/dist/ui.min.css +1 -1
  5. package/dist/ui.min.js +1 -1
  6. package/es/Action/Group.js +121 -15
  7. package/es/Action/Item.d.ts +6 -15
  8. package/es/Action/Item.js +85 -128
  9. package/es/Action/index.d.ts +6 -3
  10. package/es/Action/style/index.d.ts +2 -2
  11. package/es/Action/style/index.js +8 -4
  12. package/es/BasicLayout/locale/ja-JP.d.ts +13 -0
  13. package/es/BasicLayout/locale/ja-JP.js +12 -0
  14. package/es/BasicLayout/style/index.js +35 -23
  15. package/es/BatchOperationBar/index.d.ts +0 -1
  16. package/es/BatchOperationBar/index.js +17 -13
  17. package/es/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  18. package/es/BatchOperationBar/locale/ja-JP.js +6 -0
  19. package/es/BatchOperationBar/style/index.d.ts +10 -0
  20. package/es/BatchOperationBar/style/index.js +51 -0
  21. package/es/Boundary/Components/Code.js +11 -5
  22. package/es/Boundary/Components/Exception.js +85 -74
  23. package/es/Boundary/Components/Function.js +11 -5
  24. package/es/Boundary/index.d.ts +0 -1
  25. package/es/Boundary/index.js +0 -1
  26. package/es/Boundary/locale/en-US.js +1 -1
  27. package/es/Boundary/locale/ja-JP.d.ts +11 -0
  28. package/es/Boundary/locale/ja-JP.js +10 -0
  29. package/es/Boundary/locale/zh-CN.js +1 -1
  30. package/es/Boundary/locale/zh-TW.js +1 -1
  31. package/es/Boundary/style/index.d.ts +10 -0
  32. package/es/Boundary/style/index.js +46 -0
  33. package/es/ContentWithIcon/index.d.ts +0 -1
  34. package/es/ContentWithIcon/index.js +29 -29
  35. package/es/ContentWithIcon/style/index.d.ts +10 -0
  36. package/es/ContentWithIcon/style/index.js +26 -0
  37. package/es/DateRanger/PickerPanel.js +5 -4
  38. package/es/DateRanger/Ranger.d.ts +4 -1
  39. package/es/DateRanger/Ranger.js +168 -19
  40. package/es/DateRanger/constant/index.js +1 -1
  41. package/es/DateRanger/locale/ja-JP.d.ts +56 -0
  42. package/es/DateRanger/locale/ja-JP.js +20 -0
  43. package/es/DateRanger/style/index.d.ts +10 -0
  44. package/es/DateRanger/style/index.js +126 -0
  45. package/es/Dialog/Anchor.d.ts +2 -10
  46. package/es/Dialog/Anchor.js +67 -96
  47. package/es/Dialog/index.d.ts +0 -1
  48. package/es/Dialog/index.js +537 -578
  49. package/es/Dialog/locale/ja-JP.d.ts +5 -0
  50. package/es/Dialog/locale/ja-JP.js +4 -0
  51. package/es/Dialog/locale/zh-CN.js +1 -1
  52. package/es/Dialog/locale/zh-TW.js +1 -1
  53. package/es/Dialog/style/index.d.ts +10 -0
  54. package/es/Dialog/style/index.js +97 -0
  55. package/es/DocDialog/locale/ja-JP.d.ts +2 -0
  56. package/es/DocDialog/locale/ja-JP.js +1 -0
  57. package/es/FooterToolbar/style/index.d.ts +0 -2
  58. package/es/FooterToolbar/style/index.js +7 -13
  59. package/es/FullscreenBox/index.d.ts +0 -1
  60. package/es/FullscreenBox/index.js +46 -37
  61. package/es/FullscreenBox/locale/ja-JP.d.ts +2 -0
  62. package/es/FullscreenBox/locale/ja-JP.js +1 -0
  63. package/es/FullscreenBox/style/index.d.ts +10 -0
  64. package/es/FullscreenBox/style/index.js +53 -0
  65. package/es/Highlight/DiffView/index.d.ts +0 -1
  66. package/es/Highlight/DiffView/index.js +5 -5
  67. package/es/Highlight/JsonView.d.ts +0 -1
  68. package/es/Highlight/JsonView.js +5 -5
  69. package/es/Highlight/index.d.ts +0 -1
  70. package/es/Highlight/index.js +23 -23
  71. package/es/Highlight/locale/ja-JP.d.ts +4 -0
  72. package/es/Highlight/locale/ja-JP.js +3 -0
  73. package/es/Highlight/style/index.d.ts +10 -0
  74. package/es/Highlight/style/index.js +213 -0
  75. package/es/LocaleDropdown/index.js +4 -2
  76. package/es/Login/ActivateForm.d.ts +0 -1
  77. package/es/Login/ActivateForm.js +12 -9
  78. package/es/Login/LoginForm.d.ts +0 -1
  79. package/es/Login/LoginForm.js +20 -15
  80. package/es/Login/RegisterForm.d.ts +0 -1
  81. package/es/Login/RegisterForm.js +14 -11
  82. package/es/Login/index.d.ts +0 -1
  83. package/es/Login/index.js +24 -22
  84. package/es/Login/locale/ja-JP.d.ts +28 -0
  85. package/es/Login/locale/ja-JP.js +27 -0
  86. package/es/Login/locale/zh-CN.js +2 -2
  87. package/es/Login/style/index.d.ts +10 -0
  88. package/es/Login/style/index.js +182 -0
  89. package/es/NavMenu/index.d.ts +1 -2
  90. package/es/NavMenu/index.js +11 -8
  91. package/es/NavMenu/style/index.d.ts +10 -0
  92. package/es/NavMenu/style/index.js +47 -0
  93. package/es/PageContainer/index.d.ts +2 -0
  94. package/es/PageContainer/index.js +102 -25
  95. package/es/PageContainer/locale/en-US.d.ts +1 -0
  96. package/es/PageContainer/locale/en-US.js +2 -1
  97. package/es/PageContainer/locale/ja-JP.d.ts +5 -0
  98. package/es/PageContainer/locale/ja-JP.js +4 -0
  99. package/es/PageContainer/locale/zh-CN.d.ts +1 -0
  100. package/es/PageContainer/locale/zh-CN.js +2 -1
  101. package/es/PageContainer/locale/zh-TW.d.ts +1 -0
  102. package/es/PageContainer/locale/zh-TW.js +2 -1
  103. package/es/PageContainer/style/index.js +41 -16
  104. package/es/Password/index.js +1 -1
  105. package/es/Password/locale/ja-JP.d.ts +13 -0
  106. package/es/Password/locale/ja-JP.js +12 -0
  107. package/es/ProCard/index.js +11 -3
  108. package/es/ProCard/style/index.d.ts +2 -2
  109. package/es/ProCard/style/index.js +13 -5
  110. package/es/ProTable/index.d.ts +1 -1
  111. package/es/ProTable/index.js +23 -8
  112. package/es/ProTable/style/index.d.ts +2 -2
  113. package/es/ProTable/style/index.js +12 -5
  114. package/es/Ranger/QuickPicker.js +8 -4
  115. package/es/Ranger/Ranger.d.ts +0 -1
  116. package/es/Ranger/Ranger.js +12 -9
  117. package/es/Ranger/locale/ja-JP.d.ts +28 -0
  118. package/es/Ranger/locale/ja-JP.js +29 -0
  119. package/es/Ranger/style/index.d.ts +10 -0
  120. package/es/Ranger/style/index.js +44 -0
  121. package/es/SideTip/index.d.ts +0 -1
  122. package/es/SideTip/index.js +24 -22
  123. package/es/SideTip/locale/ja-JP.d.ts +2 -0
  124. package/es/SideTip/locale/ja-JP.js +1 -0
  125. package/es/SideTip/style/index.d.ts +10 -0
  126. package/es/SideTip/style/index.js +162 -0
  127. package/es/TagSelect/Group.d.ts +6 -6
  128. package/es/TagSelect/Group.js +5 -3
  129. package/es/TagSelect/Item.js +5 -3
  130. package/es/Welcome/index.d.ts +0 -1
  131. package/es/Welcome/index.js +30 -26
  132. package/es/Welcome/locale/ja-JP.d.ts +5 -0
  133. package/es/Welcome/locale/ja-JP.js +4 -0
  134. package/es/Welcome/step/style/index.d.ts +10 -0
  135. package/es/Welcome/step/style/index.js +44 -0
  136. package/es/Welcome/step.d.ts +0 -1
  137. package/es/Welcome/step.js +17 -14
  138. package/es/Welcome/style/index.d.ts +10 -0
  139. package/es/Welcome/style/index.js +141 -0
  140. package/es/_util/genComponentStyleHook.d.ts +4 -3
  141. package/es/_util/genComponentStyleHook.js +1 -1
  142. package/es/index.d.ts +0 -5
  143. package/es/index.js +0 -3
  144. package/es/locale/en-US.js +0 -4
  145. package/es/locale/ja-JP.d.ts +3 -0
  146. package/es/locale/ja-JP.js +38 -0
  147. package/es/locale/zh-CN.js +0 -4
  148. package/es/locale/zh-TW.js +0 -4
  149. package/lib/Action/Group.js +122 -46
  150. package/lib/Action/Item.d.ts +6 -15
  151. package/lib/Action/Item.js +66 -76
  152. package/lib/Action/index.d.ts +6 -3
  153. package/lib/Action/style/index.d.ts +2 -2
  154. package/lib/Action/style/index.js +16 -1
  155. package/lib/BackgroundTaskManager/RefreshMan.js +3 -12
  156. package/lib/BackgroundTaskManager/index.js +3 -12
  157. package/lib/BasicLayout/Header.js +120 -62
  158. package/lib/BasicLayout/index.js +166 -143
  159. package/lib/BasicLayout/locale/ja-JP.d.ts +13 -0
  160. package/lib/BasicLayout/locale/ja-JP.js +36 -0
  161. package/lib/BasicLayout/style/index.js +32 -23
  162. package/lib/BatchOperationBar/index.d.ts +0 -1
  163. package/lib/BatchOperationBar/index.js +70 -51
  164. package/lib/BatchOperationBar/locale/ja-JP.d.ts +7 -0
  165. package/lib/{TaskGraph/locale/en-US.js → BatchOperationBar/locale/ja-JP.js} +10 -16
  166. package/lib/BatchOperationBar/style/index.d.ts +10 -0
  167. package/lib/BatchOperationBar/style/index.js +82 -0
  168. package/lib/Boundary/Components/Code.js +25 -13
  169. package/lib/Boundary/Components/Exception.js +70 -49
  170. package/lib/Boundary/Components/Function.js +20 -8
  171. package/lib/Boundary/index.d.ts +0 -1
  172. package/lib/Boundary/index.js +0 -1
  173. package/lib/Boundary/locale/en-US.js +1 -1
  174. package/lib/Boundary/locale/ja-JP.d.ts +11 -0
  175. package/lib/Boundary/locale/ja-JP.js +34 -0
  176. package/lib/Boundary/locale/zh-CN.js +1 -1
  177. package/lib/Boundary/locale/zh-TW.js +1 -1
  178. package/lib/Boundary/style/index.d.ts +10 -0
  179. package/lib/Boundary/style/index.js +74 -0
  180. package/lib/ContentWithIcon/index.d.ts +0 -1
  181. package/lib/ContentWithIcon/index.js +44 -33
  182. package/lib/ContentWithIcon/style/index.d.ts +10 -0
  183. package/lib/ContentWithIcon/style/index.js +57 -0
  184. package/lib/ContentWithQuestion/index.js +8 -3
  185. package/lib/DateRanger/PickerPanel.js +237 -219
  186. package/lib/DateRanger/Ranger.d.ts +4 -1
  187. package/lib/DateRanger/Ranger.js +413 -239
  188. package/lib/DateRanger/constant/index.js +1 -1
  189. package/lib/DateRanger/locale/ja-JP.d.ts +56 -0
  190. package/lib/DateRanger/locale/ja-JP.js +49 -0
  191. package/lib/DateRanger/style/index.d.ts +10 -0
  192. package/lib/DateRanger/style/index.js +195 -0
  193. package/lib/Dialog/Anchor.d.ts +2 -10
  194. package/lib/Dialog/Anchor.js +59 -58
  195. package/lib/Dialog/EventProxy.js +3 -12
  196. package/lib/Dialog/index.d.ts +0 -1
  197. package/lib/Dialog/index.js +514 -466
  198. package/lib/Dialog/locale/ja-JP.d.ts +5 -0
  199. package/lib/{GraphToolbar/locale/en-US.js → Dialog/locale/ja-JP.js} +8 -12
  200. package/lib/Dialog/locale/zh-CN.js +1 -1
  201. package/lib/Dialog/locale/zh-TW.js +1 -1
  202. package/lib/Dialog/style/index.d.ts +10 -0
  203. package/lib/Dialog/style/index.js +135 -0
  204. package/lib/DocDialog/index.js +3 -2
  205. package/lib/DocDialog/locale/ja-JP.d.ts +2 -0
  206. package/lib/DocDialog/locale/ja-JP.js +25 -0
  207. package/lib/FooterToolbar/index.js +3 -2
  208. package/lib/FooterToolbar/style/index.d.ts +0 -2
  209. package/lib/FooterToolbar/style/index.js +7 -18
  210. package/lib/FullscreenBox/index.d.ts +0 -1
  211. package/lib/FullscreenBox/index.js +51 -33
  212. package/lib/FullscreenBox/locale/ja-JP.d.ts +2 -0
  213. package/lib/FullscreenBox/locale/ja-JP.js +25 -0
  214. package/lib/FullscreenBox/style/index.d.ts +10 -0
  215. package/lib/FullscreenBox/style/index.js +86 -0
  216. package/lib/Highlight/DiffView/DiffCells.js +17 -10
  217. package/lib/Highlight/DiffView/index.d.ts +0 -1
  218. package/lib/Highlight/DiffView/index.js +38 -34
  219. package/lib/Highlight/HighlightCell.js +13 -10
  220. package/lib/Highlight/JsonView.d.ts +0 -1
  221. package/lib/Highlight/JsonView.js +18 -17
  222. package/lib/Highlight/index.d.ts +0 -1
  223. package/lib/Highlight/index.js +60 -52
  224. package/lib/Highlight/locale/ja-JP.d.ts +4 -0
  225. package/lib/{GraphToolbar/locale/zh-CN.js → Highlight/locale/ja-JP.js} +7 -12
  226. package/lib/Highlight/style/index.d.ts +10 -0
  227. package/lib/Highlight/style/index.js +293 -0
  228. package/lib/IconFont/index.js +2 -12
  229. package/lib/LightFilter/index.js +3 -2
  230. package/lib/LocaleDropdown/index.js +15 -21
  231. package/lib/Login/ActivateForm.d.ts +0 -1
  232. package/lib/Login/ActivateForm.js +65 -64
  233. package/lib/Login/LoginForm.d.ts +0 -1
  234. package/lib/Login/LoginForm.js +134 -113
  235. package/lib/Login/RegisterForm.d.ts +0 -1
  236. package/lib/Login/RegisterForm.js +90 -89
  237. package/lib/Login/index.d.ts +0 -1
  238. package/lib/Login/index.js +102 -72
  239. package/lib/Login/locale/ja-JP.d.ts +28 -0
  240. package/lib/Login/locale/ja-JP.js +51 -0
  241. package/lib/Login/locale/zh-CN.js +2 -2
  242. package/lib/Login/style/index.d.ts +10 -0
  243. package/lib/Login/style/index.js +267 -0
  244. package/lib/NavMenu/index.d.ts +1 -2
  245. package/lib/NavMenu/index.js +22 -18
  246. package/lib/NavMenu/style/index.d.ts +10 -0
  247. package/lib/NavMenu/style/index.js +78 -0
  248. package/lib/PageContainer/ItemRender.js +5 -5
  249. package/lib/PageContainer/index.d.ts +2 -0
  250. package/lib/PageContainer/index.js +86 -10
  251. package/lib/PageContainer/locale/en-US.d.ts +1 -0
  252. package/lib/PageContainer/locale/en-US.js +2 -1
  253. package/lib/PageContainer/locale/ja-JP.d.ts +5 -0
  254. package/lib/{GraphToolbar/locale/zh-TW.js → PageContainer/locale/ja-JP.js} +8 -12
  255. package/lib/PageContainer/locale/zh-CN.d.ts +1 -0
  256. package/lib/PageContainer/locale/zh-CN.js +2 -1
  257. package/lib/PageContainer/locale/zh-TW.d.ts +1 -0
  258. package/lib/PageContainer/locale/zh-TW.js +2 -1
  259. package/lib/PageContainer/style/index.js +44 -13
  260. package/lib/PageLoading/index.js +6 -16
  261. package/lib/Password/Content.js +38 -42
  262. package/lib/Password/index.js +83 -68
  263. package/lib/Password/locale/ja-JP.d.ts +13 -0
  264. package/lib/Password/locale/ja-JP.js +36 -0
  265. package/lib/ProCard/index.js +6 -3
  266. package/lib/ProCard/style/index.d.ts +2 -2
  267. package/lib/ProCard/style/index.js +18 -3
  268. package/lib/ProTable/index.d.ts +1 -1
  269. package/lib/ProTable/index.js +22 -10
  270. package/lib/ProTable/style/index.d.ts +2 -2
  271. package/lib/ProTable/style/index.js +18 -2
  272. package/lib/Ranger/QuickPicker.js +28 -17
  273. package/lib/Ranger/Ranger.d.ts +0 -1
  274. package/lib/Ranger/Ranger.js +49 -43
  275. package/lib/Ranger/locale/ja-JP.d.ts +28 -0
  276. package/lib/Ranger/locale/ja-JP.js +53 -0
  277. package/lib/Ranger/style/index.d.ts +10 -0
  278. package/lib/Ranger/style/index.js +82 -0
  279. package/lib/SideTip/Dragger.js +5 -4
  280. package/lib/SideTip/IconLoading.js +25 -25
  281. package/lib/SideTip/index.d.ts +0 -1
  282. package/lib/SideTip/index.js +55 -38
  283. package/lib/SideTip/locale/ja-JP.d.ts +2 -0
  284. package/lib/SideTip/locale/ja-JP.js +25 -0
  285. package/lib/SideTip/style/index.d.ts +10 -0
  286. package/lib/SideTip/style/index.js +211 -0
  287. package/lib/TagSelect/Group.d.ts +6 -6
  288. package/lib/TagSelect/Group.js +12 -7
  289. package/lib/TagSelect/Item.js +25 -20
  290. package/lib/TreeSearch/index.js +30 -35
  291. package/lib/Welcome/index.d.ts +0 -1
  292. package/lib/Welcome/index.js +72 -40
  293. package/lib/Welcome/locale/ja-JP.d.ts +5 -0
  294. package/lib/Welcome/locale/ja-JP.js +28 -0
  295. package/lib/Welcome/step/style/index.d.ts +10 -0
  296. package/lib/Welcome/step/style/index.js +74 -0
  297. package/lib/Welcome/step.d.ts +0 -1
  298. package/lib/Welcome/step.js +18 -7
  299. package/lib/Welcome/style/index.d.ts +10 -0
  300. package/lib/Welcome/style/index.js +188 -0
  301. package/lib/_util/genComponentStyleHook.d.ts +4 -3
  302. package/lib/_util/genComponentStyleHook.js +1 -1
  303. package/lib/index.d.ts +0 -5
  304. package/lib/index.js +0 -7
  305. package/lib/locale/LocaleWrapper.js +15 -14
  306. package/lib/locale/en-US.js +16 -20
  307. package/lib/locale/ja-JP.d.ts +3 -0
  308. package/lib/locale/ja-JP.js +67 -0
  309. package/lib/locale/zh-CN.js +17 -21
  310. package/lib/locale/zh-TW.js +15 -19
  311. package/package.json +7 -10
  312. package/dist/static/Inter.f6bcdfb6.woff2 +0 -0
  313. package/es/BatchOperationBar/index.less +0 -46
  314. package/es/BatchOperationBar/index.less.d.ts +0 -15
  315. package/es/Boundary/index.less +0 -36
  316. package/es/ContentWithIcon/index.less +0 -21
  317. package/es/DateRanger/index.less +0 -157
  318. package/es/Dialog/index.less +0 -116
  319. package/es/FullscreenBox/index.less +0 -49
  320. package/es/GraphToolbar/index.d.ts +0 -26
  321. package/es/GraphToolbar/index.js +0 -146
  322. package/es/GraphToolbar/index.less +0 -65
  323. package/es/GraphToolbar/locale/en-US.d.ts +0 -9
  324. package/es/GraphToolbar/locale/en-US.js +0 -8
  325. package/es/GraphToolbar/locale/zh-CN.d.ts +0 -9
  326. package/es/GraphToolbar/locale/zh-CN.js +0 -8
  327. package/es/GraphToolbar/locale/zh-TW.d.ts +0 -9
  328. package/es/GraphToolbar/locale/zh-TW.js +0 -8
  329. package/es/Highlight/index.less +0 -381
  330. package/es/Login/index.less +0 -268
  331. package/es/NavMenu/index.less +0 -50
  332. package/es/Ranger/index.less +0 -57
  333. package/es/SideTip/index.less +0 -180
  334. package/es/TaskGraph/Graph.d.ts +0 -24
  335. package/es/TaskGraph/Graph.js +0 -271
  336. package/es/TaskGraph/graph.less +0 -23
  337. package/es/TaskGraph/index.d.ts +0 -16
  338. package/es/TaskGraph/index.js +0 -178
  339. package/es/TaskGraph/index.less +0 -117
  340. package/es/TaskGraph/locale/en-US.d.ts +0 -13
  341. package/es/TaskGraph/locale/en-US.js +0 -12
  342. package/es/TaskGraph/locale/zh-CN.d.ts +0 -13
  343. package/es/TaskGraph/locale/zh-CN.js +0 -12
  344. package/es/TaskGraph/locale/zh-TW.d.ts +0 -13
  345. package/es/TaskGraph/locale/zh-TW.js +0 -12
  346. package/es/TaskGraph/register.d.ts +0 -7
  347. package/es/TaskGraph/register.js +0 -200
  348. package/es/Welcome/index.less +0 -185
  349. package/es/index.less +0 -1
  350. package/es/variable.less +0 -54
  351. package/lib/BatchOperationBar/index.less +0 -46
  352. package/lib/BatchOperationBar/index.less.d.ts +0 -15
  353. package/lib/Boundary/index.less +0 -36
  354. package/lib/ContentWithIcon/index.less +0 -21
  355. package/lib/DateRanger/index.less +0 -157
  356. package/lib/Dialog/index.less +0 -116
  357. package/lib/FullscreenBox/index.less +0 -49
  358. package/lib/GraphToolbar/index.d.ts +0 -26
  359. package/lib/GraphToolbar/index.js +0 -154
  360. package/lib/GraphToolbar/index.less +0 -65
  361. package/lib/GraphToolbar/locale/en-US.d.ts +0 -9
  362. package/lib/GraphToolbar/locale/zh-CN.d.ts +0 -9
  363. package/lib/GraphToolbar/locale/zh-TW.d.ts +0 -9
  364. package/lib/Highlight/index.less +0 -381
  365. package/lib/Login/index.less +0 -268
  366. package/lib/NavMenu/index.less +0 -50
  367. package/lib/Ranger/index.less +0 -57
  368. package/lib/SideTip/index.less +0 -180
  369. package/lib/TaskGraph/Graph.d.ts +0 -24
  370. package/lib/TaskGraph/Graph.js +0 -261
  371. package/lib/TaskGraph/graph.less +0 -23
  372. package/lib/TaskGraph/index.d.ts +0 -16
  373. package/lib/TaskGraph/index.js +0 -164
  374. package/lib/TaskGraph/index.less +0 -117
  375. package/lib/TaskGraph/locale/en-US.d.ts +0 -13
  376. package/lib/TaskGraph/locale/zh-CN.d.ts +0 -13
  377. package/lib/TaskGraph/locale/zh-CN.js +0 -36
  378. package/lib/TaskGraph/locale/zh-TW.d.ts +0 -13
  379. package/lib/TaskGraph/locale/zh-TW.js +0 -36
  380. package/lib/TaskGraph/register.d.ts +0 -7
  381. package/lib/TaskGraph/register.js +0 -205
  382. package/lib/Welcome/index.less +0 -185
  383. package/lib/index.less +0 -1
  384. package/lib/variable.less +0 -54
@@ -0,0 +1,211 @@
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/SideTip/style/index.ts
20
+ var style_exports = {};
21
+ __export(style_exports, {
22
+ default: () => style_default,
23
+ genSideTipStyle: () => genSideTipStyle
24
+ });
25
+ module.exports = __toCommonJS(style_exports);
26
+ var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
27
+ var genSideTipStyle = (token) => {
28
+ const { componentCls, boxShadowSecondary, colorTextQuaternary, colorTextSecondary } = token;
29
+ return {
30
+ [`${componentCls}-container`]: {
31
+ position: "fixed",
32
+ zIndex: 0,
33
+ fontSize: 14,
34
+ cursor: "pointer",
35
+ insetInlineEnd: 24,
36
+ insetBlockEnd: 24,
37
+ [`&.${componentCls}-container-dragged`]: {
38
+ cursor: "grab"
39
+ },
40
+ [`&.${componentCls}-container-disabled`]: {
41
+ cursor: "not-allowed"
42
+ },
43
+ [`&.${componentCls}-container-hide`]: {
44
+ transition: "all 0.3s"
45
+ },
46
+ "@media screen and (max-width: 768px)": {
47
+ display: "none"
48
+ },
49
+ [`&.${componentCls}-container-hide-not-dragged:hover`]: {
50
+ insetInlineEnd: "0 !important"
51
+ },
52
+ [`${componentCls}-hide`]: {
53
+ position: "absolute",
54
+ zIndex: 0,
55
+ display: "flex",
56
+ alignItems: "center",
57
+ justifyContent: "center",
58
+ width: 20,
59
+ height: 20,
60
+ background: "rgba(0, 0, 0, 0.15)",
61
+ borderRadius: 20,
62
+ transform: "scale(0)",
63
+ cursor: "pointer",
64
+ opacity: 0,
65
+ transition: "all 0.18s ease-out 0.18s",
66
+ insetBlockStart: 0,
67
+ insetInlineEnd: -22,
68
+ "&:hover": {
69
+ background: "rgba(0, 0, 0, 0.35)"
70
+ },
71
+ [`${componentCls}-hide-icon`]: {
72
+ width: 6,
73
+ height: 2,
74
+ background: "#fff",
75
+ borderRadius: 4
76
+ },
77
+ [`&.${componentCls}-hide-hovered`]: {
78
+ transform: "scale(1)",
79
+ opacity: 1
80
+ }
81
+ },
82
+ [`${componentCls}-button`]: {
83
+ position: "relative",
84
+ display: "flex",
85
+ alignItems: "center",
86
+ justifyContent: "center",
87
+ width: 56,
88
+ height: 56,
89
+ backgroundColor: "#fff",
90
+ borderRadius: "50%",
91
+ boxShadow: boxShadowSecondary,
92
+ cursor: "pointer",
93
+ transition: "background-color 0.2s ease 0.1s, opacity 0.2s ease 0s, transform 0.2s ease 0.1s",
94
+ userSelect: "none",
95
+ [`&${componentCls}-button-primary`]: {
96
+ backgroundColor: `${token.colorPrimary} !important`
97
+ },
98
+ [`&${componentCls}-button-small`]: {
99
+ width: 40,
100
+ height: 40
101
+ },
102
+ [`&${componentCls}-button-disabled`]: {
103
+ backgroundColor: `${colorTextQuaternary} !important`,
104
+ cursor: "not-allowed"
105
+ },
106
+ "&:hover": {
107
+ opacity: 1
108
+ },
109
+ [`${componentCls}-button-loading`]: {
110
+ position: "absolute",
111
+ width: 56,
112
+ height: 56,
113
+ color: token.colorPrimary,
114
+ fontSize: 56,
115
+ insetBlockStart: 0,
116
+ insetInlineEnd: 0,
117
+ [`&${componentCls}-button-loading-primary`]: {
118
+ color: "#fff"
119
+ },
120
+ [`&${componentCls}-button-loading-small`]: {
121
+ width: 40,
122
+ height: 40,
123
+ fontSize: 40,
124
+ lineHeight: 40
125
+ }
126
+ },
127
+ [`${componentCls}-button-close`]: {
128
+ position: "absolute",
129
+ width: 24,
130
+ height: 24,
131
+ color: colorTextSecondary,
132
+ fontSize: 24,
133
+ transform: "translate(-50%, -50%) scale(0.4) rotate(-45deg)",
134
+ opacity: 0,
135
+ transition: "all 0.3s linear",
136
+ userSelect: "none",
137
+ insetBlockStart: "50%",
138
+ insetInlineStart: "50%",
139
+ [`&.${componentCls}-button-close-primary`]: {
140
+ color: "#fff"
141
+ },
142
+ [`&.${componentCls}-button-close-show`]: {
143
+ transform: "translate(-50%, -50%)",
144
+ opacity: 1
145
+ },
146
+ [`&.${componentCls}-button-close-small`]: {
147
+ width: 16,
148
+ height: 16,
149
+ fontSize: 16,
150
+ lineHeight: 16
151
+ }
152
+ },
153
+ [`${componentCls}-button-icon`]: {
154
+ position: "absolute",
155
+ display: "flex",
156
+ alignItems: "center",
157
+ justifyContent: "center",
158
+ width: 24,
159
+ height: 24,
160
+ color: colorTextSecondary,
161
+ fontSize: 24,
162
+ lineHeight: 24,
163
+ transform: "translate(-50%, -50%)",
164
+ opacity: 1,
165
+ transition: "all 0.3s linear",
166
+ userSelect: "none",
167
+ insetBlockStart: "50%",
168
+ insetInlineStart: "50%",
169
+ "> *": {
170
+ fontSize: "inherit",
171
+ color: "inherit"
172
+ },
173
+ img: {
174
+ width: "100%",
175
+ height: "100%",
176
+ objectFit: "contain"
177
+ },
178
+ [`&.${componentCls}-button-icon-open`]: {
179
+ transform: "translate(-50%, -50%) scale(0.4) rotate(45deg)",
180
+ opacity: 0
181
+ },
182
+ [`&.${componentCls}-button-icon-disabled`]: {
183
+ color: colorTextQuaternary
184
+ },
185
+ [`&${componentCls}-button-icon-primary`]: {
186
+ color: "#fff !important",
187
+ "> *": {
188
+ color: "#fff !important"
189
+ }
190
+ },
191
+ [`&${componentCls}-button-icon-small`]: {
192
+ width: 16,
193
+ height: 16,
194
+ fontSize: 16,
195
+ lineHeight: 16
196
+ }
197
+ }
198
+ }
199
+ }
200
+ };
201
+ };
202
+ var style_default = (prefixCls) => {
203
+ const useStyle = (0, import_genComponentStyleHook.genComponentStyleHook)("SideTip", (token) => {
204
+ return [genSideTipStyle(token)];
205
+ });
206
+ return useStyle(prefixCls);
207
+ };
208
+ // Annotate the CommonJS export names for ESM import in node:
209
+ 0 && (module.exports = {
210
+ genSideTipStyle
211
+ });
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React from 'react';
2
2
  export type TagSelectValueType = string | number | readonly string[];
3
3
  export interface TagSelectOptionType {
4
4
  label: React.ReactNode;
@@ -9,15 +9,15 @@ export interface TagSelectOptionType {
9
9
  }
10
10
  export interface TagSelectGroupProps {
11
11
  title?: string;
12
- children?: ReactNode;
12
+ children?: React.ReactNode;
13
13
  disabled?: boolean;
14
14
  className?: string;
15
15
  multiple?: boolean;
16
- defaultValue?: TagSelectValueType | Array<TagSelectValueType>;
17
- value?: TagSelectValueType | Array<TagSelectValueType>;
16
+ defaultValue?: TagSelectValueType | TagSelectValueType[];
17
+ value?: TagSelectValueType | TagSelectValueType[];
18
18
  size?: string;
19
- options?: Array<TagSelectOptionType | string | number>;
20
- onChange?: (value: Array<TagSelectValueType> | TagSelectValueType) => void;
19
+ options?: (TagSelectOptionType | string | number)[];
20
+ onChange?: (value: TagSelectValueType[] | TagSelectValueType) => void;
21
21
  }
22
22
  declare const Group: React.FC<TagSelectGroupProps>;
23
23
  export default Group;
@@ -33,11 +33,12 @@ __export(Group_exports, {
33
33
  });
34
34
  module.exports = __toCommonJS(Group_exports);
35
35
  var import_classnames = __toESM(require("classnames"));
36
- var import_util = require("../_util");
36
+ var import_design = require("@oceanbase/design");
37
37
  var import_react = __toESM(require("react"));
38
38
  var import_TagSelectContext = __toESM(require("./TagSelectContext"));
39
39
  var import_Item = __toESM(require("./Item"));
40
40
  var import_style = __toESM(require("./style"));
41
+ var import_jsx_runtime = require("react/jsx-runtime");
41
42
  function toArray(value) {
42
43
  let res = value;
43
44
  if (value === void 0) {
@@ -57,7 +58,8 @@ var Group = ({
57
58
  className,
58
59
  ...restProps
59
60
  }) => {
60
- const prefix = (0, import_util.getPrefix)("tag-select");
61
+ const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
62
+ const prefix = getPrefixCls("tag-select");
61
63
  const { wrapSSR, hashId } = (0, import_style.default)(prefix);
62
64
  const [value, setValue] = (0, import_react.useState)(
63
65
  toArray(defaultValue || restProps.value)
@@ -106,21 +108,24 @@ var Group = ({
106
108
  return option;
107
109
  });
108
110
  }, [options]);
109
- const childrenNode = options.length ? memoOptions.map((option) => /* @__PURE__ */ import_react.default.createElement(
111
+ const childrenNode = options.length ? memoOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
110
112
  import_Item.default,
111
113
  {
112
- key: option.value.toString(),
113
114
  disabled: "disabled" in option ? option.disabled : restProps.disabled,
114
115
  value: option.value,
115
116
  onChange: option.onChange,
116
117
  style: option.style,
117
- checked: value == null ? void 0 : value.includes(option.value)
118
+ checked: value == null ? void 0 : value.includes(option.value),
119
+ children: option.label
118
120
  },
119
- option.label
121
+ option.value.toString()
120
122
  )) : children;
121
123
  const groupCls = (0, import_classnames.default)(`${prefix}-container`, hashId, className);
122
124
  return wrapSSR(
123
- /* @__PURE__ */ import_react.default.createElement(import_TagSelectContext.default.Provider, { value: contextValue }, /* @__PURE__ */ import_react.default.createElement("div", { className: groupCls }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-title` }, title), childrenNode))
125
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TagSelectContext.default.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: groupCls, children: [
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefix}-title`, children: title }),
127
+ childrenNode
128
+ ] }) })
124
129
  );
125
130
  };
126
131
  var Group_default = Group;
@@ -36,9 +36,10 @@ var import_rc_checkbox = __toESM(require("rc-checkbox"));
36
36
  var import_classnames = __toESM(require("classnames"));
37
37
  var import_lodash = require("lodash");
38
38
  var import_react = __toESM(require("react"));
39
+ var import_design = require("@oceanbase/design");
39
40
  var import_style = __toESM(require("./style"));
40
- var import_util = require("../_util");
41
41
  var import_TagSelectContext = __toESM(require("./TagSelectContext"));
42
+ var import_jsx_runtime = require("react/jsx-runtime");
42
43
  var Item = ({
43
44
  children,
44
45
  handleChange,
@@ -48,7 +49,8 @@ var Item = ({
48
49
  }) => {
49
50
  const [checked, setChecked] = (0, import_react.useState)(restProps.defaultChecked);
50
51
  const coverType = typeof cover;
51
- const prefixCls = (0, import_util.getPrefix)("tag-select");
52
+ const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
53
+ const prefixCls = getPrefixCls("tag-select");
52
54
  const { wrapSSR, hashId } = (0, import_style.default)(prefixCls);
53
55
  const tagSelectGroup = import_react.default.useContext(import_TagSelectContext.default);
54
56
  const wrapperClassName = (0, import_classnames.default)(
@@ -81,28 +83,31 @@ var Item = ({
81
83
  }
82
84
  }, [tagSelectGroup.value, restProps.value]);
83
85
  const renderCover = () => {
84
- return coverType === "string" ? /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-cover` }, /* @__PURE__ */ import_react.default.createElement("img", { src: cover, alt: "tagselect" })) : cover;
86
+ return coverType === "string" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-cover`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: cover, alt: "tagselect" }) }) : cover;
85
87
  };
86
88
  return wrapSSR(
87
- /* @__PURE__ */ import_react.default.createElement("label", { className: wrapperClassName, style: restProps.style }, /* @__PURE__ */ import_react.default.createElement(
88
- import_rc_checkbox.default,
89
- {
90
- ...restProps,
91
- checked,
92
- prefixCls,
93
- onChange: (e) => {
94
- if (!("checked" in restProps) && !Object.keys(tagSelectGroup).length) {
95
- setChecked(e.target.checked);
96
- }
97
- if (onChange) {
98
- onChange(e);
99
- }
100
- if (tagSelectGroup.handleValueChange) {
101
- tagSelectGroup.handleValueChange(e.target.value);
89
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: wrapperClassName, style: restProps.style, children: [
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
+ import_rc_checkbox.default,
92
+ {
93
+ ...restProps,
94
+ checked,
95
+ prefixCls,
96
+ onChange: (e) => {
97
+ if (!("checked" in restProps) && !Object.keys(tagSelectGroup).length) {
98
+ setChecked(e.target.checked);
99
+ }
100
+ if (onChange) {
101
+ onChange(e);
102
+ }
103
+ if (tagSelectGroup.handleValueChange) {
104
+ tagSelectGroup.handleValueChange(e.target.value);
105
+ }
102
106
  }
103
107
  }
104
- }
105
- ), cover ? renderCover() : /* @__PURE__ */ import_react.default.createElement("span", null, children))
108
+ ),
109
+ cover ? renderCover() : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })
110
+ ] })
106
111
  );
107
112
  };
108
113
  var Item_default = Item;
@@ -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/TreeSearch/index.tsx
@@ -34,8 +24,9 @@ __export(TreeSearch_exports, {
34
24
  module.exports = __toCommonJS(TreeSearch_exports);
35
25
  var import_icons = require("@oceanbase/icons");
36
26
  var import_design = require("@oceanbase/design");
37
- var import_react = __toESM(require("react"));
27
+ var import_react = require("react");
38
28
  var import_util = require("./util");
29
+ var import_jsx_runtime = require("react/jsx-runtime");
39
30
  var TreeSearch_default = (0, import_react.forwardRef)(
40
31
  ({
41
32
  treeData = [],
@@ -107,29 +98,33 @@ var TreeSearch_default = (0, import_react.forwardRef)(
107
98
  };
108
99
  const treeHeight = innerHeight ? innerHeight - (32 + 12 * 2 + 1) : 0;
109
100
  const defaultSearchStyle = { padding: "0 12px" };
110
- return /* @__PURE__ */ import_react.default.createElement("div", { ref: treeWrapperDOM, style: { width, height: height ?? "100%" } }, /* @__PURE__ */ import_react.default.createElement(
111
- import_design.Form,
112
- {
113
- form,
114
- onValuesChange: onSearch,
115
- style: Object.assign(defaultSearchStyle, searchStyle)
116
- },
117
- /* @__PURE__ */ import_react.default.createElement(import_design.Form.Item, { noStyle: true, name: "searchKey" }, /* @__PURE__ */ import_react.default.createElement(import_design.Input, { "data-testid": "search", prefix: /* @__PURE__ */ import_react.default.createElement(import_icons.SearchOutlined, null) }))
118
- ), /* @__PURE__ */ import_react.default.createElement(import_design.Divider, { style: { margin: "12px 0" } }), searchData.length !== 0 ? /* @__PURE__ */ import_react.default.createElement(
119
- import_design.Tree,
120
- {
121
- height: treeHeight,
122
- showIcon: true,
123
- checkable,
124
- blockNode: true,
125
- selectable: false,
126
- checkedKeys,
127
- onCheck,
128
- titleRender,
129
- defaultExpandAll,
130
- treeData: form.getFieldValue("searchKey") ? searchData : memoTreeData,
131
- loadData
132
- }
133
- ) : /* @__PURE__ */ import_react.default.createElement(import_design.Empty, { image: import_design.Empty.PRESENTED_IMAGE_SIMPLE }));
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref: treeWrapperDOM, style: { width, height: height ?? "100%" }, children: [
102
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
103
+ import_design.Form,
104
+ {
105
+ form,
106
+ onValuesChange: onSearch,
107
+ style: Object.assign(defaultSearchStyle, searchStyle),
108
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Form.Item, { noStyle: true, name: "searchKey", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Input, { "data-testid": "search", prefix: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.SearchOutlined, {}) }) })
109
+ }
110
+ ),
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Divider, { style: { margin: "12px 0" } }),
112
+ searchData.length !== 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
113
+ import_design.Tree,
114
+ {
115
+ height: treeHeight,
116
+ showIcon: true,
117
+ checkable,
118
+ blockNode: true,
119
+ selectable: false,
120
+ checkedKeys,
121
+ onCheck,
122
+ titleRender,
123
+ defaultExpandAll,
124
+ treeData: form.getFieldValue("searchKey") ? searchData : memoTreeData,
125
+ loadData
126
+ }
127
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Empty, { image: import_design.Empty.PRESENTED_IMAGE_SIMPLE })
128
+ ] });
134
129
  }
135
130
  );
@@ -1,6 +1,5 @@
1
1
  import type { ButtonProps } from '@oceanbase/design/es/button';
2
2
  import React from 'react';
3
- import './index.less';
4
3
  export interface IntroduceItem {
5
4
  image: string;
6
5
  title: string;
@@ -35,13 +35,13 @@ module.exports = __toCommonJS(Welcome_exports);
35
35
  var import_icons = require("@oceanbase/icons");
36
36
  var import_design = require("@oceanbase/design");
37
37
  var import_classnames = __toESM(require("classnames"));
38
- var import_react = __toESM(require("react"));
38
+ var import_react = require("react");
39
39
  var import_LocaleWrapper = __toESM(require("../locale/LocaleWrapper"));
40
40
  var import_util = require("../_util");
41
- var import_index = require("./index.less");
41
+ var import_style = __toESM(require("./style"));
42
42
  var import_zh_CN = __toESM(require("./locale/zh-CN"));
43
43
  var import_step = __toESM(require("./step"));
44
- var prefix = (0, import_util.getPrefix)("welcome");
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
45
  var Welcome = ({
46
46
  title,
47
47
  description,
@@ -56,9 +56,18 @@ var Welcome = ({
56
56
  className,
57
57
  ...restProps
58
58
  }) => {
59
+ const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
60
+ const prefixCls = getPrefixCls("welcome");
61
+ const { wrapSSR } = (0, import_style.default)(prefixCls);
59
62
  const isDefault = stepType === "default";
60
63
  const renderStep = (item, index) => {
61
- const DefaultStep = () => /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 12, "data-testid": "steps", key: item.title, className: `${prefix}-item` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-order-wrapper` }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-order` }, index + 1)), /* @__PURE__ */ import_react.default.createElement("span", null, /* @__PURE__ */ import_react.default.createElement("h3", { className: `${prefix}-title` }, item.title), /* @__PURE__ */ import_react.default.createElement("p", { className: `${prefix}-description` }, item.description)));
64
+ const DefaultStep = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 12, "data-testid": "steps", className: `${prefixCls}-item`, children: [
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-order-wrapper`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-order`, children: index + 1 }) }),
66
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
67
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: item.title }),
68
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefixCls}-description`, children: item.description })
69
+ ] })
70
+ ] }, item.title);
62
71
  const StepProps = {
63
72
  title: item.title,
64
73
  description: item.description,
@@ -67,44 +76,67 @@ var Welcome = ({
67
76
  operations: item.operations,
68
77
  locale
69
78
  };
70
- const StepItem = isDefault ? /* @__PURE__ */ import_react.default.createElement(DefaultStep, { key: item.title }) : /* @__PURE__ */ import_react.default.createElement(import_step.default, { "data-testid": "steps", key: item.title, ...StepProps });
79
+ const StepItem = isDefault ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DefaultStep, {}, item.title) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_step.default, { "data-testid": "steps", ...StepProps }, item.title);
71
80
  return StepItem;
72
81
  };
73
- return /* @__PURE__ */ import_react.default.createElement("div", { className: `${`${prefix}-container`} ${className}`, ...restProps }, /* @__PURE__ */ import_react.default.createElement(
74
- import_design.Row,
75
- {
76
- className: `${prefix}-page-header`,
77
- style: {
78
- backgroundImage: `url("${bgImage}")`
79
- }
80
- },
81
- /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 24, className: `${prefix}-title` }, /* @__PURE__ */ import_react.default.createElement("div", null, title)),
82
- /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 16, className: `${prefix}-description` }, /* @__PURE__ */ import_react.default.createElement("p", null, description))
83
- ), /* @__PURE__ */ import_react.default.createElement(import_design.Card, { bordered: false, className: `${prefix}-introduce` }, /* @__PURE__ */ import_react.default.createElement(import_design.Row, { gutter: 78 }, introduces.map((item) => /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 8, key: item.image, className: `${prefix}-item`, "data-testid": "introduces" }, /* @__PURE__ */ import_react.default.createElement("img", { src: item.image, alt: "", height: 80 }), /* @__PURE__ */ import_react.default.createElement("span", null, /* @__PURE__ */ import_react.default.createElement("h3", { className: `${prefix}-title` }, item.title), /* @__PURE__ */ import_react.default.createElement("p", { className: `${prefix}-description` }, item.description)))))), /* @__PURE__ */ import_react.default.createElement(import_design.Row, { className: `${prefix}-content` }, /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 14, className: isDefault ? `${prefix}-left` : `${prefix}-border-right` }, /* @__PURE__ */ import_react.default.createElement(import_design.Row, { justify: "space-around" }, steps.map((item, index) => renderStep(item, index)), isDefault && /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 24 }, /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}-btn-wrapper` }, /* @__PURE__ */ import_react.default.createElement(
84
- import_design.Button,
85
- {
86
- size: "large",
87
- type: "primary",
88
- icon: /* @__PURE__ */ import_react.default.createElement(import_icons.PlusOutlined, null),
89
- block: true,
90
- ...buttonProps
91
- },
92
- buttonText
93
- ))))), /* @__PURE__ */ import_react.default.createElement(import_design.Col, { span: 10, className: `${prefix}-right` }, /* @__PURE__ */ import_react.default.createElement("h3", { className: `${prefix}-title` }, locale.helpTitle), helps.map((item) => /* @__PURE__ */ import_react.default.createElement(
94
- import_design.Button,
95
- {
96
- key: item.title,
97
- shape: "round",
98
- onClick: () => {
99
- (0, import_util.directTo)(item.link);
100
- },
101
- className: (0, import_classnames.default)({
102
- [`${prefix}-more`]: !!item.isMore
103
- }),
104
- "data-testid": "helps"
105
- },
106
- item.title
107
- )))));
82
+ return wrapSSR(
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: `${prefixCls}-container ${className || ""}`, ...restProps, children: [
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
85
+ import_design.Row,
86
+ {
87
+ className: `${prefixCls}-page-header`,
88
+ style: {
89
+ backgroundImage: `url("${bgImage}")`
90
+ },
91
+ children: [
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, className: `${prefixCls}-title`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: title }) }),
93
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 16, className: `${prefixCls}-description`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: description }) })
94
+ ]
95
+ }
96
+ ),
97
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Card, { bordered: false, className: `${prefixCls}-introduce`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Row, { gutter: 78, children: introduces.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 8, className: `${prefixCls}-item`, "data-testid": "introduces", children: [
98
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("img", { src: item.image, alt: "", height: 80 }),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { children: [
100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: item.title }),
101
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: `${prefixCls}-description`, children: item.description })
102
+ ] })
103
+ ] }, item.image)) }) }),
104
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { className: `${prefixCls}-content`, children: [
105
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 14, className: isDefault ? `${prefixCls}-left` : "borderRight", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Row, { justify: "space-around", children: [
106
+ steps.map((item, index) => renderStep(item, index)),
107
+ isDefault && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design.Col, { span: 24, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `${prefixCls}-btn-wrapper`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
108
+ import_design.Button,
109
+ {
110
+ size: "large",
111
+ type: "primary",
112
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.PlusOutlined, {}),
113
+ block: true,
114
+ ...buttonProps,
115
+ children: buttonText
116
+ }
117
+ ) }) })
118
+ ] }) }),
119
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design.Col, { span: 10, className: `${prefixCls}-right`, children: [
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: `${prefixCls}-title`, children: locale.helpTitle }),
121
+ helps.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
122
+ import_design.Button,
123
+ {
124
+ shape: "round",
125
+ onClick: () => {
126
+ (0, import_util.directTo)(item.link);
127
+ },
128
+ className: (0, import_classnames.default)({
129
+ [`${prefixCls}-more`]: !!item.isMore
130
+ }),
131
+ "data-testid": "helps",
132
+ children: item.title
133
+ },
134
+ item.title
135
+ ))
136
+ ] })
137
+ ] })
138
+ ] })
139
+ );
108
140
  };
109
141
  var Welcome_default = (0, import_LocaleWrapper.default)({
110
142
  componentName: "Welcome",
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ helpTitle: string;
3
+ defaultOperation: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,28 @@
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/Welcome/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
+ helpTitle: "クイックスタート",
27
+ defaultOperation: "デフォルト操作"
28
+ };