@antv/t8
Version:
T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative T8 markdown syntax that can be used to describe the content of data interpretation reports.
35 lines (31 loc) • 1.15 kB
JavaScript
;
var tslib = require('tslib');
var styledFactory = require('./utils/styledFactory.js');
var commonStyle = require('./utils/commonStyle.js');
var getBulletStyle = function (theme) {
return tslib.__assign(tslib.__assign({}, commonStyle.getCommonStyle(theme)), { paddingLeft: '16px', marginBottom: '4px' });
};
var Bullet = styledFactory.createStyledComponent({
element: 'div',
factoryStyles: getBulletStyle,
});
var Li = styledFactory.createStyledComponent({
element: 'li',
factoryStyles: function () { return ({
listStyle: 'inherit',
lineHeight: '1.74',
}); },
});
var Ol = styledFactory.createStyledComponent({
element: 'ol',
factoryStyles: function (theme) { return (tslib.__assign(tslib.__assign({}, getBulletStyle(theme)), { listStyleType: 'decimal' })); },
});
var Ul = styledFactory.createStyledComponent({
element: 'ul',
factoryStyles: function (theme) { return (tslib.__assign(tslib.__assign({}, getBulletStyle(theme)), { listStyleType: 'disc' })); },
});
exports.Bullet = Bullet;
exports.Li = Li;
exports.Ol = Ol;
exports.Ul = Ul;
//# sourceMappingURL=bullet.js.map