UNPKG

@zohodesk/dot

Version:

In this Library, we Provide Some Basic Components to Build Your Application

48 lines (46 loc) 1.4 kB
import React, { Component } from 'react'; import { SecondaryText_defaultProps } from "./props/defaultProps"; import { SecondaryText_propTypes } from "./props/propTypes"; import Typography from '@zohodesk/components/es/Typography/Typography'; import { DUMMY_OBJECT } from '@zohodesk/components/es/utils/Common'; import style from "./SecondaryText.module.css"; export default class SecondaryText extends Component { constructor(props) { super(props); } render() { let { className, text, dataTitle, dataId, onClick, customProps, isHighlighted, highlightData } = this.props; let { SecondaryTextProps } = customProps; const tagAttributes = { ...SecondaryTextProps, onClick }; return /*#__PURE__*/React.createElement(Typography, { $tagAttributes_text: tagAttributes, $ui_size: "12", $flag_dotted: true, $ui_className: `${style.secondaryText} ${className ? className : ''}`, $ui_highlightConfig: isHighlighted ? highlightData : DUMMY_OBJECT, $i18n_dataTitle: dataTitle, customId: dataId, testId: dataId }, text); } } SecondaryText.propTypes = SecondaryText_propTypes; SecondaryText.defaultProps = SecondaryText_defaultProps; // if (__DOCS__) { // SecondaryText.docs = { // folderName: 'List', // componentGroup: 'SecondaryText' // }; // }