labsense-ui-kit 1.3.5 → 1.3.7
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.
|
@@ -4,6 +4,7 @@ export declare const Asterisk: import("styled-components/dist/types").IStyledCom
|
|
|
4
4
|
declare type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url' | 'search' | 'date' | 'datetime-local' | 'month' | 'week' | 'time' | 'color' | 'checkbox' | 'radio' | 'range' | 'file' | 'hidden';
|
|
5
5
|
interface InputProps {
|
|
6
6
|
type?: InputType;
|
|
7
|
+
name?: string;
|
|
7
8
|
title?: string;
|
|
8
9
|
titleWeight?: string;
|
|
9
10
|
placeholder?: string;
|
package/dist/index.js
CHANGED
|
@@ -8359,6 +8359,7 @@ var TextField = function TextField(_ref14) {
|
|
|
8359
8359
|
var _ref14$type = _ref14.type,
|
|
8360
8360
|
type = _ref14$type === void 0 ? 'text' : _ref14$type,
|
|
8361
8361
|
title = _ref14.title,
|
|
8362
|
+
name = _ref14.name,
|
|
8362
8363
|
titleWeight = _ref14.titleWeight,
|
|
8363
8364
|
placeholder = _ref14.placeholder,
|
|
8364
8365
|
_ref14$disabled = _ref14.disabled,
|
|
@@ -8416,8 +8417,8 @@ var TextField = function TextField(_ref14) {
|
|
|
8416
8417
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React__default.createElement(InputWrapper$1, null, React__default.createElement(Input, {
|
|
8417
8418
|
type: inputType || 'text',
|
|
8418
8419
|
"$type": type,
|
|
8419
|
-
name: title,
|
|
8420
|
-
id: title,
|
|
8420
|
+
name: name || title,
|
|
8421
|
+
id: name || title,
|
|
8421
8422
|
value: inputValue,
|
|
8422
8423
|
placeholder: placeholder,
|
|
8423
8424
|
"$disabled": isDisabled,
|
|
@@ -8515,6 +8516,7 @@ var TextAreaComponent = styled__default.textarea(_templateObject3$9 || (_templat
|
|
|
8515
8516
|
});
|
|
8516
8517
|
var TextArea = function TextArea(_ref13) {
|
|
8517
8518
|
var title = _ref13.title,
|
|
8519
|
+
name = _ref13.name,
|
|
8518
8520
|
titleWeight = _ref13.titleWeight,
|
|
8519
8521
|
placeholder = _ref13.placeholder,
|
|
8520
8522
|
_ref13$disabled = _ref13.disabled,
|
|
@@ -8545,8 +8547,8 @@ var TextArea = function TextArea(_ref13) {
|
|
|
8545
8547
|
htmlFor: title,
|
|
8546
8548
|
"$titlecolor": titlecolor || themeColors.vms.text.dark
|
|
8547
8549
|
}, title, required && React__default.createElement(Asterisk$1, null, "*")), React__default.createElement(TextAreaComponent, {
|
|
8548
|
-
name: title,
|
|
8549
|
-
id: title,
|
|
8550
|
+
name: name || title,
|
|
8551
|
+
id: name || title,
|
|
8550
8552
|
value: inputValue,
|
|
8551
8553
|
placeholder: placeholder,
|
|
8552
8554
|
"$disabled": isDisabled,
|
|
@@ -9352,7 +9354,10 @@ var Sidebar = function Sidebar(_ref17) {
|
|
|
9352
9354
|
if (!container) {
|
|
9353
9355
|
container = document.createElement('div');
|
|
9354
9356
|
container.id = 'badge-portal-container';
|
|
9357
|
+
container.style.pointerEvents = 'none';
|
|
9355
9358
|
document.body.appendChild(container);
|
|
9359
|
+
} else {
|
|
9360
|
+
container.style.pointerEvents = 'none';
|
|
9356
9361
|
}
|
|
9357
9362
|
return container;
|
|
9358
9363
|
}),
|