UNPKG

@hhgtech/hhg-components

Version:
28 lines (25 loc) 1.05 kB
import { _ as __rest } from './tslib.es6-00ab44b2.js'; import React__default from 'react'; import './index-bd44bcb2.js'; import '@mantine/core'; import '@mantine/dates'; import './index-8c40504a.js'; import './index-fe4471f4.js'; import './index-7adf994c.js'; import './index-3f09210d.js'; import { T as Text$1 } from './index-0b67696c.js'; import './index-2d25b0f0.js'; import './index-17c85f76.js'; import './index.styles-3adef5f6.js'; import './translationsContext-18f7b7e0.js'; import '@mantine/hooks'; import './utils-538169b3.js'; import './index-04505e35.js'; /** * @deprecated Consider to use import { Text } from '@hhgtech/hhg-components/mantine' */ const Text = (_a) => { var { size = 'base', type = 'regular' } = _a, rest = __rest(_a, ["size", "type"]); return (React__default.createElement(Text$1, Object.assign({ size: size, weight: type === 'caption' ? 'bold' : type, "data-size": size, "data-type": type, "data-word-wrap": rest.wordWrap, "data-is-uppercase": rest.isUppercase }, rest))); }; export { Text as T };