labsense-ui-kit 1.3.6 → 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.
@@ -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
@@ -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,