ywana-core8 0.0.878 → 0.0.879
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/dist/index.cjs +3 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -6
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/text.js +2 -2
- package/src/html/textfield.js +1 -1
package/dist/index.modern.js
CHANGED
@@ -207,8 +207,7 @@ var TEXTFORMATS = {
|
|
207
207
|
*/
|
208
208
|
var Text = function Text(_ref) {
|
209
209
|
var format = _ref.format,
|
210
|
-
children = _ref.children
|
211
|
-
className = _ref.className;
|
210
|
+
children = _ref.children;
|
212
211
|
var site = useContext(SiteContext);
|
213
212
|
var value = children;
|
214
213
|
if (site) {
|
@@ -225,9 +224,7 @@ var Text = function Text(_ref) {
|
|
225
224
|
value = formatter.format(children);
|
226
225
|
break;
|
227
226
|
}
|
228
|
-
return children ?
|
229
|
-
className: className
|
230
|
-
}, value) : '';
|
227
|
+
return children ? value : '';
|
231
228
|
};
|
232
229
|
|
233
230
|
/**
|
@@ -1312,7 +1309,7 @@ var TextField = function TextField(props) {
|
|
1312
1309
|
var labelPositionStyle = labelPosition == 'left' ? "label-left" : "label-top";
|
1313
1310
|
var style = labelStyle + " " + labelPositionStyle + " " + borderStyle + " textfield-" + type;
|
1314
1311
|
var labelTxt = /*#__PURE__*/React.createElement(Text, null, label);
|
1315
|
-
var placeholderTxt = /*#__PURE__*/React.createElement(Text, null, placeholder);
|
1312
|
+
var placeholderTxt = placeholder ? /*#__PURE__*/React.createElement(Text, null, placeholder) : null;
|
1316
1313
|
return /*#__PURE__*/React.createElement("div", {
|
1317
1314
|
className: style + " " + id,
|
1318
1315
|
onClick: onClick
|