labsense-ui-kit 1.3.6 → 1.3.8

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.
@@ -6119,7 +6119,7 @@ var Badge = function Badge(_ref8) {
6119
6119
  "$position": 'relative',
6120
6120
  onMouseEnter: tooltipText ? handleMouseEnter : undefined,
6121
6121
  onMouseLeave: tooltipText ? handleMouseLeave : undefined
6122
- }, (icon || image || tooltipText) && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
6122
+ }, (icon || image || tooltipText) && (icon || image) && React.createElement(TooltipWrapper, null, image ? React.createElement("img", {
6123
6123
  src: image.src,
6124
6124
  alt: image.img_alt,
6125
6125
  width: image.width,
@@ -6131,7 +6131,7 @@ var Badge = function Badge(_ref8) {
6131
6131
  weight: icon.weight,
6132
6132
  color: icon.color || themeColors.vms.text.medium,
6133
6133
  cursor: tooltipText ? 'pointer' : 'default'
6134
- }), tooltipText && React.createElement(TooltipText, {
6134
+ })), tooltipText && React.createElement(TooltipText, {
6135
6135
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
6136
6136
  "$visible": showTooltip,
6137
6137
  "$color": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.color,
@@ -6139,7 +6139,7 @@ var Badge = function Badge(_ref8) {
6139
6139
  "$fontSize": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.fontSize,
6140
6140
  "$fontWeight": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.fontWeight,
6141
6141
  style: tooltipStyle
6142
- }, tooltipText)), React.createElement(Span, {
6142
+ }, tooltipText), React.createElement(Span, {
6143
6143
  "$fontSize": fontSize,
6144
6144
  "$fontWeight": '500',
6145
6145
  "$color": textColor,
@@ -8355,6 +8355,7 @@ var TextField = function TextField(_ref14) {
8355
8355
  var _ref14$type = _ref14.type,
8356
8356
  type = _ref14$type === void 0 ? 'text' : _ref14$type,
8357
8357
  title = _ref14.title,
8358
+ name = _ref14.name,
8358
8359
  titleWeight = _ref14.titleWeight,
8359
8360
  placeholder = _ref14.placeholder,
8360
8361
  _ref14$disabled = _ref14.disabled,
@@ -8412,8 +8413,8 @@ var TextField = function TextField(_ref14) {
8412
8413
  }, title, required && React.createElement(Asterisk$1, null, "*")), titleRightNode === null || titleRightNode === void 0 ? void 0 : titleRightNode.node), React.createElement(InputWrapper$1, null, React.createElement(Input, {
8413
8414
  type: inputType || 'text',
8414
8415
  "$type": type,
8415
- name: title,
8416
- id: title,
8416
+ name: name || title,
8417
+ id: name || title,
8417
8418
  value: inputValue,
8418
8419
  placeholder: placeholder,
8419
8420
  "$disabled": isDisabled,
@@ -8511,6 +8512,7 @@ var TextAreaComponent = styled.textarea(_templateObject3$9 || (_templateObject3$
8511
8512
  });
8512
8513
  var TextArea = function TextArea(_ref13) {
8513
8514
  var title = _ref13.title,
8515
+ name = _ref13.name,
8514
8516
  titleWeight = _ref13.titleWeight,
8515
8517
  placeholder = _ref13.placeholder,
8516
8518
  _ref13$disabled = _ref13.disabled,
@@ -8541,8 +8543,8 @@ var TextArea = function TextArea(_ref13) {
8541
8543
  htmlFor: title,
8542
8544
  "$titlecolor": titlecolor || themeColors.vms.text.dark
8543
8545
  }, title, required && React.createElement(Asterisk$1, null, "*")), React.createElement(TextAreaComponent, {
8544
- name: title,
8545
- id: title,
8546
+ name: name || title,
8547
+ id: name || title,
8546
8548
  value: inputValue,
8547
8549
  placeholder: placeholder,
8548
8550
  "$disabled": isDisabled,