UNPKG

@zohodesk/dot

Version:

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

38 lines (29 loc) 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = SecondaryText; var _react = _interopRequireDefault(require("react")); var _defaultProps = require("./props/defaultProps"); var _propTypes = require("./props/propTypes"); var _SecondaryTextModule = _interopRequireDefault(require("../../../list/SecondaryText/SecondaryText.module.css")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function SecondaryText(props) { var className = props.className, text = props.text, dataTitle = props.dataTitle, dataId = props.dataId, onClick = props.onClick, customProps = props.customProps; var SecondaryTextProps = customProps.SecondaryTextProps; return /*#__PURE__*/_react["default"].createElement("div", _extends({ className: "".concat(_SecondaryTextModule["default"].secondaryText, " ").concat(className ? className : ''), "data-title": dataTitle, "data-id": dataId, "data-test-id": dataId, onClick: onClick }, SecondaryTextProps), text); } SecondaryText.propTypes = _propTypes.SecondaryText_propTypes; SecondaryText.defaultProps = _defaultProps.SecondaryText_defaultProps;