@ant-design/cssinjs
Advanced tools
Comparing version 1.0.0 to 1.0.2
@@ -1,3 +0,3 @@ | ||
export declare type KeyType = string | number; | ||
declare type ValueType = [number, any]; | ||
export type KeyType = string | number; | ||
type ValueType = [number, any]; | ||
declare class Entity { | ||
@@ -4,0 +4,0 @@ /** @private Internal cache map. Do not access this directly */ |
@@ -8,6 +8,6 @@ import * as React from 'react'; | ||
declare const SKIP_CHECK = "_skip_check_"; | ||
export declare type CSSProperties = Omit<CSS.PropertiesFallback<number | string>, 'animationName'> & { | ||
export type CSSProperties = Omit<CSS.PropertiesFallback<number | string>, 'animationName'> & { | ||
animationName?: CSS.PropertiesFallback<number | string>['animationName'] | Keyframes; | ||
}; | ||
export declare type CSSPropertiesWithMultiValues = { | ||
export type CSSPropertiesWithMultiValues = { | ||
[K in keyof CSSProperties]: CSSProperties[K] | Extract<CSSProperties[K], string>[] | { | ||
@@ -18,9 +18,9 @@ [SKIP_CHECK]: boolean; | ||
}; | ||
export declare type CSSPseudos = { | ||
export type CSSPseudos = { | ||
[K in CSS.Pseudos]?: CSSObject; | ||
}; | ||
declare type ArrayCSSInterpolation = CSSInterpolation[]; | ||
export declare type InterpolationPrimitive = null | undefined | boolean | number | string | CSSObject; | ||
export declare type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation | Keyframes; | ||
export declare type CSSOthersObject = Record<string, CSSInterpolation>; | ||
type ArrayCSSInterpolation = CSSInterpolation[]; | ||
export type InterpolationPrimitive = null | undefined | boolean | number | string | CSSObject; | ||
export type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation | Keyframes; | ||
export type CSSOthersObject = Record<string, CSSInterpolation>; | ||
export interface CSSObject extends CSSPropertiesWithMultiValues, CSSPseudos, CSSOthersObject { | ||
@@ -27,0 +27,0 @@ } |
@@ -9,3 +9,3 @@ import * as React from 'react'; | ||
export declare function createCache(): CacheEntity; | ||
export declare type HashPriority = 'low' | 'high'; | ||
export type HashPriority = 'low' | 'high'; | ||
export interface StyleContextProps { | ||
@@ -26,3 +26,3 @@ autoClear?: boolean; | ||
declare const StyleContext: React.Context<StyleContextProps>; | ||
export declare type StyleProviderProps = Partial<StyleContextProps> & { | ||
export type StyleProviderProps = Partial<StyleContextProps> & { | ||
children?: React.ReactNode; | ||
@@ -29,0 +29,0 @@ }; |
import Theme from './Theme'; | ||
import type { DerivativeFunc, TokenType } from '@/theme/interface'; | ||
import type { DerivativeFunc, TokenType } from './interface'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Same as new Theme, but will always return same one if `derivative` not changed. |
@@ -1,2 +0,2 @@ | ||
export declare type TokenType = object; | ||
export declare type DerivativeFunc<DesignToken extends TokenType, DerivativeToken extends TokenType> = (designToken: DesignToken, derivativeToken?: DerivativeToken) => DerivativeToken; | ||
export type TokenType = object; | ||
export type DerivativeFunc<DesignToken extends TokenType, DerivativeToken extends TokenType> = (designToken: DesignToken, derivativeToken?: DerivativeToken) => DerivativeToken; |
import type Theme from './Theme'; | ||
import type { DerivativeFunc } from './interface'; | ||
declare type DerivativeOptions = DerivativeFunc<any, any>[]; | ||
type DerivativeOptions = DerivativeFunc<any, any>[]; | ||
export declare function sameDerivativeOption(left: DerivativeOptions, right: DerivativeOptions): boolean; | ||
@@ -5,0 +5,0 @@ export default class ThemeCache { |
@@ -1,3 +0,3 @@ | ||
export declare type KeyType = string | number; | ||
declare type ValueType = [number, any]; | ||
export type KeyType = string | number; | ||
type ValueType = [number, any]; | ||
declare class Entity { | ||
@@ -4,0 +4,0 @@ /** @private Internal cache map. Do not access this directly */ |
@@ -8,6 +8,6 @@ import * as React from 'react'; | ||
declare const SKIP_CHECK = "_skip_check_"; | ||
export declare type CSSProperties = Omit<CSS.PropertiesFallback<number | string>, 'animationName'> & { | ||
export type CSSProperties = Omit<CSS.PropertiesFallback<number | string>, 'animationName'> & { | ||
animationName?: CSS.PropertiesFallback<number | string>['animationName'] | Keyframes; | ||
}; | ||
export declare type CSSPropertiesWithMultiValues = { | ||
export type CSSPropertiesWithMultiValues = { | ||
[K in keyof CSSProperties]: CSSProperties[K] | Extract<CSSProperties[K], string>[] | { | ||
@@ -18,9 +18,9 @@ [SKIP_CHECK]: boolean; | ||
}; | ||
export declare type CSSPseudos = { | ||
export type CSSPseudos = { | ||
[K in CSS.Pseudos]?: CSSObject; | ||
}; | ||
declare type ArrayCSSInterpolation = CSSInterpolation[]; | ||
export declare type InterpolationPrimitive = null | undefined | boolean | number | string | CSSObject; | ||
export declare type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation | Keyframes; | ||
export declare type CSSOthersObject = Record<string, CSSInterpolation>; | ||
type ArrayCSSInterpolation = CSSInterpolation[]; | ||
export type InterpolationPrimitive = null | undefined | boolean | number | string | CSSObject; | ||
export type CSSInterpolation = InterpolationPrimitive | ArrayCSSInterpolation | Keyframes; | ||
export type CSSOthersObject = Record<string, CSSInterpolation>; | ||
export interface CSSObject extends CSSPropertiesWithMultiValues, CSSPseudos, CSSOthersObject { | ||
@@ -27,0 +27,0 @@ } |
@@ -9,3 +9,3 @@ import * as React from 'react'; | ||
export declare function createCache(): CacheEntity; | ||
export declare type HashPriority = 'low' | 'high'; | ||
export type HashPriority = 'low' | 'high'; | ||
export interface StyleContextProps { | ||
@@ -26,3 +26,3 @@ autoClear?: boolean; | ||
declare const StyleContext: React.Context<StyleContextProps>; | ||
export declare type StyleProviderProps = Partial<StyleContextProps> & { | ||
export type StyleProviderProps = Partial<StyleContextProps> & { | ||
children?: React.ReactNode; | ||
@@ -29,0 +29,0 @@ }; |
import Theme from './Theme'; | ||
import type { DerivativeFunc, TokenType } from '@/theme/interface'; | ||
import type { DerivativeFunc, TokenType } from './interface'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Same as new Theme, but will always return same one if `derivative` not changed. |
@@ -1,2 +0,2 @@ | ||
export declare type TokenType = object; | ||
export declare type DerivativeFunc<DesignToken extends TokenType, DerivativeToken extends TokenType> = (designToken: DesignToken, derivativeToken?: DerivativeToken) => DerivativeToken; | ||
export type TokenType = object; | ||
export type DerivativeFunc<DesignToken extends TokenType, DerivativeToken extends TokenType> = (designToken: DesignToken, derivativeToken?: DerivativeToken) => DerivativeToken; |
import type Theme from './Theme'; | ||
import type { DerivativeFunc } from './interface'; | ||
declare type DerivativeOptions = DerivativeFunc<any, any>[]; | ||
type DerivativeOptions = DerivativeFunc<any, any>[]; | ||
export declare function sameDerivativeOption(left: DerivativeOptions, right: DerivativeOptions): boolean; | ||
@@ -5,0 +5,0 @@ export default class ThemeCache { |
{ | ||
"name": "@ant-design/cssinjs", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Component level cssinjs resolution for antd", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
109583