colibri-ui 0.7.150 → 0.7.152

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.
@@ -19,13 +19,12 @@ var ClickOutside = function ClickOutside(_a) {
19
19
  if (! /*#__PURE__*/React__default.default.isValidElement(children)) return null;
20
20
  var combinedRef = function combinedRef(node) {
21
21
  childRef.current = node;
22
- // @ts-expect-error expected
23
- var ref = children.ref;
24
- if (ref) {
25
- if (typeof ref === "function") {
26
- ref(node);
27
- } else if (_typeof__default.default(ref) === "object" && ref !== null) {
28
- ref.current = node;
22
+ if (/*#__PURE__*/React__default.default.isValidElement(children) && "ref" in children.props) {
23
+ var childRefProp = children.props.ref;
24
+ if (typeof childRefProp === "function") {
25
+ childRefProp(node);
26
+ } else if (childRefProp && _typeof__default.default(childRefProp) === "object") {
27
+ childRefProp.current = node;
29
28
  }
30
29
  }
31
30
  };
@@ -6,6 +6,7 @@
6
6
  outline: none;
7
7
  overflow: hidden;
8
8
  text-overflow: ellipsis;
9
+ width: 100%;
9
10
  }
10
11
  .base-input::placeholder {
11
12
  color: var(--palette-bg-3);
@@ -10,13 +10,12 @@ var ClickOutside = function ClickOutside(_a) {
10
10
  if (! /*#__PURE__*/React__default.isValidElement(children)) return null;
11
11
  var combinedRef = function combinedRef(node) {
12
12
  childRef.current = node;
13
- // @ts-expect-error expected
14
- var ref = children.ref;
15
- if (ref) {
16
- if (typeof ref === "function") {
17
- ref(node);
18
- } else if (_typeof(ref) === "object" && ref !== null) {
19
- ref.current = node;
13
+ if (/*#__PURE__*/React__default.isValidElement(children) && "ref" in children.props) {
14
+ var childRefProp = children.props.ref;
15
+ if (typeof childRefProp === "function") {
16
+ childRefProp(node);
17
+ } else if (childRefProp && _typeof(childRefProp) === "object") {
18
+ childRefProp.current = node;
20
19
  }
21
20
  }
22
21
  };
@@ -6,6 +6,7 @@
6
6
  outline: none;
7
7
  overflow: hidden;
8
8
  text-overflow: ellipsis;
9
+ width: 100%;
9
10
  }
10
11
  .base-input::placeholder {
11
12
  color: var(--palette-bg-3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "colibri-ui",
3
- "version": "0.7.150",
3
+ "version": "0.7.152",
4
4
  "description": "React UI components library",
5
5
  "main": "index.js",
6
6
  "scripts": {},