@terraware/web-components 2.0.26 → 2.0.27
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextTruncated/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TextTruncated/index.tsx"],"names":[],"mappings":";AAmEA,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpC;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAiE/D"}
|
|
@@ -135,6 +135,12 @@ function TextTruncated(props) {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
var textToDisplay = computeFromStringList(stringList, maxExcludingSuffix);
|
|
138
|
+
|
|
139
|
+
var onClickHanlder = function onClickHanlder(e) {
|
|
140
|
+
e.stopPropagation();
|
|
141
|
+
setShowAllOpen(!showAllOpen);
|
|
142
|
+
};
|
|
143
|
+
|
|
138
144
|
return /*#__PURE__*/_react.default.createElement(_material.Typography, {
|
|
139
145
|
sx: textStyle
|
|
140
146
|
}, textToDisplay.text, textToDisplay.numberMore !== 0 ? moreSeparator : '', textToDisplay.numberMore !== 0 ? /*#__PURE__*/_react.default.createElement(_material.Tooltip, {
|
|
@@ -149,9 +155,7 @@ function TextTruncated(props) {
|
|
|
149
155
|
}, stringList.join(', '))
|
|
150
156
|
}, /*#__PURE__*/_react.default.createElement(_material.Link, {
|
|
151
157
|
component: "button",
|
|
152
|
-
onClick:
|
|
153
|
-
return setShowAllOpen(!showAllOpen);
|
|
154
|
-
},
|
|
158
|
+
onClick: onClickHanlder,
|
|
155
159
|
onBlur: function onBlur() {
|
|
156
160
|
return setShowAllOpen(false);
|
|
157
161
|
},
|