@invoicebox/ui 0.1.0-alpha.269 → 0.1.0-alpha.270

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.
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
2
2
  import { TProps as TInputLabelProps } from '../InputLabel';
3
3
  import { TProps as TPureInputProps } from '../PureInput';
4
4
  import { TSizes } from '../constants';
5
- export type TProps = Pick<TInputLabelProps, 'label' | 'required'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus' | 'rows'> & {
5
+ export type TProps = Pick<TInputLabelProps, 'label' | 'required'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus' | 'rows' | 'id'> & {
6
6
  value: string;
7
7
  onChange: (value: string) => void;
8
8
  maxLength?: number;
@@ -11,7 +11,7 @@ export type TProps = Pick<TInputLabelProps, 'label' | 'required'> & Pick<TPureIn
11
11
  element?: 'input' | 'textarea';
12
12
  required?: boolean;
13
13
  };
14
- export declare const TextInput: React.ForwardRefExoticComponent<Pick<TInputLabelProps, "required" | "label"> & Pick<TPureInputProps, "type" | "name" | "paddingRight" | "disabled" | "placeholder" | "rows" | "autoFocus" | "onFocus" | "onBlur" | "hasError" | "isOnlyNumbers"> & {
14
+ export declare const TextInput: React.ForwardRefExoticComponent<Pick<TInputLabelProps, "required" | "label"> & Pick<TPureInputProps, "type" | "id" | "name" | "paddingRight" | "disabled" | "placeholder" | "rows" | "autoFocus" | "onFocus" | "onBlur" | "hasError" | "isOnlyNumbers"> & {
15
15
  value: string;
16
16
  onChange: (value: string) => void;
17
17
  maxLength?: number | undefined;
@@ -37,7 +37,8 @@ var TextInput = exports.TextInput = /*#__PURE__*/_react["default"].forwardRef(fu
37
37
  element = _ref$element === void 0 ? 'input' : _ref$element,
38
38
  rows = _ref.rows,
39
39
  _ref$required = _ref.required,
40
- required = _ref$required === void 0 ? false : _ref$required;
40
+ required = _ref$required === void 0 ? false : _ref$required,
41
+ id = _ref.id;
41
42
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
42
43
  onFocus: onFocus,
43
44
  onBlur: onBlur
@@ -54,6 +55,7 @@ var TextInput = exports.TextInput = /*#__PURE__*/_react["default"].forwardRef(fu
54
55
  disabled: disabled,
55
56
  required: required
56
57
  }, /*#__PURE__*/_react["default"].createElement(S.InputLabelContent, null, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, _extends({
58
+ id: id,
57
59
  ref: ref,
58
60
  name: name,
59
61
  disabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.269",
3
+ "version": "0.1.0-alpha.270",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {