@invoicebox/ui 0.1.0-alpha.215 → 0.1.0-alpha.217

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.
@@ -90,7 +90,7 @@ var CountrySelect = exports.CountrySelect = function CountrySelect(_ref) {
90
90
  }, selectedOption.flag && /*#__PURE__*/_react["default"].createElement(_Flag.Flag, {
91
91
  isSmall: false,
92
92
  flag: selectedOption.flag
93
- }), /*#__PURE__*/_react["default"].createElement(_Arrow.Arrow, {
93
+ }), !disabled && /*#__PURE__*/_react["default"].createElement(_Arrow.Arrow, {
94
94
  isOpen: isOpen
95
95
  })), /*#__PURE__*/_react["default"].createElement(_Dropdown.Dropdown, _extends({
96
96
  isOpen: isOpen,
@@ -51,7 +51,8 @@ var Default = exports.Default = {
51
51
  value: 'AF',
52
52
  description: 'NO'
53
53
  }],
54
- placeholder: 'Поиск'
54
+ placeholder: 'Поиск',
55
+ disabled: false
55
56
  },
56
57
  render: Component
57
58
  };
@@ -13,7 +13,7 @@ var Wrapper = exports.Wrapper = _styledComponents["default"].div.withConfig({
13
13
  var HeaderWrapper = exports.HeaderWrapper = _styledComponents["default"].button.withConfig({
14
14
  displayName: "stlyes__HeaderWrapper",
15
15
  componentId: "sc-1mni8xu-1"
16
- })(["display:flex;align-items:center;gap:2px;pointer-events:auto;background:transparent;border:none;cursor:pointer;"]);
16
+ })(["display:flex;align-items:center;gap:2px;pointer-events:auto;background:transparent;border:none;cursor:pointer;height:24px;"]);
17
17
  var ListWrapper = exports.ListWrapper = _styledComponents["default"].div.withConfig({
18
18
  displayName: "stlyes__ListWrapper",
19
19
  componentId: "sc-1mni8xu-2"
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ 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';
@@ -11,4 +11,12 @@ 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: FC<TProps>;
14
+ export declare const TextInput: React.ForwardRefExoticComponent<Pick<TInputLabelProps, "required" | "label"> & Pick<TPureInputProps, "type" | "name" | "paddingRight" | "disabled" | "placeholder" | "rows" | "autoFocus" | "onFocus" | "onBlur" | "hasError" | "isOnlyNumbers"> & {
15
+ value: string;
16
+ onChange: (value: string) => void;
17
+ maxLength?: number | undefined;
18
+ size?: TSizes | undefined;
19
+ children?: ReactNode;
20
+ element?: "input" | "textarea" | undefined;
21
+ required?: boolean | undefined;
22
+ } & React.RefAttributes<HTMLInputElement>>;
@@ -14,7 +14,7 @@ var _constants = require("../constants");
14
14
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
15
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
16
16
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
17
- var TextInput = exports.TextInput = function TextInput(_ref) {
17
+ var TextInput = exports.TextInput = /*#__PURE__*/_react["default"].forwardRef(function (_ref, ref) {
18
18
  var _ref$hasError = _ref.hasError,
19
19
  hasError = _ref$hasError === void 0 ? false : _ref$hasError,
20
20
  onFocus = _ref.onFocus,
@@ -54,6 +54,7 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
54
54
  disabled: disabled,
55
55
  required: required
56
56
  }, /*#__PURE__*/_react["default"].createElement(S.InputLabelContent, null, /*#__PURE__*/_react["default"].createElement(_PureInput.PureInput, _extends({
57
+ ref: ref,
57
58
  name: name,
58
59
  disabled: disabled,
59
60
  hasError: hasError,
@@ -70,4 +71,5 @@ var TextInput = exports.TextInput = function TextInput(_ref) {
70
71
  element: element,
71
72
  rows: rows
72
73
  }, _constants.SIZE_PARAMS_MAP[size])), children && /*#__PURE__*/_react["default"].createElement(S.ChildrenWrapper, null, children)));
73
- };
74
+ });
75
+ TextInput.displayName = 'TextInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.215",
3
+ "version": "0.1.0-alpha.217",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {