UNPKG

monday-ui-react-core

Version:

Official monday.com UI resources for application development in React.js

3 lines (2 loc) 1.05 kB
import{__rest as t}from"../../../_virtual/_tslib.js";import{getTestId as e,ComponentDefaultTestId as s}from"../../tests/testIds.js";import r,{forwardRef as o}from"react";import{withStaticProps as i}from"../../types/withStaticProps.js";import a from"./EditableText.module.scss.js";import{getStyle as p}from"../../helpers/typesciptCssModulesHelper.js";import{camelCase as m}from"lodash-es";import d from"../EditableTypography/EditableTypography.js";import{TextType as l,TextWeight as y}from"../Text/TextConstants.js";import f from"../Text/Text.js";import T from"classnames";var h=i(o((function(o,i){var l=o.type,y=void 0===l?f.types.TEXT2:l,h=o.weight,c=void 0===h?f.weights.NORMAL:h,g=o["data-testid"],n=o.id,j=t(o,["type","weight","data-testid","id"]);return r.createElement(d,Object.assign({className:a.editableText,ref:i,"data-testid":g||e(s.EDITABLE_TEXT,n),component:f,typographyClassName:T(p(a,m(y+"-"+c)),a.typography),clearable:!0,type:y,weight:c},j))})),{types:l,weights:y});export{h as default}; //# sourceMappingURL=EditableText.js.map