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.
@@ -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 ? /*#__PURE__*/React.createElement("span", {
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