@mezzanine-ui/core
Advanced tools
Comparing version 0.14.4 to 0.14.5
{ | ||
"name": "@mezzanine-ui/core", | ||
"version": "0.14.4", | ||
"version": "0.14.5", | ||
"description": "Core for mezzanine-ui", | ||
@@ -43,4 +43,4 @@ "author": "Mezzanine", | ||
"dependencies": { | ||
"@mezzanine-ui/icons": "^0.14.4", | ||
"@mezzanine-ui/system": "^0.14.4", | ||
"@mezzanine-ui/icons": "^0.14.5", | ||
"@mezzanine-ui/system": "^0.14.5", | ||
"lodash": "^4.17.21", | ||
@@ -47,0 +47,0 @@ "tslib": "^2.4.1" |
@@ -8,2 +8,3 @@ import { CssVarInterpolations } from '@mezzanine-ui/system/css'; | ||
export type TypographyDisplay = TypographyDisplayBase | `inline-${TypographyDisplayBase}`; | ||
export type TypographyWeight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; | ||
export interface TypographyCssVars { | ||
@@ -13,2 +14,3 @@ align?: TypographyAlign; | ||
display?: TypographyDisplay; | ||
weight?: TypographyWeight; | ||
} | ||
@@ -22,4 +24,5 @@ export declare const typographyClasses: { | ||
readonly noWrap: "mzn-typography--nowrap"; | ||
readonly weight: "mzn-typography--weight"; | ||
}; | ||
export declare function toTypographyCssVars(variables: TypographyCssVars): CssVarInterpolations; | ||
export {}; |
@@ -12,5 +12,6 @@ import { toCssVar } from '@mezzanine-ui/system/css'; | ||
noWrap: `${typographyPrefix}--nowrap`, | ||
weight: `${typographyPrefix}--weight`, | ||
}; | ||
function toTypographyCssVars(variables) { | ||
const { align, color, display, } = variables; | ||
const { align, color, display, weight, } = variables; | ||
return { | ||
@@ -22,2 +23,3 @@ [`--${typographyPrefix}-align`]: align, | ||
[`--${typographyPrefix}-display`]: display, | ||
[`--${typographyPrefix}-weight`]: weight, | ||
}; | ||
@@ -24,0 +26,0 @@ } |
Sorry, the diff of this file is not supported yet
212048
2681
Updated@mezzanine-ui/icons@^0.14.5
Updated@mezzanine-ui/system@^0.14.5