ywana-core8 0.0.736 → 0.0.738

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.umd.js CHANGED
@@ -1331,6 +1331,8 @@
1331
1331
  _props$type = props.type,
1332
1332
  type = _props$type === void 0 ? 'text' : _props$type,
1333
1333
  label = props.label,
1334
+ _props$labelPosition = props.labelPosition,
1335
+ labelPosition = _props$labelPosition === void 0 ? 'top' : _props$labelPosition,
1334
1336
  placeholder = props.placeholder,
1335
1337
  value = props.value,
1336
1338
  outlined = props.outlined,
@@ -1377,7 +1379,8 @@
1377
1379
 
1378
1380
  var borderStyle = outlined ? "textfield-outlined" : "textfield";
1379
1381
  var labelStyle = label ? "" : "no-label";
1380
- var style = labelStyle + " " + borderStyle + " textfield-" + type;
1382
+ var labelPositionStyle = labelPosition == 'left' ? "label-left" : "label-top";
1383
+ var style = labelStyle + " " + labelPositionStyle + " " + borderStyle + " textfield-" + type;
1381
1384
  var labelTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, label);
1382
1385
  return /*#__PURE__*/React__default["default"].createElement("div", {
1383
1386
  className: style + " " + id,