trepur_components 0.2.59 → 0.2.62
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,8 +9,6 @@ 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
|
-
|
|
14
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
13
|
|
|
16
14
|
var _Input = _interopRequireDefault(require("../Input"));
|
|
@@ -37,7 +35,9 @@ const TextAndTitle = _ref => {
|
|
|
37
35
|
editTitleClasses,
|
|
38
36
|
editTitleInputClasses,
|
|
39
37
|
textClasses,
|
|
40
|
-
|
|
38
|
+
textLineOne,
|
|
39
|
+
textLineTwo,
|
|
40
|
+
textLineThree,
|
|
41
41
|
title,
|
|
42
42
|
titleBold,
|
|
43
43
|
bgColor,
|
|
@@ -96,14 +96,6 @@ const TextAndTitle = _ref => {
|
|
|
96
96
|
withLiveUpdates && setIsHovering(!isHovering);
|
|
97
97
|
};
|
|
98
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
|
-
|
|
107
99
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, id && {
|
|
108
100
|
id: id
|
|
109
101
|
}, {
|
|
@@ -119,7 +111,17 @@ const TextAndTitle = _ref => {
|
|
|
119
111
|
type: "text"
|
|
120
112
|
}), /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
121
113
|
classes: "py-4",
|
|
122
|
-
value:
|
|
114
|
+
value: textLineOne,
|
|
115
|
+
onChange: e => handleChange(e),
|
|
116
|
+
type: "text"
|
|
117
|
+
}), /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
118
|
+
classes: "py-4",
|
|
119
|
+
value: textLineTwo,
|
|
120
|
+
onChange: e => handleChange(e),
|
|
121
|
+
type: "text"
|
|
122
|
+
}), /*#__PURE__*/_react.default.createElement(_Input.default, {
|
|
123
|
+
classes: "py-4",
|
|
124
|
+
value: textLineThree,
|
|
123
125
|
onChange: e => handleChange(e),
|
|
124
126
|
type: "text"
|
|
125
127
|
}), /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
@@ -144,10 +146,16 @@ const TextAndTitle = _ref => {
|
|
|
144
146
|
style: titleStyles,
|
|
145
147
|
className: titleClassList,
|
|
146
148
|
onClick: toggleEditState
|
|
147
|
-
}, titleText), /*#__PURE__*/_react.default.createElement("
|
|
149
|
+
}, titleText), /*#__PURE__*/_react.default.createElement("p", {
|
|
150
|
+
style: textStyles,
|
|
151
|
+
className: textClassList
|
|
152
|
+
}, textLineOne), /*#__PURE__*/_react.default.createElement("p", {
|
|
153
|
+
style: textStyles,
|
|
154
|
+
className: textClassList
|
|
155
|
+
}, textLineTwo), /*#__PURE__*/_react.default.createElement("p", {
|
|
148
156
|
style: textStyles,
|
|
149
157
|
className: textClassList
|
|
150
|
-
},
|
|
158
|
+
}, textLineThree)));
|
|
151
159
|
};
|
|
152
160
|
|
|
153
161
|
var _default = TextAndTitle;
|