@invoicebox/ui 0.1.0-alpha.206 → 0.1.0-alpha.208

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.
@@ -11,7 +11,7 @@ export type TGroup = {
11
11
  id: string;
12
12
  entity?: unknown;
13
13
  };
14
- export type TProps<TValue> = Pick<TInputProps, 'label' | 'hasError' | 'placeholder' | 'name' | 'size'> & {
14
+ export type TProps<TValue> = Pick<TInputProps, 'label' | 'hasError' | 'placeholder' | 'name' | 'size' | 'onBlur'> & {
15
15
  value: TValue | null;
16
16
  onChange: (value: TValue | null) => void;
17
17
  options: TOption<TValue>[];
@@ -26,4 +26,4 @@ export type TProps<TValue> = Pick<TInputProps, 'label' | 'hasError' | 'placehold
26
26
  emptyOptionsLabel?: string;
27
27
  isLoading?: boolean;
28
28
  };
29
- export declare const Select: <TValue extends string | number>({ label, hasError, placeholder, name, value, onChange, options, groups, isResetButtonEnabled, size, renderOption, dropdownHeader, isDrawerOptions, renderGroup, scrollbarMaxHeight, scrollbarHeader, emptyOptionsLabel, isLoading, }: TProps<TValue>) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const Select: <TValue extends string | number>({ label, hasError, placeholder, name, value, onChange, options, groups, isResetButtonEnabled, size, renderOption, dropdownHeader, isDrawerOptions, renderGroup, scrollbarMaxHeight, scrollbarHeader, emptyOptionsLabel, isLoading, onBlur, }: TProps<TValue>) => import("react/jsx-runtime").JSX.Element;
@@ -49,9 +49,12 @@ var Select = exports.Select = function Select(_ref) {
49
49
  scrollbarMaxHeight = _ref$scrollbarMaxHeig === void 0 ? MAX_LIST_HEIGHT : _ref$scrollbarMaxHeig,
50
50
  scrollbarHeader = _ref.scrollbarHeader,
51
51
  emptyOptionsLabel = _ref.emptyOptionsLabel,
52
- isLoading = _ref.isLoading;
52
+ isLoading = _ref.isLoading,
53
+ onBlur = _ref.onBlur;
53
54
  var palette = (0, _palette.useComponentPalette)('select');
54
- var _useInputFocus = (0, _useInputFocus2.useInputFocus)(),
55
+ var _useInputFocus = (0, _useInputFocus2.useInputFocus)({
56
+ onBlur: onBlur
57
+ }),
55
58
  inFocus = _useInputFocus.inFocus,
56
59
  focusHandler = _useInputFocus.handleFocus,
57
60
  blurHandler = _useInputFocus.handleBlur;
@@ -9,12 +9,17 @@ var _styles = require("../PureInput/styles");
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _excluded = ["children"];
11
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
12
+ 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); }
12
13
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
13
14
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
14
15
  var Wrapper = function Wrapper(_ref) {
15
16
  var children = _ref.children,
16
17
  other = _objectWithoutProperties(_ref, _excluded);
17
- return /*#__PURE__*/_react["default"].createElement("div", other, children);
18
+ return /*#__PURE__*/_react["default"].createElement("div", _extends({
19
+ style: {
20
+ overflow: 'hidden'
21
+ }
22
+ }, other), children);
18
23
  };
19
24
  var PureInputStyledWrapper = exports.PureInputStyledWrapper = (0, _styles.getPureInputStyled)(Wrapper);
20
25
  var TagsWrapper = exports.TagsWrapper = _styledComponents["default"].div.withConfig({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invoicebox/ui",
3
- "version": "0.1.0-alpha.206",
3
+ "version": "0.1.0-alpha.208",
4
4
  "description": "Invoicebox UI",
5
5
  "license": "Apache License 2.0",
6
6
  "scripts": {