chore: move path (#36243)

* chore: base move

* chore: all path

* chore: fix script
This commit is contained in:
二货机器人 2022-06-27 14:25:59 +08:00 committed by GitHub
parent 8f5e0d12ed
commit de2992f96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
131 changed files with 244 additions and 241 deletions

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
interface AffixToken extends FullToken<'Affix'> { interface AffixToken extends FullToken<'Affix'> {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
/** 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 {

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle, PresetColorType } from '../../_util/theme'; import type { FullToken, GenerateStyle, PresetColorType } from '../../theme';
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../theme';
interface BadgeToken extends FullToken<'Badge'> { interface BadgeToken extends FullToken<'Badge'> {
badgeFontHeight: number; badgeFontHeight: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface BreadcrumbToken extends FullToken<'Breadcrumb'> { interface BreadcrumbToken extends FullToken<'Breadcrumb'> {
breadcrumbBaseColor: string; breadcrumbBaseColor: string;

View File

@ -2,7 +2,7 @@ import classNames from 'classnames';
import * as React from 'react'; import * as React from 'react';
import { ConfigContext } from '../config-provider'; import { ConfigContext } from '../config-provider';
import type { SizeType } from '../config-provider/SizeContext'; import type { SizeType } from '../config-provider/SizeContext';
import { useToken } from '../_util/theme'; import { useToken } from '../theme';
import warning from '../_util/warning'; import warning from '../_util/warning';
export interface ButtonGroupProps { export interface ButtonGroupProps {

View File

@ -1,5 +1,5 @@
import type { GenerateStyle } from '../../_util/theme';
import type { ButtonToken } from '.'; import type { ButtonToken } from '.';
import type { GenerateStyle } from '../../theme';
const genButtonBorderStyle = (buttonTypeCls: string, borderColor: string) => ({ const genButtonBorderStyle = (buttonTypeCls: string, borderColor: string) => ({
// Border // Border

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
import genGroupStyle from './group'; import genGroupStyle from './group';
/** Component only token. Which will handle additional calculation of alias token */ /** Component only token. Which will handle additional calculation of alias token */

View File

@ -4,8 +4,8 @@ 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';
import { initInputToken } from '../../input/style'; import { initInputToken } from '../../input/style';
import type { FullToken } from '../../_util/theme'; import type { FullToken } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
yearControlWidth: number; yearControlWidth: number;

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface CardToken extends FullToken<'Card'> { interface CardToken extends FullToken<'Card'> {
cardShadow: string; cardShadow: string;

View File

@ -1,6 +1,6 @@
// deps-lint-skip-all // deps-lint-skip-all
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
dotWidth: number; dotWidth: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import { getStyle as getCheckboxStyle } from '../../checkbox/style'; import { getStyle as getCheckboxStyle } from '../../checkbox/style';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook } from '../../_util/theme'; import { genComponentStyleHook } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
controlWidth: number; controlWidth: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,6 +1,6 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { resetComponent, genComponentStyleHook, mergeToken, resetIcon } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../theme';
type CollapseToken = FullToken<'Collapse'> & { type CollapseToken = FullToken<'Collapse'> & {
collapseContentBg: string; collapseContentBg: string;

View File

@ -3,8 +3,8 @@ import canUseDom from 'rc-util/lib/Dom/canUseDom';
import React from 'react'; import React from 'react';
import ConfigProvider from '..'; import ConfigProvider from '..';
import { render } from '../../../tests/utils'; import { render } from '../../../tests/utils';
import { useToken } from '../../_util/theme'; import { useToken } from '../../theme';
import darkDerivative from '../../_util/theme/themes/dark'; import darkDerivative from '../../theme/themes/dark';
import { resetWarned } from '../../_util/warning'; import { resetWarned } from '../../_util/warning';
let mockCanUseDom = true; let mockCanUseDom = true;

View File

@ -2,8 +2,8 @@ import classNames from 'classnames';
import React from 'react'; import React from 'react';
import ConfigProvider from '..'; import ConfigProvider from '..';
import { render } from '../../../tests/utils'; import { render } from '../../../tests/utils';
import type { AliasToken } from '../../_util/theme'; import type { AliasToken } from '../../theme';
import type { UseCustomStyle, UseToken } from '../../_util/theme/util/useStyle'; import type { UseCustomStyle, UseToken } from '../../theme/util/useStyle';
const { useCustomToken, useStyle, useCustomStyle } = ConfigProvider; const { useCustomToken, useStyle, useCustomStyle } = ConfigProvider;

View File

@ -1,7 +1,7 @@
import * as React from 'react'; import * as React from 'react';
import type { RequiredMark } from '../form/Form'; import type { RequiredMark } from '../form/Form';
import type { Locale } from '../locale-provider'; import type { Locale } from '../locale-provider';
import type { MapToken, OverrideToken, SeedToken } from '../_util/theme/interface'; import type { MapToken, OverrideToken, SeedToken } from '../theme/interface';
import type { RenderEmptyHandler } from './defaultRenderEmpty'; import type { RenderEmptyHandler } from './defaultRenderEmpty';
import type { SizeType } from './SizeContext'; import type { SizeType } from './SizeContext';

View File

@ -1,6 +1,6 @@
import useMemo from 'rc-util/lib/hooks/useMemo'; import useMemo from 'rc-util/lib/hooks/useMemo';
import shallowEqual from 'shallowequal'; import shallowEqual from 'shallowequal';
import type { OverrideToken } from '../../_util/theme/interface'; import type { OverrideToken } from '../../theme/interface';
import type { ThemeConfig } from '../context'; import type { ThemeConfig } from '../context';
export default function useTheme( export default function useTheme(

View File

@ -8,9 +8,9 @@ import type { Locale } from '../locale-provider';
import LocaleProvider, { ANT_MARK } from '../locale-provider'; import LocaleProvider, { ANT_MARK } from '../locale-provider';
import LocaleReceiver from '../locale-provider/LocaleReceiver'; import LocaleReceiver from '../locale-provider/LocaleReceiver';
import defaultLocale from '../locale/default'; import defaultLocale from '../locale/default';
import { DesignTokenContext, useCustomToken, useToken } from '../_util/theme'; import { DesignTokenContext, useCustomToken, useToken } from '../theme';
import defaultSeedToken from '../_util/theme/themes/seed'; import defaultSeedToken from '../theme/themes/seed';
import { useCustomStyle, useStyle } from '../_util/theme/util/useStyle'; import { useCustomStyle, useStyle } from '../theme/util/useStyle';
import type { ConfigConsumerProps, CSPConfig, DirectionType, Theme, ThemeConfig } from './context'; import type { ConfigConsumerProps, CSPConfig, DirectionType, Theme, ThemeConfig } from './context';
import { ConfigConsumer, ConfigContext, defaultIconPrefixCls } from './context'; import { ConfigConsumer, ConfigContext, defaultIconPrefixCls } from './context';
import { registerTheme } from './cssVariables'; import { registerTheme } from './cssVariables';

View File

@ -9,10 +9,10 @@ import {
initInputToken, initInputToken,
} from '../../input/style'; } from '../../input/style';
import { slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion'; import { slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../theme';
import type { GlobalToken } from '../../_util/theme/interface'; import type { GlobalToken } from '../../theme/interface';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface DescriptionsToken extends FullToken<'Descriptions'> { interface DescriptionsToken extends FullToken<'Descriptions'> {
descriptionsTitleMarginBottom: number; descriptionsTitleMarginBottom: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
/** 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 {

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
export interface DrawerToken extends FullToken<'Drawer'> { export interface DrawerToken extends FullToken<'Drawer'> {
drawerFooterPaddingVertical: number; drawerFooterPaddingVertical: number;

View File

@ -1,5 +1,5 @@
import type { DropdownToken } from '.'; import type { DropdownToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genButtonStyle: GenerateStyle<DropdownToken> = token => { const genButtonStyle: GenerateStyle<DropdownToken> = token => {
const { componentCls, antCls, paddingXS, opacityLoading } = token; const { componentCls, antCls, paddingXS, opacityLoading } = token;

View File

@ -7,8 +7,8 @@ import {
slideUpIn, slideUpIn,
slideUpOut, slideUpOut,
} from '../../style/motion'; } from '../../style/motion';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../theme';
import genButtonStyle from './button'; import genButtonStyle from './button';
import genStatusStyle from './status'; import genStatusStyle from './status';

View File

@ -1,5 +1,5 @@
import type { GenerateStyle } from '../../_util/theme';
import type { DropdownToken } from '.'; import type { DropdownToken } from '.';
import type { GenerateStyle } from '../../theme';
const genStatusStyle: GenerateStyle<DropdownToken> = token => { const genStatusStyle: GenerateStyle<DropdownToken> = token => {
const { componentCls, menuCls, colorError, colorTextLightSolid } = token; const { componentCls, menuCls, colorError, colorTextLightSolid } = token;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
/** 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 {}

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { zoomIn } from '../../style/motion'; import { zoomIn } from '../../style/motion';
import type { AliasToken, FullToken, GenerateStyle } from '../../_util/theme'; import type { AliasToken, FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface FormToken extends FullToken<'Form'> { interface FormToken extends FullToken<'Form'> {
formItemCls: string; formItemCls: string;

View File

@ -3,8 +3,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
interface GridRowToken extends FullToken<'Grid'> {} interface GridRowToken extends FullToken<'Grid'> {}

View File

@ -3,8 +3,8 @@ import type { CSSObject } from '@ant-design/cssinjs';
import { TinyColor } from '@ctrl/tinycolor'; import { TinyColor } from '@ctrl/tinycolor';
import { genModalMaskStyle } from '../../modal/style'; import { genModalMaskStyle } from '../../modal/style';
import { initZoomMotion } from '../../style/motion'; import { initZoomMotion } from '../../style/motion';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -10,8 +10,8 @@ import {
genStatusStyle, genStatusStyle,
initInputToken, initInputToken,
} from '../../input/style'; } from '../../input/style';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, resetComponent, resetIcon } from '../../_util/theme'; import { genComponentStyleHook, resetComponent, resetIcon } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
controlWidth: number; controlWidth: number;

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
import type { GlobalToken } from '../../_util/theme/interface'; import type { GlobalToken } from '../../theme/interface';
export type InputToken<T extends GlobalToken = FullToken<'Input'>> = T & { export type InputToken<T extends GlobalToken = FullToken<'Input'>> = T & {
inputAffixPadding: number; inputAffixPadding: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
import genLayoutLightStyle from './light'; import genLayoutLightStyle from './light';
export interface ComponentToken { export interface ComponentToken {

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme';
import type { LayoutToken } from '.'; import type { LayoutToken } from '.';
import type { GenerateStyle } from '../../theme';
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => { const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
const { componentCls, colorBgComponent, colorBgBody, colorText } = token; const { componentCls, colorBgComponent, colorBgBody, colorText } = token;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
contentWidth: number; contentWidth: number;

View File

@ -8,8 +8,8 @@ import {
genStatusStyle, genStatusStyle,
initInputToken, initInputToken,
} from '../../input/style'; } from '../../input/style';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,5 +1,5 @@
import type { MenuThemeToken } from '.'; import type { MenuThemeToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const getHorizontalStyle: GenerateStyle<MenuThemeToken> = token => { const getHorizontalStyle: GenerateStyle<MenuThemeToken> = token => {
const { const {

View File

@ -1,13 +1,13 @@
// deps-lint-skip-all // deps-lint-skip-all
import { TinyColor } from '@ctrl/tinycolor'; import { TinyColor } from '@ctrl/tinycolor';
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../_util/theme'; import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme';
import { import {
clearFix, clearFix,
genComponentStyleHook, genComponentStyleHook,
mergeToken, mergeToken,
resetComponent, resetComponent,
resetIcon, resetIcon,
} from '../../_util/theme'; } from '../../theme';
import getHorizontalStyle from './horizontal'; import getHorizontalStyle from './horizontal';
import getRTLStyle from './rtl'; import getRTLStyle from './rtl';
import getThemeStyle from './theme'; import getThemeStyle from './theme';

View File

@ -1,5 +1,5 @@
import type { MenuToken } from '.'; import type { MenuToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const getRTLStyle: GenerateStyle<MenuToken> = ({ componentCls, menuArrowOffset }) => ({ const getRTLStyle: GenerateStyle<MenuToken> = ({ componentCls, menuArrowOffset }) => ({
[`${componentCls}-rtl`]: { [`${componentCls}-rtl`]: {

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { MenuThemeToken } from '.'; import type { MenuThemeToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const getVerticalInlineStyle: GenerateStyle<MenuThemeToken, CSSObject> = token => { const getVerticalInlineStyle: GenerateStyle<MenuThemeToken, CSSObject> = token => {
const { componentCls, menuItemHeight, marginXS, padding, marginXXS, menuArrowSize, fontSize } = const { componentCls, menuItemHeight, marginXS, padding, marginXXS, menuArrowSize, fontSize } =

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
/** 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 {

View File

@ -1,9 +1,9 @@
// deps-lint-skip-all // deps-lint-skip-all
import type React from 'react'; import type React from 'react';
import { initFadeMotion, initZoomMotion } from '../../style/motion'; import { initFadeMotion, initZoomMotion } from '../../style/motion';
import type { AliasToken, FullToken, GenerateStyle } from '../../_util/theme'; import type { AliasToken, FullToken, GenerateStyle } from '../../theme';
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
/** 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 {

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
import genNotificationPlacementStyle from './placement'; import genNotificationPlacementStyle from './placement';
/** Component only token. Which will handle additional calculation of alias token */ /** Component only token. Which will handle additional calculation of alias token */

View File

@ -1,7 +1,7 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme';
import type { NotificationToken } from '.'; import type { NotificationToken } from '.';
import type { GenerateStyle } from '../../theme';
const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject> = token => { const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject> = token => {
const { componentCls, width, notificationMarginEdge } = token; const { componentCls, width, notificationMarginEdge } = token;

View File

@ -6,8 +6,8 @@ import {
initInputToken, initInputToken,
type InputToken, type InputToken,
} from '../../input/style'; } from '../../input/style';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface PaginationToken extends InputToken<FullToken<'Pagination'>> { interface PaginationToken extends InputToken<FullToken<'Pagination'>> {
paginationItemSize: number; paginationItemSize: number;

View File

@ -1,6 +1,6 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook } from '../../_util/theme'; import { genComponentStyleHook } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,13 +1,13 @@
// deps-lint-skip-all // deps-lint-skip-all
import { initZoomMotion } from '../../style/motion'; import { initZoomMotion } from '../../style/motion';
import type { FullToken, GenerateStyle, PresetColorType } from '../../_util/theme'; import type { FullToken, GenerateStyle, PresetColorType } from '../../theme';
import { import {
genComponentStyleHook, genComponentStyleHook,
getArrowStyle, getArrowStyle,
mergeToken, mergeToken,
PresetColors, PresetColors,
resetComponent, resetComponent,
} from '../../_util/theme'; } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
// ============================== Tokens ============================== // ============================== Tokens ==============================
export interface ComponentToken {} export interface ComponentToken {}

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export type ComponentToken = {}; export type ComponentToken = {};

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
imageWidth: number; imageWidth: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
// FIXME: need to be removed // FIXME: need to be removed

View File

@ -8,8 +8,8 @@ import {
slideUpIn, slideUpIn,
slideUpOut, slideUpOut,
} from '../../style/motion'; } from '../../style/motion';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import { resetComponent } from '../../_util/theme'; import { resetComponent } from '../../theme';
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => { const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => {
const { controlPaddingHorizontal } = token; const { controlPaddingHorizontal } = token;

View File

@ -6,8 +6,8 @@ import '../../empty/style';
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../theme';
import genDropdownStyle from './dropdown'; import genDropdownStyle from './dropdown';
import genMultipleStyle from './multiple'; import genMultipleStyle from './multiple';
import genSingleStyle from './single'; import genSingleStyle from './single';

View File

@ -1,6 +1,6 @@
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
import type { SelectToken } from '.'; import type { SelectToken } from '.';
import { mergeToken, resetIcon } from '../../_util/theme'; import { mergeToken, resetIcon } from '../../theme';
const FIXED_ITEM_MARGIN = 2; const FIXED_ITEM_MARGIN = 2;

View File

@ -1,6 +1,6 @@
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
import type { SelectToken } from '.'; import type { SelectToken } from '.';
import { mergeToken } from '../../_util/theme'; import { mergeToken } from '../../theme';
function genSizeStyle(token: SelectToken, suffix?: string): CSSObject { function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
const { componentCls, inputPaddingHorizontalBase } = token; const { componentCls, inputPaddingHorizontalBase } = token;

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken } from '../../theme';
export type ComponentToken = { export type ComponentToken = {
color: string; color: string;

View File

@ -2,8 +2,8 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { TinyColor } from '@ctrl/tinycolor'; import { TinyColor } from '@ctrl/tinycolor';
import type * as React from 'react'; import type * as React from 'react';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
// Direction naming standard: // Direction naming standard:
// Horizontal base: // Horizontal base:

View File

@ -1,6 +1,6 @@
// deps-lint-skip-all // deps-lint-skip-all
import { genComponentStyleHook } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import { genComponentStyleHook } from '../../theme';
/** 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 {

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
contentHeight: number; contentHeight: number;

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle, FullToken } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface StatisticToken extends FullToken<'Statistic'> { interface StatisticToken extends FullToken<'Statistic'> {
statisticTitleFontSize: number; statisticTitleFontSize: number;

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsCustomIconStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsCustomIconStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { const {

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
import genStepsCustomIconStyle from './custom-icon'; import genStepsCustomIconStyle from './custom-icon';
import genStepsLabelPlacementStyle from './label-placement'; import genStepsLabelPlacementStyle from './label-placement';
import genStepsNavStyle from './nav'; import genStepsNavStyle from './nav';

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { componentCls, stepsIconSize, lineHeight, stepsSmallIconSize } = token; const { componentCls, stepsIconSize, lineHeight, stepsSmallIconSize } = token;

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsNavStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsNavStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { const {

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsProgressDotStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsProgressDotStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { const {

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { antCls, componentCls } = token; const { antCls, componentCls } = token;

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsRTLStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsRTLStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { componentCls } = token; const { componentCls } = token;

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsSmallStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsSmallStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { const {

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { StepsToken } from '.'; import type { StepsToken } from '.';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
const genStepsVerticalStyle: GenerateStyle<StepsToken, CSSObject> = token => { const genStepsVerticalStyle: GenerateStyle<StepsToken, CSSObject> = token => {
const { componentCls, stepsSmallIconSize, stepsIconSize } = token; const { componentCls, stepsSmallIconSize, stepsIconSize } = token;

View File

@ -1,7 +1,7 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { AliasToken } from '../../_util/theme'; import type { AliasToken } from '../../theme';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
import { initMotion } from './motion'; import { initMotion } from './motion';
export const fadeIn = new Keyframes('antFadeIn', { export const fadeIn = new Keyframes('antFadeIn', {

View File

@ -1,7 +1,7 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { AliasToken } from '../../_util/theme'; import type { AliasToken } from '../../theme';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
import { initMotion } from './motion'; import { initMotion } from './motion';
export const moveDownIn = new Keyframes('antMoveDownIn', { export const moveDownIn = new Keyframes('antMoveDownIn', {

View File

@ -1,7 +1,7 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { AliasToken } from '../../_util/theme'; import type { AliasToken } from '../../theme';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
import { initMotion } from './motion'; import { initMotion } from './motion';
export const slideUpIn = new Keyframes('antSlideUpIn', { export const slideUpIn = new Keyframes('antSlideUpIn', {

View File

@ -1,7 +1,7 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import { Keyframes } from '@ant-design/cssinjs'; import { Keyframes } from '@ant-design/cssinjs';
import type { AliasToken } from '../../_util/theme'; import type { AliasToken } from '../../theme';
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook'; import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
import { initMotion } from './motion'; import { initMotion } from './motion';
export const zoomIn = new Keyframes('antZoomIn', { export const zoomIn = new Keyframes('antZoomIn', {

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { TinyColor } from '@ctrl/tinycolor'; import { TinyColor } from '@ctrl/tinycolor';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
interface SwitchToken extends FullToken<'Switch'> { interface SwitchToken extends FullToken<'Switch'> {
switchMinWidth: number; switchMinWidth: number;

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = token => { const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genEllipsisStyle: GenerateStyle<TableToken, CSSObject> = token => { const genEllipsisStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
// ========================= Placeholder ========================== // ========================= Placeholder ==========================

View File

@ -1,6 +1,6 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import { operationUnit } from '../../_util/theme'; import { operationUnit } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genExpandStyle: GenerateStyle<TableToken, CSSObject> = token => { const genExpandStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,6 +1,6 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import { resetComponent } from '../../_util/theme'; import { resetComponent } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genFilterStyle: GenerateStyle<TableToken, CSSInterpolation> = token => { const genFilterStyle: GenerateStyle<TableToken, CSSInterpolation> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genFixedStyle: GenerateStyle<TableToken, CSSObject> = token => { const genFixedStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import { TinyColor } from '@ctrl/tinycolor'; import { TinyColor } from '@ctrl/tinycolor';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
import genBorderedStyle from './bordered'; import genBorderedStyle from './bordered';
import genEllipsisStyle from './ellipsis'; import genEllipsisStyle from './ellipsis';
import genEmptyStyle from './empty'; import genEmptyStyle from './empty';

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = token => { const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genRadiusStyle: GenerateStyle<TableToken, CSSObject> = token => { const genRadiusStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genStyle: GenerateStyle<TableToken, CSSObject> = token => { const genStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = token => { const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genSizeStyle: GenerateStyle<TableToken, CSSObject> = token => { const genSizeStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genSorterStyle: GenerateStyle<TableToken, CSSObject> = token => { const genSorterStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genStickyStyle: GenerateStyle<TableToken, CSSObject> = token => { const genStickyStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,5 +1,5 @@
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { GenerateStyle } from '../../_util/theme'; import type { GenerateStyle } from '../../theme';
import type { TableToken } from './index'; import type { TableToken } from './index';
const genSummaryStyle: GenerateStyle<TableToken, CSSObject> = token => { const genSummaryStyle: GenerateStyle<TableToken, CSSObject> = token => {

View File

@ -1,7 +1,7 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSObject } from '@ant-design/cssinjs'; import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from '../../_util/theme'; import type { FullToken, GenerateStyle } from '../../theme';
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme'; import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
export interface ComponentToken { export interface ComponentToken {
zIndexPopup: number; zIndexPopup: number;

View File

@ -1,8 +1,8 @@
// deps-lint-skip-all // deps-lint-skip-all
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs'; import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
import type { FullToken, PresetColorType } from '../../theme';
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../theme';
import capitalize from '../../_util/capitalize'; import capitalize from '../../_util/capitalize';
import type { FullToken, PresetColorType } from '../../_util/theme';
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../_util/theme';
interface TagToken extends FullToken<'Tag'> { interface TagToken extends FullToken<'Tag'> {
tagFontSize: number; tagFontSize: number;

View File

@ -1,8 +1,8 @@
import type { CSSInterpolation } from '@ant-design/cssinjs'; import type { CSSInterpolation } from '@ant-design/cssinjs';
import { Theme, useCacheToken, useStyleRegister } from '@ant-design/cssinjs'; import { Theme, useCacheToken, useStyleRegister } from '@ant-design/cssinjs';
import React from 'react'; import React from 'react';
import version from '../../version'; import version from '../version';
import type { DeepPartial } from '../type'; import type { DeepPartial } from '../_util/type';
import type { import type {
AliasToken, AliasToken,
GlobalToken, GlobalToken,

View File

@ -1,47 +1,47 @@
import type * as React from 'react'; import type * as React from 'react';
import type { ComponentToken as AlertComponentToken } from '../../alert/style'; import type { ComponentToken as AlertComponentToken } from '../alert/style';
import type { ComponentToken as AnchorComponentToken } from '../../anchor/style'; import type { ComponentToken as AnchorComponentToken } from '../anchor/style';
import type { ComponentToken as AvatarComponentToken } from '../../avatar/style'; import type { ComponentToken as AvatarComponentToken } from '../avatar/style';
import type { ComponentToken as BackTopComponentToken } from '../../back-top/style'; import type { ComponentToken as BackTopComponentToken } from '../back-top/style';
import type { ComponentToken as ButtonComponentToken } from '../../button/style'; import type { ComponentToken as ButtonComponentToken } from '../button/style';
import type { ComponentToken as CalendarComponentToken } from '../../calendar/style'; import type { ComponentToken as CalendarComponentToken } from '../calendar/style';
import type { ComponentToken as CarouselComponentToken } from '../../carousel/style'; import type { ComponentToken as CarouselComponentToken } from '../carousel/style';
import type { ComponentToken as CascaderComponentToken } from '../../cascader/style'; import type { ComponentToken as CascaderComponentToken } from '../cascader/style';
import type { ComponentToken as CheckboxComponentToken } from '../../checkbox/style'; import type { ComponentToken as CheckboxComponentToken } from '../checkbox/style';
import type { ComponentToken as DatePickerComponentToken } from '../../date-picker/style'; import type { ComponentToken as DatePickerComponentToken } from '../date-picker/style';
import type { ComponentToken as DividerComponentToken } from '../../divider/style'; import type { ComponentToken as DividerComponentToken } from '../divider/style';
import type { ComponentToken as DropdownComponentToken } from '../../dropdown/style'; import type { ComponentToken as DropdownComponentToken } from '../dropdown/style';
import type { ComponentToken as EmptyComponentToken } from '../../empty/style'; import type { ComponentToken as EmptyComponentToken } from '../empty/style';
import type { ComponentToken as ImageComponentToken } from '../../image/style'; import type { ComponentToken as ImageComponentToken } from '../image/style';
import type { ComponentToken as InputNumberComponentToken } from '../../input-number/style'; import type { ComponentToken as InputNumberComponentToken } from '../input-number/style';
import type { ComponentToken as LayoutComponentToken } from '../../layout/style'; import type { ComponentToken as LayoutComponentToken } from '../layout/style';
import type { ComponentToken as ListComponentToken } from '../../list/style'; import type { ComponentToken as ListComponentToken } from '../list/style';
import type { ComponentToken as MentionsComponentToken } from '../../mentions/style'; import type { ComponentToken as MentionsComponentToken } from '../mentions/style';
import type { ComponentToken as MenuComponentToken } from '../../menu/style'; import type { ComponentToken as MenuComponentToken } from '../menu/style';
import type { ComponentToken as MessageComponentToken } from '../../message/style'; import type { ComponentToken as MessageComponentToken } from '../message/style';
import type { ComponentToken as ModalComponentToken } from '../../modal/style'; import type { ComponentToken as ModalComponentToken } from '../modal/style';
import type { ComponentToken as NotificationComponentToken } from '../../notification/style'; import type { ComponentToken as NotificationComponentToken } from '../notification/style';
import type { ComponentToken as PopconfirmComponentToken } from '../../popconfirm/style'; import type { ComponentToken as PopconfirmComponentToken } from '../popconfirm/style';
import type { ComponentToken as PopoverComponentToken } from '../../popover/style'; import type { ComponentToken as PopoverComponentToken } from '../popover/style';
import type { ComponentToken as ProgressComponentToken } from '../../progress/style'; import type { ComponentToken as ProgressComponentToken } from '../progress/style';
import type { ComponentToken as RadioComponentToken } from '../../radio/style'; import type { ComponentToken as RadioComponentToken } from '../radio/style';
import type { ComponentToken as RateComponentToken } from '../../rate/style'; import type { ComponentToken as RateComponentToken } from '../rate/style';
import type { ComponentToken as ResultComponentToken } from '../../result/style'; import type { ComponentToken as ResultComponentToken } from '../result/style';
import type { ComponentToken as SegmentedComponentToken } from '../../segmented/style'; import type { ComponentToken as SegmentedComponentToken } from '../segmented/style';
import type { ComponentToken as SelectComponentToken } from '../../select/style'; import type { ComponentToken as SelectComponentToken } from '../select/style';
import type { ComponentToken as SkeletonComponentToken } from '../../skeleton/style'; import type { ComponentToken as SkeletonComponentToken } from '../skeleton/style';
import type { ComponentToken as SliderComponentToken } from '../../slider/style'; import type { ComponentToken as SliderComponentToken } from '../slider/style';
import type { ComponentToken as SpaceComponentToken } from '../../space/style'; import type { ComponentToken as SpaceComponentToken } from '../space/style';
import type { ComponentToken as SpinComponentToken } from '../../spin/style'; import type { ComponentToken as SpinComponentToken } from '../spin/style';
import type { ComponentToken as StepsComponentToken } from '../../steps/style'; import type { ComponentToken as StepsComponentToken } from '../steps/style';
import type { ComponentToken as TableComponentToken } from '../../table/style'; import type { ComponentToken as TableComponentToken } from '../table/style';
import type { ComponentToken as TabsComponentToken } from '../../tabs/style'; import type { ComponentToken as TabsComponentToken } from '../tabs/style';
import type { ComponentToken as TimelineComponentToken } from '../../timeline/style'; import type { ComponentToken as TimelineComponentToken } from '../timeline/style';
import type { ComponentToken as TooltipComponentToken } from '../../tooltip/style'; import type { ComponentToken as TooltipComponentToken } from '../tooltip/style';
import type { ComponentToken as TransferComponentToken } from '../../transfer/style'; import type { ComponentToken as TransferComponentToken } from '../transfer/style';
import type { ComponentToken as TypographyComponentToken } from '../../typography/style'; import type { ComponentToken as TypographyComponentToken } from '../typography/style';
import type { ComponentToken as UploadComponentToken } from '../../upload/style'; import type { ComponentToken as UploadComponentToken } from '../upload/style';
import type { DeepPartial } from '../type'; import type { DeepPartial } from '../_util/type';
import type { BgPalettes, TextAlphaPalettes } from './themes/IPalettes'; import type { BgPalettes, TextAlphaPalettes } from './themes/IPalettes';
export const PresetColors = [ export const PresetColors = [

Some files were not shown because too many files have changed in this diff Show More