trepur_components 0.3.17 → 0.3.18

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.
@@ -70,7 +70,8 @@ const TextAndTitle = _ref => {
70
70
  var _textAndTitleProps$sa, _textAndTitleProps$sa2, _textAndTitleProps$sa3, _textAndTitleProps$sa4, _textAndTitleProps$sa5, _textAndTitleProps$sa6, _textAndTitleProps$sa7, _textAndTitleProps$sa8, _textAndTitleProps$ca, _textAndTitleProps$ca2, _textAndTitleProps$ca3, _textAndTitleProps$ca4, _textAndTitleProps$ca5, _textAndTitleProps$ca6, _textAndTitleProps$ca7, _textAndTitleProps$ca8;
71
71
 
72
72
  let {
73
- textAndTitleProps
73
+ textAndTitleProps,
74
+ children
74
75
  } = _ref;
75
76
  const defaultComponentData = {
76
77
  title: {
@@ -161,7 +162,7 @@ const TextAndTitle = _ref => {
161
162
 
162
163
  const wrapperClassList = (0, _classnames.default)({
163
164
  'flex flex-wrap md:items-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
164
- }, 'border');
165
+ });
165
166
  const titleWrapperClassList = (0, _classnames.default)({
166
167
  'md:w-1/2 md:text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
167
168
  });
@@ -240,9 +241,9 @@ const TextAndTitle = _ref => {
240
241
  onClick: toggleEditState
241
242
  }, /*#__PURE__*/_react.default.createElement("div", {
242
243
  className: titleWrapperClassList
243
- }, /*#__PURE__*/_react.default.createElement("h1", {
244
+ }, componentData.title.text ? /*#__PURE__*/_react.default.createElement("h1", {
244
245
  className: titleClassList
245
- }, componentData.title.text)), /*#__PURE__*/_react.default.createElement("div", {
246
+ }, componentData.title.text) : /*#__PURE__*/_react.default.createElement("div", null, children)), /*#__PURE__*/_react.default.createElement("div", {
246
247
  className: textWrapperClassList
247
248
  }, /*#__PURE__*/_react.default.createElement("p", {
248
249
  className: textClassList
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "trepur_components",
3
3
  "description": "component lib",
4
4
  "author": "trepur_ttenneb",
5
- "version": "0.3.17",
5
+ "version": "0.3.18",
6
6
  "private": false,
7
7
  "keywords": [
8
8
  "react",