@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
@@ -1,116 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-dialog;
4
-
5
- .@{prefix}-container-embed {
6
- @radius: 1px;
7
- // 这里用 !important 是为了增加权重覆写弹窗模式的属性
8
- border: 1px solid @border-color !important;
9
- border-radius: @radius !important;
10
- box-shadow: none !important;
11
- @border-color: #dde4ed;
12
- }
13
-
14
- .@{prefix}-container {
15
- position: fixed;
16
- z-index: 999;
17
- box-sizing: content-box;
18
- color: #eee;
19
- background-color: rgba(65, 74, 77, 1);
20
- border-radius: 8px;
21
- box-shadow: @boxShadowSecondary;
22
- transition:
23
- visibility 0.2s ease-in-out,
24
- opacity 0.2s linear;
25
- @header: 52px;
26
- @footer: 40px;
27
- @radius: 1px;
28
- @border-color: #dde4ed;
29
- @font-color: #38465c;
30
-
31
- .@{prefix}-header {
32
- display: flex;
33
- align-items: center;
34
- justify-content: space-between;
35
- height: @header;
36
- padding: 0 25px;
37
- line-height: @header;
38
- background-color: #fff;
39
- border-radius: @radius;
40
- cursor: grab;
41
- user-select: none;
42
-
43
- .@{prefix}-title {
44
- display: inline-block;
45
- width: 60%;
46
- overflow: hidden;
47
- color: @font-color;
48
- white-space: nowrap;
49
- text-overflow: ellipsis;
50
- word-break: keep-all;
51
- }
52
-
53
- &:active {
54
- cursor: grabbing;
55
- }
56
-
57
- .@{prefix}-controls {
58
- display: flex;
59
- align-items: center;
60
- height: 100%;
61
- text-align: center;
62
-
63
- .@{prefix}-item {
64
- @size: 15px;
65
-
66
- display: inline-block;
67
- width: @size;
68
- margin-left: 16px;
69
- color: @font-color;
70
- font-size: @size;
71
- line-height: @size;
72
- text-align: center;
73
- cursor: pointer;
74
- transition-duration: 0.3s;
75
-
76
- .@{prefix}-item-link {
77
- padding-top: 2px;
78
- color: @font-color;
79
- }
80
- }
81
- }
82
- }
83
-
84
- .@{prefix}-main {
85
- position: relative;
86
- height: calc(~'100% - @{header}');
87
- padding: 0 8px 8px 8px;
88
- overflow: hidden;
89
- background-color: #fff;
90
- border-top: 1px solid #dde4ed;
91
- .@{prefix}-mask {
92
- position: absolute;
93
- top: 0;
94
- left: 0;
95
- z-index: 9;
96
- width: 100%;
97
- height: 100%;
98
- }
99
-
100
- iframe {
101
- width: 100%;
102
- height: 100%;
103
- border: none;
104
- }
105
- }
106
-
107
- .@{prefix}-anchor {
108
- position: absolute;
109
- z-index: 9;
110
- user-select: none;
111
- }
112
- }
113
-
114
- .@{prefix}-container:focus {
115
- outline: transparent;
116
- }
@@ -1,49 +0,0 @@
1
- @prefix: ob-fullscreen;
2
- .@{prefix}-box {
3
- box-sizing: border-box;
4
- margin: 0;
5
- padding: 0;
6
- color: rgba(0, 0, 0, 0.88);
7
- font-size: 14px;
8
- line-height: 1.5714285714285714;
9
- list-style: none;
10
-
11
- &.@{prefix}-box-fullscreen {
12
- position: fixed;
13
- z-index: 900;
14
- background: #fff;
15
- inset-block-start: 0;
16
- inset-inline-end: 0;
17
- inset-block-end: 0;
18
- inset-inline-start: 0;
19
- }
20
- .@{prefix}-box-header {
21
- display: flex;
22
- height: 64px;
23
- .@{prefix}-box-header-left {
24
- flex: 1;
25
- padding-block: 20px;
26
- padding-inline: 24px;
27
- }
28
- .@{prefix}-box-header-icon {
29
- cursor: pointer;
30
- }
31
- .@{prefix}-box-header-title {
32
- font-weight: 500;
33
- font-size: 16px;
34
- line-height: 24px;
35
- margin-inline-start: 24px;
36
- }
37
- .@{prefix}-box-header-extra {
38
- flex: 2;
39
- line-height: 64px;
40
- text-align: end;
41
- padding-inline-end: 24px;
42
- }
43
- }
44
- }
45
-
46
- /* 避免滚动穿透 */
47
- .@{prefix}-body-overflow-hidden {
48
- overflow: hidden;
49
- }
@@ -1,65 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-graph-toolbar;
4
-
5
- .@{prefix} {
6
- display: inline-flex;
7
- align-items: center;
8
- justify-content: space-between;
9
-
10
- .@{prefix}-pointable {
11
- cursor: pointer;
12
- }
13
-
14
- .@{prefix}-disabled {
15
- color: @colorTextQuaternary;
16
- cursor: not-allowed;
17
- pointer-events: none;
18
- }
19
-
20
- span,
21
- img {
22
- // 防止加减 zoom 过快时会选中文本 和 img 图标
23
- user-select: none;
24
- }
25
-
26
- > span:not(:last-child) {
27
- margin-right: 16px;
28
- }
29
-
30
- img:not(:last-child) {
31
- margin-right: 16px;
32
- }
33
-
34
- .@{prefix}-divider {
35
- margin: 0;
36
- }
37
-
38
- .@{prefix}-zoom-wrapper {
39
- display: inline-flex;
40
- align-items: center;
41
- justify-content: space-between;
42
- width: 90px;
43
- height: 24px;
44
- padding: 0 8px;
45
- color: @colorTextSecondary;
46
- font-size: 12px;
47
- background-color: #f5f6fa;
48
- border-radius: @borderRadius;
49
-
50
- .@{iconPrefixCls} {
51
- font-size: 12px;
52
- }
53
- }
54
- }
55
-
56
- .@{prefix}-fixed {
57
- position: absolute;
58
- top: 24px;
59
- right: 24px;
60
- height: 40px;
61
- padding: 8px 24px;
62
- background: #fff;
63
- border-radius: 20px;
64
- box-shadow: @boxShadowSecondary;
65
- }
@@ -1,381 +0,0 @@
1
- @import '../variable.less';
2
-
3
- @prefix: ob-highlight;
4
-
5
- .@{prefix} {
6
- box-sizing: border-box;
7
- margin: 0;
8
- padding: 0;
9
- color: rgba(0, 0, 0, 0.88);
10
- font-size: 14px;
11
- line-height: 1.5714285714285714;
12
- list-style: none;
13
- border-radius: @borderRadius;
14
-
15
- &:not(:hover) .@{prefix}-copy {
16
- visibility: hidden;
17
- opacity: 0;
18
- }
19
-
20
- @keyframes copy-button-trans {
21
- 0% {
22
- opacity: 0.8;
23
- margin-block-start: 0;
24
- }
25
- 10% {
26
- opacity: 0.8;
27
- margin-block-start: -16px;
28
- }
29
- 90% {
30
- opacity: 0.8;
31
- margin-block-start: -16px;
32
- }
33
- 100% {
34
- opacity: 0.8;
35
- margin-block-start: 0;
36
- }
37
- }
38
-
39
- .@{prefix}-json-view {
40
- padding: 0;
41
-
42
- .react-json-view {
43
- padding: 0.5em;
44
- overflow: auto;
45
-
46
- .icon-container svg {
47
- transform: translateY(5px);
48
- }
49
- }
50
- }
51
-
52
- &.@{prefix}-light {
53
- .react-json-view {
54
- background: @colorBgLayout;
55
- }
56
-
57
- .@{prefix}-light-index {
58
- border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
59
- }
60
-
61
- display: block;
62
- padding: 0.5em;
63
- overflow-x: auto;
64
- color: #383a42;
65
- background: @colorBgLayout;
66
-
67
- .hljs-comment,
68
- .hljs-quote {
69
- color: #a0a1a7;
70
- font-style: italic;
71
- }
72
-
73
- .hljs-doctag,
74
- .hljs-keyword,
75
- .hljs-formula {
76
- color: #a626a4;
77
- }
78
-
79
- .hljs-section,
80
- .hljs-name,
81
- .hljs-selector-tag,
82
- .hljs-deletion,
83
- .hljs-subst {
84
- color: #e45649;
85
- }
86
-
87
- .hljs-literal {
88
- color: #0184bb;
89
- }
90
-
91
- .hljs-string,
92
- .hljs-regexp,
93
- .hljs-addition,
94
- .hljs-attribute,
95
- .hljs-meta-string {
96
- color: #50a14f;
97
- }
98
-
99
- .hljs-built_in,
100
- .hljs-class,
101
- .hljs-title {
102
- color: #c18401;
103
- }
104
-
105
- .hljs-attr,
106
- .hljs-variable,
107
- .hljs-template-variable,
108
- .hljs-type,
109
- .hljs-selector-class,
110
- .hljs-selector-attr,
111
- .hljs-selector-pseudo,
112
- .hljs-number {
113
- color: #986801;
114
- }
115
-
116
- .hljs-symbol,
117
- .hljs-bullet,
118
- .hljs-link,
119
- .hljs-meta,
120
- .hljs-selector-id,
121
- .hljs-title {
122
- color: #4078f2;
123
- }
124
-
125
- .hljs-emphasis {
126
- font-style: italic;
127
- }
128
-
129
- .hljs-strong {
130
- font-weight: bold;
131
- }
132
-
133
- .hljs-link {
134
- text-decoration: underline;
135
- }
136
- }
137
-
138
- .@{prefix}-index {
139
- box-sizing: border-box;
140
- width: 40px;
141
- min-width: 40px;
142
- color: #aaa;
143
- text-align: end;
144
- background: rgba(255, 255, 255, 0.03);
145
- user-select: none;
146
- padding-block: 2px;
147
- padding-inline: 8px;
148
- }
149
- .@{prefix}-content {
150
- padding-block: 2px;
151
- padding-inline: 8px;
152
- }
153
- .@{prefix}-copy {
154
- position: absolute;
155
- display: flex;
156
- flex-direction: column;
157
- width: 16px;
158
- height: 16px;
159
- padding: 0;
160
- overflow: hidden;
161
- border: 0;
162
- outline: none;
163
- cursor: pointer;
164
- opacity: 0.6;
165
- transition: opacity 0.2s;
166
- inset-block-start: 16px;
167
- inset-inline-end: 16px;
168
-
169
- &:hover {
170
- opacity: 0.8;
171
- }
172
- }
173
- &:not(:hover) &.@{prefix}-copy {
174
- visibility: hidden;
175
- opacity: 0;
176
- }
177
-
178
- .@{prefix}-copy-icon {
179
- width: 16px;
180
- height: 16px;
181
- font-size: 16px;
182
-
183
- &.scoll {
184
- animation: copy-button-trans 2s;
185
- animation-play-state: running;
186
- }
187
- }
188
-
189
- .@{prefix}-dark {
190
- display: block;
191
- padding: 0.5em;
192
- overflow-x: auto;
193
- color: #c0c5ce;
194
- background: #2b303b;
195
- border-radius: @borderRadius;
196
-
197
- &.@{prefix}-index {
198
- border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
199
- }
200
-
201
- /* Ocean Comment */
202
- .hljs-comment,
203
- .hljs-quote {
204
- color: #65737e;
205
- }
206
-
207
- /* Ocean Red */
208
- .hljs-variable,
209
- .hljs-template-variable,
210
- .hljs-tag,
211
- .hljs-name,
212
- .hljs-selector-id,
213
- .hljs-selector-class,
214
- .hljs-regexp,
215
- .hljs-deletion {
216
- color: #bf616a;
217
- }
218
-
219
- /* Ocean Orange */
220
- .hljs-number,
221
- .hljs-built_in,
222
- .hljs-builtin-name,
223
- .hljs-literal,
224
- .hljs-type,
225
- .hljs-params,
226
- .hljs-meta,
227
- .hljs-link {
228
- color: #d08770;
229
- }
230
-
231
- /* Ocean Yellow */
232
- .hljs-attribute {
233
- color: #ebcb8b;
234
- }
235
-
236
- /* Ocean Green */
237
- .hljs-string,
238
- .hljs-symbol,
239
- .hljs-bullet,
240
- .hljs-addition {
241
- color: #a3be8c;
242
- }
243
-
244
- /* Ocean Blue */
245
- .hljs-title,
246
- .hljs-section {
247
- color: #8fa1b3;
248
- }
249
-
250
- /* Ocean Purple */
251
- .hljs-keyword,
252
- .hljs-selector-tag {
253
- color: #b48ead;
254
- }
255
-
256
- .hljs-emphasis {
257
- font-style: italic;
258
- }
259
-
260
- .hljs-strong {
261
- font-weight: bold;
262
- }
263
- }
264
-
265
- &.@{prefix}-diff {
266
- overflow-y: auto;
267
-
268
- // &.@{prefix} {
269
- // padding: 0;
270
- // }
271
-
272
- table {
273
- width: 100%;
274
- font-family: 'SFMono-Regular, Consolas, Liberation Mono, Menlo, Courier, monospace';
275
- border-collapse: collapse;
276
- border-spacing: 0;
277
-
278
- td {
279
- vertical-align: top;
280
- }
281
- }
282
-
283
- .@{prefix}-diff-index,
284
- .@{prefix}-diff-mark,
285
- .@{prefix}-diff-code {
286
- padding-block: 2px;
287
- padding-inline: 8px;
288
- }
289
-
290
- .@{prefix}-diff-index,
291
- .@{prefix}-diff-mark {
292
- user-select: none;
293
- }
294
-
295
- .@{prefix}-diff-index {
296
- width: 40px;
297
- min-width: 40px;
298
- text-align: end;
299
- font-variant-numeric: tabular-nums;
300
- }
301
-
302
- .@{prefix}-diff-mark {
303
- width: 10px;
304
- min-width: 10px;
305
- text-align: center;
306
- }
307
-
308
- .@{prefix}-diff-code {
309
- white-space: pre-wrap;
310
- word-break: break-word;
311
- }
312
-
313
- // ======================= Theme =======================
314
- // Light
315
- &.@{prefix}-light {
316
- .@{prefix}-diff-index,
317
- .@{prefix}-diff-mark {
318
- color: #aaa;
319
- }
320
-
321
- .@{prefix}-diff-index {
322
- background: rgba(0, 0, 0, 0.01);
323
- border-inline-end: 1px solid rgba(0, 0, 0, 0.05);
324
- border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
325
-
326
- &:first-child {
327
- border-inline-start: none;
328
- }
329
- }
330
-
331
- // &.@{prefix}-diff-cell {
332
- .@{prefix}-diff-cell-add {
333
- background: #e7f1e2;
334
- // .mix(##fafafa; 90)
335
- // .toHexString();
336
- }
337
- .@{prefix}-diff-cell-remove {
338
- background: #f6e3e4;
339
- // .mix(##fafafa; 90)
340
- // .toHexString();
341
- }
342
- .@{prefix}-diff-cell-empty {
343
- background: rgba(0, 0, 0, 0.03);
344
- }
345
- // }
346
- }
347
-
348
- // Dark
349
- &.@{prefix}-dark {
350
- .@{prefix}-diff-index,
351
- .@{prefix}-diff-mark {
352
- color: #aaa;
353
- }
354
-
355
- .@{prefix}-diff-index {
356
- background: rgba(255, 255, 255, 0.01);
357
- border-inline-end: 1px solid rgba(255, 255, 255, 0.05);
358
- border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
359
-
360
- &:first-child {
361
- border-inline-start: none;
362
- }
363
- }
364
-
365
- .@{prefix}-diff-cell-add {
366
- background: #305c29;
367
- // .mix(#2b303b; 60)
368
- // .toHexString();
369
- }
370
- .@{prefix}-diff-cell-remove {
371
- background: #6d2431;
372
- // .mix(#2b303b; 60)
373
- // .toHexString();
374
- }
375
-
376
- .@{prefix}-diff-cell-empty {
377
- background: rgba(255, 255, 255, 0.03);
378
- }
379
- }
380
- }
381
- }