Skip to content

Commit

Permalink
Add TRANSITION_SIGN and ANIMATION_SIGN constants
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Apr 8, 2024
1 parent 1649d02 commit 0c5fe99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/css/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export const VALUE_DELIMITERS = {
'{': '}'
}
export const BASE_UNIT_REGEX = /^([+-]?(?:\d+(?:\.?\d+)?|\.\d+))x$/m // 1x, 1.1x, -1x, -.1x
export const PROP_PREFIX_SYMBOLS = ['@', '~']
export const TRANSITION_SIGN = '~'
export const ANIMATION_SIGN = '@'
export const SELECTOR_SIGNS = [':', '_', '>', '+', '~']
export const SEPARATOR_SIGNS = [',', '|']
export const DELIMITER_SIGN = '|'
Expand Down
2 changes: 1 addition & 1 deletion packages/css/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export type VariableValue = number | string | Array<number | string>
export type VariableDefinition = { [key in '' | `@${string}` | string]?: VariableValue | VariableDefinition } | VariableValue
export type CSSKeyframes = { [key in 'from' | 'to' | string]: PropertiesHyphen }
export type AnimationDefinitions = { [key: string]: CSSKeyframes }
export type SelectorDefinitions = { [key: string]: string | string[] | SelectorDefinitions }
export type SelectorDefinitions = { [key: string]: string | string[] }
export type MediaQueryDefinitions = { [key: string]: number | string | MediaQueryDefinitions }
export type StyleDefinitions = { [key: string]: string | StyleDefinitions }
export type RuleDefinitions = { [key in keyof typeof rules | string]?: RuleDefinition }
Expand Down

0 comments on commit 0c5fe99

Please sign in to comment.