@lideralia/alife-uikit 1.1.217 → 1.1.221
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/atoms/Loader/Loader.js +11 -5
- package/dist/atoms/Loader/LoaderFour.js +77 -0
- package/dist/atoms/Loader/index.js +9 -1
- package/dist/atoms/Loader/styles.js +20 -3
- package/dist/organisms/Cards/Ceremony.js +6 -5
- package/dist/organisms/Modals/PaymentConfirmation.js +90 -0
- package/dist/organisms/Modals/index.js +9 -1
- package/package.json +1 -1
|
@@ -16,12 +16,15 @@ var _Overlay = require("../Overlay");
|
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
|
|
18
18
|
var Loader = function Loader(_ref) {
|
|
19
|
-
var customColor = _ref.customColor
|
|
19
|
+
var customColor = _ref.customColor,
|
|
20
|
+
width = _ref.width,
|
|
21
|
+
height = _ref.height,
|
|
22
|
+
position = _ref.position;
|
|
20
23
|
return _react.default.createElement(_Layout.Flex, {
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
24
|
+
width: width,
|
|
25
|
+
height: height,
|
|
23
26
|
justifyContent: "center",
|
|
24
|
-
position:
|
|
27
|
+
position: position,
|
|
25
28
|
top: 0,
|
|
26
29
|
left: 0,
|
|
27
30
|
zIndex: 10,
|
|
@@ -60,7 +63,10 @@ var LoaderAnimation = function LoaderAnimation(_ref2) {
|
|
|
60
63
|
|
|
61
64
|
exports.LoaderAnimation = LoaderAnimation;
|
|
62
65
|
Loader.defaultProps = {
|
|
63
|
-
customColor: null
|
|
66
|
+
customColor: null,
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100vh",
|
|
69
|
+
position: "fixed"
|
|
64
70
|
};
|
|
65
71
|
LoaderAnimation.defaultProps = {
|
|
66
72
|
customColor: null
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.LoaderFour = exports.LoaderAnimation = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _Layout = require("../Layout");
|
|
13
|
+
|
|
14
|
+
var _Overlay = require("../Overlay");
|
|
15
|
+
|
|
16
|
+
var _styles = require("./styles");
|
|
17
|
+
|
|
18
|
+
var LoaderFour = function LoaderFour(_ref) {
|
|
19
|
+
var customColor = _ref.customColor,
|
|
20
|
+
width = _ref.width,
|
|
21
|
+
height = _ref.height,
|
|
22
|
+
position = _ref.position;
|
|
23
|
+
return _react.default.createElement(_Layout.Flex, {
|
|
24
|
+
width: width,
|
|
25
|
+
height: height,
|
|
26
|
+
justifyContent: "center",
|
|
27
|
+
position: position,
|
|
28
|
+
top: 0,
|
|
29
|
+
left: 0,
|
|
30
|
+
zIndex: 10,
|
|
31
|
+
style: {
|
|
32
|
+
pointerEvents: 'none'
|
|
33
|
+
}
|
|
34
|
+
}, _react.default.createElement(_Overlay.Overlay, {
|
|
35
|
+
backgroundColor: "black12"
|
|
36
|
+
}), _react.default.createElement(_styles.LoaderFourStyledAnimation, {
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "center"
|
|
39
|
+
}, _react.default.createElement(_styles.LoaderFourStyled, {
|
|
40
|
+
customColor: "#EC3C4E"
|
|
41
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
42
|
+
customColor: "#F27E30"
|
|
43
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
44
|
+
customColor: "#F2B440"
|
|
45
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
46
|
+
customColor: "#A0B454"
|
|
47
|
+
})));
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.LoaderFour = LoaderFour;
|
|
51
|
+
|
|
52
|
+
var LoaderAnimation = function LoaderAnimation(_ref2) {
|
|
53
|
+
var customColor = _ref2.customColor;
|
|
54
|
+
return _react.default.createElement(_styles.LoaderFourStyledAnimation, {
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
justifyContent: "center"
|
|
57
|
+
}, _react.default.createElement(_styles.LoaderFourStyled, {
|
|
58
|
+
customColor: customColor
|
|
59
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
60
|
+
customColor: customColor
|
|
61
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
62
|
+
customColor: customColor
|
|
63
|
+
}), _react.default.createElement(_styles.LoaderFourStyled, {
|
|
64
|
+
customColor: customColor
|
|
65
|
+
}));
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
exports.LoaderAnimation = LoaderAnimation;
|
|
69
|
+
LoaderFour.defaultProps = {
|
|
70
|
+
customColor: null,
|
|
71
|
+
width: "100%",
|
|
72
|
+
height: "100vh",
|
|
73
|
+
position: "fixed"
|
|
74
|
+
};
|
|
75
|
+
LoaderAnimation.defaultProps = {
|
|
76
|
+
customColor: null
|
|
77
|
+
};
|
|
@@ -15,5 +15,13 @@ Object.defineProperty(exports, "LoaderAnimation", {
|
|
|
15
15
|
return _Loader.LoaderAnimation;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
+
Object.defineProperty(exports, "LoaderFour", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _LoaderFour.LoaderFour;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
var _Loader = require("./Loader");
|
|
18
26
|
|
|
19
|
-
var
|
|
27
|
+
var _LoaderFour = require("./LoaderFour");
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.LoaderStyledAnimation = exports.LoaderStyled = void 0;
|
|
10
|
+
exports.LoaderStyledAnimation = exports.LoaderStyled = exports.LoaderFourStyledAnimation = exports.LoaderFourStyled = void 0;
|
|
11
11
|
|
|
12
12
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
13
13
|
|
|
@@ -40,8 +40,25 @@ var LoaderStyled = (0, _styledComponents.default)(LoaderCustom).withConfig({
|
|
|
40
40
|
marginY: 3
|
|
41
41
|
}));
|
|
42
42
|
exports.LoaderStyled = LoaderStyled;
|
|
43
|
+
var LoaderFourStyled = (0, _styledComponents.default)(LoaderCustom).withConfig({
|
|
44
|
+
displayName: "styles__LoaderFourStyled",
|
|
45
|
+
componentId: "sc-90e8iv-2"
|
|
46
|
+
})((0, _css.default)({
|
|
47
|
+
display: 'inline-block',
|
|
48
|
+
width: '15px',
|
|
49
|
+
height: '15px',
|
|
50
|
+
borderRadius: 9,
|
|
51
|
+
marginX: 1,
|
|
52
|
+
marginY: 3
|
|
53
|
+
}));
|
|
54
|
+
exports.LoaderFourStyled = LoaderFourStyled;
|
|
43
55
|
var LoaderStyledAnimation = (0, _styledComponents.default)(_Layout.Flex).withConfig({
|
|
44
56
|
displayName: "styles__LoaderStyledAnimation",
|
|
45
|
-
componentId: "sc-90e8iv-
|
|
57
|
+
componentId: "sc-90e8iv-3"
|
|
46
58
|
})(["z-index:5;span:nth-child(1){animation:", " 1s ease-in-out infinite;}span:nth-child(2){animation:", " 1s ease-in-out 0.33s infinite;}span:nth-child(3){animation:", " 1s ease-in-out 0.66s infinite;}"], loaderAnimation, loaderAnimation, loaderAnimation);
|
|
47
|
-
exports.LoaderStyledAnimation = LoaderStyledAnimation;
|
|
59
|
+
exports.LoaderStyledAnimation = LoaderStyledAnimation;
|
|
60
|
+
var LoaderFourStyledAnimation = (0, _styledComponents.default)(_Layout.Flex).withConfig({
|
|
61
|
+
displayName: "styles__LoaderFourStyledAnimation",
|
|
62
|
+
componentId: "sc-90e8iv-4"
|
|
63
|
+
})(["z-index:5;span:nth-child(1){animation:", " 2s ease-in-out infinite;}span:nth-child(2){animation:", " 2s ease-in-out 0.5s infinite;}span:nth-child(3){animation:", " 2s ease-in-out 1.0s infinite;}span:nth-child(4){animation:", " 2s ease-in-out 1.5s infinite;}"], loaderAnimation, loaderAnimation, loaderAnimation, loaderAnimation);
|
|
64
|
+
exports.LoaderFourStyledAnimation = LoaderFourStyledAnimation;
|
|
@@ -188,7 +188,8 @@ CardCeremony.GeneralInfo = function (_ref2) {
|
|
|
188
188
|
eventDateEnd = _ref2.eventDateEnd,
|
|
189
189
|
timerange = _ref2.timerange,
|
|
190
190
|
eventRoom = _ref2.eventRoom,
|
|
191
|
-
eventInfo = _ref2.eventInfo
|
|
191
|
+
eventInfo = _ref2.eventInfo,
|
|
192
|
+
showAmFormat = _ref2.showAmFormat;
|
|
192
193
|
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Box, {
|
|
193
194
|
paddingBottom: 1,
|
|
194
195
|
paddingX: 3
|
|
@@ -203,7 +204,7 @@ CardCeremony.GeneralInfo = function (_ref2) {
|
|
|
203
204
|
}
|
|
204
205
|
}, venueName || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
205
206
|
height: "24px"
|
|
206
|
-
})), (eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableDate) === (eventDateEnd === null || eventDateEnd === void 0 ? void 0 : eventDateEnd.readableDate) ? _react.default.createElement(_Layout.Flex, {
|
|
207
|
+
})), (eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableDate) === (eventDateEnd === null || eventDateEnd === void 0 ? void 0 : eventDateEnd.readableDate) && false ? _react.default.createElement(_Layout.Flex, {
|
|
207
208
|
justifyContent: "space-between",
|
|
208
209
|
marginY: 1
|
|
209
210
|
}, _react.default.createElement(_Layout.Flex, {
|
|
@@ -221,7 +222,7 @@ CardCeremony.GeneralInfo = function (_ref2) {
|
|
|
221
222
|
maxWidth: '167px',
|
|
222
223
|
overflow: 'hidden'
|
|
223
224
|
}
|
|
224
|
-
}, (eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.
|
|
225
|
+
}, (eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableStringDateNoYearShortMonth) || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
225
226
|
height: "24px",
|
|
226
227
|
width: "90px"
|
|
227
228
|
}))), _react.default.createElement(_Layout.Flex, {
|
|
@@ -253,7 +254,7 @@ CardCeremony.GeneralInfo = function (_ref2) {
|
|
|
253
254
|
maxWidth: '260px',
|
|
254
255
|
overflow: 'hidden'
|
|
255
256
|
}
|
|
256
|
-
}, "Inicio: ", eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.
|
|
257
|
+
}, "Inicio: ", eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableStringDateNoYearShortMonth, ", ", showAmFormat ? eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableTimeAmPm : eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableTime) : _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
|
|
257
258
|
height: "24px",
|
|
258
259
|
width: "90px"
|
|
259
260
|
})), eventDateEnd ? _react.default.createElement(_Layout.Flex, {
|
|
@@ -271,7 +272,7 @@ CardCeremony.GeneralInfo = function (_ref2) {
|
|
|
271
272
|
maxWidth: '260px',
|
|
272
273
|
overflow: 'hidden'
|
|
273
274
|
}
|
|
274
|
-
}, "Fin: ", eventDateEnd === null || eventDateEnd === void 0 ? void 0 : eventDateEnd.
|
|
275
|
+
}, "Fin: ", eventDateEnd === null || eventDateEnd === void 0 ? void 0 : eventDateEnd.readableStringDateNoYearShortMonth, ", ", showAmFormat ? eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableTimeAmPm : eventDateStart === null || eventDateStart === void 0 ? void 0 : eventDateStart.readableTime)) : _react.default.createElement(_react.default.Fragment, null)), _react.default.createElement(_Layout.Box, {
|
|
275
276
|
marginBottom: 3
|
|
276
277
|
}, eventRoom && _react.default.createElement(_Typography.Text, {
|
|
277
278
|
sizeText: "display16",
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ModalPaymentConfirmation = void 0;
|
|
9
|
+
|
|
10
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
+
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
|
|
14
|
+
var _Layout = require("../../atoms/Layout");
|
|
15
|
+
|
|
16
|
+
var _Modal = require("../../molecules/Modal");
|
|
17
|
+
|
|
18
|
+
var _Typography = require("../../atoms/Typography");
|
|
19
|
+
|
|
20
|
+
var _Icons = require("../../atoms/Icons");
|
|
21
|
+
|
|
22
|
+
var _Icon = require("../../atoms/Icon");
|
|
23
|
+
|
|
24
|
+
var _LoaderFour = require("../../atoms/Loader/LoaderFour");
|
|
25
|
+
|
|
26
|
+
var _excluded = ["id", "isOpen", "onModalClose", "onModalBack", "title", "description"];
|
|
27
|
+
|
|
28
|
+
var ModalPaymentConfirmation = function ModalPaymentConfirmation(_ref) {
|
|
29
|
+
var id = _ref.id,
|
|
30
|
+
isOpen = _ref.isOpen,
|
|
31
|
+
onModalClose = _ref.onModalClose,
|
|
32
|
+
onModalBack = _ref.onModalBack,
|
|
33
|
+
title = _ref.title,
|
|
34
|
+
description = _ref.description,
|
|
35
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
36
|
+
return _react.default.createElement(_Modal.Modal, {
|
|
37
|
+
width: "339px",
|
|
38
|
+
id: id,
|
|
39
|
+
isOpen: isOpen,
|
|
40
|
+
duration: 100,
|
|
41
|
+
hasError: 0,
|
|
42
|
+
onModalClose: onModalClose,
|
|
43
|
+
marginX: 0,
|
|
44
|
+
marginY: 0,
|
|
45
|
+
onModalBack: onModalBack || function () {},
|
|
46
|
+
closeWithButton: false,
|
|
47
|
+
backWithButton: false,
|
|
48
|
+
title: false
|
|
49
|
+
}, _react.default.createElement(_Modal.Modal.Content, null, _react.default.createElement(_Layout.Box, {
|
|
50
|
+
overflowY: "scroll",
|
|
51
|
+
maxHeight: "100%"
|
|
52
|
+
}, _react.default.createElement(_Layout.Flex, {
|
|
53
|
+
width: "100%",
|
|
54
|
+
minWidth: "100%",
|
|
55
|
+
height: "100%",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
justifyContent: "space-evenly",
|
|
58
|
+
alignItems: "center"
|
|
59
|
+
}, _react.default.createElement("div", {
|
|
60
|
+
style: {
|
|
61
|
+
backgroundColor: "#E6E4E5",
|
|
62
|
+
padding: "20px",
|
|
63
|
+
width: "64px",
|
|
64
|
+
height: "64px",
|
|
65
|
+
borderRadius: "50px",
|
|
66
|
+
margin: "0px auto 15px auto"
|
|
67
|
+
}
|
|
68
|
+
}, _react.default.createElement(_Icon.Icon, {
|
|
69
|
+
sizeIcon: "display24",
|
|
70
|
+
marginRight: 2,
|
|
71
|
+
color: "black84"
|
|
72
|
+
}, _react.default.createElement(_Icons.IconClock, null))), _react.default.createElement(_Typography.Text, {
|
|
73
|
+
as: "header",
|
|
74
|
+
fontWeight: "bold",
|
|
75
|
+
textAlign: "center"
|
|
76
|
+
}, title), _react.default.createElement(_Layout.Flex, null, _react.default.createElement(_LoaderFour.LoaderFour, {
|
|
77
|
+
height: "70px",
|
|
78
|
+
position: "unset"
|
|
79
|
+
})), _react.default.createElement(_Typography.Text, {
|
|
80
|
+
textAlign: "center"
|
|
81
|
+
}, description)))));
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
exports.ModalPaymentConfirmation = ModalPaymentConfirmation;
|
|
85
|
+
ModalPaymentConfirmation.defaultProps = {
|
|
86
|
+
hasError: false,
|
|
87
|
+
errorMessage: '',
|
|
88
|
+
onModalClose: function onModalClose() {},
|
|
89
|
+
onModalBack: function onModalBack() {}
|
|
90
|
+
};
|
|
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "ModalLoginPassCode", {
|
|
|
27
27
|
return _LoginPassCode.ModalLoginPassCode;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "ModalPaymentConfirmation", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _PaymentConfirmation.ModalPaymentConfirmation;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
Object.defineProperty(exports, "ModalRegister", {
|
|
31
37
|
enumerable: true,
|
|
32
38
|
get: function get() {
|
|
@@ -42,4 +48,6 @@ var _Legal = require("./Legal");
|
|
|
42
48
|
|
|
43
49
|
var _Register = require("./Register");
|
|
44
50
|
|
|
45
|
-
var _DatailFlower = require("./DatailFlower");
|
|
51
|
+
var _DatailFlower = require("./DatailFlower");
|
|
52
|
+
|
|
53
|
+
var _PaymentConfirmation = require("./PaymentConfirmation");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lideralia/alife-uikit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.221",
|
|
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": {
|