UNPKG

@antv/t8

Version:

T8 is a text visualization solution for unstructured data within the AntV technology stack, and it is a declarative JSON Schema syntax that can be used to describe the content of data interpretation reports.

30 lines (27 loc) 999 B
import { __assign } from 'tslib'; import { createStyledComponent } from './utils/styledFactory.js'; import { getCommonStyle } from './utils/commonStyle.js'; var getBulletStyle = function (theme) { return __assign(__assign({}, getCommonStyle(theme)), { paddingLeft: '16px', marginBottom: '4px' }); }; var Bullet = createStyledComponent({ element: 'div', factoryStyles: getBulletStyle, }); var Li = createStyledComponent({ element: 'li', factoryStyles: function () { return ({ listStyle: 'inherit', lineHeight: '1.74', }); }, }); var Ol = createStyledComponent({ element: 'ol', factoryStyles: function (theme) { return (__assign(__assign({}, getBulletStyle(theme)), { listStyleType: 'decimal' })); }, }); var Ul = createStyledComponent({ element: 'ul', factoryStyles: function (theme) { return (__assign(__assign({}, getBulletStyle(theme)), { listStyleType: 'disc' })); }, }); export { Bullet, Li, Ol, Ul }; //# sourceMappingURL=bullet.js.map