@lideralia/alife-uikit 1.2.63 → 1.2.64
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", "timeLeft"];
|
|
31
31
|
|
|
32
32
|
var CardFlower = function CardFlower(props) {
|
|
33
33
|
var titleLabel = props.titleLabel,
|
|
@@ -38,8 +38,7 @@ var CardFlower = function CardFlower(props) {
|
|
|
38
38
|
actionButton = props.actionButton,
|
|
39
39
|
eventFlowerAction = props.eventFlowerAction,
|
|
40
40
|
hasNotFinished = props.hasNotFinished,
|
|
41
|
-
|
|
42
|
-
dateCeremonyLabel = props.dateCeremonyLabel,
|
|
41
|
+
timeLeft = props.timeLeft,
|
|
43
42
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
44
43
|
return _react.default.createElement(_Card.Card, (0, _extends2.default)({
|
|
45
44
|
maxWidth: "339px",
|
|
@@ -94,14 +93,13 @@ var CardFlower = function CardFlower(props) {
|
|
|
94
93
|
backgroundColor: customColor,
|
|
95
94
|
colorType: customColor || 'orange',
|
|
96
95
|
color: customTextColor
|
|
97
|
-
}, actionLabel)))), hasNotFinished &&
|
|
96
|
+
}, actionLabel)))), hasNotFinished && timeLeft && _react.default.createElement(CardFlower.HasTimeBeforeClose, props));
|
|
98
97
|
};
|
|
99
98
|
|
|
100
99
|
exports.CardFlower = CardFlower;
|
|
101
100
|
|
|
102
101
|
CardFlower.HasTimeBeforeClose = function (_ref) {
|
|
103
|
-
var
|
|
104
|
-
dateCeremonyLabel = _ref.dateCeremonyLabel;
|
|
102
|
+
var timeLeft = _ref.timeLeft;
|
|
105
103
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Flex, {
|
|
106
104
|
flexDirection: "column",
|
|
107
105
|
style: {
|
|
@@ -117,18 +115,12 @@ CardFlower.HasTimeBeforeClose = function (_ref) {
|
|
|
117
115
|
}, _react.default.createElement(_Icon.Icon, {
|
|
118
116
|
color: "grey",
|
|
119
117
|
sizeIcon: "display20"
|
|
120
|
-
}, _react.default.createElement(_Icons.IconClock, null)), _react.default.createElement(
|
|
118
|
+
}, _react.default.createElement(_Icons.IconClock, null)), _react.default.createElement(_Typography.Text, {
|
|
121
119
|
color: "black84",
|
|
122
120
|
fontWeight: "bold",
|
|
123
121
|
sizeText: "display17",
|
|
124
122
|
paddingLeft: 2
|
|
125
|
-
},
|
|
126
|
-
color: "black84",
|
|
127
|
-
fontWeight: "bold",
|
|
128
|
-
sizeText: "display12",
|
|
129
|
-
paddingLeft: 2,
|
|
130
|
-
paddingTop: 1
|
|
131
|
-
}, dateCeremonyLabel)))));
|
|
123
|
+
}, timeLeft))));
|
|
132
124
|
};
|
|
133
125
|
|
|
134
126
|
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.64",
|
|
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": {
|