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.cjs
CHANGED
@@ -216,8 +216,7 @@ var TEXTFORMATS = {
|
|
216
216
|
*/
|
217
217
|
var Text = function Text(_ref) {
|
218
218
|
var format = _ref.format,
|
219
|
-
children = _ref.children
|
220
|
-
className = _ref.className;
|
219
|
+
children = _ref.children;
|
221
220
|
var site = React.useContext(SiteContext);
|
222
221
|
var value = children;
|
223
222
|
if (site) {
|
@@ -234,9 +233,7 @@ var Text = function Text(_ref) {
|
|
234
233
|
value = formatter.format(children);
|
235
234
|
break;
|
236
235
|
}
|
237
|
-
return children ?
|
238
|
-
className: className
|
239
|
-
}, value) : '';
|
236
|
+
return children ? value : '';
|
240
237
|
};
|
241
238
|
|
242
239
|
/**
|
@@ -1321,7 +1318,7 @@ var TextField = function TextField(props) {
|
|
1321
1318
|
var labelPositionStyle = labelPosition == 'left' ? "label-left" : "label-top";
|
1322
1319
|
var style = labelStyle + " " + labelPositionStyle + " " + borderStyle + " textfield-" + type;
|
1323
1320
|
var labelTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, label);
|
1324
|
-
var placeholderTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, placeholder);
|
1321
|
+
var placeholderTxt = placeholder ? /*#__PURE__*/React__default["default"].createElement(Text, null, placeholder) : null;
|
1325
1322
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1326
1323
|
className: style + " " + id,
|
1327
1324
|
onClick: onClick
|