@equinor/eds-tokens
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -8,2 +8,8 @@ # Changelog | ||
## [0.5.8] - 2021-05-06 | ||
### Changed | ||
- Updates to internal types for tokens | ||
## [0.5.7] - 2021-03-19 | ||
@@ -10,0 +16,0 @@ |
@@ -13,4 +13,4 @@ export declare type Border = { | ||
right?: Omit<Border, 'type'>; | ||
bottom?: Omit<Border, 'radius'>; | ||
bottom?: Omit<Border, 'radius | type'>; | ||
}; | ||
export declare type Borders = Border | Bordergroup; |
export declare type Clickbound = { | ||
height: string; | ||
width: string; | ||
offset: { | ||
top: string; | ||
left: string; | ||
width?: string; | ||
offset?: { | ||
top?: string; | ||
left?: string; | ||
}; | ||
}; |
import { Spacing, Borders, Typography, Outline, Clickbound, Pressed } from './index'; | ||
export declare type ComponentToken = { | ||
maxHeight?: string; | ||
minHeight?: string; | ||
height?: string; | ||
maxWidth?: string; | ||
minWidth?: string; | ||
width?: string; | ||
boxShadow?: string; | ||
background?: string; | ||
@@ -11,9 +16,11 @@ spacings?: Spacing; | ||
states?: { | ||
active?: ComponentState; | ||
disabled?: ComponentState; | ||
focus?: ComponentState & { | ||
active?: ComponentToken & { | ||
outline?: Outline; | ||
}; | ||
hover?: ComponentState; | ||
pressed?: ComponentState & { | ||
disabled?: ComponentToken; | ||
focus?: ComponentToken & { | ||
outline?: Outline; | ||
}; | ||
hover?: ComponentToken; | ||
pressed?: ComponentToken & { | ||
pressed?: Pressed; | ||
@@ -23,4 +30,5 @@ }; | ||
entities?: Record<string, ComponentToken>; | ||
modes?: { | ||
compact?: ComponentToken; | ||
}; | ||
}; | ||
declare type ComponentState = Partial<Omit<ComponentToken, 'states'>>; | ||
export {}; |
{ | ||
"name": "@equinor/eds-tokens", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Design tokens for the Equinor Design System", | ||
@@ -5,0 +5,0 @@ "main": "dist/tokens.cjs.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
151591
24
4510
0