refactor: rename _style to style
parent
d3a919b0bf
commit
516b2e5a0c
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genPresetColor, resetComponent } from '../../_style';
|
import { genPresetColor, resetComponent } from '../../style';
|
||||||
|
|
||||||
interface BadgeToken extends FullToken<'Badge'> {
|
interface BadgeToken extends FullToken<'Badge'> {
|
||||||
badgeFontHeight: number;
|
badgeFontHeight: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusStyle, resetComponent } from '../../_style';
|
import { genFocusStyle, resetComponent } from '../../style';
|
||||||
|
|
||||||
interface BreadcrumbToken extends FullToken<'Breadcrumb'> {
|
interface BreadcrumbToken extends FullToken<'Breadcrumb'> {
|
||||||
breadcrumbBaseColor: string;
|
breadcrumbBaseColor: string;
|
||||||
|
|
|
@ -2,9 +2,9 @@ import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import genGroupStyle from './group';
|
import genGroupStyle from './group';
|
||||||
import { genFocusStyle } from '../../_style';
|
import { genFocusStyle } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
import { genCompactItemVerticalStyle } from '../../_style/compact-item-vertical';
|
import { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
import type { PickerPanelToken } from '../../date-picker/style';
|
import type { PickerPanelToken } from '../../date-picker/style';
|
||||||
import { genPanelStyle, initPickerPanelToken } from '../../date-picker/style';
|
import { genPanelStyle, initPickerPanelToken } from '../../date-picker/style';
|
||||||
import type { InputToken } from '../../input/style';
|
import type { InputToken } from '../../input/style';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { clearFix, resetComponent, textEllipsis } from '../../_style';
|
import { clearFix, resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
dotWidth: number;
|
dotWidth: number;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
|
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook } from '../../theme/internal';
|
import { genComponentStyleHook } from '../../theme/internal';
|
||||||
import { textEllipsis } from '../../_style';
|
import { textEllipsis } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
controlWidth: number;
|
controlWidth: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusOutline, resetComponent } from '../../_style';
|
import { genFocusOutline, resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { genCollapseMotion } from '../../_style/motion';
|
import { genCollapseMotion } from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, resetIcon } from '../../_style';
|
import { resetComponent, resetIcon } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { useStyleRegister } from '../../_util/cssinjs';
|
import { useStyleRegister } from '../../_util/cssinjs';
|
||||||
import { resetIcon } from '../../_style';
|
import { resetIcon } from '../../style';
|
||||||
import { useToken } from '../../theme/internal';
|
import { useToken } from '../../theme/internal';
|
||||||
import { computed, Ref } from 'vue';
|
import { computed, Ref } from 'vue';
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,13 @@ import {
|
||||||
slideDownOut,
|
slideDownOut,
|
||||||
slideUpIn,
|
slideUpIn,
|
||||||
slideUpOut,
|
slideUpOut,
|
||||||
} from '../../_style/motion';
|
} from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import type { GlobalToken } from '../../theme/interface';
|
import type { GlobalToken } from '../../theme/interface';
|
||||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||||
import { resetComponent, roundedArrow, textEllipsis } from '../../_style';
|
import { resetComponent, roundedArrow, textEllipsis } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
presetsWidth: number;
|
presetsWidth: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
interface DescriptionsToken extends FullToken<'Descriptions'> {
|
interface DescriptionsToken extends FullToken<'Descriptions'> {
|
||||||
descriptionsTitleMarginBottom: number;
|
descriptionsTitleMarginBottom: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { getArrowOffset } from '../../_style/placementArrow';
|
import { getArrowOffset } from '../../style/placementArrow';
|
||||||
import {
|
import {
|
||||||
initMoveMotion,
|
initMoveMotion,
|
||||||
initSlideMotion,
|
initSlideMotion,
|
||||||
|
@ -7,12 +7,12 @@ import {
|
||||||
slideDownOut,
|
slideDownOut,
|
||||||
slideUpIn,
|
slideUpIn,
|
||||||
slideUpOut,
|
slideUpOut,
|
||||||
} from '../../_style/motion';
|
} from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import genButtonStyle from './button';
|
import genButtonStyle from './button';
|
||||||
import genStatusStyle from './status';
|
import genStatusStyle from './status';
|
||||||
import { genFocusStyle, resetComponent, roundedArrow } from '../../_style';
|
import { genFocusStyle, resetComponent, roundedArrow } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
zIndexPopup: number;
|
zIndexPopup: number;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { genCollapseMotion, zoomIn } from '../../_style/motion';
|
import { genCollapseMotion, zoomIn } from '../../style/motion';
|
||||||
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
import genFormValidateMotionStyle from './explain';
|
import genFormValidateMotionStyle from './explain';
|
||||||
|
|
||||||
export interface FormToken extends FullToken<'Form'> {
|
export interface FormToken extends FullToken<'Form'> {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import { CSSObject } from '../../_util/cssinjs';
|
import { CSSObject } from '../../_util/cssinjs';
|
||||||
import { TinyColor } from '@ctrl/tinycolor';
|
import { TinyColor } from '@ctrl/tinycolor';
|
||||||
import { genModalMaskStyle } from '../../modal/style';
|
import { genModalMaskStyle } from '../../modal/style';
|
||||||
import { initZoomMotion, initFadeMotion } from '../../_style/motion';
|
import { initZoomMotion, initFadeMotion } from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
zIndexPopup: number;
|
zIndexPopup: number;
|
||||||
|
|
|
@ -11,8 +11,8 @@ import {
|
||||||
} from '../../input/style';
|
} from '../../input/style';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook } from '../../theme/internal';
|
import { genComponentStyleHook } from '../../theme/internal';
|
||||||
import { resetComponent, resetIcon } from '../../_style';
|
import { resetComponent, resetIcon } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
controlWidth: number;
|
controlWidth: number;
|
||||||
|
|
|
@ -2,8 +2,8 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import type { GlobalToken } from '../../theme/interface';
|
import type { GlobalToken } from '../../theme/interface';
|
||||||
import { clearFix, resetComponent } from '../../_style';
|
import { clearFix, resetComponent } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
|
|
||||||
export type InputToken<T extends GlobalToken = FullToken<'Input'>> = T & {
|
export type InputToken<T extends GlobalToken = FullToken<'Input'>> = T & {
|
||||||
inputAffixPadding: number;
|
inputAffixPadding: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
contentWidth: number;
|
contentWidth: number;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
} from '../../input/style';
|
} from '../../input/style';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook } from '../../theme/internal';
|
import { genComponentStyleHook } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
zIndexPopup: number;
|
zIndexPopup: number;
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { TinyColor } from '@ctrl/tinycolor';
|
import { TinyColor } from '@ctrl/tinycolor';
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { genCollapseMotion, initSlideMotion, initZoomMotion } from '../../_style/motion';
|
import { genCollapseMotion, initSlideMotion, initZoomMotion } from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme/internal';
|
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import getHorizontalStyle from './horizontal';
|
import getHorizontalStyle from './horizontal';
|
||||||
import getRTLStyle from './rtl';
|
import getRTLStyle from './rtl';
|
||||||
import getThemeStyle from './theme';
|
import getThemeStyle from './theme';
|
||||||
import getVerticalStyle from './vertical';
|
import getVerticalStyle from './vertical';
|
||||||
import { clearFix, resetComponent, resetIcon } from '../../_style';
|
import { clearFix, resetComponent, resetIcon } from '../../style';
|
||||||
import { Ref } from 'vue';
|
import { Ref } from 'vue';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSInterpolation } from '../../_util/cssinjs';
|
import type { CSSInterpolation } from '../../_util/cssinjs';
|
||||||
import { genFocusOutline } from '../../_style';
|
import { genFocusOutline } from '../../style';
|
||||||
import type { MenuToken } from '.';
|
import type { MenuToken } from '.';
|
||||||
|
|
||||||
const accessibilityFocus = (token: MenuToken) => ({
|
const accessibilityFocus = (token: MenuToken) => ({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { textEllipsis } from '../../_style';
|
import { textEllipsis } from '../../style';
|
||||||
import type { MenuToken } from '.';
|
import type { MenuToken } from '.';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { initFadeMotion, initZoomMotion } from '../../_style/motion';
|
import { initFadeMotion, initZoomMotion } from '../../style/motion';
|
||||||
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
import type { AliasToken, FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||||
import { clearFix, genFocusStyle, resetComponent } from '../../_style';
|
import { clearFix, genFocusStyle, resetComponent } from '../../style';
|
||||||
import { CSSProperties } from 'vue';
|
import { CSSProperties } from 'vue';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
|
|
|
@ -2,7 +2,7 @@ import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import genNotificationPlacementStyle from './placement';
|
import genNotificationPlacementStyle from './placement';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
import { operationUnit } from '../../_style';
|
import { operationUnit } from '../../style';
|
||||||
|
|
||||||
interface PageHeaderToken extends FullToken<'PageHeader'> {
|
interface PageHeaderToken extends FullToken<'PageHeader'> {
|
||||||
pageHeaderPadding: number;
|
pageHeaderPadding: number;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import {
|
||||||
} from '../../input/style';
|
} from '../../input/style';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusOutline, genFocusStyle, resetComponent } from '../../_style';
|
import { genFocusOutline, genFocusStyle, resetComponent } from '../../style';
|
||||||
|
|
||||||
interface PaginationToken extends InputToken<FullToken<'Pagination'>> {
|
interface PaginationToken extends InputToken<FullToken<'Pagination'>> {
|
||||||
paginationItemSize: number;
|
paginationItemSize: number;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { initZoomMotion } from '../../_style/motion';
|
import { initZoomMotion } from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle, PresetColorType } from '../../theme/internal';
|
import type { FullToken, GenerateStyle, PresetColorType } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken, PresetColors } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
import getArrowStyle from '../../_style/placementArrow';
|
import getArrowStyle from '../../style/placementArrow';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
zIndexPopup: number;
|
zIndexPopup: number;
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusOutline, resetComponent } from '../../_style';
|
import { genFocusOutline, resetComponent } from '../../style';
|
||||||
|
|
||||||
// ============================== Tokens ==============================
|
// ============================== Tokens ==============================
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export type ComponentToken = {};
|
export type ComponentToken = {};
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@ import {
|
||||||
slideDownOut,
|
slideDownOut,
|
||||||
slideUpIn,
|
slideUpIn,
|
||||||
slideUpOut,
|
slideUpOut,
|
||||||
} from '../../_style/motion';
|
} from '../../style/motion';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import { resetComponent, textEllipsis } from '../../_style';
|
import { resetComponent, textEllipsis } from '../../style';
|
||||||
|
|
||||||
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => {
|
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => {
|
||||||
const { controlPaddingHorizontal } = token;
|
const { controlPaddingHorizontal } = token;
|
||||||
|
|
|
@ -4,8 +4,8 @@ import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import genDropdownStyle from './dropdown';
|
import genDropdownStyle from './dropdown';
|
||||||
import genMultipleStyle from './multiple';
|
import genMultipleStyle from './multiple';
|
||||||
import genSingleStyle from './single';
|
import genSingleStyle from './single';
|
||||||
import { resetComponent, resetIcon, textEllipsis } from '../../_style';
|
import { resetComponent, resetIcon, textEllipsis } from '../../style';
|
||||||
import { genCompactItemStyle } from '../../_style/compact-item';
|
import { genCompactItemStyle } from '../../style/compact-item';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
zIndexPopup: number;
|
zIndexPopup: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
||||||
import type { SelectToken } from '.';
|
import type { SelectToken } from '.';
|
||||||
import { mergeToken } from '../../theme/internal';
|
import { mergeToken } from '../../theme/internal';
|
||||||
import { resetIcon } from '../../_style';
|
import { resetIcon } from '../../style';
|
||||||
|
|
||||||
const FIXED_ITEM_MARGIN = 2;
|
const FIXED_ITEM_MARGIN = 2;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
import type { SelectToken } from '.';
|
import type { SelectToken } from '.';
|
||||||
import { mergeToken } from '../../theme/internal';
|
import { mergeToken } from '../../theme/internal';
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { CSSProperties } from 'vue';
|
||||||
import { TinyColor } from '@ctrl/tinycolor';
|
import { TinyColor } from '@ctrl/tinycolor';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
// Direction naming standard:
|
// Direction naming standard:
|
||||||
// Horizontal base:
|
// Horizontal base:
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
contentHeight: number;
|
contentHeight: number;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
interface StatisticToken extends FullToken<'Statistic'> {
|
interface StatisticToken extends FullToken<'Statistic'> {
|
||||||
statisticTitleFontSize: number;
|
statisticTitleFontSize: number;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import genStepsRTLStyle from './rtl';
|
||||||
import genStepsSmallStyle from './small';
|
import genStepsSmallStyle from './small';
|
||||||
import genStepsVerticalStyle from './vertical';
|
import genStepsVerticalStyle from './vertical';
|
||||||
import genStepsInlineStyle from './inline';
|
import genStepsInlineStyle from './inline';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
descriptionWidth: number;
|
descriptionWidth: number;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { textEllipsis } from '../../_style';
|
import { textEllipsis } from '../../style';
|
||||||
import type { StepsToken } from '.';
|
import type { StepsToken } from '.';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { TinyColor } from '@ctrl/tinycolor';
|
import { TinyColor } from '@ctrl/tinycolor';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusStyle, resetComponent } from '../../_style';
|
import { genFocusStyle, resetComponent } from '../../style';
|
||||||
|
|
||||||
interface SwitchToken extends FullToken<'Switch'> {
|
interface SwitchToken extends FullToken<'Switch'> {
|
||||||
switchMinWidth: number;
|
switchMinWidth: number;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import { textEllipsis } from '../../_style';
|
import { textEllipsis } from '../../style';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import type { TableToken } from './index';
|
import type { TableToken } from './index';
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import type { TableToken } from './index';
|
import type { TableToken } from './index';
|
||||||
import { operationUnit } from '../../_style';
|
import { operationUnit } from '../../style';
|
||||||
|
|
||||||
const genExpandStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
const genExpandStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import type { TableToken } from './index';
|
import type { TableToken } from './index';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
const genFilterStyle: GenerateStyle<TableToken> = token => {
|
const genFilterStyle: GenerateStyle<TableToken> = token => {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -16,7 +16,7 @@ import genSizeStyle from './size';
|
||||||
import genSorterStyle from './sorter';
|
import genSorterStyle from './sorter';
|
||||||
import genStickyStyle from './sticky';
|
import genStickyStyle from './sticky';
|
||||||
import genSummaryStyle from './summary';
|
import genSummaryStyle from './summary';
|
||||||
import { clearFix, resetComponent } from '../../_style';
|
import { clearFix, resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { CSSObject } from '../../_util/cssinjs';
|
import { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusStyle, resetComponent, textEllipsis } from '../../_style';
|
import { genFocusStyle, resetComponent, textEllipsis } from '../../style';
|
||||||
import genMotionStyle from './motion';
|
import genMotionStyle from './motion';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { TabsToken } from '.';
|
import type { TabsToken } from '.';
|
||||||
import { initSlideMotion } from '../../_style/motion';
|
import { initSlideMotion } from '../../style/motion';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
|
|
||||||
const genMotionStyle: GenerateStyle<TabsToken> = token => {
|
const genMotionStyle: GenerateStyle<TabsToken> = token => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken } from '../../theme/internal';
|
import type { FullToken } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genPresetColor, resetComponent } from '../../_style';
|
import { genPresetColor, resetComponent } from '../../style';
|
||||||
import type { CSSProperties } from 'vue';
|
import type { CSSProperties } from 'vue';
|
||||||
import { capitalize } from '../../_util/util';
|
import { capitalize } from '../../_util/util';
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import { useStyleRegister } from '../../_util/cssinjs';
|
import { useStyleRegister } from '../../_util/cssinjs';
|
||||||
import type { CSSInterpolation } from '../../_util/cssinjs';
|
import type { CSSInterpolation } from '../../_util/cssinjs';
|
||||||
import { genCommonStyle, genLinkStyle } from '../../_style';
|
import { genCommonStyle, genLinkStyle } from '../../style';
|
||||||
import type { UseComponentStyleResult } from '../internal';
|
import type { UseComponentStyleResult } from '../internal';
|
||||||
import { mergeToken, statisticToken, useToken } from '../internal';
|
import { mergeToken, statisticToken, useToken } from '../internal';
|
||||||
import type { ComponentTokenMap, GlobalToken } from '../interface';
|
import type { ComponentTokenMap, GlobalToken } from '../interface';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import type { CSSObject } from '../../_util/cssinjs';
|
import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { initZoomMotion } from '../../_style/motion';
|
import { initZoomMotion } from '../../style/motion';
|
||||||
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme/internal';
|
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genPresetColor, resetComponent } from '../../_style';
|
import { genPresetColor, resetComponent } from '../../style';
|
||||||
import getArrowStyle, { MAX_VERTICAL_CONTENT_RADIUS } from '../../_style/placementArrow';
|
import getArrowStyle, { MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';
|
||||||
import { Ref } from 'vue';
|
import { Ref } from 'vue';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
|
|
||||||
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
import type { FullToken, GenerateStyle } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { resetComponent, resetIcon, textEllipsis } from '../../_style';
|
import { resetComponent, resetIcon, textEllipsis } from '../../style';
|
||||||
|
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
listWidth: number;
|
listWidth: number;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
import type { CSSInterpolation, CSSObject } from '../../_util/cssinjs';
|
||||||
import { Keyframes } from '../../_util/cssinjs';
|
import { Keyframes } from '../../_util/cssinjs';
|
||||||
import { genCollapseMotion } from '../../_style/motion';
|
import { genCollapseMotion } from '../../style/motion';
|
||||||
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
|
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
|
||||||
import type { DerivativeToken } from '../../theme/internal';
|
import type { DerivativeToken } from '../../theme/internal';
|
||||||
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
import { genComponentStyleHook, mergeToken } from '../../theme/internal';
|
||||||
import { genFocusOutline, resetComponent } from '../../_style';
|
import { genFocusOutline, resetComponent } from '../../style';
|
||||||
|
|
||||||
// ============================ Keyframes =============================
|
// ============================ Keyframes =============================
|
||||||
const treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', {
|
const treeNodeFX = new Keyframes('ant-tree-node-fx-do-not-use', {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {
|
||||||
getResetStyles,
|
getResetStyles,
|
||||||
getTitleStyles,
|
getTitleStyles,
|
||||||
} from './mixins';
|
} from './mixins';
|
||||||
import { operationUnit } from '../../_style';
|
import { operationUnit } from '../../style';
|
||||||
|
|
||||||
/** Component only token. Which will handle additional calculation of alias token */
|
/** Component only token. Which will handle additional calculation of alias token */
|
||||||
export interface ComponentToken {
|
export interface ComponentToken {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import type { CSSObject } from '../../_util/cssinjs';
|
||||||
import type { TypographyToken } from '.';
|
import type { TypographyToken } from '.';
|
||||||
import { initInputToken } from '../../input/style';
|
import { initInputToken } from '../../input/style';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import { operationUnit } from '../../_style';
|
import { operationUnit } from '../../style';
|
||||||
|
|
||||||
// eslint-disable-next-line import/prefer-default-export
|
// eslint-disable-next-line import/prefer-default-export
|
||||||
const getTitleStyle = (
|
const getTitleStyle = (
|
||||||
|
|
|
@ -5,8 +5,8 @@ import genListStyle from './list';
|
||||||
import genMotionStyle from './motion';
|
import genMotionStyle from './motion';
|
||||||
import { genPictureCardStyle, genPictureStyle } from './picture';
|
import { genPictureCardStyle, genPictureStyle } from './picture';
|
||||||
import genRtlStyle from './rtl';
|
import genRtlStyle from './rtl';
|
||||||
import { resetComponent } from '../../_style';
|
import { resetComponent } from '../../style';
|
||||||
import { genCollapseMotion } from '../../_style/motion';
|
import { genCollapseMotion } from '../../style/motion';
|
||||||
|
|
||||||
export interface ComponentToken {}
|
export interface ComponentToken {}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { UploadToken } from '.';
|
import type { UploadToken } from '.';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import { clearFix, textEllipsis } from '../../_style';
|
import { clearFix, textEllipsis } from '../../style';
|
||||||
|
|
||||||
const genListStyle: GenerateStyle<UploadToken> = token => {
|
const genListStyle: GenerateStyle<UploadToken> = token => {
|
||||||
const { componentCls, antCls, iconCls, fontSize, lineHeight } = token;
|
const { componentCls, antCls, iconCls, fontSize, lineHeight } = token;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { TinyColor } from '@ctrl/tinycolor';
|
import { TinyColor } from '@ctrl/tinycolor';
|
||||||
import type { UploadToken } from '.';
|
import type { UploadToken } from '.';
|
||||||
import type { GenerateStyle } from '../../theme/internal';
|
import type { GenerateStyle } from '../../theme/internal';
|
||||||
import { clearFix, textEllipsis } from '../../_style';
|
import { clearFix, textEllipsis } from '../../style';
|
||||||
|
|
||||||
const genPictureStyle: GenerateStyle<UploadToken> = token => {
|
const genPictureStyle: GenerateStyle<UploadToken> = token => {
|
||||||
const { componentCls, iconCls, uploadThumbnailSize, uploadProgressOffset } = token;
|
const { componentCls, iconCls, uploadThumbnailSize, uploadProgressOffset } = token;
|
||||||
|
|
Loading…
Reference in New Issue