mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
chore: move path (#36243)
* chore: base move * chore: all path * chore: fix script
This commit is contained in:
parent
8f5e0d12ed
commit
de2992f96f
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
interface AffixToken extends FullToken<'Affix'> {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle, PresetColorType } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle, PresetColorType } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../theme';
|
||||
|
||||
interface BadgeToken extends FullToken<'Badge'> {
|
||||
badgeFontHeight: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface BreadcrumbToken extends FullToken<'Breadcrumb'> {
|
||||
breadcrumbBaseColor: string;
|
||||
|
@ -2,7 +2,7 @@ import classNames from 'classnames';
|
||||
import * as React from 'react';
|
||||
import { ConfigContext } from '../config-provider';
|
||||
import type { SizeType } from '../config-provider/SizeContext';
|
||||
import { useToken } from '../_util/theme';
|
||||
import { useToken } from '../theme';
|
||||
import warning from '../_util/warning';
|
||||
|
||||
export interface ButtonGroupProps {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { ButtonToken } from '.';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genButtonBorderStyle = (buttonTypeCls: string, borderColor: string) => ({
|
||||
// Border
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
import genGroupStyle from './group';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
|
@ -4,8 +4,8 @@ import type { PickerPanelToken } from '../../date-picker/style';
|
||||
import { genPanelStyle, initPickerPanelToken } from '../../date-picker/style';
|
||||
import type { InputToken } from '../../input/style';
|
||||
import { initInputToken } from '../../input/style';
|
||||
import type { FullToken } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
yearControlWidth: number;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface CardToken extends FullToken<'Card'> {
|
||||
cardShadow: string;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// deps-lint-skip-all
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
dotWidth: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import { getStyle as getCheckboxStyle } from '../../checkbox/style';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
controlWidth: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
// deps-lint-skip-all
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { resetComponent, genComponentStyleHook, mergeToken, resetIcon } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../theme';
|
||||
|
||||
type CollapseToken = FullToken<'Collapse'> & {
|
||||
collapseContentBg: string;
|
||||
|
@ -3,8 +3,8 @@ import canUseDom from 'rc-util/lib/Dom/canUseDom';
|
||||
import React from 'react';
|
||||
import ConfigProvider from '..';
|
||||
import { render } from '../../../tests/utils';
|
||||
import { useToken } from '../../_util/theme';
|
||||
import darkDerivative from '../../_util/theme/themes/dark';
|
||||
import { useToken } from '../../theme';
|
||||
import darkDerivative from '../../theme/themes/dark';
|
||||
import { resetWarned } from '../../_util/warning';
|
||||
|
||||
let mockCanUseDom = true;
|
||||
|
@ -2,8 +2,8 @@ import classNames from 'classnames';
|
||||
import React from 'react';
|
||||
import ConfigProvider from '..';
|
||||
import { render } from '../../../tests/utils';
|
||||
import type { AliasToken } from '../../_util/theme';
|
||||
import type { UseCustomStyle, UseToken } from '../../_util/theme/util/useStyle';
|
||||
import type { AliasToken } from '../../theme';
|
||||
import type { UseCustomStyle, UseToken } from '../../theme/util/useStyle';
|
||||
|
||||
const { useCustomToken, useStyle, useCustomStyle } = ConfigProvider;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as React from 'react';
|
||||
import type { RequiredMark } from '../form/Form';
|
||||
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 { SizeType } from './SizeContext';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import useMemo from 'rc-util/lib/hooks/useMemo';
|
||||
import shallowEqual from 'shallowequal';
|
||||
import type { OverrideToken } from '../../_util/theme/interface';
|
||||
import type { OverrideToken } from '../../theme/interface';
|
||||
import type { ThemeConfig } from '../context';
|
||||
|
||||
export default function useTheme(
|
||||
|
@ -8,9 +8,9 @@ import type { Locale } from '../locale-provider';
|
||||
import LocaleProvider, { ANT_MARK } from '../locale-provider';
|
||||
import LocaleReceiver from '../locale-provider/LocaleReceiver';
|
||||
import defaultLocale from '../locale/default';
|
||||
import { DesignTokenContext, useCustomToken, useToken } from '../_util/theme';
|
||||
import defaultSeedToken from '../_util/theme/themes/seed';
|
||||
import { useCustomStyle, useStyle } from '../_util/theme/util/useStyle';
|
||||
import { DesignTokenContext, useCustomToken, useToken } from '../theme';
|
||||
import defaultSeedToken from '../theme/themes/seed';
|
||||
import { useCustomStyle, useStyle } from '../theme/util/useStyle';
|
||||
import type { ConfigConsumerProps, CSPConfig, DirectionType, Theme, ThemeConfig } from './context';
|
||||
import { ConfigConsumer, ConfigContext, defaultIconPrefixCls } from './context';
|
||||
import { registerTheme } from './cssVariables';
|
||||
|
@ -9,10 +9,10 @@ import {
|
||||
initInputToken,
|
||||
} from '../../input/style';
|
||||
import { slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../_util/theme';
|
||||
import type { GlobalToken } from '../../_util/theme/interface';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../theme';
|
||||
import type { GlobalToken } from '../../theme/interface';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface DescriptionsToken extends FullToken<'Descriptions'> {
|
||||
descriptionsTitleMarginBottom: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
export interface DrawerToken extends FullToken<'Drawer'> {
|
||||
drawerFooterPaddingVertical: number;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { DropdownToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genButtonStyle: GenerateStyle<DropdownToken> = token => {
|
||||
const { componentCls, antCls, paddingXS, opacityLoading } = token;
|
||||
|
@ -7,8 +7,8 @@ import {
|
||||
slideUpIn,
|
||||
slideUpOut,
|
||||
} from '../../style/motion';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, roundedArrow } from '../../theme';
|
||||
import genButtonStyle from './button';
|
||||
import genStatusStyle from './status';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { DropdownToken } from '.';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStatusStyle: GenerateStyle<DropdownToken> = token => {
|
||||
const { componentCls, menuCls, colorError, colorTextLightSolid } = token;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {}
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { zoomIn } from '../../style/motion';
|
||||
import type { AliasToken, FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { AliasToken, FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface FormToken extends FullToken<'Form'> {
|
||||
formItemCls: string;
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
interface GridRowToken extends FullToken<'Grid'> {}
|
||||
|
||||
|
@ -3,8 +3,8 @@ import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import { genModalMaskStyle } from '../../modal/style';
|
||||
import { initZoomMotion } from '../../style/motion';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -10,8 +10,8 @@ import {
|
||||
genStatusStyle,
|
||||
initInputToken,
|
||||
} from '../../input/style';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, resetComponent, resetIcon } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, resetComponent, resetIcon } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
controlWidth: number;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { GlobalToken } from '../../_util/theme/interface';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
import type { GlobalToken } from '../../theme/interface';
|
||||
|
||||
export type InputToken<T extends GlobalToken = FullToken<'Input'>> = T & {
|
||||
inputAffixPadding: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
import genLayoutLightStyle from './light';
|
||||
|
||||
export interface ComponentToken {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { LayoutToken } from '.';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genLayoutLightStyle: GenerateStyle<LayoutToken, CSSObject> = token => {
|
||||
const { componentCls, colorBgComponent, colorBgBody, colorText } = token;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
contentWidth: number;
|
||||
|
@ -8,8 +8,8 @@ import {
|
||||
genStatusStyle,
|
||||
initInputToken,
|
||||
} from '../../input/style';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { MenuThemeToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const getHorizontalStyle: GenerateStyle<MenuThemeToken> = token => {
|
||||
const {
|
||||
|
@ -1,13 +1,13 @@
|
||||
// deps-lint-skip-all
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle, UseComponentStyleResult } from '../../theme';
|
||||
import {
|
||||
clearFix,
|
||||
genComponentStyleHook,
|
||||
mergeToken,
|
||||
resetComponent,
|
||||
resetIcon,
|
||||
} from '../../_util/theme';
|
||||
} from '../../theme';
|
||||
import getHorizontalStyle from './horizontal';
|
||||
import getRTLStyle from './rtl';
|
||||
import getThemeStyle from './theme';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { MenuToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const getRTLStyle: GenerateStyle<MenuToken> = ({ componentCls, menuArrowOffset }) => ({
|
||||
[`${componentCls}-rtl`]: {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { MenuThemeToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const getVerticalInlineStyle: GenerateStyle<MenuThemeToken, CSSObject> = token => {
|
||||
const { componentCls, menuItemHeight, marginXS, padding, marginXXS, menuArrowSize, fontSize } =
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
|
@ -1,9 +1,9 @@
|
||||
// deps-lint-skip-all
|
||||
import type React from 'react';
|
||||
import { initFadeMotion, initZoomMotion } from '../../style/motion';
|
||||
import type { AliasToken, FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { AliasToken, FullToken, GenerateStyle } from '../../theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
import genNotificationPlacementStyle from './placement';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { NotificationToken } from '.';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genNotificationPlacementStyle: GenerateStyle<NotificationToken, CSSObject> = token => {
|
||||
const { componentCls, width, notificationMarginEdge } = token;
|
||||
|
@ -6,8 +6,8 @@ import {
|
||||
initInputToken,
|
||||
type InputToken,
|
||||
} from '../../input/style';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface PaginationToken extends InputToken<FullToken<'Pagination'>> {
|
||||
paginationItemSize: number;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// deps-lint-skip-all
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,13 +1,13 @@
|
||||
// deps-lint-skip-all
|
||||
import { initZoomMotion } from '../../style/motion';
|
||||
import type { FullToken, GenerateStyle, PresetColorType } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle, PresetColorType } from '../../theme';
|
||||
import {
|
||||
genComponentStyleHook,
|
||||
getArrowStyle,
|
||||
mergeToken,
|
||||
PresetColors,
|
||||
resetComponent,
|
||||
} from '../../_util/theme';
|
||||
} from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
// ============================== Tokens ==============================
|
||||
export interface ComponentToken {}
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export type ComponentToken = {};
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
imageWidth: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
// FIXME: need to be removed
|
||||
|
@ -8,8 +8,8 @@ import {
|
||||
slideUpIn,
|
||||
slideUpOut,
|
||||
} from '../../style/motion';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import { resetComponent } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import { resetComponent } from '../../theme';
|
||||
|
||||
const genItemStyle: GenerateStyle<SelectToken, CSSObject> = token => {
|
||||
const { controlPaddingHorizontal } = token;
|
||||
|
@ -6,8 +6,8 @@ import '../../empty/style';
|
||||
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent, resetIcon } from '../../theme';
|
||||
import genDropdownStyle from './dropdown';
|
||||
import genMultipleStyle from './multiple';
|
||||
import genSingleStyle from './single';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
|
||||
import type { SelectToken } from '.';
|
||||
import { mergeToken, resetIcon } from '../../_util/theme';
|
||||
import { mergeToken, resetIcon } from '../../theme';
|
||||
|
||||
const FIXED_ITEM_MARGIN = 2;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSInterpolation, CSSObject } from '@ant-design/cssinjs';
|
||||
import type { SelectToken } from '.';
|
||||
import { mergeToken } from '../../_util/theme';
|
||||
import { mergeToken } from '../../theme';
|
||||
|
||||
function genSizeStyle(token: SelectToken, suffix?: string): CSSObject {
|
||||
const { componentCls, inputPaddingHorizontalBase } = token;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken } from '../../theme';
|
||||
|
||||
export type ComponentToken = {
|
||||
color: string;
|
||||
|
@ -2,8 +2,8 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import type * as React from 'react';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
// Direction naming standard:
|
||||
// Horizontal base:
|
||||
|
@ -1,6 +1,6 @@
|
||||
// deps-lint-skip-all
|
||||
import { genComponentStyleHook } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook } from '../../theme';
|
||||
|
||||
/** Component only token. Which will handle additional calculation of alias token */
|
||||
export interface ComponentToken {
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
contentHeight: number;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle, FullToken } from '../../_util/theme';
|
||||
import { resetComponent, genComponentStyleHook, mergeToken } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface StatisticToken extends FullToken<'Statistic'> {
|
||||
statisticTitleFontSize: number;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsCustomIconStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
import genStepsCustomIconStyle from './custom-icon';
|
||||
import genStepsLabelPlacementStyle from './label-placement';
|
||||
import genStepsNavStyle from './nav';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const { componentCls, stepsIconSize, lineHeight, stepsSmallIconSize } = token;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsNavStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsProgressDotStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsProgressStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const { antCls, componentCls } = token;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsRTLStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const { componentCls } = token;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsSmallStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { StepsToken } from '.';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
|
||||
const genStepsVerticalStyle: GenerateStyle<StepsToken, CSSObject> = token => {
|
||||
const { componentCls, stepsSmallIconSize, stepsIconSize } = token;
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { AliasToken } from '../../_util/theme';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { AliasToken } from '../../theme';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
import { initMotion } from './motion';
|
||||
|
||||
export const fadeIn = new Keyframes('antFadeIn', {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { AliasToken } from '../../_util/theme';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { AliasToken } from '../../theme';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
import { initMotion } from './motion';
|
||||
|
||||
export const moveDownIn = new Keyframes('antMoveDownIn', {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { AliasToken } from '../../_util/theme';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { AliasToken } from '../../theme';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
import { initMotion } from './motion';
|
||||
|
||||
export const slideUpIn = new Keyframes('antSlideUpIn', {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import { Keyframes } from '@ant-design/cssinjs';
|
||||
import type { AliasToken } from '../../_util/theme';
|
||||
import type { TokenWithCommonCls } from '../../_util/theme/util/genComponentStyleHook';
|
||||
import type { AliasToken } from '../../theme';
|
||||
import type { TokenWithCommonCls } from '../../theme/util/genComponentStyleHook';
|
||||
import { initMotion } from './motion';
|
||||
|
||||
export const zoomIn = new Keyframes('antZoomIn', {
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
interface SwitchToken extends FullToken<'Switch'> {
|
||||
switchMinWidth: number;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genBorderedStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genEllipsisStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
// ========================= Placeholder ==========================
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import { operationUnit } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import { operationUnit } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genExpandStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import { resetComponent } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import { resetComponent } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genFilterStyle: GenerateStyle<TableToken, CSSInterpolation> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genFixedStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import { TinyColor } from '@ctrl/tinycolor';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { clearFix, genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
import genBorderedStyle from './bordered';
|
||||
import genEllipsisStyle from './ellipsis';
|
||||
import genEmptyStyle from './empty';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genPaginationStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genRadiusStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genSelectionStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genSizeStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genSorterStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genStickyStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { GenerateStyle } from '../../_util/theme';
|
||||
import type { GenerateStyle } from '../../theme';
|
||||
import type { TableToken } from './index';
|
||||
|
||||
const genSummaryStyle: GenerateStyle<TableToken, CSSObject> = token => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
// deps-lint-skip-all
|
||||
import type { CSSObject } from '@ant-design/cssinjs';
|
||||
import type { FullToken, GenerateStyle } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../_util/theme';
|
||||
import type { FullToken, GenerateStyle } from '../../theme';
|
||||
import { genComponentStyleHook, mergeToken, resetComponent } from '../../theme';
|
||||
|
||||
export interface ComponentToken {
|
||||
zIndexPopup: number;
|
||||
|
@ -1,8 +1,8 @@
|
||||
// deps-lint-skip-all
|
||||
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 type { FullToken, PresetColorType } from '../../_util/theme';
|
||||
import { genComponentStyleHook, mergeToken, PresetColors, resetComponent } from '../../_util/theme';
|
||||
|
||||
interface TagToken extends FullToken<'Tag'> {
|
||||
tagFontSize: number;
|
||||
|
@ -1,8 +1,8 @@
|
||||
import type { CSSInterpolation } from '@ant-design/cssinjs';
|
||||
import { Theme, useCacheToken, useStyleRegister } from '@ant-design/cssinjs';
|
||||
import React from 'react';
|
||||
import version from '../../version';
|
||||
import type { DeepPartial } from '../type';
|
||||
import version from '../version';
|
||||
import type { DeepPartial } from '../_util/type';
|
||||
import type {
|
||||
AliasToken,
|
||||
GlobalToken,
|
@ -1,47 +1,47 @@
|
||||
import type * as React from 'react';
|
||||
import type { ComponentToken as AlertComponentToken } from '../../alert/style';
|
||||
import type { ComponentToken as AnchorComponentToken } from '../../anchor/style';
|
||||
import type { ComponentToken as AvatarComponentToken } from '../../avatar/style';
|
||||
import type { ComponentToken as BackTopComponentToken } from '../../back-top/style';
|
||||
import type { ComponentToken as ButtonComponentToken } from '../../button/style';
|
||||
import type { ComponentToken as CalendarComponentToken } from '../../calendar/style';
|
||||
import type { ComponentToken as CarouselComponentToken } from '../../carousel/style';
|
||||
import type { ComponentToken as CascaderComponentToken } from '../../cascader/style';
|
||||
import type { ComponentToken as CheckboxComponentToken } from '../../checkbox/style';
|
||||
import type { ComponentToken as DatePickerComponentToken } from '../../date-picker/style';
|
||||
import type { ComponentToken as DividerComponentToken } from '../../divider/style';
|
||||
import type { ComponentToken as DropdownComponentToken } from '../../dropdown/style';
|
||||
import type { ComponentToken as EmptyComponentToken } from '../../empty/style';
|
||||
import type { ComponentToken as ImageComponentToken } from '../../image/style';
|
||||
import type { ComponentToken as InputNumberComponentToken } from '../../input-number/style';
|
||||
import type { ComponentToken as LayoutComponentToken } from '../../layout/style';
|
||||
import type { ComponentToken as ListComponentToken } from '../../list/style';
|
||||
import type { ComponentToken as MentionsComponentToken } from '../../mentions/style';
|
||||
import type { ComponentToken as MenuComponentToken } from '../../menu/style';
|
||||
import type { ComponentToken as MessageComponentToken } from '../../message/style';
|
||||
import type { ComponentToken as ModalComponentToken } from '../../modal/style';
|
||||
import type { ComponentToken as NotificationComponentToken } from '../../notification/style';
|
||||
import type { ComponentToken as PopconfirmComponentToken } from '../../popconfirm/style';
|
||||
import type { ComponentToken as PopoverComponentToken } from '../../popover/style';
|
||||
import type { ComponentToken as ProgressComponentToken } from '../../progress/style';
|
||||
import type { ComponentToken as RadioComponentToken } from '../../radio/style';
|
||||
import type { ComponentToken as RateComponentToken } from '../../rate/style';
|
||||
import type { ComponentToken as ResultComponentToken } from '../../result/style';
|
||||
import type { ComponentToken as SegmentedComponentToken } from '../../segmented/style';
|
||||
import type { ComponentToken as SelectComponentToken } from '../../select/style';
|
||||
import type { ComponentToken as SkeletonComponentToken } from '../../skeleton/style';
|
||||
import type { ComponentToken as SliderComponentToken } from '../../slider/style';
|
||||
import type { ComponentToken as SpaceComponentToken } from '../../space/style';
|
||||
import type { ComponentToken as SpinComponentToken } from '../../spin/style';
|
||||
import type { ComponentToken as StepsComponentToken } from '../../steps/style';
|
||||
import type { ComponentToken as TableComponentToken } from '../../table/style';
|
||||
import type { ComponentToken as TabsComponentToken } from '../../tabs/style';
|
||||
import type { ComponentToken as TimelineComponentToken } from '../../timeline/style';
|
||||
import type { ComponentToken as TooltipComponentToken } from '../../tooltip/style';
|
||||
import type { ComponentToken as TransferComponentToken } from '../../transfer/style';
|
||||
import type { ComponentToken as TypographyComponentToken } from '../../typography/style';
|
||||
import type { ComponentToken as UploadComponentToken } from '../../upload/style';
|
||||
import type { DeepPartial } from '../type';
|
||||
import type { ComponentToken as AlertComponentToken } from '../alert/style';
|
||||
import type { ComponentToken as AnchorComponentToken } from '../anchor/style';
|
||||
import type { ComponentToken as AvatarComponentToken } from '../avatar/style';
|
||||
import type { ComponentToken as BackTopComponentToken } from '../back-top/style';
|
||||
import type { ComponentToken as ButtonComponentToken } from '../button/style';
|
||||
import type { ComponentToken as CalendarComponentToken } from '../calendar/style';
|
||||
import type { ComponentToken as CarouselComponentToken } from '../carousel/style';
|
||||
import type { ComponentToken as CascaderComponentToken } from '../cascader/style';
|
||||
import type { ComponentToken as CheckboxComponentToken } from '../checkbox/style';
|
||||
import type { ComponentToken as DatePickerComponentToken } from '../date-picker/style';
|
||||
import type { ComponentToken as DividerComponentToken } from '../divider/style';
|
||||
import type { ComponentToken as DropdownComponentToken } from '../dropdown/style';
|
||||
import type { ComponentToken as EmptyComponentToken } from '../empty/style';
|
||||
import type { ComponentToken as ImageComponentToken } from '../image/style';
|
||||
import type { ComponentToken as InputNumberComponentToken } from '../input-number/style';
|
||||
import type { ComponentToken as LayoutComponentToken } from '../layout/style';
|
||||
import type { ComponentToken as ListComponentToken } from '../list/style';
|
||||
import type { ComponentToken as MentionsComponentToken } from '../mentions/style';
|
||||
import type { ComponentToken as MenuComponentToken } from '../menu/style';
|
||||
import type { ComponentToken as MessageComponentToken } from '../message/style';
|
||||
import type { ComponentToken as ModalComponentToken } from '../modal/style';
|
||||
import type { ComponentToken as NotificationComponentToken } from '../notification/style';
|
||||
import type { ComponentToken as PopconfirmComponentToken } from '../popconfirm/style';
|
||||
import type { ComponentToken as PopoverComponentToken } from '../popover/style';
|
||||
import type { ComponentToken as ProgressComponentToken } from '../progress/style';
|
||||
import type { ComponentToken as RadioComponentToken } from '../radio/style';
|
||||
import type { ComponentToken as RateComponentToken } from '../rate/style';
|
||||
import type { ComponentToken as ResultComponentToken } from '../result/style';
|
||||
import type { ComponentToken as SegmentedComponentToken } from '../segmented/style';
|
||||
import type { ComponentToken as SelectComponentToken } from '../select/style';
|
||||
import type { ComponentToken as SkeletonComponentToken } from '../skeleton/style';
|
||||
import type { ComponentToken as SliderComponentToken } from '../slider/style';
|
||||
import type { ComponentToken as SpaceComponentToken } from '../space/style';
|
||||
import type { ComponentToken as SpinComponentToken } from '../spin/style';
|
||||
import type { ComponentToken as StepsComponentToken } from '../steps/style';
|
||||
import type { ComponentToken as TableComponentToken } from '../table/style';
|
||||
import type { ComponentToken as TabsComponentToken } from '../tabs/style';
|
||||
import type { ComponentToken as TimelineComponentToken } from '../timeline/style';
|
||||
import type { ComponentToken as TooltipComponentToken } from '../tooltip/style';
|
||||
import type { ComponentToken as TransferComponentToken } from '../transfer/style';
|
||||
import type { ComponentToken as TypographyComponentToken } from '../typography/style';
|
||||
import type { ComponentToken as UploadComponentToken } from '../upload/style';
|
||||
import type { DeepPartial } from '../_util/type';
|
||||
import type { BgPalettes, TextAlphaPalettes } from './themes/IPalettes';
|
||||
|
||||
export const PresetColors = [
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user