@invoicebox/ui 0.1.0-alpha.146 → 0.1.0-alpha.148

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,5 +2,6 @@ import { FC } from 'react';
2
2
  import { TDividerPalette } from './palette';
3
3
  export type TProps = {
4
4
  palette?: Partial<TDividerPalette>;
5
+ height?: number;
5
6
  };
6
7
  export declare const Divider: FC<TProps>;
@@ -12,9 +12,12 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
12
12
  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; }
13
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
14
14
  var Divider = exports.Divider = function Divider(_ref) {
15
- var palette = _ref.palette;
15
+ var palette = _ref.palette,
16
+ _ref$height = _ref.height,
17
+ height = _ref$height === void 0 ? 1 : _ref$height;
16
18
  var mergedPalette = (0, _palette.useComponentPalette)('divider', palette);
17
19
  return /*#__PURE__*/_react["default"].createElement(S.Divider, {
18
- $palette: mergedPalette
20
+ $palette: mergedPalette,
21
+ $height: height
19
22
  });
20
23
  };
@@ -2,4 +2,5 @@
2
2
  import { TDividerPalette } from './palette';
3
3
  export declare const Divider: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, {
4
4
  $palette: TDividerPalette;
5
+ $height: number;
5
6
  }>> & string;
@@ -9,7 +9,10 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default":
9
9
  var Divider = exports.Divider = _styledComponents["default"].hr.withConfig({
10
10
  displayName: "styles__Divider",
11
11
  componentId: "sc-13sr9hl-0"
12
- })(["width:100%;height:1px;border:1px solid ", ";margin:0px;box-sizing:border-box;"], function (_ref) {
13
- var $palette = _ref.$palette;
12
+ })(["width:100%;height:", "px;border:1px solid ", ";margin:0;box-sizing:border-box;"], function (_ref) {
13
+ var $height = _ref.$height;
14
+ return $height;
15
+ }, function (_ref2) {
16
+ var $palette = _ref2.$palette;
14
17
  return $palette.divider;
15
18
  });
@@ -6,5 +6,6 @@ export type TProps = {
6
6
  hasError?: boolean;
7
7
  isLarge?: boolean;
8
8
  disabled?: boolean;
9
+ autoFocus?: boolean;
9
10
  };
10
11
  export declare const CodeInput: FC<TProps>;
@@ -25,7 +25,8 @@ var CodeInput = exports.CodeInput = function CodeInput(_ref) {
25
25
  value = _ref.value,
26
26
  _ref$isLarge = _ref.isLarge,
27
27
  isLarge = _ref$isLarge === void 0 ? true : _ref$isLarge,
28
- disabled = _ref.disabled;
28
+ disabled = _ref.disabled,
29
+ autoFocus = _ref.autoFocus;
29
30
  var palette = (0, _palette.useComponentPalette)('codeInput');
30
31
  var getCodeArrFromCodeString = function getCodeArrFromCodeString() {
31
32
  var newValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
@@ -93,7 +94,8 @@ var CodeInput = exports.CodeInput = function CodeInput(_ref) {
93
94
  onFocus: handleFocus,
94
95
  placeholder: "-",
95
96
  $hasError: hasError,
96
- disabled: !!disabled
97
+ disabled: !!disabled,
98
+ autoFocus: autoFocus
97
99
  });
98
100
  }));
99
101
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.146",
3
+ "version": "0.1.0-alpha.148",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {