@lideralia/alife-uikit 1.1.366 → 1.1.367

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.
@@ -116,7 +116,10 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
116
116
  content = _ref3$line.content,
117
117
  userGroup = _ref3$line.userGroup,
118
118
  customColor = _ref3.customColor,
119
- customTextColor = _ref3.customTextColor;
119
+ customTextColor = _ref3.customTextColor,
120
+ showActionVideo = _ref3.showActionVideo,
121
+ showActionQuote = _ref3.showActionQuote,
122
+ showActionPicture = _ref3.showActionPicture;
120
123
  return _react.default.createElement(_react.default.Fragment, null, userGroup >= 2 && !(content !== null && content !== void 0 && content.length) && _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_Layout.Box, {
121
124
  width: "100%",
122
125
  maxHeight: "153px",
@@ -131,7 +134,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
131
134
  textAlign: "center"
132
135
  }, noContentDescription || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
133
136
  height: "22px"
134
- })), _react.default.createElement(_Button.Button, {
137
+ })), showActionPicture && _react.default.createElement(_Button.Button, {
135
138
  backgroundColor: customColor,
136
139
  colorType: customColor || "blue",
137
140
  color: customTextColor,
@@ -140,7 +143,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
140
143
  return actionPicture();
141
144
  },
142
145
  marginTop: 3,
143
- marginBottom: 1,
146
+ marginBottom: showActionVideo && showActionQuote ? 1 : 18,
144
147
  justifyContent: "flex-start",
145
148
  fullWidth: true
146
149
  }, _react.default.createElement(_Icon.Icon, {
@@ -148,7 +151,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
148
151
  sizeIcon: "display24"
149
152
  }, _react.default.createElement(_IconCamera.default, null)), actionPictureLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
150
153
  height: "22px"
151
- })), _react.default.createElement(_Button.Button, {
154
+ })), showActionVideo && _react.default.createElement(_Button.Button, {
152
155
  backgroundColor: customColor,
153
156
  colorType: customColor || "blue",
154
157
  color: customTextColor,
@@ -164,7 +167,7 @@ var FamilyHomeWithoutContentSection = function FamilyHomeWithoutContentSection(_
164
167
  sizeIcon: "display24"
165
168
  }, _react.default.createElement(_IconVideo.default, null)), actionVideoLabel || _react.default.createElement(_PlaceholderLoad.PlaceholderLoad, {
166
169
  height: "22px"
167
- })), _react.default.createElement(_Button.Button, {
170
+ })), showActionQuote && _react.default.createElement(_Button.Button, {
168
171
  backgroundColor: customColor,
169
172
  colorType: customColor || "blue",
170
173
  color: customTextColor,
@@ -194,7 +197,10 @@ FamilyHomeWithoutContentSection.defaultProps = {
194
197
  actionPictureLabel: null,
195
198
  noContentDescription: null,
196
199
  customColor: "",
197
- customTextColor: ""
200
+ customTextColor: "",
201
+ showActionVideo: true,
202
+ showActionQuote: true,
203
+ showActionPicture: true
198
204
  };
199
205
 
200
206
  var FamilyHomeWithContentSection = function FamilyHomeWithContentSection(_ref4) {
@@ -33,7 +33,7 @@ var _Button = require("../../atoms/Button");
33
33
 
34
34
  var _Confirmation = require("./Confirmation");
35
35
 
36
- var _excluded = ["id", "isOpen", "isOpenConfirmation", "onModalClose", "onModalBack", "title", "listparticipants", "isAdmin", "actionRemoveContent", "confirmationButton", "action"];
36
+ var _excluded = ["id", "isOpen", "isOpenConfirmation", "onModalClose", "onModalBack", "title", "listparticipants", "isAdmin", "actionRemoveContent", "confirmationButton", "action", "me"];
37
37
 
38
38
  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); }
39
39
 
@@ -45,7 +45,10 @@ var ParticipantItem = function ParticipantItem(props) {
45
45
  actionRemoveContent = props.actionRemoveContent,
46
46
  id = props.id,
47
47
  line_id = props.line_id,
48
- avatarImage = props.avatarImage;
48
+ avatarImage = props.avatarImage,
49
+ user_role = props.user_role,
50
+ me = props.me,
51
+ user_id = props.user_id;
49
52
  return _react.default.createElement(_Card.Card, (0, _extends2.default)({
50
53
  backgroundColor: "black06"
51
54
  }, props, {
@@ -59,7 +62,7 @@ var ParticipantItem = function ParticipantItem(props) {
59
62
  padding: "6px",
60
63
  width: "100%",
61
64
  alignItems: "center",
62
- justifyContent: "space-between"
65
+ justifyContent: "flex-start"
63
66
  }, _react.default.createElement(_Layout.GridItem, {
64
67
  gridArea: "avatar",
65
68
  marginRight: 1
@@ -81,7 +84,7 @@ var ParticipantItem = function ParticipantItem(props) {
81
84
  },
82
85
  overflow: "hidden",
83
86
  width: "200px"
84
- }, participant), isAdmin && _react.default.createElement(_Icon.Icon, {
87
+ }, participant), user_role != 4 && me.user_role > user_role && me.user_id != user_id && _react.default.createElement(_Icon.Icon, {
85
88
  sizeIcon: "display24",
86
89
  color: "black60",
87
90
  onClick: function onClick() {
@@ -105,6 +108,7 @@ var ModalParticipants = function ModalParticipants(_ref) {
105
108
  _actionRemoveContent = _ref.actionRemoveContent,
106
109
  confirmationButton = _ref.confirmationButton,
107
110
  action = _ref.action,
111
+ me = _ref.me,
108
112
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
109
113
  (0, _react.useEffect)(function () {}, [action]);
110
114
  return !action ? _react.default.createElement(_Modal.Modal, {
@@ -132,7 +136,7 @@ var ModalParticipants = function ModalParticipants(_ref) {
132
136
  justifyContent: "space-evenly",
133
137
  alignItems: "center"
134
138
  }, listparticipants === null || listparticipants === void 0 ? void 0 : listparticipants.map(function (participant) {
135
- var _participant$user_fol, _participant$user_fol3, _participant$owner_us;
139
+ var _participant$user_fol, _participant$user_fol3, _participant$user_fol4, _participant$owner_us;
136
140
 
137
141
  return (participant === null || participant === void 0 ? void 0 : (_participant$user_fol = participant.user_follows_line) === null || _participant$user_fol === void 0 ? void 0 : _participant$user_fol.user_role) >= 2 && _react.default.createElement(ParticipantItem, {
138
142
  key: participant === null || participant === void 0 ? void 0 : participant.id,
@@ -145,7 +149,10 @@ var ModalParticipants = function ModalParticipants(_ref) {
145
149
  },
146
150
  id: participant === null || participant === void 0 ? void 0 : participant.id,
147
151
  line_id: participant === null || participant === void 0 ? void 0 : (_participant$user_fol3 = participant.user_follows_line) === null || _participant$user_fol3 === void 0 ? void 0 : _participant$user_fol3.line_id,
148
- avatarImage: participant === null || participant === void 0 ? void 0 : (_participant$owner_us = participant.owner_user) === null || _participant$owner_us === void 0 ? void 0 : _participant$owner_us.profile_pic_url
152
+ user_role: participant === null || participant === void 0 ? void 0 : (_participant$user_fol4 = participant.user_follows_line) === null || _participant$user_fol4 === void 0 ? void 0 : _participant$user_fol4.user_role,
153
+ user_id: participant === null || participant === void 0 ? void 0 : participant.user_id,
154
+ avatarImage: participant === null || participant === void 0 ? void 0 : (_participant$owner_us = participant.owner_user) === null || _participant$owner_us === void 0 ? void 0 : _participant$owner_us.profile_pic_url,
155
+ me: me
149
156
  });
150
157
  }))))) : _react.default.createElement(_Confirmation.ModalConfirmation, {
151
158
  isOpen: isOpenConfirmation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lideralia/alife-uikit",
3
- "version": "1.1.366",
3
+ "version": "1.1.367",
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": {