@lideralia/alife-uikit 1.2.62 → 1.2.63
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.
|
@@ -27,7 +27,7 @@ var _Typography = require("../../atoms/Typography");
|
|
|
27
27
|
|
|
28
28
|
var _FlowerHome = _interopRequireDefault(require("../../atoms/imgs/FlowerHome"));
|
|
29
29
|
|
|
30
|
-
var _excluded = ["titleLabel", "descriptionLabel", "customColor", "customTextColor", "actionLabel", "actionButton", "eventFlowerAction", "hasNotFinished", "
|
|
30
|
+
var _excluded = ["titleLabel", "descriptionLabel", "customColor", "customTextColor", "actionLabel", "actionButton", "eventFlowerAction", "hasNotFinished", "openingHoursLabel", "dateCeremonyLabel"];
|
|
31
31
|
|
|
32
32
|
var CardFlower = function CardFlower(props) {
|
|
33
33
|
var titleLabel = props.titleLabel,
|
|
@@ -38,7 +38,8 @@ var CardFlower = function CardFlower(props) {
|
|
|
38
38
|
actionButton = props.actionButton,
|
|
39
39
|
eventFlowerAction = props.eventFlowerAction,
|
|
40
40
|
hasNotFinished = props.hasNotFinished,
|
|
41
|
-
|
|
41
|
+
openingHoursLabel = props.openingHoursLabel,
|
|
42
|
+
dateCeremonyLabel = props.dateCeremonyLabel,
|
|
42
43
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
43
44
|
return _react.default.createElement(_Card.Card, (0, _extends2.default)({
|
|
44
45
|
maxWidth: "339px",
|
|
@@ -93,13 +94,14 @@ var CardFlower = function CardFlower(props) {
|
|
|
93
94
|
backgroundColor: customColor,
|
|
94
95
|
colorType: customColor || 'orange',
|
|
95
96
|
color: customTextColor
|
|
96
|
-
}, actionLabel)))), hasNotFinished &&
|
|
97
|
+
}, actionLabel)))), hasNotFinished && openingHoursLabel && _react.default.createElement(CardFlower.HasTimeBeforeClose, props));
|
|
97
98
|
};
|
|
98
99
|
|
|
99
100
|
exports.CardFlower = CardFlower;
|
|
100
101
|
|
|
101
102
|
CardFlower.HasTimeBeforeClose = function (_ref) {
|
|
102
|
-
var
|
|
103
|
+
var openingHoursLabel = _ref.openingHoursLabel,
|
|
104
|
+
dateCeremonyLabel = _ref.dateCeremonyLabel;
|
|
103
105
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Flex, {
|
|
104
106
|
flexDirection: "column",
|
|
105
107
|
style: {
|
|
@@ -115,12 +117,18 @@ CardFlower.HasTimeBeforeClose = function (_ref) {
|
|
|
115
117
|
}, _react.default.createElement(_Icon.Icon, {
|
|
116
118
|
color: "grey",
|
|
117
119
|
sizeIcon: "display20"
|
|
118
|
-
}, _react.default.createElement(_Icons.IconClock, null)), _react.default.createElement(_Typography.Text, {
|
|
120
|
+
}, _react.default.createElement(_Icons.IconClock, null)), _react.default.createElement("div", null, _react.default.createElement(_Typography.Text, {
|
|
119
121
|
color: "black84",
|
|
120
122
|
fontWeight: "bold",
|
|
121
123
|
sizeText: "display17",
|
|
122
124
|
paddingLeft: 2
|
|
123
|
-
},
|
|
125
|
+
}, openingHoursLabel), dateCeremonyLabel && _react.default.createElement(_Typography.Text, {
|
|
126
|
+
color: "black84",
|
|
127
|
+
fontWeight: "bold",
|
|
128
|
+
sizeText: "display12",
|
|
129
|
+
paddingLeft: 2,
|
|
130
|
+
paddingTop: 1
|
|
131
|
+
}, dateCeremonyLabel)))));
|
|
124
132
|
};
|
|
125
133
|
|
|
126
134
|
CardFlower.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.63",
|
|
4
4
|
"description": "Librería y documentación de componentes, basada en el Design System de Alife.",
|
|
5
5
|
"homepage": "https://github.com/lideralia/alife-frontend-components#readme",
|
|
6
6
|
"bugs": {
|