Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type: remove useless internal tag #39754

Merged
merged 2 commits into from Dec 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 16 additions & 3 deletions components/theme/interface/maps/size.ts
Expand Up @@ -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;
}
1 change: 0 additions & 1 deletion components/theme/interface/maps/style.ts
Expand Up @@ -33,7 +33,6 @@ export interface StyleMapToken {
borderRadiusLG: number;
/**
* @default 4
* @internal
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果要暴露出去,最好写一下用处。

*/
borderRadiusOuter: number;
}
27 changes: 0 additions & 27 deletions components/theme/interface/seeds.ts
Expand Up @@ -130,7 +130,6 @@ export interface SeedToken extends PresetColorType {

/**
* @nameZH 组件箭头尺寸
* @internal
*/
sizePopupArrow: number;

Expand Down Expand Up @@ -169,7 +168,6 @@ export interface SeedToken extends PresetColorType {
/**
* @nameZH 图片不透明度
* @nameEN Define default Image opacity. Useful when in dark-like theme
* @internal
*/
opacityImage: number;

Expand All @@ -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 ---------- //
Expand Down
5 changes: 4 additions & 1 deletion scripts/generate-token-meta.js
Expand Up @@ -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,
Expand Down