trepur_components 0.2.48 → 0.2.51
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.
|
@@ -29,7 +29,8 @@ const AlertBar = _ref => {
|
|
|
29
29
|
leftIconColor,
|
|
30
30
|
rightIconColor,
|
|
31
31
|
textCenter,
|
|
32
|
-
isDismissable
|
|
32
|
+
isDismissable,
|
|
33
|
+
onDismissClick
|
|
33
34
|
} = _ref;
|
|
34
35
|
let bgColor;
|
|
35
36
|
if (!['success', 'warning', 'error', 'info'].includes(type)) bgColor = 'bg-brand-info-light';
|
|
@@ -47,6 +48,7 @@ const AlertBar = _ref => {
|
|
|
47
48
|
|
|
48
49
|
const closeAlertBar = () => {
|
|
49
50
|
document.getElementById(id ? id : 'alertBar').classList.add('hidden');
|
|
51
|
+
onDismissClick();
|
|
50
52
|
};
|
|
51
53
|
|
|
52
54
|
rightIcon = isDismissable ? 'multiply' : rightIcon;
|
|
@@ -39,7 +39,6 @@ const Nav = _ref => {
|
|
|
39
39
|
hoverMobileNavButtonBgColor,
|
|
40
40
|
hoverMobileNavButtonColor,
|
|
41
41
|
asSideBar,
|
|
42
|
-
logo,
|
|
43
42
|
mobileNavCloseColor,
|
|
44
43
|
sideBarWidth,
|
|
45
44
|
dropdownNavHeight,
|
|
@@ -78,7 +77,7 @@ const Nav = _ref => {
|
|
|
78
77
|
|
|
79
78
|
const openSideNav = () => {
|
|
80
79
|
setSideNavWidth({
|
|
81
|
-
'width': "".concat(sideBarWidth
|
|
80
|
+
'width': "".concat(sideBarWidth),
|
|
82
81
|
'backgroundColor': mobileBgColor ? mobileBgColor : bgColor,
|
|
83
82
|
'padding-right': '10px'
|
|
84
83
|
});
|
|
@@ -190,7 +189,7 @@ const Nav = _ref => {
|
|
|
190
189
|
className: 'flex ' + firstRowClasses
|
|
191
190
|
}, firstRow && firstRow.map(rowItem => {
|
|
192
191
|
return /*#__PURE__*/_react.default.createElement(_Column.default, {
|
|
193
|
-
classes: 'h-16 ' + rowItem.columnClasses,
|
|
192
|
+
classes: 'h-16 ' + rowItem.columnClasses ? rowItem.columnClasses : null,
|
|
194
193
|
sm: rowItem.smColumnWidth,
|
|
195
194
|
md: rowItem.columnWidth,
|
|
196
195
|
lg: rowItem.lgColumnWidth,
|
|
@@ -202,7 +201,7 @@ const Nav = _ref => {
|
|
|
202
201
|
className: 'flex ' + secondRowClasses
|
|
203
202
|
}, secondRow && secondRow.map(rowItem => {
|
|
204
203
|
return /*#__PURE__*/_react.default.createElement(_Column.default, {
|
|
205
|
-
classes: "h-16
|
|
204
|
+
classes: "h-16",
|
|
206
205
|
sm: rowItem.smColumnWidth,
|
|
207
206
|
md: rowItem.columnWidth,
|
|
208
207
|
lg: rowItem.lgColumnWidth,
|
|
@@ -21,7 +21,7 @@ const TextAndTitle = _ref => {
|
|
|
21
21
|
classes,
|
|
22
22
|
titleClasses,
|
|
23
23
|
textClasses,
|
|
24
|
-
|
|
24
|
+
children,
|
|
25
25
|
title,
|
|
26
26
|
titleBold,
|
|
27
27
|
bgColor,
|
|
@@ -55,10 +55,10 @@ const TextAndTitle = _ref => {
|
|
|
55
55
|
}), /*#__PURE__*/_react.default.createElement("p", {
|
|
56
56
|
style: titleStyles,
|
|
57
57
|
className: titleClassList
|
|
58
|
-
}, title), /*#__PURE__*/_react.default.createElement("
|
|
58
|
+
}, title), /*#__PURE__*/_react.default.createElement("div", {
|
|
59
59
|
style: textStyles,
|
|
60
60
|
className: textClassList
|
|
61
|
-
},
|
|
61
|
+
}, children));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
var _default = TextAndTitle;
|