winbox-ui-next
Version:
We Design Vue 2.0: A Vue.js 3 UI Library
32 lines (31 loc) • 681 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports[Symbol.toStringTag] = "Module";
const sizeStyles = [
"border-width",
"box-sizing",
"font-family",
"font-weight",
"font-size",
"font-variant",
"letter-spacing",
"line-height",
"padding-top",
"padding-bottom",
"padding-left",
"padding-right",
"text-indent",
"text-rendering",
"text-transform",
"white-space",
"overflow-wrap",
"width"
];
const getSizeStyles = (styleDeclaration) => {
const styles = {};
sizeStyles.forEach((item) => {
styles[item] = styleDeclaration.getPropertyValue(item);
});
return styles;
};
exports.getSizeStyles = getSizeStyles;