@invoicebox/ui 0.1.0-alpha.286 → 0.1.0-alpha.288

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.
@@ -135,7 +135,8 @@ var Autocomplete = exports.Autocomplete = /*#__PURE__*/(0, _react.forwardRef)(fu
135
135
  disabled: disabled,
136
136
  required: required,
137
137
  useModernStyles: useModernStyles,
138
- size: size
138
+ size: size,
139
+ left: useModernStyles ? inputPaddingLeft : undefined
139
140
  }, /*#__PURE__*/_react["default"].createElement(S.InputLabelContent, null, children ? /*#__PURE__*/_react["default"].createElement(S.ChildrenWrapper, null, children) : null, useModernStyles && placeholder && /*#__PURE__*/_react["default"].createElement(_ModernPlaceholder.ModernPlaceholder, {
140
141
  visible: isModernPlaceholderVisible,
141
142
  paddingLeft: inputPaddingLeft !== null && inputPaddingLeft !== void 0 ? inputPaddingLeft : 20,
@@ -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' | 'id' | 'useModernStyles'> & {
5
+ export type TProps = Pick<TInputLabelProps, 'label' | 'required'> & Pick<TPureInputProps, 'placeholder' | 'hasError' | 'onFocus' | 'onBlur' | 'disabled' | 'name' | 'paddingRight' | 'type' | 'isOnlyNumbers' | 'autoFocus' | 'rows' | 'id' | 'useModernStyles' | 'readOnly' | 'inputMode'> & {
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" | "id" | "name" | "paddingRight" | "disabled" | "placeholder" | "rows" | "autoFocus" | "onFocus" | "onBlur" | "useModernStyles" | "hasError" | "isOnlyNumbers"> & {
14
+ export declare const TextInput: React.ForwardRefExoticComponent<Pick<TInputLabelProps, "required" | "label"> & Pick<TPureInputProps, "type" | "id" | "name" | "paddingRight" | "inputMode" | "disabled" | "placeholder" | "readOnly" | "rows" | "autoFocus" | "onFocus" | "onBlur" | "useModernStyles" | "hasError" | "isOnlyNumbers"> & {
15
15
  value: string;
16
16
  onChange: (value: string) => void;
17
17
  maxLength?: number | undefined;
@@ -41,7 +41,9 @@ var TextInput = exports.TextInput = /*#__PURE__*/_react["default"].forwardRef(fu
41
41
  required = _ref$required === void 0 ? false : _ref$required,
42
42
  _ref$useModernStyles = _ref.useModernStyles,
43
43
  useModernStyles = _ref$useModernStyles === void 0 ? false : _ref$useModernStyles,
44
- id = _ref.id;
44
+ id = _ref.id,
45
+ inputMode = _ref.inputMode,
46
+ readOnly = _ref.readOnly;
45
47
  var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
46
48
  onFocus: onFocus,
47
49
  onBlur: onBlur
@@ -110,7 +112,9 @@ var TextInput = exports.TextInput = /*#__PURE__*/_react["default"].forwardRef(fu
110
112
  autoFocus: autoFocus,
111
113
  element: element,
112
114
  rows: rows,
113
- useModernStyles: useModernStyles
115
+ useModernStyles: useModernStyles,
116
+ inputMode: inputMode,
117
+ readOnly: readOnly
114
118
  }, paddingOptions)), children && /*#__PURE__*/_react["default"].createElement(S.ChildrenWrapper, null, children)));
115
119
  });
116
120
  TextInput.displayName = 'TextInput';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.286",
3
+ "version": "0.1.0-alpha.288",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {