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.
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  interface TextAreaProps {
3
3
  title?: string;
4
+ name?: string;
4
5
  titleWeight?: string;
5
6
  placeholder?: string;
6
7
  disabled?: boolean;
@@ -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
@@ -6123,7 +6123,7 @@ var Badge = function Badge(_ref8) {
6123
6123
  "$position": 'relative',
6124
6124
  onMouseEnter: tooltipText ? handleMouseEnter : undefined,
6125
6125
  onMouseLeave: tooltipText ? handleMouseLeave : undefined
6126
- }, (icon || image || tooltipText) && React__default.createElement(TooltipWrapper, null, image ? React__default.createElement("img", {
6126
+ }, (icon || image || tooltipText) && (icon || image) && React__default.createElement(TooltipWrapper, null, image ? React__default.createElement("img", {
6127
6127
  src: image.src,
6128
6128
  alt: image.img_alt,
6129
6129
  width: image.width,
@@ -6135,7 +6135,7 @@ var Badge = function Badge(_ref8) {
6135
6135
  weight: icon.weight,
6136
6136
  color: icon.color || themeColors.vms.text.medium,
6137
6137
  cursor: tooltipText ? 'pointer' : 'default'
6138
- }), tooltipText && React__default.createElement(TooltipText, {
6138
+ })), tooltipText && React__default.createElement(TooltipText, {
6139
6139
  "$bgColor": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.background,
6140
6140
  "$visible": showTooltip,
6141
6141
  "$color": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.color,
@@ -6143,7 +6143,7 @@ var Badge = function Badge(_ref8) {
6143
6143
  "$fontSize": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.fontSize,
6144
6144
  "$fontWeight": tooltipCSS === null || tooltipCSS === void 0 ? void 0 : tooltipCSS.fontWeight,
6145
6145
  style: tooltipStyle
6146
- }, tooltipText)), React__default.createElement(Span, {
6146
+ }, tooltipText), React__default.createElement(Span, {
6147
6147
  "$fontSize": fontSize,
6148
6148
  "$fontWeight": '500',
6149
6149
  "$color": textColor,
@@ -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,