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.umd.js
CHANGED
@@ -209,8 +209,7 @@
|
|
209
209
|
*/
|
210
210
|
var Text = function Text(_ref) {
|
211
211
|
var format = _ref.format,
|
212
|
-
children = _ref.children
|
213
|
-
className = _ref.className;
|
212
|
+
children = _ref.children;
|
214
213
|
var site = React.useContext(SiteContext);
|
215
214
|
var value = children;
|
216
215
|
if (site) {
|
@@ -227,9 +226,7 @@
|
|
227
226
|
value = formatter.format(children);
|
228
227
|
break;
|
229
228
|
}
|
230
|
-
return children ?
|
231
|
-
className: className
|
232
|
-
}, value) : '';
|
229
|
+
return children ? value : '';
|
233
230
|
};
|
234
231
|
|
235
232
|
/**
|
@@ -1314,7 +1311,7 @@
|
|
1314
1311
|
var labelPositionStyle = labelPosition == 'left' ? "label-left" : "label-top";
|
1315
1312
|
var style = labelStyle + " " + labelPositionStyle + " " + borderStyle + " textfield-" + type;
|
1316
1313
|
var labelTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, label);
|
1317
|
-
var placeholderTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, placeholder);
|
1314
|
+
var placeholderTxt = placeholder ? /*#__PURE__*/React__default["default"].createElement(Text, null, placeholder) : null;
|
1318
1315
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1319
1316
|
className: style + " " + id,
|
1320
1317
|
onClick: onClick
|