ywana-core8 0.0.736 → 0.0.737
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 +11 -1
- 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-outlined.css +10 -0
- package/src/html/textfield.css +1 -1
- package/src/html/textfield.js +3 -2
- package/src/html/textfield.test.js +8 -2
package/dist/index.cjs
CHANGED
@@ -1337,6 +1337,8 @@ var TextField = function TextField(props) {
|
|
1337
1337
|
_props$type = props.type,
|
1338
1338
|
type = _props$type === void 0 ? 'text' : _props$type,
|
1339
1339
|
label = props.label,
|
1340
|
+
_props$labelPosition = props.labelPosition,
|
1341
|
+
labelPosition = _props$labelPosition === void 0 ? 'top' : _props$labelPosition,
|
1340
1342
|
placeholder = props.placeholder,
|
1341
1343
|
value = props.value,
|
1342
1344
|
outlined = props.outlined,
|
@@ -1383,7 +1385,8 @@ var TextField = function TextField(props) {
|
|
1383
1385
|
|
1384
1386
|
var borderStyle = outlined ? "textfield-outlined" : "textfield";
|
1385
1387
|
var labelStyle = label ? "" : "no-label";
|
1386
|
-
var
|
1388
|
+
var labelPositionStyle = labelPosition == 'left' ? "label-left" : "label-top";
|
1389
|
+
var style = labelStyle + " " + labelPositionStyle + " " + borderStyle + " textfield-" + type;
|
1387
1390
|
var labelTxt = /*#__PURE__*/React__default["default"].createElement(Text, null, label);
|
1388
1391
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
1389
1392
|
className: style + " " + id,
|