Browse Source
type: remove useless internal tag (#39754)
* chore: remove useless internal tag
* docs: add desc
pull/39808/head
MadCcc
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
20 additions and
32 deletions
-
components/theme/interface/maps/size.ts
-
components/theme/interface/maps/style.ts
-
components/theme/interface/seeds.ts
-
scripts/generate-token-meta.js
|
|
@ -46,10 +46,23 @@ export interface SizeMapToken { |
|
|
|
|
|
|
|
export interface HeightMapToken { |
|
|
|
// Control
|
|
|
|
/** @internal Only Used for control inside component like Multiple Select inner selection item */ |
|
|
|
/** Only Used for control inside component like Multiple Select inner selection item */ |
|
|
|
|
|
|
|
/** |
|
|
|
* @nameZH 更小的组件高度 |
|
|
|
* @nameEN XS component height |
|
|
|
*/ |
|
|
|
controlHeightXS: number; |
|
|
|
/** @internal */ |
|
|
|
|
|
|
|
/** |
|
|
|
* @nameZH 较小的组件高度 |
|
|
|
* @nameEN SM component height |
|
|
|
*/ |
|
|
|
controlHeightSM: number; |
|
|
|
/** @internal */ |
|
|
|
|
|
|
|
/** |
|
|
|
* @nameZH 较高的组件高度 |
|
|
|
* @nameEN LG component height |
|
|
|
*/ |
|
|
|
controlHeightLG: number; |
|
|
|
} |
|
|
|
|
|
@ -33,7 +33,6 @@ export interface StyleMapToken { |
|
|
|
borderRadiusLG: number; |
|
|
|
/** |
|
|
|
* @default 4 |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
borderRadiusOuter: number; |
|
|
|
} |
|
|
|
|
|
@ -130,7 +130,6 @@ export interface SeedToken extends PresetColorType { |
|
|
|
|
|
|
|
/** |
|
|
|
* @nameZH 组件箭头尺寸 |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
sizePopupArrow: number; |
|
|
|
|
|
|
@ -169,7 +168,6 @@ export interface SeedToken extends PresetColorType { |
|
|
|
/** |
|
|
|
* @nameZH 图片不透明度 |
|
|
|
* @nameEN Define default Image opacity. Useful when in dark-like theme |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
opacityImage: number; |
|
|
|
|
|
|
@ -187,48 +185,23 @@ export interface SeedToken extends PresetColorType { |
|
|
|
|
|
|
|
/** |
|
|
|
* @nameZH 动画基础时长 |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionBase: number; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseOutCirc: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseInOutCirc: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseInOut: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseOutBack: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseInBack: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseInQuint: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseOutQuint: string; |
|
|
|
|
|
|
|
/** |
|
|
|
* @internal |
|
|
|
*/ |
|
|
|
motionEaseOut: string; |
|
|
|
|
|
|
|
// ---------- Style ---------- //
|
|
|
|
|
|
@ -3,7 +3,10 @@ const fs = require('fs-extra'); |
|
|
|
|
|
|
|
const getTokenList = (list, source) => |
|
|
|
list |
|
|
|
.filter((item) => !item.comment?.blockTags.some((tag) => tag.tag === '@internal')) |
|
|
|
.filter( |
|
|
|
(item) => |
|
|
|
!item.comment?.blockTags.some((tag) => tag.tag === '@internal' || tag.tag === '@private'), |
|
|
|
) |
|
|
|
.map((item) => ({ |
|
|
|
source, |
|
|
|
token: item.name, |
|
|
|