Browse Source

chore: move path (#36243)

* chore: base move

* chore: all path

* chore: fix script
pull/36247/head
二货机器人 2 years ago
committed by GitHub
parent
commit
de2992f96f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/affix/style/index.tsx
  2. 4
      components/alert/style/index.tsx
  3. 4
      components/anchor/style/index.tsx
  4. 4
      components/avatar/style/index.tsx
  5. 4
      components/back-top/style/index.tsx
  6. 4
      components/badge/style/index.tsx
  7. 4
      components/breadcrumb/style/index.tsx
  8. 2
      components/button/button-group.tsx
  9. 2
      components/button/style/group.tsx
  10. 4
      components/button/style/index.tsx
  11. 4
      components/calendar/style/index.tsx
  12. 4
      components/card/style/index.tsx
  13. 4
      components/carousel/style/index.tsx
  14. 4
      components/cascader/style/index.tsx
  15. 4
      components/checkbox/style/index.tsx
  16. 4
      components/collapse/style/index.tsx
  17. 4
      components/config-provider/__tests__/theme.test.tsx
  18. 4
      components/config-provider/__tests__/token.test.tsx
  19. 2
      components/config-provider/context.tsx
  20. 2
      components/config-provider/hooks/useTheme.ts
  21. 6
      components/config-provider/index.tsx
  22. 8
      components/date-picker/style/index.tsx
  23. 4
      components/descriptions/style/index.tsx
  24. 4
      components/divider/style/index.tsx
  25. 4
      components/drawer/style/index.tsx
  26. 2
      components/dropdown/style/button.tsx
  27. 4
      components/dropdown/style/index.tsx
  28. 2
      components/dropdown/style/status.tsx
  29. 4
      components/empty/style/index.tsx
  30. 4
      components/form/style/index.tsx
  31. 4
      components/grid/style/index.tsx
  32. 4
      components/image/style/index.tsx
  33. 4
      components/input-number/style/index.tsx
  34. 6
      components/input/style/index.tsx
  35. 4
      components/layout/style/index.tsx
  36. 2
      components/layout/style/light.ts
  37. 4
      components/list/style/index.tsx
  38. 4
      components/mentions/style/index.tsx
  39. 2
      components/menu/style/horizontal.tsx
  40. 4
      components/menu/style/index.tsx
  41. 2
      components/menu/style/rtl.tsx
  42. 2
      components/menu/style/vertical.tsx
  43. 4
      components/message/style/index.tsx
  44. 6
      components/modal/style/index.tsx
  45. 4
      components/notification/style/index.tsx
  46. 2
      components/notification/style/placement.ts
  47. 4
      components/pagination/style/index.tsx
  48. 4
      components/popconfirm/style/index.tsx
  49. 4
      components/popover/style/index.tsx
  50. 4
      components/progress/style/index.tsx
  51. 4
      components/radio/style/index.tsx
  52. 4
      components/rate/style/index.tsx
  53. 4
      components/result/style/index.tsx
  54. 4
      components/segmented/style/index.tsx
  55. 4
      components/select/style/dropdown.tsx
  56. 4
      components/select/style/index.tsx
  57. 2
      components/select/style/multiple.tsx
  58. 2
      components/select/style/single.tsx
  59. 4
      components/skeleton/style/index.tsx
  60. 4
      components/slider/style/index.tsx
  61. 4
      components/space/style/index.tsx
  62. 4
      components/spin/style/index.tsx
  63. 4
      components/statistic/style/index.tsx
  64. 2
      components/steps/style/custom-icon.ts
  65. 4
      components/steps/style/index.tsx
  66. 2
      components/steps/style/label-placement.ts
  67. 2
      components/steps/style/nav.ts
  68. 2
      components/steps/style/progress-dot.ts
  69. 2
      components/steps/style/progress.ts
  70. 2
      components/steps/style/rtl.ts
  71. 2
      components/steps/style/small.ts
  72. 2
      components/steps/style/vertical.ts
  73. 4
      components/style/motion/fade.tsx
  74. 4
      components/style/motion/move.tsx
  75. 4
      components/style/motion/slide.tsx
  76. 4
      components/style/motion/zoom.tsx
  77. 4
      components/switch/style/index.tsx
  78. 2
      components/table/style/bordered.tsx
  79. 2
      components/table/style/ellipsis.tsx
  80. 2
      components/table/style/empty.tsx
  81. 4
      components/table/style/expand.tsx
  82. 4
      components/table/style/filter.tsx
  83. 2
      components/table/style/fixed.tsx
  84. 4
      components/table/style/index.tsx
  85. 2
      components/table/style/pagination.tsx
  86. 2
      components/table/style/radius.tsx
  87. 2
      components/table/style/rtl.tsx
  88. 2
      components/table/style/selection.tsx
  89. 2
      components/table/style/size.tsx
  90. 2
      components/table/style/sorter.tsx
  91. 2
      components/table/style/sticky.tsx
  92. 2
      components/table/style/summary.tsx
  93. 4
      components/tabs/style/index.tsx
  94. 4
      components/tag/style/index.tsx
  95. 4
      components/theme/index.tsx
  96. 86
      components/theme/interface.ts
  97. 0
      components/theme/themes/IPalettes.ts
  98. 0
      components/theme/themes/dark/colorAlgorithm.ts
  99. 0
      components/theme/themes/dark/index.ts
  100. 0
      components/theme/themes/dark/palettes.ts

4
components/affix/style/index.tsx

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

4
components/alert/style/index.tsx

@ -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 {}

4
components/anchor/style/index.tsx

@ -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 {}

4
components/avatar/style/index.tsx

@ -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 {}

4
components/back-top/style/index.tsx

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

4
components/badge/style/index.tsx

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

4
components/breadcrumb/style/index.tsx

@ -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
components/button/button-group.tsx

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

2
components/button/style/group.tsx

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

4
components/button/style/index.tsx

@ -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
components/calendar/style/index.tsx

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

4
components/card/style/index.tsx

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

4
components/carousel/style/index.tsx

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

4
components/cascader/style/index.tsx

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

4
components/checkbox/style/index.tsx

@ -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 {}

4
components/collapse/style/index.tsx

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

4
components/config-provider/__tests__/theme.test.tsx

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

4
components/config-provider/__tests__/token.test.tsx

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

2
components/config-provider/context.tsx

@ -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';

2
components/config-provider/hooks/useTheme.ts

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

6
components/config-provider/index.tsx

@ -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';

8
components/date-picker/style/index.tsx

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

4
components/descriptions/style/index.tsx

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

4
components/divider/style/index.tsx

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

4
components/drawer/style/index.tsx

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

2
components/dropdown/style/button.tsx

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

4
components/dropdown/style/index.tsx

@ -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';

2
components/dropdown/style/status.tsx

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

4
components/empty/style/index.tsx

@ -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 {}

4
components/form/style/index.tsx

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

4
components/grid/style/index.tsx

@ -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'> {}

4
components/image/style/index.tsx

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

4
components/input-number/style/index.tsx

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

6
components/input/style/index.tsx

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

4
components/layout/style/index.tsx

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

2
components/layout/style/light.ts

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

4
components/list/style/index.tsx

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

4
components/mentions/style/index.tsx

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

2
components/menu/style/horizontal.tsx

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

4
components/menu/style/index.tsx

@ -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';

2
components/menu/style/rtl.tsx

@ -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`]: {

2
components/menu/style/vertical.tsx

@ -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 } =

4
components/message/style/index.tsx

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

6
components/modal/style/index.tsx

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

4
components/notification/style/index.tsx

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

2
components/notification/style/placement.ts

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

4
components/pagination/style/index.tsx

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

4
components/popconfirm/style/index.tsx

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

4
components/popover/style/index.tsx

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

4
components/progress/style/index.tsx

@ -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 {}

4
components/radio/style/index.tsx

@ -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 {}

4
components/rate/style/index.tsx

@ -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 = {};

4
components/result/style/index.tsx

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

4
components/segmented/style/index.tsx

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

4
components/select/style/dropdown.tsx

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

4
components/select/style/index.tsx

@ -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';

2
components/select/style/multiple.tsx

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

2
components/select/style/single.tsx

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

4
components/skeleton/style/index.tsx

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

4
components/slider/style/index.tsx

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

4
components/space/style/index.tsx

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

4
components/spin/style/index.tsx

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

4
components/statistic/style/index.tsx

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

2
components/steps/style/custom-icon.ts

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

4
components/steps/style/index.tsx

@ -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';

2
components/steps/style/label-placement.ts

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

2
components/steps/style/nav.ts

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

2
components/steps/style/progress-dot.ts

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

2
components/steps/style/progress.ts

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

2
components/steps/style/rtl.ts

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

2
components/steps/style/small.ts

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

2
components/steps/style/vertical.ts

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

4
components/style/motion/fade.tsx

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

4
components/style/motion/move.tsx

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

4
components/style/motion/slide.tsx

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

4
components/style/motion/zoom.tsx

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

4
components/switch/style/index.tsx

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

2
components/table/style/bordered.tsx

@ -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 => {

2
components/table/style/ellipsis.tsx

@ -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 => {

2
components/table/style/empty.tsx

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

4
components/table/style/expand.tsx

@ -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 => {

4
components/table/style/filter.tsx

@ -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 => {

2
components/table/style/fixed.tsx

@ -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 => {

4
components/table/style/index.tsx

@ -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';

2
components/table/style/pagination.tsx

@ -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 => {

2
components/table/style/radius.tsx

@ -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 => {

2
components/table/style/rtl.tsx

@ -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 => {

2
components/table/style/selection.tsx

@ -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 => {

2
components/table/style/size.tsx

@ -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 => {

2
components/table/style/sorter.tsx

@ -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 => {

2
components/table/style/sticky.tsx

@ -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 => {

2
components/table/style/summary.tsx

@ -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 => {

4
components/tabs/style/index.tsx

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

4
components/tag/style/index.tsx

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

4
components/_util/theme/index.tsx → components/theme/index.tsx

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

86
components/_util/theme/interface.ts → components/theme/interface.ts

@ -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 = [

0
components/_util/theme/themes/IPalettes.ts → components/theme/themes/IPalettes.ts

0
components/_util/theme/themes/dark/colorAlgorithm.ts → components/theme/themes/dark/colorAlgorithm.ts

0
components/_util/theme/themes/dark/index.ts → components/theme/themes/dark/index.ts

0
components/_util/theme/themes/dark/palettes.ts → components/theme/themes/dark/palettes.ts

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

Loading…
Cancel
Save