contentoh-components-library 21.6.60 → 21.6.61
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/components/organisms/ServicesNavigation/ServiceToolbar.js +210 -0
- package/dist/components/organisms/ServicesNavigation/ServicesNavigation.stories.js +138 -0
- package/dist/components/organisms/ServicesNavigation/ServicesRail.js +705 -0
- package/dist/components/organisms/ServicesNavigation/catalog.js +505 -0
- package/dist/components/organisms/ServicesNavigation/index.js +337 -0
- package/dist/components/organisms/ServicesNavigation/model.js +167 -0
- package/dist/components/organisms/ServicesNavigation/ui.js +371 -0
- package/dist/components/organisms/ServicesNavigation/views.js +1237 -0
- package/dist/components/organisms/ServicesWorkspace/AssigneePicker.js +459 -0
- package/dist/components/organisms/ServicesWorkspace/ServicesWorkspace.stories.js +119 -0
- package/dist/components/organisms/ServicesWorkspace/demo.js +137 -0
- package/dist/components/organisms/ServicesWorkspace/index.js +813 -0
- package/dist/components/organisms/ServicesWorkspace/servicesModel.js +351 -0
- package/dist/components/organisms/ServicesWorkspace/tooltipStyles.js +37 -0
- package/dist/components/pages/CreatorsProductEdition/mocks/mockApi.js +40 -0
- package/dist/components/pages/CreatorsProductEdition/mocks/productServices.fixtures.js +387 -0
- package/dist/components/pages/CreatorsProductEdition/sections/StatusChip.js +13 -4
- package/dist/components/pages/ProductEdition/ProductEdition.stories.js +148 -0
- package/dist/components/pages/ProductEdition/ProductEditionView.js +1355 -0
- package/dist/components/pages/ProductEdition/ServiceHeader.js +142 -0
- package/dist/components/pages/ProductEdition/api.js +256 -0
- package/dist/components/pages/ProductEdition/index.js +37 -0
- package/dist/components/pages/ProductEdition/permissions.js +200 -0
- package/dist/components/pages/ProductEdition/permissions.test.js +320 -0
- package/dist/components/pages/ProductEdition/sections/CatalogServicePanel.js +237 -0
- package/dist/components/pages/ProductEdition/sections/EditionTopBar.js +174 -0
- package/dist/components/pages/ProductEdition/sections/ImagePanel.js +440 -0
- package/dist/components/pages/ProductEdition/sections/ServiceTeam.js +275 -0
- package/dist/components/pages/ProductEdition/sections/ServiceTools.js +186 -0
- package/dist/components/pages/ProductEdition/services.js +233 -0
- package/dist/components/pages/ProductEdition/services.test.js +195 -0
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +15 -2
- package/dist/components/pages/RetailerProductEdition/index.js +57 -40
- package/dist/components/pages/RetailerProductEdition/utils.js +6 -2
- package/dist/index.js +13 -0
- package/package.json +1 -1
- package/src/components/organisms/ServicesNavigation/ServiceToolbar.jsx +143 -0
- package/src/components/organisms/ServicesNavigation/ServicesNavigation.stories.js +101 -0
- package/src/components/organisms/ServicesNavigation/ServicesRail.jsx +591 -0
- package/src/components/organisms/ServicesNavigation/catalog.js +180 -0
- package/src/components/organisms/ServicesNavigation/index.jsx +232 -0
- package/src/components/organisms/ServicesNavigation/model.js +85 -0
- package/src/components/organisms/ServicesNavigation/ui.jsx +229 -0
- package/src/components/organisms/ServicesNavigation/views.jsx +705 -0
- package/src/components/organisms/ServicesWorkspace/AssigneePicker.js +348 -0
- package/src/components/organisms/ServicesWorkspace/ServicesWorkspace.stories.js +61 -0
- package/src/components/organisms/ServicesWorkspace/demo.js +58 -0
- package/src/components/organisms/ServicesWorkspace/index.js +556 -0
- package/src/components/organisms/ServicesWorkspace/servicesModel.js +203 -0
- package/src/components/organisms/ServicesWorkspace/tooltipStyles.js +27 -0
- package/src/components/pages/CreatorsProductEdition/mocks/mockApi.js +17 -0
- package/src/components/pages/CreatorsProductEdition/mocks/productServices.fixtures.js +175 -0
- package/src/components/pages/CreatorsProductEdition/sections/StatusChip.jsx +8 -4
- package/src/components/pages/ProductEdition/ProductEdition.stories.js +106 -0
- package/src/components/pages/ProductEdition/ProductEditionView.jsx +1142 -0
- package/src/components/pages/ProductEdition/ServiceHeader.jsx +104 -0
- package/src/components/pages/ProductEdition/api.js +84 -0
- package/src/components/pages/ProductEdition/index.js +21 -0
- package/src/components/pages/ProductEdition/permissions.js +128 -0
- package/src/components/pages/ProductEdition/permissions.test.js +249 -0
- package/src/components/pages/ProductEdition/sections/CatalogServicePanel.jsx +123 -0
- package/src/components/pages/ProductEdition/sections/EditionTopBar.jsx +134 -0
- package/src/components/pages/ProductEdition/sections/ImagePanel.jsx +342 -0
- package/src/components/pages/ProductEdition/sections/ServiceTeam.jsx +184 -0
- package/src/components/pages/ProductEdition/sections/ServiceTools.jsx +134 -0
- package/src/components/pages/ProductEdition/services.js +187 -0
- package/src/components/pages/ProductEdition/services.test.js +88 -0
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +12 -0
- package/src/components/pages/RetailerProductEdition/index.js +28 -3
- package/src/components/pages/RetailerProductEdition/utils.js +5 -0
- package/src/index.js +1 -0
- package/.claude/settings.local.json +0 -7
- package/dist/ai/prompts/attribute.prompt.js +0 -28
- package/dist/ai/prompts/description.prompt.js +0 -33
- package/dist/ai/schemas/attribute.schema.js +0 -35
- package/dist/ai/schemas/description.schema.js +0 -27
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports, "COLORS", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function get() {
|
|
11
|
+
return _tokens.COLORS;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "FONTS", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function get() {
|
|
17
|
+
return _tokens.FONTS;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.ServiceIcon = exports.PersonAvatar = exports.PendingDot = exports.FONT_STACK = void 0;
|
|
21
|
+
Object.defineProperty(exports, "StatusChip", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _StatusChip.StatusChip;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
exports.serviceStatusProps = exports.serviceStatusColor = exports.primaryButtonSx = exports.pillButtonSx = exports.outlineButtonSx = exports.labelSx = exports.fieldSx = exports.captionSx = exports.TITLE_STACK = void 0;
|
|
28
|
+
Object.defineProperty(exports, "statusColor", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function get() {
|
|
31
|
+
return _tokens.statusColor;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "statusName", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function get() {
|
|
37
|
+
return _tokens.statusName;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
42
|
+
|
|
43
|
+
var _material = require("@mui/material");
|
|
44
|
+
|
|
45
|
+
var _ListAltOutlined = _interopRequireDefault(require("@mui/icons-material/ListAltOutlined"));
|
|
46
|
+
|
|
47
|
+
var _LocalShippingOutlined = _interopRequireDefault(require("@mui/icons-material/LocalShippingOutlined"));
|
|
48
|
+
|
|
49
|
+
var _ShoppingCartOutlined = _interopRequireDefault(require("@mui/icons-material/ShoppingCartOutlined"));
|
|
50
|
+
|
|
51
|
+
var _ArticleOutlined = _interopRequireDefault(require("@mui/icons-material/ArticleOutlined"));
|
|
52
|
+
|
|
53
|
+
var _TitleOutlined = _interopRequireDefault(require("@mui/icons-material/TitleOutlined"));
|
|
54
|
+
|
|
55
|
+
var _TravelExploreOutlined = _interopRequireDefault(require("@mui/icons-material/TravelExploreOutlined"));
|
|
56
|
+
|
|
57
|
+
var _TranslateOutlined = _interopRequireDefault(require("@mui/icons-material/TranslateOutlined"));
|
|
58
|
+
|
|
59
|
+
var _ImageOutlined = _interopRequireDefault(require("@mui/icons-material/ImageOutlined"));
|
|
60
|
+
|
|
61
|
+
var _PhotoCameraOutlined = _interopRequireDefault(require("@mui/icons-material/PhotoCameraOutlined"));
|
|
62
|
+
|
|
63
|
+
var _AutoFixHighOutlined = _interopRequireDefault(require("@mui/icons-material/AutoFixHighOutlined"));
|
|
64
|
+
|
|
65
|
+
var _AspectRatioOutlined = _interopRequireDefault(require("@mui/icons-material/AspectRatioOutlined"));
|
|
66
|
+
|
|
67
|
+
var _DashboardCustomizeOutlined = _interopRequireDefault(require("@mui/icons-material/DashboardCustomizeOutlined"));
|
|
68
|
+
|
|
69
|
+
var _WorkspacePremiumOutlined = _interopRequireDefault(require("@mui/icons-material/WorkspacePremiumOutlined"));
|
|
70
|
+
|
|
71
|
+
var _MovieOutlined = _interopRequireDefault(require("@mui/icons-material/MovieOutlined"));
|
|
72
|
+
|
|
73
|
+
var _ViewInArOutlined = _interopRequireDefault(require("@mui/icons-material/ViewInArOutlined"));
|
|
74
|
+
|
|
75
|
+
var _StorefrontOutlined = _interopRequireDefault(require("@mui/icons-material/StorefrontOutlined"));
|
|
76
|
+
|
|
77
|
+
var _WebOutlined = _interopRequireDefault(require("@mui/icons-material/WebOutlined"));
|
|
78
|
+
|
|
79
|
+
var _InsertChartOutlined = _interopRequireDefault(require("@mui/icons-material/InsertChartOutlined"));
|
|
80
|
+
|
|
81
|
+
var _VerifiedOutlined = _interopRequireDefault(require("@mui/icons-material/VerifiedOutlined"));
|
|
82
|
+
|
|
83
|
+
var _FactCheckOutlined = _interopRequireDefault(require("@mui/icons-material/FactCheckOutlined"));
|
|
84
|
+
|
|
85
|
+
var _PlaylistAddCheckOutlined = _interopRequireDefault(require("@mui/icons-material/PlaylistAddCheckOutlined"));
|
|
86
|
+
|
|
87
|
+
var _PublishOutlined = _interopRequireDefault(require("@mui/icons-material/PublishOutlined"));
|
|
88
|
+
|
|
89
|
+
var _SpaceDashboardOutlined = _interopRequireDefault(require("@mui/icons-material/SpaceDashboardOutlined"));
|
|
90
|
+
|
|
91
|
+
var _InsertDriveFileOutlined = _interopRequireDefault(require("@mui/icons-material/InsertDriveFileOutlined"));
|
|
92
|
+
|
|
93
|
+
var _EventRepeatOutlined = _interopRequireDefault(require("@mui/icons-material/EventRepeatOutlined"));
|
|
94
|
+
|
|
95
|
+
var _BuildOutlined = _interopRequireDefault(require("@mui/icons-material/BuildOutlined"));
|
|
96
|
+
|
|
97
|
+
var _GTranslateOutlined = _interopRequireDefault(require("@mui/icons-material/GTranslateOutlined"));
|
|
98
|
+
|
|
99
|
+
var _AutoAwesomeOutlined = _interopRequireDefault(require("@mui/icons-material/AutoAwesomeOutlined"));
|
|
100
|
+
|
|
101
|
+
var _ChairOutlined = _interopRequireDefault(require("@mui/icons-material/ChairOutlined"));
|
|
102
|
+
|
|
103
|
+
var _RuleOutlined = _interopRequireDefault(require("@mui/icons-material/RuleOutlined"));
|
|
104
|
+
|
|
105
|
+
var _ThumbsUpDownOutlined = _interopRequireDefault(require("@mui/icons-material/ThumbsUpDownOutlined"));
|
|
106
|
+
|
|
107
|
+
var _FormatListBulletedOutlined = _interopRequireDefault(require("@mui/icons-material/FormatListBulletedOutlined"));
|
|
108
|
+
|
|
109
|
+
var _EmojiEventsOutlined = _interopRequireDefault(require("@mui/icons-material/EmojiEventsOutlined"));
|
|
110
|
+
|
|
111
|
+
var _ViewCarouselOutlined = _interopRequireDefault(require("@mui/icons-material/ViewCarouselOutlined"));
|
|
112
|
+
|
|
113
|
+
var _ThreeDRotationOutlined = _interopRequireDefault(require("@mui/icons-material/ThreeDRotationOutlined"));
|
|
114
|
+
|
|
115
|
+
var _ThreeSixtyOutlined = _interopRequireDefault(require("@mui/icons-material/ThreeSixtyOutlined"));
|
|
116
|
+
|
|
117
|
+
var _MenuBookOutlined = _interopRequireDefault(require("@mui/icons-material/MenuBookOutlined"));
|
|
118
|
+
|
|
119
|
+
var _CloudUploadOutlined = _interopRequireDefault(require("@mui/icons-material/CloudUploadOutlined"));
|
|
120
|
+
|
|
121
|
+
var _CameraEnhanceOutlined = _interopRequireDefault(require("@mui/icons-material/CameraEnhanceOutlined"));
|
|
122
|
+
|
|
123
|
+
var _PortraitOutlined = _interopRequireDefault(require("@mui/icons-material/PortraitOutlined"));
|
|
124
|
+
|
|
125
|
+
var _WeekendOutlined = _interopRequireDefault(require("@mui/icons-material/WeekendOutlined"));
|
|
126
|
+
|
|
127
|
+
var _HighQualityOutlined = _interopRequireDefault(require("@mui/icons-material/HighQualityOutlined"));
|
|
128
|
+
|
|
129
|
+
var _ImageSearchOutlined = _interopRequireDefault(require("@mui/icons-material/ImageSearchOutlined"));
|
|
130
|
+
|
|
131
|
+
var _HandymanOutlined = _interopRequireDefault(require("@mui/icons-material/HandymanOutlined"));
|
|
132
|
+
|
|
133
|
+
var _tokens = require("../../pages/CreatorsProductEdition/sections/tokens");
|
|
134
|
+
|
|
135
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
136
|
+
|
|
137
|
+
var _StatusChip = require("../../pages/CreatorsProductEdition/sections/StatusChip");
|
|
138
|
+
|
|
139
|
+
/*
|
|
140
|
+
Colores, tipografía y la etiqueta de estatus son los de la edición de
|
|
141
|
+
Creators (CreatorsProductEdition), para que el prototipo se vea como ella.
|
|
142
|
+
Si la propuesta se aprueba, estas piezas deberían salir de la página a un
|
|
143
|
+
lugar compartido.
|
|
144
|
+
*/
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Props de StatusChip para un servicio de la lista. Los de flujo simple del
|
|
148
|
+
* catálogo (casilla, avance) muestran su nombre y su color en lugar del código.
|
|
149
|
+
*/
|
|
150
|
+
var serviceStatusColor = function serviceStatusColor(service) {
|
|
151
|
+
return (service === null || service === void 0 ? void 0 : service.status_flow_type) === "simple" && service.status_color || (0, _tokens.statusColor)(service === null || service === void 0 ? void 0 : service.status);
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
exports.serviceStatusColor = serviceStatusColor;
|
|
155
|
+
|
|
156
|
+
var serviceStatusProps = function serviceStatusProps(service) {
|
|
157
|
+
var _service$status_label, _service$status_color;
|
|
158
|
+
|
|
159
|
+
return (service === null || service === void 0 ? void 0 : service.status_flow_type) === "simple" ? {
|
|
160
|
+
status: service.status,
|
|
161
|
+
label: (_service$status_label = service.status_label) !== null && _service$status_label !== void 0 ? _service$status_label : service.status,
|
|
162
|
+
color: (_service$status_color = service.status_color) !== null && _service$status_color !== void 0 ? _service$status_color : undefined
|
|
163
|
+
} : {
|
|
164
|
+
status: service === null || service === void 0 ? void 0 : service.status
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
exports.serviceStatusProps = serviceStatusProps;
|
|
169
|
+
var FONT_STACK = "".concat(_tokens.FONTS.Lato, ", \"Avenir Next\", sans-serif");
|
|
170
|
+
exports.FONT_STACK = FONT_STACK;
|
|
171
|
+
var TITLE_STACK = "".concat(_tokens.FONTS.Raleway, ", ").concat(_tokens.FONTS.Lato, ", sans-serif");
|
|
172
|
+
exports.TITLE_STACK = TITLE_STACK;
|
|
173
|
+
var ICONS = {
|
|
174
|
+
summary: _SpaceDashboardOutlined.default,
|
|
175
|
+
// Logística: mismas llaves que cat_service.icon_name.
|
|
176
|
+
pickup: _LocalShippingOutlined.default,
|
|
177
|
+
purchase: _ShoppingCartOutlined.default,
|
|
178
|
+
assembly: _HandymanOutlined.default,
|
|
179
|
+
datasheet: _ListAltOutlined.default,
|
|
180
|
+
description: _ArticleOutlined.default,
|
|
181
|
+
header: _TitleOutlined.default,
|
|
182
|
+
seo: _TravelExploreOutlined.default,
|
|
183
|
+
translation: _TranslateOutlined.default,
|
|
184
|
+
images: _ImageOutlined.default,
|
|
185
|
+
photo: _PhotoCameraOutlined.default,
|
|
186
|
+
edition: _AutoFixHighOutlined.default,
|
|
187
|
+
resize: _AspectRatioOutlined.default,
|
|
188
|
+
adaptations: _DashboardCustomizeOutlined.default,
|
|
189
|
+
premium: _WorkspacePremiumOutlined.default,
|
|
190
|
+
video: _MovieOutlined.default,
|
|
191
|
+
image360: _ThreeSixtyOutlined.default,
|
|
192
|
+
brandstore: _StorefrontOutlined.default,
|
|
193
|
+
aplus: _WebOutlined.default,
|
|
194
|
+
infographics: _InsertChartOutlined.default,
|
|
195
|
+
quality: _VerifiedOutlined.default,
|
|
196
|
+
audit: _FactCheckOutlined.default,
|
|
197
|
+
secodat: _PlaylistAddCheckOutlined.default,
|
|
198
|
+
upload: _PublishOutlined.default,
|
|
199
|
+
followUp: _EventRepeatOutlined.default,
|
|
200
|
+
maintenance: _BuildOutlined.default,
|
|
201
|
+
graphicTranslation: _GTranslateOutlined.default,
|
|
202
|
+
visualUpdate: _AutoAwesomeOutlined.default,
|
|
203
|
+
ambient: _ChairOutlined.default,
|
|
204
|
+
inputReview: _RuleOutlined.default,
|
|
205
|
+
clientReview: _ThumbsUpDownOutlined.default,
|
|
206
|
+
bullets: _FormatListBulletedOutlined.default,
|
|
207
|
+
specialPhoto: _CameraEnhanceOutlined.default,
|
|
208
|
+
modelPhoto: _PortraitOutlined.default,
|
|
209
|
+
premiumAmbient: _WeekendOutlined.default,
|
|
210
|
+
golden: _EmojiEventsOutlined.default,
|
|
211
|
+
banner: _ViewCarouselOutlined.default,
|
|
212
|
+
render: _ThreeDRotationOutlined.default,
|
|
213
|
+
arModel: _ViewInArOutlined.default,
|
|
214
|
+
manual: _MenuBookOutlined.default,
|
|
215
|
+
visualQuality: _HighQualityOutlined.default,
|
|
216
|
+
visualAudit: _ImageSearchOutlined.default,
|
|
217
|
+
gdsn: _CloudUploadOutlined.default,
|
|
218
|
+
visualMaintenance: _HandymanOutlined.default
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
var ServiceIcon = function ServiceIcon(_ref) {
|
|
222
|
+
var _ICONS$icon;
|
|
223
|
+
|
|
224
|
+
var icon = _ref.icon,
|
|
225
|
+
sx = _ref.sx;
|
|
226
|
+
var Icon = (_ICONS$icon = ICONS[icon]) !== null && _ICONS$icon !== void 0 ? _ICONS$icon : _InsertDriveFileOutlined.default;
|
|
227
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
228
|
+
sx: (0, _objectSpread2.default)({
|
|
229
|
+
fontSize: 18
|
|
230
|
+
}, sx)
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/** Punto rosa: «te toca a ti». */
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
exports.ServiceIcon = ServiceIcon;
|
|
237
|
+
|
|
238
|
+
var PendingDot = function PendingDot(_ref2) {
|
|
239
|
+
var _ref2$size = _ref2.size,
|
|
240
|
+
size = _ref2$size === void 0 ? 8 : _ref2$size,
|
|
241
|
+
_ref2$withTooltip = _ref2.withTooltip,
|
|
242
|
+
withTooltip = _ref2$withTooltip === void 0 ? true : _ref2$withTooltip;
|
|
243
|
+
var dot = /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
244
|
+
component: "span",
|
|
245
|
+
"aria-label": "Te toca a ti",
|
|
246
|
+
sx: {
|
|
247
|
+
width: size,
|
|
248
|
+
height: size,
|
|
249
|
+
borderRadius: "50%",
|
|
250
|
+
bgcolor: _tokens.COLORS.magenta_s2,
|
|
251
|
+
flexShrink: 0,
|
|
252
|
+
display: "inline-block"
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
return withTooltip ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
256
|
+
title: "Te toca a ti",
|
|
257
|
+
arrow: true,
|
|
258
|
+
placement: "top",
|
|
259
|
+
children: dot
|
|
260
|
+
}) : dot;
|
|
261
|
+
};
|
|
262
|
+
/** Iniciales de una persona; la persona que está viendo lleva borde rosa. */
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
exports.PendingDot = PendingDot;
|
|
266
|
+
|
|
267
|
+
var PersonAvatar = function PersonAvatar(_ref3) {
|
|
268
|
+
var _user$name$, _user$name, _user$last_name$, _user$last_name;
|
|
269
|
+
|
|
270
|
+
var user = _ref3.user,
|
|
271
|
+
_ref3$isMe = _ref3.isMe,
|
|
272
|
+
isMe = _ref3$isMe === void 0 ? false : _ref3$isMe,
|
|
273
|
+
_ref3$size = _ref3.size,
|
|
274
|
+
size = _ref3$size === void 0 ? 26 : _ref3$size,
|
|
275
|
+
title = _ref3.title;
|
|
276
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tooltip, {
|
|
277
|
+
title: title !== null && title !== void 0 ? title : "",
|
|
278
|
+
arrow: true,
|
|
279
|
+
placement: "top",
|
|
280
|
+
disableHoverListener: !title,
|
|
281
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Avatar, {
|
|
282
|
+
sx: {
|
|
283
|
+
width: size,
|
|
284
|
+
height: size,
|
|
285
|
+
fontSize: size * 0.42,
|
|
286
|
+
fontFamily: FONT_STACK,
|
|
287
|
+
fontWeight: 700,
|
|
288
|
+
bgcolor: user ? _tokens.COLORS.s2 : _tokens.COLORS.white,
|
|
289
|
+
color: user ? _tokens.COLORS.s5 : _tokens.COLORS.s3,
|
|
290
|
+
border: "2px solid ".concat(isMe ? _tokens.COLORS.magenta_s2 : _tokens.COLORS.white),
|
|
291
|
+
outline: user ? "none" : "1px dashed ".concat(_tokens.COLORS.s3),
|
|
292
|
+
outlineOffset: -3
|
|
293
|
+
},
|
|
294
|
+
children: user ? "".concat((_user$name$ = (_user$name = user.name) === null || _user$name === void 0 ? void 0 : _user$name[0]) !== null && _user$name$ !== void 0 ? _user$name$ : "").concat((_user$last_name$ = (_user$last_name = user.last_name) === null || _user$last_name === void 0 ? void 0 : _user$last_name[0]) !== null && _user$last_name$ !== void 0 ? _user$last_name$ : "").toUpperCase() : "?"
|
|
295
|
+
})
|
|
296
|
+
});
|
|
297
|
+
};
|
|
298
|
+
/** Botones redondeados de la plataforma (rosa lleno y contorno). */
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
exports.PersonAvatar = PersonAvatar;
|
|
302
|
+
var pillButtonSx = {
|
|
303
|
+
textTransform: "none",
|
|
304
|
+
borderRadius: "20px",
|
|
305
|
+
fontFamily: FONT_STACK,
|
|
306
|
+
fontSize: 13,
|
|
307
|
+
fontWeight: 700,
|
|
308
|
+
height: 32,
|
|
309
|
+
px: 2,
|
|
310
|
+
boxShadow: "none",
|
|
311
|
+
whiteSpace: "nowrap"
|
|
312
|
+
};
|
|
313
|
+
exports.pillButtonSx = pillButtonSx;
|
|
314
|
+
var primaryButtonSx = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, pillButtonSx), {}, {
|
|
315
|
+
bgcolor: _tokens.COLORS.magenta_s2,
|
|
316
|
+
color: _tokens.COLORS.white,
|
|
317
|
+
"&:hover": {
|
|
318
|
+
bgcolor: _tokens.COLORS.secondary_magenta,
|
|
319
|
+
boxShadow: "none"
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
exports.primaryButtonSx = primaryButtonSx;
|
|
323
|
+
var outlineButtonSx = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, pillButtonSx), {}, {
|
|
324
|
+
color: _tokens.COLORS.s5,
|
|
325
|
+
border: "1px solid ".concat(_tokens.COLORS.s3),
|
|
326
|
+
bgcolor: _tokens.COLORS.white,
|
|
327
|
+
"&:hover": {
|
|
328
|
+
bgcolor: _tokens.COLORS.s2,
|
|
329
|
+
borderColor: _tokens.COLORS.s3
|
|
330
|
+
},
|
|
331
|
+
"&.Mui-disabled": {
|
|
332
|
+
color: _tokens.COLORS.s3,
|
|
333
|
+
borderColor: _tokens.COLORS.s2
|
|
334
|
+
}
|
|
335
|
+
});
|
|
336
|
+
/** Campo de texto con el foco rosa de la plataforma. */
|
|
337
|
+
|
|
338
|
+
exports.outlineButtonSx = outlineButtonSx;
|
|
339
|
+
var fieldSx = {
|
|
340
|
+
"& .MuiOutlinedInput-root": {
|
|
341
|
+
borderRadius: "6px",
|
|
342
|
+
fontFamily: FONT_STACK,
|
|
343
|
+
fontSize: 14,
|
|
344
|
+
color: _tokens.COLORS.color_gray,
|
|
345
|
+
bgcolor: _tokens.COLORS.white,
|
|
346
|
+
"& fieldset": {
|
|
347
|
+
borderColor: _tokens.COLORS.s3
|
|
348
|
+
},
|
|
349
|
+
"&:hover fieldset": {
|
|
350
|
+
borderColor: _tokens.COLORS.s4
|
|
351
|
+
},
|
|
352
|
+
"&.Mui-focused fieldset": {
|
|
353
|
+
borderColor: _tokens.COLORS.magenta_s2
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
exports.fieldSx = fieldSx;
|
|
358
|
+
var labelSx = {
|
|
359
|
+
fontFamily: FONT_STACK,
|
|
360
|
+
fontSize: 13,
|
|
361
|
+
fontWeight: 700,
|
|
362
|
+
color: _tokens.COLORS.s5,
|
|
363
|
+
mb: 0.5
|
|
364
|
+
};
|
|
365
|
+
exports.labelSx = labelSx;
|
|
366
|
+
var captionSx = {
|
|
367
|
+
fontFamily: FONT_STACK,
|
|
368
|
+
fontSize: 12,
|
|
369
|
+
color: _tokens.COLORS.s4
|
|
370
|
+
};
|
|
371
|
+
exports.captionSx = captionSx;
|