@lideralia/alife-uikit 1.3.1 → 1.3.2
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.
|
@@ -60,18 +60,33 @@ const Box = (0, _styledComponents.default)('div').withConfig({
|
|
|
60
60
|
})(_styledSystem.space, _styledSystem.color, _styledSystem.layout, _styledSystem.flexbox, _styledSystem.position, _styledSystem.border, _styledSystem.background, _styledSystem.opacity, _styledSystem.shadow, _styledSystem.typography, _styledSystem.variant);
|
|
61
61
|
exports.Box = Box;
|
|
62
62
|
Box.propTypes = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _propTypes.default.space), _propTypes.default.color), _propTypes.default.layout), _propTypes.default.flexbox), _propTypes.default.position), _propTypes.default.border), _propTypes.default.opacity), _propTypes.default.shadow), _propTypes.default.variant);
|
|
63
|
+
|
|
64
|
+
const getGapValue = gap => {
|
|
65
|
+
if (gap === undefined) return undefined;
|
|
66
|
+
if (typeof gap === 'number') return "".concat(gap * 8, "px");
|
|
67
|
+
return gap;
|
|
68
|
+
};
|
|
69
|
+
|
|
63
70
|
const Flex = (0, _styledComponents.default)(Box).withConfig({
|
|
71
|
+
shouldForwardProp: (prop, defaultValidatorFn) => defaultValidatorFn(prop) || prop === 'gap'
|
|
72
|
+
}).attrs(props => ({
|
|
73
|
+
gap: props.gap
|
|
74
|
+
})).withConfig({
|
|
64
75
|
displayName: "Layout__Flex",
|
|
65
76
|
componentId: "sc-1ozuvye-2"
|
|
66
|
-
})({
|
|
67
|
-
|
|
77
|
+
})(["display:flex;gap:", ";"], _ref => {
|
|
78
|
+
let {
|
|
79
|
+
gap
|
|
80
|
+
} = _ref;
|
|
81
|
+
return getGapValue(gap);
|
|
68
82
|
});
|
|
69
83
|
exports.Flex = Flex;
|
|
70
84
|
Flex.propTypes = {
|
|
71
85
|
flexWrap: _propTypes2.default.string,
|
|
72
86
|
flexDirection: _propTypes2.default.string,
|
|
73
87
|
alignCols: _propTypes2.default.string,
|
|
74
|
-
justifyContent: _propTypes2.default.string
|
|
88
|
+
justifyContent: _propTypes2.default.string,
|
|
89
|
+
gap: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string])
|
|
75
90
|
};
|
|
76
91
|
|
|
77
92
|
const Row = props => {
|
|
@@ -33,7 +33,7 @@ var _Typography = require("../../atoms/Typography");
|
|
|
33
33
|
|
|
34
34
|
var _CarouselScroll = require("../../molecules/CarouselScroll");
|
|
35
35
|
|
|
36
|
-
const _excluded = ["isAdmin", "numAttendees", "confirmed", "isAnswered", "pictures", "pictureMap", "urlMap", "userCanAttend", "hasStreaming"];
|
|
36
|
+
const _excluded = ["isAdmin", "numAttendees", "confirmed", "isAnswered", "pictures", "pictureMap", "urlMap", "userCanAttend", "hasStreaming", "warningMessage"];
|
|
37
37
|
|
|
38
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
39
39
|
|
|
@@ -50,7 +50,8 @@ const CardCeremony = props => {
|
|
|
50
50
|
pictureMap,
|
|
51
51
|
urlMap,
|
|
52
52
|
userCanAttend,
|
|
53
|
-
hasStreaming
|
|
53
|
+
hasStreaming,
|
|
54
|
+
warningMessage
|
|
54
55
|
} = props,
|
|
55
56
|
rest = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
56
57
|
return _react.default.createElement(_Card.Card, (0, _extends2.default)({
|
|
@@ -72,7 +73,9 @@ const CardCeremony = props => {
|
|
|
72
73
|
borderTopStyle: "solid",
|
|
73
74
|
borderTopWidth: "1px",
|
|
74
75
|
borderTopColor: "black12"
|
|
75
|
-
})), !isAnswered && userCanAttend && _react.default.createElement(CardCeremony.Assistants, props), isAdmin && numAttendees && _react.default.createElement(CardCeremony.Attendees, props),
|
|
76
|
+
})), !isAnswered && userCanAttend && _react.default.createElement(CardCeremony.Assistants, props), isAdmin && numAttendees && _react.default.createElement(CardCeremony.Attendees, props), warningMessage && _react.default.createElement(CardCeremony.Warning, {
|
|
77
|
+
warningMessage: warningMessage
|
|
78
|
+
}), hasStreaming && _react.default.createElement(CardCeremony.HasStreaming, props));
|
|
76
79
|
};
|
|
77
80
|
|
|
78
81
|
exports.CardCeremony = CardCeremony;
|
|
@@ -410,7 +413,6 @@ CardCeremony.HasStreaming = _ref7 => {
|
|
|
410
413
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Flex, {
|
|
411
414
|
flexDirection: "column",
|
|
412
415
|
style: {
|
|
413
|
-
borderRadius: '0px 0px 18px 18px',
|
|
414
416
|
backgroundColor: 'rgba(242, 180, 64, 0.12)'
|
|
415
417
|
}
|
|
416
418
|
}, _react.default.createElement(_Layout.Flex, {
|
|
@@ -462,4 +464,32 @@ CardCeremony.HasStreaming = _ref7 => {
|
|
|
462
464
|
sizeButton: "small",
|
|
463
465
|
action: () => onLogin()
|
|
464
466
|
}, textButtonStreaming)), _react.default.createElement(_Icons.IconInfoCircle, null))));
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
CardCeremony.Warning = _ref8 => {
|
|
470
|
+
let {
|
|
471
|
+
warningMessage
|
|
472
|
+
} = _ref8;
|
|
473
|
+
return _react.default.createElement(_Layout.Flex, {
|
|
474
|
+
flexDirection: "row",
|
|
475
|
+
style: {
|
|
476
|
+
backgroundColor: 'rgba(242, 180, 64, 0.12)'
|
|
477
|
+
},
|
|
478
|
+
padding: 3,
|
|
479
|
+
borderTopColor: "black12",
|
|
480
|
+
borderTopStyle: "solid",
|
|
481
|
+
borderTopWidth: "1px",
|
|
482
|
+
alignItems: "center",
|
|
483
|
+
justifyContent: "center",
|
|
484
|
+
width: "100%",
|
|
485
|
+
gap: 1
|
|
486
|
+
}, _react.default.createElement(_Icon.Icon, {
|
|
487
|
+
color: "black60",
|
|
488
|
+
sizeIcon: "display16"
|
|
489
|
+
}, _react.default.createElement(_Icons.IconAlertCircle, null)), _react.default.createElement(_Typography.Text, {
|
|
490
|
+
color: "black84",
|
|
491
|
+
fontWeight: "bold",
|
|
492
|
+
sizeText: "display13",
|
|
493
|
+
textAlign: "center"
|
|
494
|
+
}, warningMessage));
|
|
465
495
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
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": {
|