alias.d.ts 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545
  1. import type * as React from 'react';
  2. import type { MapToken } from './maps';
  3. export interface AliasToken extends MapToken {
  4. /**
  5. * @nameZH 内容区域背景色(悬停)
  6. * @nameEN Background color of content area (hover)
  7. * @desc 控制内容区域背景色在鼠标悬停时的样式。
  8. * @descEN Control the style of background color of content area when mouse hovers over it.
  9. */
  10. colorFillContentHover: string;
  11. /**
  12. * @nameZH 替代背景色
  13. * @nameEN Alternative background color
  14. * @desc 控制元素替代背景色。
  15. * @descEN Control the alternative background color of element.
  16. */
  17. colorFillAlter: string;
  18. /**
  19. * @nameZH 内容区域背景色
  20. * @nameEN Background color of content area
  21. * @desc 控制内容区域的背景色。
  22. * @descEN Control the background color of content area.
  23. */
  24. colorFillContent: string;
  25. /**
  26. * @nameZH 容器禁用态下的背景色
  27. * @nameEN Disabled container background color
  28. * @desc 控制容器在禁用状态下的背景色。
  29. * @descEN Control the background color of container in disabled state.
  30. */
  31. colorBgContainerDisabled: string;
  32. /**
  33. * @nameZH 文本悬停态背景色
  34. * @nameEN Text hover background color
  35. * @desc 控制文本在悬停状态下的背景色。
  36. * @descEN Control the background color of text in hover state.
  37. */
  38. colorBgTextHover: string;
  39. /**
  40. * @nameZH 文本激活态背景色
  41. * @nameEN Text active background color
  42. * @desc 控制文本在激活状态下的背景色。
  43. * @descEN Control the background color of text in active state.
  44. */
  45. colorBgTextActive: string;
  46. /**
  47. * @nameZH 背景边框颜色
  48. * @nameEN Background border color
  49. * @desc 控制元素背景边框的颜色。
  50. * @descEN Control the color of background border of element.
  51. */
  52. colorBorderBg: string;
  53. /**
  54. * @nameZH 分割线颜色
  55. * @nameEN Separator Color
  56. * @desc 用于作为分割线的颜色,此颜色和 colorBorderSecondary 的颜色一致,但是用的是透明色。
  57. * @descEN Used as the color of separator, this color is the same as colorBorderSecondary but with transparency.
  58. */
  59. colorSplit: string;
  60. /**
  61. * @nameZH 占位文本颜色
  62. * @nameEN Placeholder Text Color
  63. * @desc 控制占位文本的颜色。
  64. * @descEN Control the color of placeholder text.
  65. */
  66. colorTextPlaceholder: string;
  67. /**
  68. * @nameZH 禁用字体颜色
  69. * @nameEN Disabled Text Color
  70. * @desc 控制禁用状态下的字体颜色。
  71. * @descEN Control the color of text in disabled state.
  72. */
  73. colorTextDisabled: string;
  74. /**
  75. * @nameZH 标题字体颜色
  76. * @nameEN Heading Text Color
  77. * @desc 控制标题字体颜色。
  78. * @descEN Control the font color of heading.
  79. */
  80. colorTextHeading: string;
  81. /**
  82. * @nameZH 文本标签字体颜色
  83. * @nameEN Text label font color
  84. * @desc 控制文本标签字体颜色。
  85. * @descEN Control the font color of text label.
  86. */
  87. colorTextLabel: string;
  88. /**
  89. * @nameZH 文本描述字体颜色
  90. * @nameEN Text description font color
  91. * @desc 控制文本描述字体颜色。
  92. * @descEN Control the font color of text description.
  93. */
  94. colorTextDescription: string;
  95. /**
  96. * @nameZH 固定文本高亮颜色
  97. * @nameEN Fixed text highlight color
  98. * @desc 控制带背景色的文本,例如 Primary Button 组件中的文本高亮颜色。
  99. * @descEN Control the highlight color of text with background color, such as the text in Primary Button components.
  100. */
  101. colorTextLightSolid: string;
  102. /**
  103. /**
  104. * @nameZH 弱操作图标颜色
  105. * @nameEN Weak action icon color
  106. * @desc 控制弱操作图标的颜色,例如 allowClear 或 Alert 关闭按钮。
  107. * @descEN Weak action. Such as `allowClear` or Alert close button
  108. */
  109. colorIcon: string;
  110. /** */
  111. /**
  112. * @nameZH 弱操作图标悬浮态颜色
  113. * @nameEN Weak action icon hover color
  114. * @desc 控制弱操作图标在悬浮状态下的颜色,例如 allowClear 或 Alert 关闭按钮。
  115. * @descEN Weak action hover color. Such as `allowClear` or Alert close button
  116. */
  117. colorIconHover: string;
  118. /**
  119. * @nameZH 高亮颜色
  120. * @nameEN Highlight color
  121. * @desc 控制页面元素高亮时的颜色。
  122. * @descEN Control the color of page element when highlighted.
  123. */
  124. colorHighlight: string;
  125. /**
  126. * @nameZH 输入组件的 Outline 颜色
  127. * @nameEN Input component outline color
  128. * @desc 控制输入组件的外轮廓线颜色。
  129. * @descEN Control the outline color of input component.
  130. */
  131. controlOutline: string;
  132. /**
  133. * @nameZH 警告状态下的 Outline 颜色
  134. * @nameEN Warning outline color
  135. * @desc 控制输入组件警告状态下的外轮廓线颜色。
  136. * @descEN Control the outline color of input component in warning state.
  137. */
  138. colorWarningOutline: string;
  139. /**
  140. * @nameZH 错误状态下的 Outline 颜色
  141. * @nameEN Error outline color
  142. * @desc 控制输入组件错误状态下的外轮廓线颜色。
  143. * @descEN Control the outline color of input component in error state.
  144. */
  145. colorErrorOutline: string;
  146. /**
  147. * @nameZH 选择器、级联选择器等中的操作图标字体大小
  148. * @nameEN Operation icon font size in Select, Cascader, etc.
  149. * @desc 控制选择器、级联选择器等中的操作图标字体大小。正常情况下与 fontSizeSM 相同。
  150. * @descEN Control the font size of operation icon in Select, Cascader, etc. Normally same as fontSizeSM.
  151. */
  152. fontSizeIcon: number;
  153. /**
  154. * @nameZH 标题类组件(如 h1、h2、h3)或选中项的字体粗细
  155. * @nameEN Font weight for heading components (such as h1, h2, h3) or selected item
  156. * @desc 控制标题类组件(如 h1、h2、h3)或选中项的字体粗细。
  157. * @descEN Control the font weight of heading components (such as h1, h2, h3) or selected item.
  158. */
  159. fontWeightStrong: number;
  160. /**
  161. * @nameZH 输入组件的外轮廓线宽度
  162. * @nameEN Input component outline width
  163. * @desc 控制输入组件的外轮廓线宽度。
  164. * @descEN Control the outline width of input component.
  165. */
  166. controlOutlineWidth: number;
  167. /**
  168. * @nameZH 控制组件项在鼠标悬浮时的背景颜色
  169. * @nameEN Background color of control component item when hovering
  170. * @desc 控制组件项在鼠标悬浮时的背景颜色。
  171. * @descEN Control the background color of control component item when hovering.
  172. */
  173. controlItemBgHover: string;
  174. /**
  175. * @nameZH 控制组件项在激活状态下的背景颜色
  176. * @nameEN Background color of control component item when active
  177. * @desc 控制组件项在激活状态下的背景颜色。
  178. * @descEN Control the background color of control component item when active.
  179. */
  180. controlItemBgActive: string;
  181. /**
  182. * @nameZH 控制组件项在鼠标悬浮且激活状态下的背景颜色
  183. * @nameEN Background color of control component item when hovering and active
  184. * @desc 控制组件项在鼠标悬浮且激活状态下的背景颜色。
  185. * @descEN Control the background color of control component item when hovering and active.
  186. */
  187. controlItemBgActiveHover: string;
  188. /**
  189. * @nameZH 控制组件的交互大小
  190. * @nameEN Interactive size of control component
  191. * @desc 控制组件的交互大小。
  192. * @descEN Control the interactive size of control component.
  193. */
  194. controlInteractiveSize: number;
  195. /**
  196. * @nameZH 控制组件项在禁用状态下的激活背景颜色
  197. * @nameEN Background color of control component item when active and disabled
  198. * @desc 控制组件项在禁用状态下的激活背景颜色。
  199. * @descEN Control the background color of control component item when active and disabled.
  200. */
  201. controlItemBgActiveDisabled: string;
  202. /**
  203. * @nameZH 线条宽度(聚焦态)
  204. * @nameEN Line width(focus state)
  205. * @desc 控制线条的宽度,当组件处于聚焦态时。
  206. * @descEN Control the width of the line when the component is in focus state.
  207. */
  208. lineWidthFocus: number;
  209. /**
  210. * @nameZH 极小内间距
  211. * @nameEN Extra extra small padding
  212. * @desc 控制元素的极小内间距。
  213. * @descEN Control the extra extra small padding of the element.
  214. */
  215. paddingXXS: number;
  216. /**
  217. * @nameZH 特小内间距
  218. * @nameEN Extra small padding
  219. * @desc 控制元素的特小内间距。
  220. * @descEN Control the extra small padding of the element.
  221. */
  222. paddingXS: number;
  223. /**
  224. * @nameZH 小内间距
  225. * @nameEN Small padding
  226. * @desc 控制元素的小内间距。
  227. * @descEN Control the small padding of the element.
  228. */
  229. paddingSM: number;
  230. /**
  231. * @nameZH 内间距
  232. * @nameEN Padding
  233. * @desc 控制元素的内间距。
  234. * @descEN Control the padding of the element.
  235. */
  236. padding: number;
  237. /**
  238. * @nameZH 中等内间距
  239. * @nameEN Medium padding
  240. * @desc 控制元素的中等内间距。
  241. * @descEN Control the medium padding of the element.
  242. */
  243. paddingMD: number;
  244. /**
  245. * @nameZH 大内间距
  246. * @nameEN Large padding
  247. * @desc 控制元素的大内间距。
  248. * @descEN Control the large padding of the element.
  249. */
  250. paddingLG: number;
  251. /**
  252. * @nameZH 特大内间距
  253. * @nameEN Extra large padding
  254. * @desc 控制元素的特大内间距。
  255. * @descEN Control the extra large padding of the element.
  256. */
  257. paddingXL: number;
  258. /**
  259. * @nameZH 内容水平内间距(LG)
  260. * @nameEN Content horizontal padding (LG)
  261. * @desc 控制内容元素水平内间距,适用于大屏幕设备。
  262. * @descEN Control the horizontal padding of content element, suitable for large screen devices.
  263. */
  264. paddingContentHorizontalLG: number;
  265. /**
  266. * @nameZH 内容水平内间距
  267. * @nameEN Content horizontal padding
  268. * @desc 控制内容元素水平内间距。
  269. * @descEN Control the horizontal padding of content element.
  270. */
  271. paddingContentHorizontal: number;
  272. /**
  273. * @nameZH 内容水平内间距(SM)
  274. * @nameEN Content horizontal padding (SM)
  275. * @desc 控制内容元素水平内间距,适用于小屏幕设备。
  276. * @descEN Control the horizontal padding of content element, suitable for small screen devices.
  277. */
  278. paddingContentHorizontalSM: number;
  279. /**
  280. * @nameZH 内容垂直内间距(LG)
  281. * @nameEN Content vertical padding (LG)
  282. * @desc 控制内容元素垂直内间距,适用于大屏幕设备。
  283. * @descEN Control the vertical padding of content element, suitable for large screen devices.
  284. */
  285. paddingContentVerticalLG: number;
  286. /**
  287. * @nameZH 内容垂直内间距
  288. * @nameEN Content vertical padding
  289. * @desc 控制内容元素垂直内间距。
  290. * @descEN Control the vertical padding of content element.
  291. */
  292. paddingContentVertical: number;
  293. /**
  294. * @nameZH 内容垂直内间距(SM)
  295. * @nameEN Content vertical padding (SM)
  296. * @desc 控制内容元素垂直内间距,适用于小屏幕设备。
  297. * @descEN Control the vertical padding of content element, suitable for small screen devices.
  298. */
  299. paddingContentVerticalSM: number;
  300. /**
  301. * @nameZH 外边距 XXS
  302. * @nameEN Margin XXS
  303. * @desc 控制元素外边距,最小尺寸。
  304. * @descEN Control the margin of an element, with the smallest size.
  305. */
  306. marginXXS: number;
  307. /**
  308. * @nameZH 外边距 XS
  309. * @nameEN Margin XS
  310. * @desc 控制元素外边距,小尺寸。
  311. * @descEN Control the margin of an element, with a small size.
  312. */
  313. marginXS: number;
  314. /**
  315. * @nameZH 外边距 SM
  316. * @nameEN Margin SM
  317. * @desc 控制元素外边距,中小尺寸。
  318. * @descEN Control the margin of an element, with a medium-small size.
  319. */
  320. marginSM: number;
  321. /**
  322. * @nameZH 外边距
  323. * @nameEN Margin
  324. * @desc 控制元素外边距,中等尺寸。
  325. * @descEN Control the margin of an element, with a medium size.
  326. */
  327. margin: number;
  328. /**
  329. * @nameZH 外边距 MD
  330. * @nameEN Margin MD
  331. * @desc 控制元素外边距,中大尺寸。
  332. * @descEN Control the margin of an element, with a medium-large size.
  333. */
  334. marginMD: number;
  335. /**
  336. * @nameZH 外边距 LG
  337. * @nameEN Margin LG
  338. * @desc 控制元素外边距,大尺寸。
  339. * @descEN Control the margin of an element, with a large size.
  340. */
  341. marginLG: number;
  342. /**
  343. * @nameZH 外边距 XL
  344. * @nameEN Margin XL
  345. * @desc 控制元素外边距,超大尺寸。
  346. * @descEN Control the margin of an element, with an extra-large size.
  347. */
  348. marginXL: number;
  349. /**
  350. * @nameZH 外边距 XXL
  351. * @nameEN Margin XXL
  352. * @desc 控制元素外边距,最大尺寸。
  353. * @descEN Control the margin of an element, with the largest size.
  354. */
  355. marginXXL: number;
  356. /**
  357. * @nameZH 加载状态透明度
  358. * @nameEN Loading opacity
  359. * @desc 控制加载状态的透明度。
  360. * @descEN Control the opacity of the loading state.
  361. */
  362. opacityLoading: number;
  363. /**
  364. * @nameZH 一级阴影
  365. * @nameEN Box shadow
  366. * @desc 控制元素阴影样式。
  367. * @descEN Control the box shadow style of an element.
  368. */
  369. boxShadow: string;
  370. /**
  371. * @nameZH 二级阴影
  372. * @nameEN Secondary box shadow
  373. * @desc 控制元素二级阴影样式。
  374. * @descEN Control the secondary box shadow style of an element.
  375. */
  376. boxShadowSecondary: string;
  377. /**
  378. * @nameZH 三级阴影
  379. * @nameEN Tertiary box shadow
  380. * @desc 控制元素三级盒子阴影样式。
  381. * @descEN Control the tertiary box shadow style of an element.
  382. */
  383. boxShadowTertiary: string;
  384. /**
  385. * @nameZH 链接文本装饰
  386. * @nameEN Link text decoration
  387. * @desc 控制链接文本的装饰样式。
  388. * @descEN Control the text decoration style of a link.
  389. */
  390. linkDecoration: React.CSSProperties['textDecoration'];
  391. /**
  392. * @nameZH 链接鼠标悬浮时文本装饰
  393. * @nameEN Link text decoration on mouse hover
  394. * @desc 控制链接鼠标悬浮时文本的装饰样式。
  395. * @descEN Control the text decoration style of a link on mouse hover.
  396. */
  397. linkHoverDecoration: React.CSSProperties['textDecoration'];
  398. /**
  399. * @nameZH 链接聚焦时文本装饰
  400. * @nameEN Link text decoration on focus
  401. * @desc 控制链接聚焦时文本的装饰样式。
  402. * @descEN Control the text decoration style of a link on focus.
  403. */
  404. linkFocusDecoration: React.CSSProperties['textDecoration'];
  405. /**
  406. * @nameZH 控制水平内间距
  407. * @nameEN Control horizontal padding
  408. * @desc 控制元素水平内间距。
  409. * @descEN Control the horizontal padding of an element.
  410. */
  411. controlPaddingHorizontal: number;
  412. /**
  413. * @nameZH 控制中小尺寸水平内间距
  414. * @nameEN Control horizontal padding with a small-medium size
  415. * @desc 控制元素中小尺寸水平内间距。
  416. * @descEN Control the horizontal padding of an element with a small-medium size.
  417. */
  418. controlPaddingHorizontalSM: number;
  419. /**
  420. * @nameZH 屏幕宽度(像素) - 超小屏幕
  421. * @nameEN Screen width (pixels) - Extra small screens
  422. * @desc 控制超小屏幕的屏幕宽度。
  423. * @descEN Control the screen width of extra small screens.
  424. */
  425. screenXS: number;
  426. /**
  427. * @nameZH 屏幕宽度(像素) - 超小屏幕最小值
  428. * @nameEN Screen width (pixels) - Extra small screens minimum value
  429. * @desc 控制超小屏幕的最小宽度。
  430. * @descEN Control the minimum width of extra small screens.
  431. */
  432. screenXSMin: number;
  433. /**
  434. * @nameZH 屏幕宽度(像素) - 超小屏幕最大值
  435. * @nameEN Screen width (pixels) - Extra small screens maximum value
  436. * @desc 控制超小屏幕的最大宽度。
  437. * @descEN Control the maximum width of extra small screens.
  438. */
  439. screenXSMax: number;
  440. /**
  441. * @nameZH 屏幕宽度(像素) - 小屏幕
  442. * @nameEN Screen width (pixels) - Small screens
  443. * @desc 控制小屏幕的屏幕宽度。
  444. * @descEN Control the screen width of small screens.
  445. */
  446. screenSM: number;
  447. /**
  448. * @nameZH 屏幕宽度(像素) - 小屏幕最小值
  449. * @nameEN Screen width (pixels) - Small screens minimum value
  450. * @desc 控制小屏幕的最小宽度。
  451. * @descEN Control the minimum width of small screens.
  452. */
  453. screenSMMin: number;
  454. /**
  455. * @nameZH 屏幕宽度(像素) - 小屏幕最大值
  456. * @nameEN Screen width (pixels) - Small screens maximum value
  457. * @desc 控制小屏幕的最大宽度。
  458. * @descEN Control the maximum width of small screens.
  459. */
  460. screenSMMax: number;
  461. /**
  462. * @nameZH 屏幕宽度(像素) - 中等屏幕
  463. * @nameEN Screen width (pixels) - Medium screens
  464. * @desc 控制中等屏幕的屏幕宽度。
  465. * @descEN Control the screen width of medium screens.
  466. */
  467. screenMD: number;
  468. /**
  469. * @nameZH 屏幕宽度(像素) - 中等屏幕最小值
  470. * @nameEN Screen width (pixels) - Medium screens minimum value
  471. * @desc 控制中等屏幕的最小宽度。
  472. * @descEN Control the minimum width of medium screens.
  473. */
  474. screenMDMin: number;
  475. /**
  476. * @nameZH 屏幕宽度(像素) - 中等屏幕最大值
  477. * @nameEN Screen width (pixels) - Medium screens maximum value
  478. * @desc 控制中等屏幕的最大宽度。
  479. * @descEN Control the maximum width of medium screens.
  480. */
  481. screenMDMax: number;
  482. /**
  483. * @nameZH 屏幕宽度(像素) - 大屏幕
  484. * @nameEN Screen width (pixels) - Large screens
  485. * @desc 控制大屏幕的屏幕宽度。
  486. * @descEN Control the screen width of large screens.
  487. */
  488. screenLG: number;
  489. /**
  490. * @nameZH 屏幕宽度(像素) - 大屏幕最小值
  491. * @nameEN Screen width (pixels) - Large screens minimum value
  492. * @desc 控制大屏幕的最小宽度。
  493. * @descEN Control the minimum width of large screens.
  494. */
  495. screenLGMin: number;
  496. /**
  497. * @nameZH 屏幕宽度(像素) - 大屏幕最大值
  498. * @nameEN Screen width (pixels) - Large screens maximum value
  499. * @desc 控制大屏幕的最大宽度。
  500. * @descEN Control the maximum width of large screens.
  501. */
  502. screenLGMax: number;
  503. /**
  504. * @nameZH 屏幕宽度(像素) - 超大屏幕
  505. * @nameEN Screen width (pixels) - Extra large screens
  506. * @desc 控制超大屏幕的屏幕宽度。
  507. * @descEN Control the screen width of extra large screens.
  508. */
  509. screenXL: number;
  510. /**
  511. * @nameZH 屏幕宽度(像素) - 超大屏幕最小值
  512. * @nameEN Screen width (pixels) - Extra large screens minimum value
  513. * @desc 控制超大屏幕的最小宽度。
  514. * @descEN Control the minimum width of extra large screens.
  515. */
  516. screenXLMin: number;
  517. /**
  518. * @nameZH 屏幕宽度(像素) - 超大屏幕最大值
  519. * @nameEN Screen width (pixels) - Extra large screens maximum value
  520. * @desc 控制超大屏幕的最大宽度。
  521. * @descEN Control the maximum width of extra large screens.
  522. */
  523. screenXLMax: number;
  524. /**
  525. * @nameZH 屏幕宽度(像素) - 超超大屏幕
  526. * @nameEN Screen width (pixels) - Extra extra large screens
  527. * @desc 控制超超大屏幕的屏幕宽度。
  528. * @descEN Control the screen width of extra extra large screens.
  529. */
  530. screenXXL: number;
  531. /**
  532. * @nameZH 屏幕宽度(像素) - 超超大屏幕最小值
  533. * @nameEN Screen width (pixels) - Extra extra large screens minimum value
  534. * @desc 控制超超大屏幕的最小宽度。
  535. * @descEN Control the minimum width of extra extra large screens.
  536. */
  537. screenXXLMin: number;
  538. /**
  539. * @deprecated
  540. * Used for DefaultButton, Switch which has default outline
  541. * @desc 默认样式的 Outline 颜色
  542. * @descEN Default style outline color.
  543. */
  544. controlTmpOutline: string;
  545. }