-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7386e9
commit 65bb410
Showing
4 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/system/src/border.js → packages/system/src/border/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
import { borders, colors, radii } from '@gympass/yoga-tokens'; | ||
|
||
type BorderValues = typeof borders | number | string; | ||
type BorderColorsValues = typeof colors | string; | ||
type BorderRadiusValues = typeof radii | number | string; | ||
|
||
type Border = { | ||
border?: BorderValues; | ||
b?: BorderValues; | ||
}; | ||
|
||
type BorderTop = { | ||
borderTop?: BorderValues; | ||
bt?: BorderValues; | ||
}; | ||
|
||
type BorderRight = { | ||
borderRight?: BorderValues; | ||
br?: BorderValues; | ||
}; | ||
|
||
type BorderBottom = { | ||
borderBottom?: BorderValues; | ||
bb?: BorderValues; | ||
}; | ||
|
||
type BorderLeft = { | ||
borderLeft?: BorderValues; | ||
bl?: BorderValues; | ||
}; | ||
|
||
type BorderColor = { | ||
borderColor?: BorderColorsValues; | ||
bc?: BorderColorsValues; | ||
}; | ||
|
||
type BorderTopColor = { | ||
borderTopColor?: BorderColorsValues; | ||
btc?: BorderColorsValues; | ||
}; | ||
|
||
type BorderRightColor = { | ||
borderRightColor?: BorderColorsValues; | ||
brc?: BorderColorsValues; | ||
}; | ||
|
||
type BorderBottomColor = { | ||
borderBottomColor?: BorderColorsValues; | ||
bbc?: BorderColorsValues; | ||
}; | ||
|
||
type BorderLeftColor = { | ||
borderLeftColor?: BorderColorsValues; | ||
blc?: BorderColorsValues; | ||
}; | ||
|
||
type BorderWidth = { | ||
borderWidth?: BorderValues; | ||
bw?: BorderValues; | ||
}; | ||
|
||
type BorderTopWidth = { | ||
borderTopWidth?: BorderValues; | ||
btw?: BorderValues; | ||
}; | ||
|
||
type BorderRightWidth = { | ||
borderRightWidth?: BorderValues; | ||
brw?: BorderValues; | ||
}; | ||
|
||
type BorderBottomWidth = { | ||
borderBottomWidth?: BorderValues; | ||
bbw?: BorderValues; | ||
}; | ||
|
||
type BorderLeftWidth = { | ||
borderLeftWidth?: BorderValues; | ||
blw?: BorderValues; | ||
}; | ||
|
||
type BorderRadius = { | ||
borderRadius?: BorderRadiusValues; | ||
bRadius?: BorderRadiusValues; | ||
}; | ||
|
||
type BorderTopLeftRadius = { | ||
borderTopLeftRadius?: BorderRadiusValues; | ||
btlr?: BorderRadiusValues; | ||
}; | ||
|
||
type BorderTopRightRadius = { | ||
borderTopRightRadius?: BorderRadiusValues; | ||
btrr?: BorderRadiusValues; | ||
}; | ||
|
||
type BorderBottomLeftRadius = { | ||
borderBottomLeftRadius?: BorderRadiusValues; | ||
bblr?: BorderRadiusValues; | ||
}; | ||
|
||
type BorderBottomRightRadius = { | ||
borderBottomRightRadius?: BorderRadiusValues; | ||
bbrr?: BorderRadiusValues; | ||
}; | ||
|
||
export type Borders = { | ||
borderStyle?: string; | ||
} & Border & | ||
BorderTop & | ||
BorderRight & | ||
BorderBottom & | ||
BorderLeft & | ||
BorderColor & | ||
BorderTopColor & | ||
BorderRightColor & | ||
BorderBottomColor & | ||
BorderLeftColor & | ||
BorderWidth & | ||
BorderTopWidth & | ||
BorderRightWidth & | ||
BorderBottomWidth & | ||
BorderLeftWidth & | ||
BorderRadius & | ||
BorderTopLeftRadius & | ||
BorderTopRightRadius & | ||
BorderBottomLeftRadius & | ||
BorderBottomRightRadius; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters