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
parent
commit
9fbf80aa8b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      components/theme/interface/maps/size.ts
  2. 1
      components/theme/interface/maps/style.ts
  3. 27
      components/theme/interface/seeds.ts
  4. 5
      scripts/generate-token-meta.js

19
components/theme/interface/maps/size.ts

@ -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
components/theme/interface/maps/style.ts

@ -33,7 +33,6 @@ export interface StyleMapToken {
borderRadiusLG: number;
/**
* @default 4
* @internal
*/
borderRadiusOuter: number;
}

27
components/theme/interface/seeds.ts

@ -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 ---------- //

5
scripts/generate-token-meta.js

@ -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,

Loading…
Cancel
Save