@daoyi/nmtl-ui 2.0.1-beta.3 → 2.0.1-beta.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -45
- package/lib/components/Autocomplete.js +1 -1
- package/lib/components/BackTop.js +1 -1
- package/lib/components/BarChart.js +1 -1
- package/lib/components/Carousel.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CollapseContent.js +1 -1
- package/lib/components/ContactModal.js +2 -2
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Dropdown.js +1 -1
- package/lib/components/{Empty-54b79907.js → Empty-a053f253.js} +0 -0
- package/lib/components/ExportButton.js +1 -1
- package/lib/components/ExtraTools.js +2 -2
- package/lib/components/Footer.js +1 -1
- package/lib/components/Header.js +1 -1
- package/lib/components/Image.js +1 -1
- package/lib/components/InputMethod.js +1 -1
- package/lib/components/{KeywordSearch-5a393f12.js → KeywordSearch-aa4a8e40.js} +1 -1
- package/lib/components/KeywordSearch.js +1 -1
- package/lib/components/Keywords.js +1 -1
- package/lib/components/MUITheme.js +1 -1
- package/lib/components/Radio.js +1 -1
- package/lib/components/SNA.js +4 -28
- package/lib/components/{Select-f2441b83.js → Select-86fee0d1.js} +1 -1
- package/lib/components/Select.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/_rollupPluginBabelHelpers-1fef267c.js +1 -0
- package/lib/components/_rollupPluginBabelHelpers-b6a1ebe2.js +1 -0
- package/lib/components/createSvgIcon-a0a657e2.js +1 -0
- package/lib/components/createSvgIcon-be0b4e38.js +1 -0
- package/lib/components/createTheme-d68e3c02.js +1 -0
- package/lib/components/{dataExport-9fccd4f0.js → dataExport-d55d6fa3.js} +0 -0
- package/lib/components/{transform-95ae0119.js → transform-011f0fe5.js} +1 -1
- package/lib/utils/{_rollupPluginBabelHelpers-928a52ce.js → _rollupPluginBabelHelpers-8dd26e1a.js} +0 -0
- package/lib/utils/convert2HtmlEntities.js +1 -1
- package/lib/utils/exportXlsx.js +1 -1
- package/lib/utils/historyAppendSearch.js +1 -1
- package/lib/utils/snaPreProcess.js +1 -1
- package/package.json +125 -128
- package/lib/components/_rollupPluginBabelHelpers-1b8c042f.js +0 -1
- package/lib/components/_rollupPluginBabelHelpers-ec4e2a53.js +0 -1
- package/lib/components/createSvgIcon-39860e34.js +0 -1
- package/lib/components/createSvgIcon-a1c2ba44.js +0 -1
- package/lib/components/withStyles-500e3d2c.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as
|
|
1
|
+
import e,{useState as t,useRef as n,useEffect as o}from"react";import{c as l}from"./index-11391ca3.js";import r from"prop-types";import{Typography as a}from"@material-ui/core";import s from"./MoreButton.js";import{s as i}from"./style-inject.es-c875d022.js";import"@material-ui/icons";const c=new(0,require("html-to-react").Parser),p=require("markdown-it")({html:!0,xhtmlOut:!0,breaks:!0,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:()=>""});var d=t=>t&&0!==t.length?e.createElement("div",null,(e=>void 0===e?"":c.parse(p.render(e)))(t.replaceAll("\n\n","\n").split("\n").join("<div/><br/><div>"))):t;i(".collapseContent__desc {\n font-size: 1.5rem !important;\n text-indent: 3rem;\n font-family: 'Noto Sans TC', 'Arial', sans-serif !important;\n display: -webkit-box;\n overflow: hidden;\n -webkit-box-orient: vertical;\n white-space: pre-wrap;\n word-break: break-all; }\n .collapseContent__desc p,\n .collapseContent__desc pre {\n margin: 0; }\n .collapseContent__desc--1 {\n -webkit-line-clamp: 1; }\n .collapseContent__desc--2 {\n -webkit-line-clamp: 2; }\n .collapseContent__desc--3 {\n -webkit-line-clamp: 3; }\n .collapseContent__desc--4 {\n -webkit-line-clamp: 4; }\n .collapseContent__desc--5 {\n -webkit-line-clamp: 5; }\n .collapseContent__desc--10 {\n -webkit-line-clamp: 10; }\n .collapseContent__desc--lightHeight {\n line-height: 2.25; }\n .collapseContent__desc--expand {\n -webkit-line-clamp: initial; }\n .collapseContent__desc--indent {\n text-indent: 3rem; }\n");const m=r=>{const{className:i,content:c,textColor:p,lineClamp:m,useLightHeight:C,useTextIndent:_}=r,{formatMessage:g,primaryColor:h,secondaryColor:u,shadowColor:f}=r;if(!c)return e.createElement(e.Fragment,null);const[w,x]=t(),[b,y]=t(),v=n();return o((()=>{if(c&&v&&v.current){const e=v.current,{clientHeight:t,scrollHeight:n}=e||{};y(n>t)}}),[v,c]),e.createElement("div",{className:l("collapseContent",i)},e.createElement(a,{ref:v,variant:"inherit",className:l("collapseContent__desc",`collapseContent__desc--${m<=5?m:10}`,{"collapseContent__desc--indent":_},{"collapseContent__desc--expand":w},{"collapseContent__desc--lightHeight":C}),color:"textSecondary",style:{color:p}},d(c)),b&&e.createElement(s,{small:!0,primaryColor:h,secondaryColor:u,shadowColor:f,formatMessage:g,expand:w,setExpand:x}))};m.defaultProps={className:void 0,content:void 0,textColor:void 0,lineClamp:2,useLightHeight:void 0,useTextIndent:!0,formatMessage:void 0,primaryColor:"#271702",secondaryColor:"#aa8859",shadowColor:void 0},m.propTypes={className:r.string,content:r.string,textColor:r.string,lineClamp:r.number,useLightHeight:r.bool,useTextIndent:r.bool,formatMessage:r.func,primaryColor:r.string,secondaryColor:r.string,shadowColor:r.string};export{m as default};
|