trepur_components 0.3.28 → 0.3.31
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.
- package/dist/components/AlertBar/index.js +26 -13
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Collapsible/index.js +49 -13
- package/dist/components/Greeting/index.js +69 -0
- package/dist/components/Nav/index.js +1 -1
- package/dist/components/StarRating/index.js +2 -2
- package/dist/components/TextAndTitle/index.js +3 -3
- package/dist/index.js +8 -0
- package/package.json +1 -1
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.object.assign.js");
|
|
4
4
|
|
|
5
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = exports.alertBarProps = void 0;
|
|
11
9
|
|
|
12
|
-
require("core-js/modules/
|
|
10
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
11
|
|
|
14
|
-
var _react =
|
|
12
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
13
|
|
|
16
14
|
var _Icon = _interopRequireWildcard(require("../Icon"));
|
|
17
15
|
|
|
@@ -19,12 +17,12 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
19
17
|
|
|
20
18
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
19
|
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
|
+
|
|
22
22
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
23
|
|
|
24
24
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
25
|
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
26
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
29
27
|
|
|
30
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -53,17 +51,25 @@ const AlertBar = _ref => {
|
|
|
53
51
|
alertBarProps
|
|
54
52
|
} = _ref;
|
|
55
53
|
if (alertBarProps == undefined) return;
|
|
54
|
+
const [alertBarStatus, setAlertBarStatus] = (0, _react.useState)({
|
|
55
|
+
status: 'open',
|
|
56
|
+
display: true
|
|
57
|
+
});
|
|
56
58
|
const bgColor = (0, _classnames.default)({
|
|
57
|
-
'bg-
|
|
58
|
-
'bg-
|
|
59
|
-
'bg-
|
|
60
|
-
'bg-
|
|
61
|
-
|
|
59
|
+
'bg-success': (alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.type) === 'success',
|
|
60
|
+
'bg-warning': (alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.type) === 'warning',
|
|
61
|
+
'bg-error': (alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.type) === 'error',
|
|
62
|
+
'bg-info-light': (alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.type) === 'info'
|
|
63
|
+
});
|
|
64
|
+
const alertBarState = (0, _classnames.default)({
|
|
65
|
+
'opacity-100': alertBarStatus.state === 'open',
|
|
66
|
+
'opacity-0': alertBarStatus.state === 'closed',
|
|
67
|
+
'hidden': alertBarStatus.display === false
|
|
62
68
|
});
|
|
63
69
|
const classList = (0, _classnames.default)({
|
|
64
70
|
[bgColor]: bgColor,
|
|
65
71
|
[alertBarProps.classes]: (alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.classes) !== undefined
|
|
66
|
-
},
|
|
72
|
+
}, "w-parent flex py-2 transition-opactiy duration-700 ".concat(alertBarState));
|
|
67
73
|
const textClassList = (0, _classnames.default)({
|
|
68
74
|
'text-center': alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.textCenter,
|
|
69
75
|
'pl-4': !(alertBarProps !== null && alertBarProps !== void 0 && alertBarProps.textCenter),
|
|
@@ -78,7 +84,14 @@ const AlertBar = _ref => {
|
|
|
78
84
|
}, 'pt-3 pl-8');
|
|
79
85
|
|
|
80
86
|
const closeAlertBar = () => {
|
|
81
|
-
|
|
87
|
+
setAlertBarStatus({
|
|
88
|
+
state: 'closed',
|
|
89
|
+
display: alertBarStatus.display
|
|
90
|
+
});
|
|
91
|
+
setTimeout(() => setAlertBarStatus({
|
|
92
|
+
state: 'closed',
|
|
93
|
+
display: false
|
|
94
|
+
}), 700);
|
|
82
95
|
};
|
|
83
96
|
|
|
84
97
|
alertBarProps.dismissIcon = _objectSpread(_objectSpread({}, alertBarProps === null || alertBarProps === void 0 ? void 0 : alertBarProps.dismissIcon), {}, {
|
|
@@ -49,7 +49,7 @@ const Breadcrumbs = _ref => {
|
|
|
49
49
|
}, link.name) : /*#__PURE__*/_react.default.createElement("p", {
|
|
50
50
|
className: "px-1 py-1"
|
|
51
51
|
}, /*#__PURE__*/_react.default.createElement("a", {
|
|
52
|
-
className: "text-
|
|
52
|
+
className: "text-facebook hover:underline",
|
|
53
53
|
href: link.href
|
|
54
54
|
}, link.name)))), i + 1 < linksLength && /*#__PURE__*/_react.default.createElement("li", {
|
|
55
55
|
className: "h-8"
|
|
@@ -47,16 +47,32 @@ const collapsibleProps = {
|
|
|
47
47
|
contentBgColor: _propTypes.default.string,
|
|
48
48
|
contentTextColor: _propTypes.default.string,
|
|
49
49
|
showBottomLine: _propTypes.default.bool,
|
|
50
|
-
iconProps: _propTypes.default.object
|
|
51
|
-
children: _propTypes.default.any
|
|
50
|
+
iconProps: _propTypes.default.object
|
|
52
51
|
};
|
|
53
52
|
exports.collapsibleProps = collapsibleProps;
|
|
54
53
|
|
|
55
54
|
const Collapsible = _ref => {
|
|
56
55
|
let {
|
|
57
|
-
collapsibleProps
|
|
56
|
+
collapsibleProps,
|
|
57
|
+
children
|
|
58
58
|
} = _ref;
|
|
59
59
|
const [expanded, setExpanded] = (0, _react.useState)(false);
|
|
60
|
+
(0, _react.useEffect)(() => {
|
|
61
|
+
var coll = document.getElementsByClassName("collapsible");
|
|
62
|
+
var i;
|
|
63
|
+
|
|
64
|
+
for (i = 0; i < coll.length; i++) {
|
|
65
|
+
coll[i].addEventListener("click", function () {
|
|
66
|
+
var content = this.nextElementSibling;
|
|
67
|
+
|
|
68
|
+
if (content.style.maxHeight === '0px') {
|
|
69
|
+
content.style.maxHeight = content.scrollHeight + "px";
|
|
70
|
+
} else {
|
|
71
|
+
content.style.maxHeight = '0px';
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
});
|
|
60
76
|
if (collapsibleProps == undefined) return;
|
|
61
77
|
const titleBold = collapsibleProps !== null && collapsibleProps !== void 0 && collapsibleProps.boldTitle ? 'text-bold' : '';
|
|
62
78
|
const padding = (0, _classnames.default)({
|
|
@@ -69,7 +85,7 @@ const Collapsible = _ref => {
|
|
|
69
85
|
const borders = (0, _classnames.default)({
|
|
70
86
|
'border-b': collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.borderBottom,
|
|
71
87
|
'border-t': collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.borderTop,
|
|
72
|
-
[collapsibleProps.textColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.textColor,
|
|
88
|
+
[collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.textColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.textColor,
|
|
73
89
|
[collapsibleProps.bgColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.bgColor,
|
|
74
90
|
'text-white': !(collapsibleProps !== null && collapsibleProps !== void 0 && collapsibleProps.textColor),
|
|
75
91
|
'bg-light-grey': !collapsibleProps.bgColor,
|
|
@@ -77,22 +93,39 @@ const Collapsible = _ref => {
|
|
|
77
93
|
[collapsibleProps.hoverBgColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.hoverBgColor,
|
|
78
94
|
'hover:text-white': !(collapsibleProps !== null && collapsibleProps !== void 0 && collapsibleProps.hoverTextColor),
|
|
79
95
|
'hover:bg-light-grey': !collapsibleProps.hoverBgColor
|
|
80
|
-
}, 'w-auto flex text-center');
|
|
96
|
+
}, ' w-auto flex text-center collapsible');
|
|
81
97
|
const contentWrapperClasses = (0, _classnames.default)({
|
|
82
98
|
'border-b': collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.showBottomLine,
|
|
83
99
|
[collapsibleProps.contentBgColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.contentBgColor,
|
|
84
100
|
'bg-light-grey': !(collapsibleProps !== null && collapsibleProps !== void 0 && collapsibleProps.contentBgColor),
|
|
85
101
|
[collapsibleProps.contentTextColor]: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.contentTextColor,
|
|
86
|
-
'text-white': collapsibleProps
|
|
87
|
-
|
|
102
|
+
'text-white': !(collapsibleProps !== null && collapsibleProps !== void 0 && collapsibleProps.contentTextColor),
|
|
103
|
+
'max-h-max my-2': expanded,
|
|
104
|
+
'max-h-0': !expanded
|
|
105
|
+
}, 'w-auto overflow-hidden px-4');
|
|
106
|
+
|
|
107
|
+
const expandItem = e => {
|
|
108
|
+
const content = e.currentTarget.nextElementSibling;
|
|
109
|
+
|
|
110
|
+
if (!expanded) {
|
|
111
|
+
content.style.maxHeight = "".concat(content.scrollHeight, "px");
|
|
112
|
+
} else {
|
|
113
|
+
content.style.maxHeight = '0px';
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
setExpanded(!expanded);
|
|
117
|
+
};
|
|
118
|
+
|
|
88
119
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.id) && {
|
|
89
120
|
id: collapsibleProps.id
|
|
90
121
|
}, {
|
|
91
122
|
className: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.classes
|
|
92
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
93
|
-
|
|
123
|
+
}), /*#__PURE__*/_react.default.createElement("div", _extends({}, (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.id) && {
|
|
124
|
+
id: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.id
|
|
125
|
+
}, {
|
|
126
|
+
onClick: e => expandItem(e),
|
|
94
127
|
className: borders
|
|
95
|
-
}, (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.iconProps) && /*#__PURE__*/_react.default.createElement("div", {
|
|
128
|
+
}), (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.iconProps) && /*#__PURE__*/_react.default.createElement("div", {
|
|
96
129
|
className: "pl-4 text-left ".concat(padding, " ").concat(textSubstitutePadding)
|
|
97
130
|
}, /*#__PURE__*/_react.default.createElement(_index.default, {
|
|
98
131
|
iconProps: collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.iconProps
|
|
@@ -110,9 +143,12 @@ const Collapsible = _ref => {
|
|
|
110
143
|
iconProps: {
|
|
111
144
|
type: 'chevron-down'
|
|
112
145
|
}
|
|
113
|
-
})))), (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.isDropdown) &&
|
|
114
|
-
className: contentWrapperClasses
|
|
115
|
-
|
|
146
|
+
})))), (collapsibleProps === null || collapsibleProps === void 0 ? void 0 : collapsibleProps.isDropdown) && /*#__PURE__*/_react.default.createElement("div", {
|
|
147
|
+
className: contentWrapperClasses,
|
|
148
|
+
style: {
|
|
149
|
+
'transition': 'max-height 0.2s ease-out'
|
|
150
|
+
}
|
|
151
|
+
}, children));
|
|
116
152
|
};
|
|
117
153
|
|
|
118
154
|
Collapsible.propTypes = {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.object.assign.js");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
require("core-js/modules/es.parse-int.js");
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
+
|
|
28
|
+
const greetingProps = {
|
|
29
|
+
id: _propTypes.default.string,
|
|
30
|
+
classes: _propTypes.default.string,
|
|
31
|
+
morningMessage: _propTypes.default.string,
|
|
32
|
+
afternoonMessage: _propTypes.default.string,
|
|
33
|
+
eveningMessage: _propTypes.default.string
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const Greeting = _ref => {
|
|
37
|
+
let {
|
|
38
|
+
greetingProps
|
|
39
|
+
} = _ref;
|
|
40
|
+
const today = new Date();
|
|
41
|
+
const hours = ('0' + today.getHours()).slice(-2);
|
|
42
|
+
const minutes = ('0' + today.getMinutes()).slice(-2);
|
|
43
|
+
const seconds = ('0' + today.getSeconds()).slice(-2);
|
|
44
|
+
const time = parseInt("".concat(hours).concat(minutes).concat(seconds));
|
|
45
|
+
let message;
|
|
46
|
+
|
|
47
|
+
if (time < 120000) {
|
|
48
|
+
message = (greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.morningMessage) || 'Good morning';
|
|
49
|
+
} else if (time > 115959 && time < 170000) {
|
|
50
|
+
message = (greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.afternoonMessage) || 'Good afternoon';
|
|
51
|
+
} else if (time > 165959) {
|
|
52
|
+
message = (greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.afternoonMessage) || 'Good evening';
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const classList = (0, _classnames.default)({
|
|
56
|
+
[greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.classes]: greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.classes
|
|
57
|
+
});
|
|
58
|
+
return /*#__PURE__*/_react.default.createElement("p", _extends({}, (greetingProps === null || greetingProps === void 0 ? void 0 : greetingProps.id) && {
|
|
59
|
+
id: greetingProps.id
|
|
60
|
+
}, {
|
|
61
|
+
className: classList
|
|
62
|
+
}), message);
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
Greeting.propTypes = {
|
|
66
|
+
greetingProps: _propTypes.default.shape(_objectSpread({}, greetingProps))
|
|
67
|
+
};
|
|
68
|
+
var _default = Greeting;
|
|
69
|
+
exports.default = _default;
|
|
@@ -141,7 +141,7 @@ const Nav = _ref => {
|
|
|
141
141
|
[bgColor]: bgColor,
|
|
142
142
|
'bg-blue': !bgColor,
|
|
143
143
|
[borderBottomColor]: borderBottomColor,
|
|
144
|
-
'border-b-
|
|
144
|
+
'border-b-facebook': !borderBottomColor
|
|
145
145
|
});
|
|
146
146
|
const desktopClassList = (0, _classnames.default)({
|
|
147
147
|
'fixed w-full z-50 top-0 mt-0': fixedTop,
|
|
@@ -62,7 +62,7 @@ const StarRating = _ref => {
|
|
|
62
62
|
classes: "".concat(iconClassList, " checked"),
|
|
63
63
|
type: 'star',
|
|
64
64
|
size: starRatingProps === null || starRatingProps === void 0 ? void 0 : (_starRatingProps$icon2 = starRatingProps.iconProps) === null || _starRatingProps$icon2 === void 0 ? void 0 : _starRatingProps$icon2.size,
|
|
65
|
-
colour: 'text-
|
|
65
|
+
colour: 'text-gold'
|
|
66
66
|
}
|
|
67
67
|
}));
|
|
68
68
|
}
|
|
@@ -83,7 +83,7 @@ const StarRating = _ref => {
|
|
|
83
83
|
classes: "".concat(iconClassList, " unchecked opacity-30 gold"),
|
|
84
84
|
type: 'star',
|
|
85
85
|
size: starRatingProps === null || starRatingProps === void 0 ? void 0 : (_starRatingProps$icon3 = starRatingProps.iconProps) === null || _starRatingProps$icon3 === void 0 ? void 0 : _starRatingProps$icon3.size,
|
|
86
|
-
colour: 'text-
|
|
86
|
+
colour: 'text-gold'
|
|
87
87
|
}
|
|
88
88
|
}));
|
|
89
89
|
}
|
|
@@ -125,7 +125,7 @@ const TextAndTitle = _ref => {
|
|
|
125
125
|
[textAndTitleProps.titleColor]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.titleColor,
|
|
126
126
|
'text-black': !(textAndTitleProps !== null && textAndTitleProps !== void 0 && textAndTitleProps.titleColor),
|
|
127
127
|
[borderClasses]: (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
128
|
-
}, 'text-md sm:text-lg');
|
|
128
|
+
}, 'text-md sm:text-lg, break-words');
|
|
129
129
|
const textClassList = (0, _classnames.default)({
|
|
130
130
|
'text-center': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textCenter,
|
|
131
131
|
[textAndTitleProps.textClasses]: textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.textClasses,
|
|
@@ -181,10 +181,10 @@ const TextAndTitle = _ref => {
|
|
|
181
181
|
'hover:border-black hover:border-dashed': (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.withLiveUpdates) && !isInEditingMode
|
|
182
182
|
}, 'border-2 border-transparent');
|
|
183
183
|
const titleWrapperClassList = (0, _classnames.default)({
|
|
184
|
-
'md:w-1/2 md:text-center px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
184
|
+
'md:w-1/2 md:text-center md:px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
185
185
|
});
|
|
186
186
|
const textWrapperClassList = (0, _classnames.default)({
|
|
187
|
-
'md:w-1/2 md:text-center md:py-8 px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
187
|
+
'md:w-1/2 md:text-center md:py-8 md:px-8': textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.isHorizontal
|
|
188
188
|
});
|
|
189
189
|
return /*#__PURE__*/_react.default.createElement("div", _extends({}, (textAndTitleProps === null || textAndTitleProps === void 0 ? void 0 : textAndTitleProps.id) && {
|
|
190
190
|
id: textAndTitleProps.id
|
package/dist/index.js
CHANGED
|
@@ -99,6 +99,12 @@ Object.defineProperty(exports, "FyreCard", {
|
|
|
99
99
|
return _FyreCard.default;
|
|
100
100
|
}
|
|
101
101
|
});
|
|
102
|
+
Object.defineProperty(exports, "Greeting", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function get() {
|
|
105
|
+
return _Greeting.default;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
102
108
|
Object.defineProperty(exports, "Icon", {
|
|
103
109
|
enumerable: true,
|
|
104
110
|
get: function get() {
|
|
@@ -258,6 +264,8 @@ var _FooterBar = _interopRequireDefault(require("./components/FooterBar"));
|
|
|
258
264
|
|
|
259
265
|
var _FyreCard = _interopRequireDefault(require("./components/FyreCard"));
|
|
260
266
|
|
|
267
|
+
var _Greeting = _interopRequireDefault(require("./components/Greeting"));
|
|
268
|
+
|
|
261
269
|
var _Icon = _interopRequireDefault(require("./components/Icon"));
|
|
262
270
|
|
|
263
271
|
var _Image = _interopRequireDefault(require("./components/Image"));
|