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.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +12 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.css +12 -0
- package/src/html/textfield.js +3 -2
- package/src/html/textfield.test.js +10 -3
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
|
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,
|