trepur_components 0.2.58 → 0.2.59
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.
|
@@ -9,6 +9,8 @@ exports.default = void 0;
|
|
|
9
9
|
|
|
10
10
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
11
11
|
|
|
12
|
+
require("core-js/modules/es.json.stringify.js");
|
|
13
|
+
|
|
12
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
15
|
|
|
14
16
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
@@ -94,6 +96,14 @@ const TextAndTitle = _ref => {
|
|
|
94
96
|
withLiveUpdates && setIsHovering(!isHovering);
|
|
95
97
|
};
|
|
96
98
|
|
|
99
|
+
const destructChildren = children => {
|
|
100
|
+
let data = '';
|
|
101
|
+
children && children.map(child => {
|
|
102
|
+
data += "".concat(JSON.parse(JSON.stringify(child)).props.children);
|
|
103
|
+
});
|
|
104
|
+
return data;
|
|
105
|
+
};
|
|
106
|
+
|
|
97
107
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
98
108
|
id: id
|
|
99
109
|
}, {
|
|
@@ -109,7 +119,7 @@ const TextAndTitle = _ref => {
|
|
|
109
119
|
type: "text"
|
|
110
120
|
}), /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
111
121
|
classes: "py-4",
|
|
112
|
-
value:
|
|
122
|
+
value: destructChildren(children),
|
|
113
123
|
onChange: e => handleChange(e),
|
|
114
124
|
type: "text"
|
|
115
125
|
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|