aloha-ui-library 0.2.1 → 0.2.3
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/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +9 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +43 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/ChatMessage/ChatMessage.d.ts +29 -0
- package/dist/components/ChatMessage/index.d.ts +1 -0
- package/dist/components/ChatMessage.d.ts +28 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/ColorPalette/ColorPalette.d.ts +18 -0
- package/dist/components/ColorPalette/index.d.ts +1 -0
- package/dist/components/Emoji/Emoji.d.ts +23 -0
- package/dist/components/Emoji/index.d.ts +1 -0
- package/dist/components/Error/Error.d.ts +11 -0
- package/dist/components/Error/index.d.ts +1 -0
- package/dist/components/ErrorFullScreen/ErrorFullScreen.d.ts +11 -0
- package/dist/components/ErrorFullScreen/index.d.ts +1 -0
- package/dist/components/FriendListItem/FriendListItem.d.ts +28 -0
- package/dist/components/FriendListItem/index.d.ts +1 -0
- package/dist/components/FriendListItem.d.ts +27 -0
- package/dist/components/FullPage/FullPage.d.ts +8 -0
- package/dist/components/FullPage/index.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +50 -0
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Image/Image.d.ts +22 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +7 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +27 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +8 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/LoadingFullScreen/LoadingFullScreen.d.ts +8 -0
- package/dist/components/LoadingFullScreen/index.d.ts +1 -0
- package/dist/components/Logo/Logo.d.ts +11 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Navbar/Navbar.d.ts +62 -0
- package/dist/components/Navbar/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +15 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Pattern/Pattern.d.ts +34 -0
- package/dist/components/Pattern/index.d.ts +1 -0
- package/dist/components/PatternFill/PatternFill.d.ts +31 -0
- package/dist/components/PatternFill/index.d.ts +1 -0
- package/dist/components/PatternGroup/PatternGroup.d.ts +35 -0
- package/dist/components/PatternGroup/index.d.ts +1 -0
- package/dist/components/Popup/Popup.d.ts +43 -0
- package/dist/components/Popup/index.d.ts +1 -0
- package/dist/components/QuestionCard/QuestionCard.d.ts +55 -0
- package/dist/components/QuestionCard/index.d.ts +1 -0
- package/dist/components/QuestionCard.d.ts +54 -0
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/components/Streak/Streak.d.ts +13 -0
- package/dist/components/Streak/index.d.ts +1 -0
- package/dist/components/Streak.d.ts +13 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/TextDivider/TextDivider.d.ts +30 -0
- package/dist/components/TextDivider/index.d.ts +1 -0
- package/dist/components/TextDivider.d.ts +16 -1
- package/dist/components/Typography/Typography.d.ts +34 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/index.css +2 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.css +2 -2
- package/dist/index.esm.js +523 -94
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +526 -93
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -2762,7 +2762,7 @@ var themeVars = {
|
|
|
2762
2762
|
primary: 'var(--theme-primary)'
|
|
2763
2763
|
};
|
|
2764
2764
|
|
|
2765
|
-
var _excluded$
|
|
2765
|
+
var _excluded$o = ["className", "variant", "size", "loading", "disabled", "color", "textColor", "borderColor", "icon", "children", "style", "borderWidth"];
|
|
2766
2766
|
var buttonVariants = cva('inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', {
|
|
2767
2767
|
variants: {
|
|
2768
2768
|
variant: {
|
|
@@ -2799,7 +2799,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2799
2799
|
style = _ref.style,
|
|
2800
2800
|
_ref$borderWidth = _ref.borderWidth,
|
|
2801
2801
|
borderWidth = _ref$borderWidth === void 0 ? 1 : _ref$borderWidth,
|
|
2802
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2802
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
2803
2803
|
var customStyle = {};
|
|
2804
2804
|
// Aplicar color de fondo si se especifica
|
|
2805
2805
|
if (color) {
|
|
@@ -2858,7 +2858,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2858
2858
|
});
|
|
2859
2859
|
Button.displayName = 'Button';
|
|
2860
2860
|
|
|
2861
|
-
var _excluded$
|
|
2861
|
+
var _excluded$n = ["className", "children", "font", "weight", "color", "style"],
|
|
2862
2862
|
_excluded2$3 = ["className", "children", "font", "weight", "color", "style"],
|
|
2863
2863
|
_excluded3$2 = ["className", "children", "font", "weight", "color", "style"],
|
|
2864
2864
|
_excluded4$1 = ["className", "children", "font", "weight", "color", "style"],
|
|
@@ -2897,7 +2897,7 @@ var H1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2897
2897
|
weight = _ref.weight,
|
|
2898
2898
|
color = _ref.color,
|
|
2899
2899
|
style = _ref.style,
|
|
2900
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2900
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2901
2901
|
return jsx("h1", _objectSpread2(_objectSpread2({
|
|
2902
2902
|
ref: ref,
|
|
2903
2903
|
className: cn('scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
@@ -2918,7 +2918,7 @@ var H2 = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
2918
2918
|
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
2919
2919
|
return jsx("h2", _objectSpread2(_objectSpread2({
|
|
2920
2920
|
ref: ref,
|
|
2921
|
-
className: cn('scroll-m-20
|
|
2921
|
+
className: cn('scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2922
2922
|
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2923
2923
|
}, props), {}, {
|
|
2924
2924
|
children: children
|
|
@@ -3052,17 +3052,37 @@ var Muted = /*#__PURE__*/React.forwardRef(function (_ref9, ref) {
|
|
|
3052
3052
|
});
|
|
3053
3053
|
Muted.displayName = 'Muted';
|
|
3054
3054
|
|
|
3055
|
-
var _excluded$
|
|
3056
|
-
_excluded2$2 = ["className"],
|
|
3055
|
+
var _excluded$m = ["className", "size", "borderRadius", "showBorder", "backgroundColor", "borderColor", "shadow", "padding", "margin", "style"],
|
|
3056
|
+
_excluded2$2 = ["className", "padding", "margin", "style"],
|
|
3057
3057
|
_excluded3$1 = ["className", "font", "weight", "descriptionColor", "small", "children"],
|
|
3058
3058
|
_excluded4 = ["color"],
|
|
3059
|
-
_excluded5 = ["className"],
|
|
3060
|
-
_excluded6 = ["className"];
|
|
3059
|
+
_excluded5 = ["className", "padding", "margin", "style"],
|
|
3060
|
+
_excluded6 = ["className", "padding", "margin", "style"];
|
|
3061
3061
|
var sizeClasses$2 = {
|
|
3062
3062
|
full: 'w-full',
|
|
3063
3063
|
constrained: 'max-w-md',
|
|
3064
3064
|
auto: 'w-auto'
|
|
3065
3065
|
};
|
|
3066
|
+
var spacingValues$1 = {
|
|
3067
|
+
none: '0',
|
|
3068
|
+
xs: '0.25rem',
|
|
3069
|
+
sm: '0.5rem',
|
|
3070
|
+
md: '1rem',
|
|
3071
|
+
lg: '1.5rem',
|
|
3072
|
+
xl: '2rem'
|
|
3073
|
+
};
|
|
3074
|
+
var buildSpacingStyle = function buildSpacingStyle(padding, margin) {
|
|
3075
|
+
var style = {};
|
|
3076
|
+
if (padding !== undefined) {
|
|
3077
|
+
var _spacingValues$paddin;
|
|
3078
|
+
style.padding = (_spacingValues$paddin = spacingValues$1[padding]) !== null && _spacingValues$paddin !== void 0 ? _spacingValues$paddin : padding;
|
|
3079
|
+
}
|
|
3080
|
+
if (margin !== undefined) {
|
|
3081
|
+
var _spacingValues$margin;
|
|
3082
|
+
style.margin = (_spacingValues$margin = spacingValues$1[margin]) !== null && _spacingValues$margin !== void 0 ? _spacingValues$margin : margin;
|
|
3083
|
+
}
|
|
3084
|
+
return style;
|
|
3085
|
+
};
|
|
3066
3086
|
var borderRadiusClasses = {
|
|
3067
3087
|
none: 'rounded-none',
|
|
3068
3088
|
sm: 'rounded-sm',
|
|
@@ -3128,20 +3148,27 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3128
3148
|
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
|
3129
3149
|
_ref$shadow = _ref.shadow,
|
|
3130
3150
|
shadow = _ref$shadow === void 0 ? true : _ref$shadow,
|
|
3131
|
-
|
|
3151
|
+
padding = _ref.padding,
|
|
3152
|
+
margin = _ref.margin,
|
|
3153
|
+
style = _ref.style,
|
|
3154
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
3132
3155
|
return jsx("div", _objectSpread2({
|
|
3133
3156
|
ref: ref,
|
|
3134
|
-
className: cn('text-card-foreground', sizeClasses$2[size], borderRadiusClasses[borderRadius], showBorder ? 'border' : '', showBorder ? getBorderColor(borderColor) : '', getBackgroundColor(backgroundColor), shadow ? 'shadow-sm' : '', className)
|
|
3157
|
+
className: cn('text-card-foreground', sizeClasses$2[size], borderRadiusClasses[borderRadius], showBorder ? 'border' : '', showBorder ? getBorderColor(borderColor) : '', getBackgroundColor(backgroundColor), shadow ? 'shadow-sm' : '', className),
|
|
3158
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3135
3159
|
}, props));
|
|
3136
3160
|
});
|
|
3137
3161
|
Card.displayName = 'Card';
|
|
3138
|
-
// Subcomponentes flexibles
|
|
3139
3162
|
var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
3140
3163
|
var className = _ref2.className,
|
|
3164
|
+
padding = _ref2.padding,
|
|
3165
|
+
margin = _ref2.margin,
|
|
3166
|
+
style = _ref2.style,
|
|
3141
3167
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
3142
3168
|
return jsx("div", _objectSpread2({
|
|
3143
3169
|
ref: ref,
|
|
3144
|
-
className: cn('flex flex-col space-y-1.5 p-6', className)
|
|
3170
|
+
className: cn('flex flex-col space-y-1.5', padding === undefined ? 'p-6' : '', className),
|
|
3171
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3145
3172
|
}, props));
|
|
3146
3173
|
});
|
|
3147
3174
|
CardHeader.displayName = 'CardHeader';
|
|
@@ -3212,24 +3239,32 @@ var CardDescription = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
3212
3239
|
CardDescription.displayName = 'CardDescription';
|
|
3213
3240
|
var CardContent = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
3214
3241
|
var className = _ref5.className,
|
|
3242
|
+
padding = _ref5.padding,
|
|
3243
|
+
margin = _ref5.margin,
|
|
3244
|
+
style = _ref5.style,
|
|
3215
3245
|
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
3216
3246
|
return jsx("div", _objectSpread2({
|
|
3217
3247
|
ref: ref,
|
|
3218
|
-
className: cn('p-6 pt-0', className)
|
|
3248
|
+
className: cn(padding === undefined ? 'p-6 pt-0' : '', className),
|
|
3249
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3219
3250
|
}, props));
|
|
3220
3251
|
});
|
|
3221
3252
|
CardContent.displayName = 'CardContent';
|
|
3222
3253
|
var CardFooter = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
3223
3254
|
var className = _ref6.className,
|
|
3255
|
+
padding = _ref6.padding,
|
|
3256
|
+
margin = _ref6.margin,
|
|
3257
|
+
style = _ref6.style,
|
|
3224
3258
|
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
3225
3259
|
return jsx("div", _objectSpread2({
|
|
3226
3260
|
ref: ref,
|
|
3227
|
-
className: cn('flex items-center p-6 pt-0', className)
|
|
3261
|
+
className: cn('flex items-center', padding === undefined ? 'p-6 pt-0' : '', className),
|
|
3262
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3228
3263
|
}, props));
|
|
3229
3264
|
});
|
|
3230
3265
|
CardFooter.displayName = 'CardFooter';
|
|
3231
3266
|
|
|
3232
|
-
var _excluded$
|
|
3267
|
+
var _excluded$l = ["className", "src", "alt", "fallback", "size"];
|
|
3233
3268
|
var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3234
3269
|
var _alt$charAt;
|
|
3235
3270
|
var className = _ref.className,
|
|
@@ -3238,7 +3273,7 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3238
3273
|
fallback = _ref.fallback,
|
|
3239
3274
|
_ref$size = _ref.size,
|
|
3240
3275
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3241
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3276
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
3242
3277
|
var _React$useState = React.useState(false),
|
|
3243
3278
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3244
3279
|
imageFailed = _React$useState2[0],
|
|
@@ -3271,7 +3306,7 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3271
3306
|
});
|
|
3272
3307
|
Avatar.displayName = 'Avatar';
|
|
3273
3308
|
|
|
3274
|
-
var _excluded$
|
|
3309
|
+
var _excluded$k = ["className", "variant"];
|
|
3275
3310
|
var badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2', {
|
|
3276
3311
|
variants: {
|
|
3277
3312
|
variant: {
|
|
@@ -3288,7 +3323,7 @@ var badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 py-
|
|
|
3288
3323
|
function Badge(_ref) {
|
|
3289
3324
|
var className = _ref.className,
|
|
3290
3325
|
variant = _ref.variant,
|
|
3291
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3326
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
3292
3327
|
return jsx("div", _objectSpread2({
|
|
3293
3328
|
className: cn(badgeVariants({
|
|
3294
3329
|
variant: variant
|
|
@@ -3296,7 +3331,7 @@ function Badge(_ref) {
|
|
|
3296
3331
|
}, props));
|
|
3297
3332
|
}
|
|
3298
3333
|
|
|
3299
|
-
var _excluded$
|
|
3334
|
+
var _excluded$j = ["className", "type", "label", "helperText", "required", "id"];
|
|
3300
3335
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3301
3336
|
var className = _ref.className,
|
|
3302
3337
|
type = _ref.type,
|
|
@@ -3304,7 +3339,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3304
3339
|
helperText = _ref.helperText,
|
|
3305
3340
|
required = _ref.required,
|
|
3306
3341
|
id = _ref.id,
|
|
3307
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3342
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
3308
3343
|
var inputId = id || "input-".concat(Math.random().toString(36).substr(2, 9));
|
|
3309
3344
|
return jsxs("div", {
|
|
3310
3345
|
className: "w-full",
|
|
@@ -3337,12 +3372,12 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3337
3372
|
});
|
|
3338
3373
|
Input.displayName = 'Input';
|
|
3339
3374
|
|
|
3340
|
-
var _excluded$
|
|
3375
|
+
var _excluded$i = ["className", "label", "id"];
|
|
3341
3376
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3342
3377
|
var className = _ref.className,
|
|
3343
3378
|
label = _ref.label,
|
|
3344
3379
|
id = _ref.id,
|
|
3345
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3380
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
3346
3381
|
var checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
|
|
3347
3382
|
var _React$useState = React.useState(false),
|
|
3348
3383
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -3402,7 +3437,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3402
3437
|
});
|
|
3403
3438
|
Checkbox.displayName = 'Checkbox';
|
|
3404
3439
|
|
|
3405
|
-
var _excluded$
|
|
3440
|
+
var _excluded$h = ["className", "label", "font", "weight", "labelColor", "id"];
|
|
3406
3441
|
var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3407
3442
|
var className = _ref.className,
|
|
3408
3443
|
label = _ref.label,
|
|
@@ -3410,7 +3445,7 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3410
3445
|
weight = _ref.weight,
|
|
3411
3446
|
labelColor = _ref.labelColor,
|
|
3412
3447
|
id = _ref.id,
|
|
3413
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3448
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
3414
3449
|
var switchId = id || "switch-".concat(Math.random().toString(36).substr(2, 9));
|
|
3415
3450
|
return jsxs("div", {
|
|
3416
3451
|
className: "flex items-center space-x-3",
|
|
@@ -3436,11 +3471,11 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3436
3471
|
});
|
|
3437
3472
|
Switch.displayName = 'Switch';
|
|
3438
3473
|
|
|
3439
|
-
var _excluded$
|
|
3474
|
+
var _excluded$g = ["className", "onSearch"];
|
|
3440
3475
|
var SearchInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3441
3476
|
var className = _ref.className,
|
|
3442
3477
|
onSearch = _ref.onSearch,
|
|
3443
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3478
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
3444
3479
|
var handleKeyDown = function handleKeyDown(e) {
|
|
3445
3480
|
if (e.key === 'Enter' && onSearch) {
|
|
3446
3481
|
onSearch(e.currentTarget.value);
|
|
@@ -3460,7 +3495,7 @@ var SearchInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3460
3495
|
});
|
|
3461
3496
|
SearchInput.displayName = 'SearchInput';
|
|
3462
3497
|
|
|
3463
|
-
var _excluded$
|
|
3498
|
+
var _excluded$f = ["type", "title", "message", "timestamp", "avatar", "read", "onClose", "onClick", "className"];
|
|
3464
3499
|
var Notification = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3465
3500
|
var type = _ref.type,
|
|
3466
3501
|
title = _ref.title,
|
|
@@ -3472,7 +3507,7 @@ var Notification = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3472
3507
|
onClose = _ref.onClose,
|
|
3473
3508
|
onClick = _ref.onClick,
|
|
3474
3509
|
className = _ref.className,
|
|
3475
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3510
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
3476
3511
|
var typeColors = {
|
|
3477
3512
|
like: 'text-red-500',
|
|
3478
3513
|
comment: 'text-blue-500',
|
|
@@ -3523,13 +3558,10 @@ var Notification = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3523
3558
|
});
|
|
3524
3559
|
Notification.displayName = 'Notification';
|
|
3525
3560
|
|
|
3526
|
-
var _excluded$
|
|
3561
|
+
var _excluded$e = ["className", "text", "component", "font", "weight", "textColor", "lineColor", "lineThickness", "avatars", "avatarRingColor", "rightSlot"];
|
|
3562
|
+
// ── Color de la línea (herencia del original) ─────────────────────
|
|
3527
3563
|
var getLineColorClass = function getLineColorClass(color) {
|
|
3528
3564
|
if (!color || color === 'default') return 'bg-gray-300';
|
|
3529
|
-
if (color.startsWith('theme-')) {
|
|
3530
|
-
return '';
|
|
3531
|
-
}
|
|
3532
|
-
// Mapeo de colores a clases Tailwind
|
|
3533
3565
|
var colorMap = {
|
|
3534
3566
|
olivo: 'bg-[#383517]',
|
|
3535
3567
|
lima: 'bg-[#B4DE6E]',
|
|
@@ -3548,6 +3580,7 @@ var getLineColorClass = function getLineColorClass(color) {
|
|
|
3548
3580
|
};
|
|
3549
3581
|
return colorMap[color] || 'bg-gray-300';
|
|
3550
3582
|
};
|
|
3583
|
+
// ── Componente ─────────────────────────────────────────────────────
|
|
3551
3584
|
var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3552
3585
|
var className = _ref.className,
|
|
3553
3586
|
text = _ref.text,
|
|
@@ -3561,7 +3594,10 @@ var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3561
3594
|
lineColor = _ref$lineColor === void 0 ? 'piedra' : _ref$lineColor,
|
|
3562
3595
|
_ref$lineThickness = _ref.lineThickness,
|
|
3563
3596
|
lineThickness = _ref$lineThickness === void 0 ? 1 : _ref$lineThickness,
|
|
3564
|
-
|
|
3597
|
+
avatars = _ref.avatars,
|
|
3598
|
+
avatarRingColor = _ref.avatarRingColor,
|
|
3599
|
+
rightSlot = _ref.rightSlot,
|
|
3600
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
3565
3601
|
var renderText = function renderText() {
|
|
3566
3602
|
var commonProps = {
|
|
3567
3603
|
font: font,
|
|
@@ -3601,21 +3637,41 @@ var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3601
3637
|
}));
|
|
3602
3638
|
}
|
|
3603
3639
|
};
|
|
3640
|
+
var hasAvatars = avatars && avatars.length > 0;
|
|
3604
3641
|
return jsxs("div", _objectSpread2(_objectSpread2({
|
|
3605
3642
|
ref: ref,
|
|
3606
|
-
className: cn('
|
|
3643
|
+
className: cn('text-divider', className)
|
|
3607
3644
|
}, props), {}, {
|
|
3608
|
-
children: [
|
|
3609
|
-
className:
|
|
3645
|
+
children: [hasAvatars && jsx("span", {
|
|
3646
|
+
className: "text-divider__avatar-stack",
|
|
3647
|
+
style: {
|
|
3648
|
+
'--td-ring': avatarRingColor
|
|
3649
|
+
},
|
|
3650
|
+
children: avatars.map(function (av, i) {
|
|
3651
|
+
return jsx(Avatar, {
|
|
3652
|
+
src: av.src,
|
|
3653
|
+
fallback: av.fallback,
|
|
3654
|
+
size: "sm",
|
|
3655
|
+
className: "text-divider__stack-avatar",
|
|
3656
|
+
style: {
|
|
3657
|
+
zIndex: avatars.length - i
|
|
3658
|
+
}
|
|
3659
|
+
}, i);
|
|
3660
|
+
})
|
|
3661
|
+
}), renderText(), jsx("div", {
|
|
3662
|
+
className: cn('text-divider__line', getLineColorClass(lineColor)),
|
|
3610
3663
|
style: {
|
|
3611
3664
|
height: "".concat(lineThickness, "px")
|
|
3612
3665
|
}
|
|
3666
|
+
}), rightSlot && jsx("span", {
|
|
3667
|
+
className: "text-divider__right",
|
|
3668
|
+
children: rightSlot
|
|
3613
3669
|
})]
|
|
3614
3670
|
}));
|
|
3615
3671
|
});
|
|
3616
3672
|
TextDivider.displayName = 'TextDivider';
|
|
3617
3673
|
|
|
3618
|
-
var _excluded$
|
|
3674
|
+
var _excluded$d = ["className", "children", "color", "hoverColor", "underline", "external"],
|
|
3619
3675
|
_excluded2$1 = ["to"],
|
|
3620
3676
|
_excluded3 = ["href", "target", "rel"];
|
|
3621
3677
|
var getColorClass = function getColorClass(color) {
|
|
@@ -3679,7 +3735,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3679
3735
|
underline = _ref$underline === void 0 ? 'hover' : _ref$underline,
|
|
3680
3736
|
_ref$external = _ref.external,
|
|
3681
3737
|
external = _ref$external === void 0 ? false : _ref$external,
|
|
3682
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3738
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
3683
3739
|
var linkClasses = cn('inline-flex items-center font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', getColorClass(color), hoverColor ? '' : getHoverColorClass(color), getUnderlineClass(underline), className);
|
|
3684
3740
|
// Si tiene la prop "to", usar React Router Link
|
|
3685
3741
|
if ('to' in props && props.to) {
|
|
@@ -3720,7 +3776,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3720
3776
|
});
|
|
3721
3777
|
Link.displayName = 'Link';
|
|
3722
3778
|
|
|
3723
|
-
var _excluded$
|
|
3779
|
+
var _excluded$c = ["src", "alt", "width", "height", "objectFit", "loading", "fallbackSrc", "onError", "className"];
|
|
3724
3780
|
var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3725
3781
|
var src = _ref.src,
|
|
3726
3782
|
alt = _ref.alt,
|
|
@@ -3733,7 +3789,7 @@ var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3733
3789
|
fallbackSrc = _ref.fallbackSrc,
|
|
3734
3790
|
onError = _ref.onError,
|
|
3735
3791
|
className = _ref.className,
|
|
3736
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3792
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
3737
3793
|
var _React$useState = React.useState(src),
|
|
3738
3794
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3739
3795
|
imgSrc = _React$useState2[0],
|
|
@@ -3797,82 +3853,133 @@ var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3797
3853
|
});
|
|
3798
3854
|
Image.displayName = 'Image';
|
|
3799
3855
|
|
|
3856
|
+
// ─── helpers ────────────────────────────────────────────────────────────────
|
|
3857
|
+
var spacingValues = {
|
|
3858
|
+
none: '0',
|
|
3859
|
+
xs: '0.25rem',
|
|
3860
|
+
sm: '0.5rem',
|
|
3861
|
+
md: '1rem',
|
|
3862
|
+
lg: '1.5rem',
|
|
3863
|
+
xl: '2rem'
|
|
3864
|
+
};
|
|
3865
|
+
var resolveSpacing = function resolveSpacing(val) {
|
|
3866
|
+
var _spacingValues$val;
|
|
3867
|
+
return (_spacingValues$val = spacingValues[val]) !== null && _spacingValues$val !== void 0 ? _spacingValues$val : val;
|
|
3868
|
+
};
|
|
3869
|
+
/** Width cap for non-fullscreen variants */
|
|
3870
|
+
var panelMaxWidth = {
|
|
3871
|
+
sm: '24rem',
|
|
3872
|
+
// 384px
|
|
3873
|
+
md: '32rem',
|
|
3874
|
+
// 512px
|
|
3875
|
+
lg: '48rem',
|
|
3876
|
+
// 768px
|
|
3877
|
+
xl: '64rem',
|
|
3878
|
+
// 1024px
|
|
3879
|
+
full: '100%'
|
|
3880
|
+
};
|
|
3881
|
+
// ─── component ───────────────────────────────────────────────────────────────
|
|
3800
3882
|
var Popup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3801
3883
|
var open = _ref.open,
|
|
3802
3884
|
onClose = _ref.onClose,
|
|
3803
|
-
title = _ref.title,
|
|
3804
|
-
children = _ref.children,
|
|
3805
3885
|
_ref$size = _ref.size,
|
|
3806
3886
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3887
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
3888
|
+
backgroundColor = _ref$backgroundColor === void 0 ? 'ice' : _ref$backgroundColor,
|
|
3889
|
+
overlayColor = _ref.overlayColor,
|
|
3890
|
+
borderRadius = _ref.borderRadius,
|
|
3891
|
+
className = _ref.className,
|
|
3892
|
+
title = _ref.title,
|
|
3893
|
+
_ref$titleComponent = _ref.titleComponent,
|
|
3894
|
+
titleComponent = _ref$titleComponent === void 0 ? 'h3' : _ref$titleComponent,
|
|
3895
|
+
titleFont = _ref.titleFont,
|
|
3896
|
+
_ref$titleWeight = _ref.titleWeight,
|
|
3897
|
+
titleWeight = _ref$titleWeight === void 0 ? 'bold' : _ref$titleWeight,
|
|
3898
|
+
_ref$titleColor = _ref.titleColor,
|
|
3899
|
+
titleColor = _ref$titleColor === void 0 ? 'corteza' : _ref$titleColor,
|
|
3900
|
+
_ref$showHeaderDivide = _ref.showHeaderDivider,
|
|
3901
|
+
showHeaderDivider = _ref$showHeaderDivide === void 0 ? true : _ref$showHeaderDivide,
|
|
3807
3902
|
_ref$showCloseButton = _ref.showCloseButton,
|
|
3808
3903
|
showCloseButton = _ref$showCloseButton === void 0 ? true : _ref$showCloseButton,
|
|
3809
3904
|
_ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
|
|
3810
3905
|
closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
|
|
3811
|
-
|
|
3812
|
-
|
|
3906
|
+
_ref$contentPadding = _ref.contentPadding,
|
|
3907
|
+
contentPadding = _ref$contentPadding === void 0 ? 'lg' : _ref$contentPadding,
|
|
3908
|
+
children = _ref.children,
|
|
3909
|
+
footer = _ref.footer,
|
|
3910
|
+
_ref$showFooterDivide = _ref.showFooterDivider,
|
|
3911
|
+
showFooterDivider = _ref$showFooterDivide === void 0 ? true : _ref$showFooterDivide;
|
|
3912
|
+
// ── side effects ──────────────────────────────────────────────────────
|
|
3813
3913
|
React.useEffect(function () {
|
|
3814
|
-
|
|
3815
|
-
document.body.style.overflow = 'hidden';
|
|
3816
|
-
} else {
|
|
3817
|
-
document.body.style.overflow = 'unset';
|
|
3818
|
-
}
|
|
3914
|
+
document.body.style.overflow = open ? 'hidden' : 'unset';
|
|
3819
3915
|
return function () {
|
|
3820
3916
|
document.body.style.overflow = 'unset';
|
|
3821
3917
|
};
|
|
3822
3918
|
}, [open]);
|
|
3823
3919
|
React.useEffect(function () {
|
|
3824
|
-
var
|
|
3825
|
-
if (e.key === 'Escape' && open)
|
|
3826
|
-
onClose();
|
|
3827
|
-
}
|
|
3920
|
+
var handler = function handler(e) {
|
|
3921
|
+
if (e.key === 'Escape' && open) onClose();
|
|
3828
3922
|
};
|
|
3829
|
-
document.addEventListener('keydown',
|
|
3923
|
+
document.addEventListener('keydown', handler);
|
|
3830
3924
|
return function () {
|
|
3831
|
-
return document.removeEventListener('keydown',
|
|
3925
|
+
return document.removeEventListener('keydown', handler);
|
|
3832
3926
|
};
|
|
3833
3927
|
}, [open, onClose]);
|
|
3834
3928
|
if (!open) return null;
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
var handleOverlayClick = function handleOverlayClick(e) {
|
|
3843
|
-
if (e.target === e.currentTarget && closeOnOverlayClick) {
|
|
3844
|
-
onClose();
|
|
3845
|
-
}
|
|
3929
|
+
// ── derived values ────────────────────────────────────────────────────
|
|
3930
|
+
var isFull = size === 'full';
|
|
3931
|
+
var maxW = panelMaxWidth[size];
|
|
3932
|
+
var padding = resolveSpacing(contentPadding);
|
|
3933
|
+
var TitleTag = titleComponent === 'h4' ? H4 : H3;
|
|
3934
|
+
var handleOverlay = function handleOverlay(e) {
|
|
3935
|
+
if (e.target === e.currentTarget && closeOnOverlayClick) onClose();
|
|
3846
3936
|
};
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3937
|
+
// ── render ────────────────────────────────────────────────────────────
|
|
3938
|
+
return /* ── Overlay ── */jsx("div", {
|
|
3939
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
3940
|
+
style: {
|
|
3941
|
+
backgroundColor: overlayColor !== null && overlayColor !== void 0 ? overlayColor : 'rgba(0,0,0,0.45)'
|
|
3942
|
+
},
|
|
3943
|
+
onClick: handleOverlay,
|
|
3850
3944
|
children: jsxs("div", {
|
|
3851
3945
|
ref: ref,
|
|
3852
|
-
|
|
3946
|
+
role: "dialog",
|
|
3947
|
+
"aria-modal": "true",
|
|
3948
|
+
className: cn(/* always fills the full height so the content can scroll inside */
|
|
3949
|
+
'relative flex flex-col w-full overflow-hidden shadow-2xl', /* full-screen: no margin, no rounding; others: centered with padding */
|
|
3950
|
+
isFull ? 'inset-0 rounded-none h-screen' : 'max-h-[90vh] mx-4 my-auto', className),
|
|
3951
|
+
style: {
|
|
3952
|
+
maxWidth: isFull ? '100vw' : maxW,
|
|
3953
|
+
backgroundColor: colors[backgroundColor],
|
|
3954
|
+
borderRadius: isFull ? 0 : borderRadius !== null && borderRadius !== void 0 ? borderRadius : '0.75rem'
|
|
3955
|
+
},
|
|
3853
3956
|
onClick: function onClick(e) {
|
|
3854
3957
|
return e.stopPropagation();
|
|
3855
3958
|
},
|
|
3856
3959
|
children: [(title || showCloseButton) && jsxs("div", {
|
|
3857
|
-
className:
|
|
3858
|
-
children: [title
|
|
3859
|
-
|
|
3960
|
+
className: cn('flex-shrink-0 flex items-center justify-between px-5 py-4', showHeaderDivider ? 'border-b border-black/10' : ''),
|
|
3961
|
+
children: [title ? jsx(TitleTag, {
|
|
3962
|
+
font: titleFont,
|
|
3963
|
+
weight: titleWeight,
|
|
3964
|
+
color: titleColor,
|
|
3965
|
+
className: "leading-none m-0 p-0",
|
|
3860
3966
|
children: title
|
|
3861
|
-
}), showCloseButton &&
|
|
3967
|
+
}) : jsx("span", {}) /* spacer so X stays right */, showCloseButton && jsx("button", {
|
|
3862
3968
|
onClick: onClose,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
children: "Close"
|
|
3869
|
-
})]
|
|
3969
|
+
"aria-label": "Cerrar",
|
|
3970
|
+
className: cn('ml-auto rounded-lg p-1.5 transition-all', 'opacity-60 hover:opacity-100 hover:bg-black/8', 'focus:outline-none focus:ring-2 focus:ring-black/20'),
|
|
3971
|
+
children: jsx(X, {
|
|
3972
|
+
className: "h-5 w-5"
|
|
3973
|
+
})
|
|
3870
3974
|
})]
|
|
3871
3975
|
}), jsx("div", {
|
|
3872
|
-
className: "
|
|
3976
|
+
className: "flex-1 overflow-y-auto",
|
|
3977
|
+
style: {
|
|
3978
|
+
padding: padding
|
|
3979
|
+
},
|
|
3873
3980
|
children: children
|
|
3874
3981
|
}), footer && jsx("div", {
|
|
3875
|
-
className:
|
|
3982
|
+
className: cn('flex-shrink-0 px-5 py-4', showFooterDivider ? 'border-t border-black/10' : ''),
|
|
3876
3983
|
children: footer
|
|
3877
3984
|
})]
|
|
3878
3985
|
})
|
|
@@ -3951,7 +4058,7 @@ var verticalLogo = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encodin
|
|
|
3951
4058
|
|
|
3952
4059
|
var onlyIconLogo = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20267%20248%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%20%20%20%20%3Cg%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-1914.773191%2C-17659.607757%29%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Mesa-de-trabajo12%22%20serif%3Aid%3D%22Mesa%20de%20trabajo12%22%20transform%3D%22matrix%280.578434%2C0%2C0%2C0.554312%2C1914.773191%2C7961.001329%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%2217496.65%22%20width%3D%22460.139%22%20height%3D%22447.159%22%20style%3D%22fill%3Anone%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.822329%2C0%2C0%2C2.714869%2C-19224.018493%2C-14926.881378%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%283.334642%2C0%2C0%2C3.617491%2C6914.667203%2C12026.281834%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C0C0%2C-1.792%200.342%2C-3.157%201.027%2C-4.096C1.712%2C-5.035%202.624%2C-5.504%203.766%2C-5.504C4.874%2C-5.504%205.771%2C-5.035%206.456%2C-4.096C7.141%2C-3.157%207.483%2C-1.792%207.483%2C0C7.483%2C1.792%207.141%2C3.157%206.456%2C4.097C5.771%2C5.035%204.874%2C5.504%203.766%2C5.504C2.624%2C5.504%201.712%2C5.035%201.027%2C4.097C0.342%2C3.157%200%2C1.792%200%2C0M-20.394%2C0C-20.394%2C-1.792%20-20.051%2C-3.157%20-19.367%2C-4.096C-18.682%2C-5.035%20-17.786%2C-5.504%20-16.677%2C-5.504C-15.536%2C-5.504%20-14.623%2C-5.035%20-13.938%2C-4.096C-13.254%2C-3.157%20-12.911%2C-1.792%20-12.911%2C0C-12.911%2C1.792%20-13.254%2C3.157%20-13.938%2C4.097C-14.623%2C5.035%20-15.536%2C5.504%20-16.677%2C5.504C-17.786%2C5.504%20-18.682%2C5.035%20-19.367%2C4.097C-20.051%2C3.157%20-20.394%2C1.792%20-20.394%2C0%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%283.334642%2C0%2C0%2C3.617491%2C6814.639292%2C12106.187862%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-14.916L4.744%2C-14.916C5.233%2C-12.862%206.138%2C-11.085%207.458%2C-9.585C8.779%2C-8.086%2010.433%2C-6.92%2012.422%2C-6.089C14.41%2C-5.257%2016.628%2C-4.841%2019.073%2C-4.841L27.876%2C-4.841C30.354%2C-4.841%2032.587%2C-5.257%2034.577%2C-6.089C36.565%2C-6.92%2038.22%2C-8.086%2039.541%2C-9.585C40.861%2C-11.085%2041.766%2C-12.862%2042.255%2C-14.916L46.95%2C-14.916C45.874%2C-10.189%2043.673%2C-6.521%2040.348%2C-3.913C37.022%2C-1.304%2032.865%2C0%2027.876%2C0L19.073%2C0C14.085%2C0%209.928%2C-1.304%206.602%2C-3.913C3.277%2C-6.521%201.076%2C-10.189%200%2C-14.916%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%283.334642%2C0%2C0%2C3.617491%2C6971.200715%2C11944.412594%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C14.916L-4.744%2C14.916C-5.233%2C12.862%20-6.138%2C11.085%20-7.458%2C9.585C-8.779%2C8.086%20-10.433%2C6.92%20-12.422%2C6.089C-14.41%2C5.257%20-16.628%2C4.841%20-19.073%2C4.841L-27.876%2C4.841C-30.354%2C4.841%20-32.587%2C5.257%20-34.577%2C6.089C-36.565%2C6.92%20-38.22%2C8.086%20-39.541%2C9.585C-40.861%2C11.085%20-41.766%2C12.862%20-42.255%2C14.916L-46.95%2C14.916C-45.874%2C10.189%20-43.673%2C6.521%20-40.348%2C3.913C-37.022%2C1.304%20-32.865%2C0%20-27.876%2C0L-19.073%2C0C-14.085%2C0%20-9.928%2C1.304%20-6.602%2C3.913C-3.277%2C6.521%20-1.076%2C10.189%200%2C14.916%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
3953
4060
|
|
|
3954
|
-
var _excluded$
|
|
4061
|
+
var _excluded$b = ["variant", "size", "color", "className"];
|
|
3955
4062
|
var logoMap = {
|
|
3956
4063
|
horizontal: horizontalLogo,
|
|
3957
4064
|
vertical: verticalLogo,
|
|
@@ -4026,7 +4133,7 @@ var Logo = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4026
4133
|
_ref$color = _ref.color,
|
|
4027
4134
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
4028
4135
|
className = _ref.className,
|
|
4029
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4136
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
4030
4137
|
var logoSrc = logoMap[variant];
|
|
4031
4138
|
var colorValue = getColorValue$1(color);
|
|
4032
4139
|
return jsx("div", _objectSpread2(_objectSpread2({
|
|
@@ -4065,7 +4172,9 @@ var notifyIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%
|
|
|
4065
4172
|
|
|
4066
4173
|
var settingsIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20355%20355%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%20%20%20%20%3Cg%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-9400%2C-15697%29%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Mesa-de-trabajo10%22%20serif%3Aid%3D%22Mesa%20de%20trabajo10%22%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-0.348653%2C-0.825237%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%229400.349%22%20y%3D%2215697.825%22%20width%3D%22354.25%22%20height%3D%22354.25%22%20style%3D%22fill%3Anone%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.667973%2C0%2C0%2C5.667973%2C9586.24482%2C15825.626366%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M-18.393%2C5.03C-18.755%2C4.802%20-19.08%2C4.491%20-19.367%2C4.097C-20.051%2C3.157%20-20.394%2C1.792%20-20.394%2C0C-20.394%2C-1.792%20-20.051%2C-3.157%20-19.367%2C-4.096C-19.08%2C-4.49%20-18.755%2C-4.801%20-18.393%2C-5.03L-18.393%2C-10.482L-14.912%2C-10.482L-14.912%2C-5.024C-14.548%2C-4.796%20-14.223%2C-4.487%20-13.938%2C-4.096C-13.254%2C-3.157%20-12.911%2C-1.792%20-12.911%2C0C-12.911%2C1.792%20-13.254%2C3.157%20-13.938%2C4.097C-14.223%2C4.487%20-14.548%2C4.797%20-14.912%2C5.025L-14.912%2C27.886L-18.393%2C27.886L-18.393%2C5.03ZM-4.104%2C22.996C-4.466%2C22.768%20-4.791%2C22.457%20-5.078%2C22.063C-5.762%2C21.123%20-6.105%2C19.758%20-6.105%2C17.966C-6.105%2C16.174%20-5.762%2C14.809%20-5.078%2C13.87C-4.791%2C13.476%20-4.466%2C13.165%20-4.104%2C12.936L-4.104%2C-10.482L-0.623%2C-10.482L-0.623%2C12.942C-0.259%2C13.17%200.066%2C13.479%200.351%2C13.87C1.035%2C14.809%201.378%2C16.174%201.378%2C17.966C1.378%2C19.758%201.035%2C21.123%200.351%2C22.063C0.066%2C22.454%20-0.259%2C22.763%20-0.623%2C22.991L-0.623%2C27.886L-4.104%2C27.886L-4.104%2C22.996ZM11.817%2C10.534C11.455%2C10.306%2011.13%2C9.995%2010.843%2C9.601C10.159%2C8.661%209.816%2C7.296%209.816%2C5.504C9.816%2C3.712%2010.159%2C2.347%2010.843%2C1.408C11.13%2C1.014%2011.455%2C0.703%2011.817%2C0.474L11.817%2C-10.482L15.298%2C-10.482L15.298%2C0.48C15.662%2C0.708%2015.987%2C1.017%2016.272%2C1.408C16.956%2C2.347%2017.299%2C3.712%2017.299%2C5.504C17.299%2C7.296%2016.956%2C8.661%2016.272%2C9.601C15.987%2C9.991%2015.662%2C10.301%2015.298%2C10.529L15.298%2C27.886L11.817%2C27.886L11.817%2C10.534Z%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4067
4174
|
|
|
4068
|
-
var
|
|
4175
|
+
var streakIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20355%20355%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%20%20%20%20%3Cg%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-28613.284073%2C-17847.031094%29%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Mesa-de-trabajo10%22%20serif%3Aid%3D%22Mesa%20de%20trabajo10%22%20transform%3D%22matrix%281%2C0%2C0%2C1%2C19212.93542%2C2149.205856%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%229400.349%22%20y%3D%2215697.825%22%20width%3D%22354.25%22%20height%3D%22354.25%22%20style%3D%22fill%3Anone%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-4.166667%2C-0%2C0%2C-4.166667%2C9481.636926%2C15989.45809%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0.269%2C15.399L0.269%2C32.865C0.365%2C33.956%200.501%2C37.611%20-1.667%2C39.964C-2.83%2C41.227%20-4.604%2C42.231%20-7.413%2C42.231C-8.788%2C42.231%20-9.904%2C41.116%20-9.904%2C39.74L-9.904%2C33.323C-9.994%2C33.175%20-10.156%2C33.01%20-10.442%2C33.003L-10.442%2C45.325C-10.396%2C46.313%20-10.408%2C50.299%20-13.393%2C52.829C-14.793%2C54.015%20-16.859%2C54.95%20-19.985%2C54.95C-21.06%2C54.95%20-22.013%2C54.261%20-22.35%2C53.241C-22.688%2C52.221%20-22.333%2C51.099%20-21.471%2C50.458C-21.471%2C50.458%20-19.635%2C48.921%20-19.635%2C45.595C-19.635%2C44.323%20-19.643%2C43.029%20-19.862%2C41.841C-20.018%2C40.995%20-20.268%2C40.204%20-20.834%2C39.599C-21.67%2C38.708%20-23.087%2C38.316%20-25.314%2C38.316C-25.369%2C38.316%20-25.424%2C38.314%20-25.479%2C38.31C-25.479%2C38.31%20-27.186%2C38.158%20-28.2%2C39.358C-28.671%2C39.916%20-28.931%2C40.758%20-28.931%2C41.961C-28.931%2C44.077%20-29.818%2C45.318%20-30.926%2C46.004C-31.939%2C46.632%20-33.357%2C46.847%20-35.025%2C46.357C-36.917%2C45.802%20-39.358%2C44.227%20-41.553%2C41.884C-44.694%2C38.531%20-47.343%2C33.638%20-47.343%2C28.469L-47.343%2C15.399L-47.379%2C15.399C-47.367%2C15.338%20-47.355%2C15.278%20-47.343%2C15.217C-46.737%2C12.199%20-45.543%2C9.555%20-43.762%2C7.285C-43.442%2C6.877%20-43.106%2C6.485%20-42.755%2C6.109C-42.32%2C5.644%20-41.861%2C5.204%20-41.379%2C4.789C-41.048%2C4.484%20-40.705%2C4.193%20-40.348%2C3.913C-37.022%2C1.304%20-32.865%2C0%20-27.876%2C0L-19.073%2C0C-14.085%2C0%20-9.928%2C1.304%20-6.602%2C3.913C-5.755%2C4.577%20-4.981%2C5.31%20-4.28%2C6.112C-4.146%2C6.265%20-4.015%2C6.421%20-3.886%2C6.579C-3.687%2C6.809%20-3.492%2C7.044%20-3.303%2C7.285C-1.531%2C9.545%20-0.34%2C12.174%200.269%2C15.175C0.284%2C15.25%200.299%2C15.324%200.313%2C15.399L0.269%2C15.399ZM-42.36%2C15.399L-42.36%2C28.469C-42.36%2C33.093%20-39.41%2C37.361%20-36.526%2C39.805C-35.716%2C40.491%20-34.913%2C41.031%20-34.177%2C41.365C-34.093%2C41.403%20-33.999%2C41.439%20-33.904%2C41.471C-33.81%2C39.015%20-33.008%2C37.328%20-32.005%2C36.142C-29.669%2C33.377%20-25.933%2C33.321%20-25.255%2C33.335L-25.314%2C33.333C-21.203%2C33.333%20-18.742%2C34.546%20-17.199%2C36.191C-16.374%2C37.072%20-15.809%2C38.126%20-15.425%2C39.286L-15.425%2C32.857L-15.425%2C32.825C-15.425%2C32.825%20-15.371%2C30.493%20-13.647%2C29.087C-12.926%2C28.499%20-11.92%2C28.02%20-10.463%2C28.02C-6.093%2C28.02%20-5.002%2C32.229%20-5.002%2C32.229C-4.948%2C32.434%20-4.921%2C32.645%20-4.921%2C32.857L-4.921%2C35.978C-4.359%2C34.812%20-4.679%2C33.375%20-4.679%2C33.375C-4.702%2C33.239%20-4.714%2C33.1%20-4.714%2C32.962L-4.714%2C15.399L-4.839%2C15.399C-5.03%2C14.658%20-5.269%2C13.945%20-5.556%2C13.259C-6.416%2C11.201%20-7.623%2C9.488%20-9.175%2C8.12C-9.867%2C7.511%20-10.617%2C6.987%20-11.424%2C6.548C-11.746%2C6.385%20-12.079%2C6.232%20-12.422%2C6.089C-14.41%2C5.257%20-16.628%2C4.841%20-19.073%2C4.841L-27.876%2C4.841C-30.354%2C4.841%20-32.587%2C5.257%20-34.577%2C6.089C-35.243%2C6.367%20-35.871%2C6.683%20-36.463%2C7.037C-36.963%2C7.362%20-37.439%2C7.723%20-37.891%2C8.12C-39.443%2C9.488%20-40.65%2C11.201%20-41.51%2C13.259C-41.797%2C13.945%20-42.035%2C14.658%20-42.227%2C15.399L-42.36%2C15.399Z%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4176
|
+
|
|
4177
|
+
var _excluded$a = ["name", "size", "color", "className"];
|
|
4069
4178
|
var iconMap = {
|
|
4070
4179
|
chat: chatIcon,
|
|
4071
4180
|
friends: friendsIcon,
|
|
@@ -4075,7 +4184,8 @@ var iconMap = {
|
|
|
4075
4184
|
mail: mailIcon,
|
|
4076
4185
|
music: musicIcon,
|
|
4077
4186
|
notify: notifyIcon,
|
|
4078
|
-
settings: settingsIcon
|
|
4187
|
+
settings: settingsIcon,
|
|
4188
|
+
streak: streakIcon
|
|
4079
4189
|
};
|
|
4080
4190
|
var sizeClasses = {
|
|
4081
4191
|
xs: 'w-4 h-4',
|
|
@@ -4115,7 +4225,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4115
4225
|
_ref$color = _ref.color,
|
|
4116
4226
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
4117
4227
|
className = _ref.className,
|
|
4118
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4228
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
4119
4229
|
var iconSrc = iconMap[name];
|
|
4120
4230
|
var colorValue = getColorValue(color);
|
|
4121
4231
|
return jsx("div", _objectSpread2(_objectSpread2({
|
|
@@ -4136,6 +4246,324 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4136
4246
|
});
|
|
4137
4247
|
Icon.displayName = 'Icon';
|
|
4138
4248
|
|
|
4249
|
+
var _excluded$9 = ["count", "size", "color", "className"];
|
|
4250
|
+
var textSizeClasses = {
|
|
4251
|
+
xs: 'text-xs',
|
|
4252
|
+
sm: 'text-sm',
|
|
4253
|
+
md: 'text-base',
|
|
4254
|
+
lg: 'text-lg',
|
|
4255
|
+
xl: 'text-xl',
|
|
4256
|
+
'2xl': 'text-2xl'
|
|
4257
|
+
};
|
|
4258
|
+
// Map StreakSize to IconSize (they share the same values)
|
|
4259
|
+
var iconSizeMap = {
|
|
4260
|
+
xs: 'xs',
|
|
4261
|
+
sm: 'sm',
|
|
4262
|
+
md: 'md',
|
|
4263
|
+
lg: 'lg',
|
|
4264
|
+
xl: 'xl',
|
|
4265
|
+
'2xl': '2xl'
|
|
4266
|
+
};
|
|
4267
|
+
var Streak = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4268
|
+
var count = _ref.count,
|
|
4269
|
+
_ref$size = _ref.size,
|
|
4270
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
4271
|
+
_ref$color = _ref.color,
|
|
4272
|
+
color = _ref$color === void 0 ? 'girasol' : _ref$color,
|
|
4273
|
+
className = _ref.className,
|
|
4274
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
4275
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
|
4276
|
+
ref: ref,
|
|
4277
|
+
className: cn('inline-flex items-center gap-1', className)
|
|
4278
|
+
}, props), {}, {
|
|
4279
|
+
children: [jsx(Icon, {
|
|
4280
|
+
name: "streak",
|
|
4281
|
+
size: iconSizeMap[size],
|
|
4282
|
+
color: color
|
|
4283
|
+
}), jsx("span", {
|
|
4284
|
+
className: cn('font-bold leading-none tabular-nums', textSizeClasses[size]),
|
|
4285
|
+
children: count
|
|
4286
|
+
})]
|
|
4287
|
+
}));
|
|
4288
|
+
});
|
|
4289
|
+
Streak.displayName = 'Streak';
|
|
4290
|
+
|
|
4291
|
+
var _excluded$8 = ["message", "name", "time", "avatarSrc", "avatarFallback", "variant", "bgColor", "messageColor", "headerColor", "className", "style"];
|
|
4292
|
+
var ChatMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4293
|
+
var message = _ref.message,
|
|
4294
|
+
name = _ref.name,
|
|
4295
|
+
time = _ref.time,
|
|
4296
|
+
avatarSrc = _ref.avatarSrc,
|
|
4297
|
+
avatarFallback = _ref.avatarFallback,
|
|
4298
|
+
_ref$variant = _ref.variant,
|
|
4299
|
+
variant = _ref$variant === void 0 ? 'received' : _ref$variant,
|
|
4300
|
+
bgColor = _ref.bgColor,
|
|
4301
|
+
messageColor = _ref.messageColor,
|
|
4302
|
+
headerColor = _ref.headerColor,
|
|
4303
|
+
className = _ref.className,
|
|
4304
|
+
style = _ref.style,
|
|
4305
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
4306
|
+
var isSent = variant === 'sent';
|
|
4307
|
+
// Colores por defecto según variante, sobreescribibles via props
|
|
4308
|
+
var defaultBg = isSent ? 'bosque' : 'lima';
|
|
4309
|
+
var defaultMsg = isSent ? 'hueso' : 'olivo';
|
|
4310
|
+
var defaultHdr = isSent ? 'lima' : 'olivo';
|
|
4311
|
+
var resolvedBg = colors[bgColor !== null && bgColor !== void 0 ? bgColor : defaultBg];
|
|
4312
|
+
var resolvedMsg = colors[messageColor !== null && messageColor !== void 0 ? messageColor : defaultMsg];
|
|
4313
|
+
var resolvedHdr = colors[headerColor !== null && headerColor !== void 0 ? headerColor : defaultHdr];
|
|
4314
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
|
4315
|
+
ref: ref,
|
|
4316
|
+
className: cn('chat-message', isSent ? 'chat-message--sent' : 'chat-message--received', className),
|
|
4317
|
+
style: _objectSpread2({
|
|
4318
|
+
'--chat-bg': resolvedBg,
|
|
4319
|
+
'--chat-msg': resolvedMsg,
|
|
4320
|
+
'--chat-hdr': resolvedHdr
|
|
4321
|
+
}, style)
|
|
4322
|
+
}, props), {}, {
|
|
4323
|
+
children: [jsxs("div", {
|
|
4324
|
+
className: "chat-message__header",
|
|
4325
|
+
children: [jsx(Avatar, {
|
|
4326
|
+
src: avatarSrc,
|
|
4327
|
+
alt: name,
|
|
4328
|
+
fallback: avatarFallback || name.charAt(0).toUpperCase(),
|
|
4329
|
+
size: "sm",
|
|
4330
|
+
className: "chat-message__avatar"
|
|
4331
|
+
}), jsx("span", {
|
|
4332
|
+
className: "chat-message__name",
|
|
4333
|
+
children: name
|
|
4334
|
+
}), jsx("span", {
|
|
4335
|
+
className: "chat-message__separator",
|
|
4336
|
+
children: "-"
|
|
4337
|
+
}), jsx("span", {
|
|
4338
|
+
className: "chat-message__time",
|
|
4339
|
+
children: time
|
|
4340
|
+
})]
|
|
4341
|
+
}), jsx("p", {
|
|
4342
|
+
className: "chat-message__body",
|
|
4343
|
+
children: message
|
|
4344
|
+
})]
|
|
4345
|
+
}));
|
|
4346
|
+
});
|
|
4347
|
+
ChatMessage.displayName = 'ChatMessage';
|
|
4348
|
+
|
|
4349
|
+
var _excluded$7 = ["questionLabel", "questionText", "labelAvatarSrc", "labelAvatarFallback", "state", "respondents", "respondButtonLabel", "onRespond", "bgColor", "labelBgColor", "labelTextColor", "buttonBgColor", "buttonTextColor", "respondedTextColor", "questionTextColor", "answerBgColor", "answerTextColor", "className", "style"];
|
|
4350
|
+
// ── Defaults por color ────────────────────────────────────────────
|
|
4351
|
+
var DEFAULT_COLORS = {
|
|
4352
|
+
bgColor: 'koala',
|
|
4353
|
+
labelBgColor: 'lavanda',
|
|
4354
|
+
labelTextColor: 'hueso',
|
|
4355
|
+
buttonBgColor: 'marmol',
|
|
4356
|
+
buttonTextColor: 'olivo',
|
|
4357
|
+
respondedTextColor: 'hueso',
|
|
4358
|
+
questionTextColor: 'hueso',
|
|
4359
|
+
answerBgColor: 'hueso',
|
|
4360
|
+
answerTextColor: 'olivo'
|
|
4361
|
+
};
|
|
4362
|
+
// ── Componente ────────────────────────────────────────────────────
|
|
4363
|
+
var QuestionCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4364
|
+
var questionLabel = _ref.questionLabel,
|
|
4365
|
+
questionText = _ref.questionText,
|
|
4366
|
+
labelAvatarSrc = _ref.labelAvatarSrc,
|
|
4367
|
+
_ref$labelAvatarFallb = _ref.labelAvatarFallback,
|
|
4368
|
+
labelAvatarFallback = _ref$labelAvatarFallb === void 0 ? '?' : _ref$labelAvatarFallb,
|
|
4369
|
+
_ref$state = _ref.state,
|
|
4370
|
+
state = _ref$state === void 0 ? 'pending' : _ref$state,
|
|
4371
|
+
_ref$respondents = _ref.respondents,
|
|
4372
|
+
respondents = _ref$respondents === void 0 ? [] : _ref$respondents,
|
|
4373
|
+
_ref$respondButtonLab = _ref.respondButtonLabel,
|
|
4374
|
+
respondButtonLabel = _ref$respondButtonLab === void 0 ? 'Responder' : _ref$respondButtonLab,
|
|
4375
|
+
onRespond = _ref.onRespond,
|
|
4376
|
+
bgColor = _ref.bgColor,
|
|
4377
|
+
labelBgColor = _ref.labelBgColor,
|
|
4378
|
+
labelTextColor = _ref.labelTextColor,
|
|
4379
|
+
buttonBgColor = _ref.buttonBgColor,
|
|
4380
|
+
buttonTextColor = _ref.buttonTextColor,
|
|
4381
|
+
respondedTextColor = _ref.respondedTextColor,
|
|
4382
|
+
questionTextColor = _ref.questionTextColor,
|
|
4383
|
+
answerBgColor = _ref.answerBgColor,
|
|
4384
|
+
answerTextColor = _ref.answerTextColor,
|
|
4385
|
+
className = _ref.className,
|
|
4386
|
+
style = _ref.style,
|
|
4387
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
4388
|
+
var resolved = {
|
|
4389
|
+
bg: colors[bgColor !== null && bgColor !== void 0 ? bgColor : DEFAULT_COLORS.bgColor],
|
|
4390
|
+
labelBg: colors[labelBgColor !== null && labelBgColor !== void 0 ? labelBgColor : DEFAULT_COLORS.labelBgColor],
|
|
4391
|
+
labelText: colors[labelTextColor !== null && labelTextColor !== void 0 ? labelTextColor : DEFAULT_COLORS.labelTextColor],
|
|
4392
|
+
btnBg: colors[buttonBgColor !== null && buttonBgColor !== void 0 ? buttonBgColor : DEFAULT_COLORS.buttonBgColor],
|
|
4393
|
+
btnText: colors[buttonTextColor !== null && buttonTextColor !== void 0 ? buttonTextColor : DEFAULT_COLORS.buttonTextColor],
|
|
4394
|
+
respText: colors[respondedTextColor !== null && respondedTextColor !== void 0 ? respondedTextColor : DEFAULT_COLORS.respondedTextColor],
|
|
4395
|
+
qText: colors[questionTextColor !== null && questionTextColor !== void 0 ? questionTextColor : DEFAULT_COLORS.questionTextColor],
|
|
4396
|
+
ansBg: colors[answerBgColor !== null && answerBgColor !== void 0 ? answerBgColor : DEFAULT_COLORS.answerBgColor],
|
|
4397
|
+
ansText: colors[answerTextColor !== null && answerTextColor !== void 0 ? answerTextColor : DEFAULT_COLORS.answerTextColor]
|
|
4398
|
+
};
|
|
4399
|
+
var showRespondents = state === 'responded' || state === 'closed';
|
|
4400
|
+
var showRevealed = state === 'revealed';
|
|
4401
|
+
var showButton = state === 'pending' || state === 'responded';
|
|
4402
|
+
return jsxs("div", _objectSpread2(_objectSpread2({
|
|
4403
|
+
ref: ref,
|
|
4404
|
+
className: cn('question-card', className),
|
|
4405
|
+
style: _objectSpread2({
|
|
4406
|
+
'--qc-bg': resolved.bg,
|
|
4407
|
+
'--qc-label-bg': resolved.labelBg,
|
|
4408
|
+
'--qc-label-txt': resolved.labelText,
|
|
4409
|
+
'--qc-btn-bg': resolved.btnBg,
|
|
4410
|
+
'--qc-btn-txt': resolved.btnText,
|
|
4411
|
+
'--qc-resp-txt': resolved.respText,
|
|
4412
|
+
'--qc-q-txt': resolved.qText,
|
|
4413
|
+
'--qc-ans-bg': resolved.ansBg,
|
|
4414
|
+
'--qc-ans-txt': resolved.ansText
|
|
4415
|
+
}, style)
|
|
4416
|
+
}, props), {}, {
|
|
4417
|
+
children: [jsxs("div", {
|
|
4418
|
+
className: "question-card__label",
|
|
4419
|
+
children: [jsx(Avatar, {
|
|
4420
|
+
src: labelAvatarSrc,
|
|
4421
|
+
fallback: labelAvatarFallback,
|
|
4422
|
+
size: "sm",
|
|
4423
|
+
className: "question-card__label-avatar"
|
|
4424
|
+
}), jsx("span", {
|
|
4425
|
+
className: "question-card__label-text",
|
|
4426
|
+
children: questionLabel
|
|
4427
|
+
})]
|
|
4428
|
+
}), showRevealed && jsxs("div", {
|
|
4429
|
+
className: "question-card__revealed",
|
|
4430
|
+
children: [questionText && jsx("p", {
|
|
4431
|
+
className: "question-card__question-text",
|
|
4432
|
+
children: questionText
|
|
4433
|
+
}), jsx("ul", {
|
|
4434
|
+
className: "question-card__answers",
|
|
4435
|
+
children: respondents.map(function (r, i) {
|
|
4436
|
+
var _r$avatarFallback;
|
|
4437
|
+
return jsxs("li", {
|
|
4438
|
+
className: "question-card__answer-row",
|
|
4439
|
+
children: [jsx(Avatar, {
|
|
4440
|
+
src: r.avatarSrc,
|
|
4441
|
+
fallback: (_r$avatarFallback = r.avatarFallback) !== null && _r$avatarFallback !== void 0 ? _r$avatarFallback : r.name.charAt(0).toUpperCase(),
|
|
4442
|
+
size: "sm",
|
|
4443
|
+
className: "question-card__answer-avatar"
|
|
4444
|
+
}), jsx("span", {
|
|
4445
|
+
className: "question-card__answer-name",
|
|
4446
|
+
children: r.name
|
|
4447
|
+
}), r.answer && jsx("span", {
|
|
4448
|
+
className: "question-card__answer-chip",
|
|
4449
|
+
children: r.answer
|
|
4450
|
+
})]
|
|
4451
|
+
}, i);
|
|
4452
|
+
})
|
|
4453
|
+
})]
|
|
4454
|
+
}), showRespondents && jsx("ul", {
|
|
4455
|
+
className: "question-card__respondents",
|
|
4456
|
+
children: respondents.map(function (r, i) {
|
|
4457
|
+
var _r$avatarFallback2;
|
|
4458
|
+
return jsxs("li", {
|
|
4459
|
+
className: "question-card__respondent",
|
|
4460
|
+
children: [jsx(Avatar, {
|
|
4461
|
+
src: r.avatarSrc,
|
|
4462
|
+
fallback: (_r$avatarFallback2 = r.avatarFallback) !== null && _r$avatarFallback2 !== void 0 ? _r$avatarFallback2 : r.name.charAt(0).toUpperCase(),
|
|
4463
|
+
size: "sm",
|
|
4464
|
+
className: "question-card__respondent-avatar"
|
|
4465
|
+
}), jsxs("span", {
|
|
4466
|
+
className: "question-card__respondent-text",
|
|
4467
|
+
children: [r.name, " ya ha respondido."]
|
|
4468
|
+
})]
|
|
4469
|
+
}, i);
|
|
4470
|
+
})
|
|
4471
|
+
}), showButton && jsx("button", {
|
|
4472
|
+
type: "button",
|
|
4473
|
+
className: "question-card__btn",
|
|
4474
|
+
onClick: onRespond,
|
|
4475
|
+
children: respondButtonLabel
|
|
4476
|
+
})]
|
|
4477
|
+
}));
|
|
4478
|
+
});
|
|
4479
|
+
QuestionCard.displayName = 'QuestionCard';
|
|
4480
|
+
|
|
4481
|
+
var _excluded$6 = ["variant", "name", "avatarSrc", "avatarFallback", "avatars", "bgColor", "nameColor", "chevronColor", "avatarRingColor", "className", "style", "onClick"];
|
|
4482
|
+
// ── Componente ────────────────────────────────────────────────────
|
|
4483
|
+
var FriendListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4484
|
+
var _ref$variant = _ref.variant,
|
|
4485
|
+
variant = _ref$variant === void 0 ? 'user' : _ref$variant,
|
|
4486
|
+
name = _ref.name,
|
|
4487
|
+
avatarSrc = _ref.avatarSrc,
|
|
4488
|
+
avatarFallback = _ref.avatarFallback,
|
|
4489
|
+
_ref$avatars = _ref.avatars,
|
|
4490
|
+
avatars = _ref$avatars === void 0 ? [] : _ref$avatars,
|
|
4491
|
+
bgColor = _ref.bgColor,
|
|
4492
|
+
nameColor = _ref.nameColor,
|
|
4493
|
+
chevronColor = _ref.chevronColor,
|
|
4494
|
+
avatarRingColor = _ref.avatarRingColor,
|
|
4495
|
+
className = _ref.className,
|
|
4496
|
+
style = _ref.style,
|
|
4497
|
+
onClick = _ref.onClick,
|
|
4498
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
4499
|
+
var resolved = {
|
|
4500
|
+
bg: colors[bgColor !== null && bgColor !== void 0 ? bgColor : 'marmol'],
|
|
4501
|
+
name: colors[nameColor !== null && nameColor !== void 0 ? nameColor : 'olivo'],
|
|
4502
|
+
chevron: colors[chevronColor !== null && chevronColor !== void 0 ? chevronColor : 'olivo'],
|
|
4503
|
+
ring: colors[avatarRingColor !== null && avatarRingColor !== void 0 ? avatarRingColor : 'hueso']
|
|
4504
|
+
};
|
|
4505
|
+
return jsxs("button", _objectSpread2(_objectSpread2({
|
|
4506
|
+
ref: ref,
|
|
4507
|
+
type: "button",
|
|
4508
|
+
className: cn('friend-list-item', "friend-list-item--".concat(variant), className),
|
|
4509
|
+
style: _objectSpread2({
|
|
4510
|
+
'--fi-bg': resolved.bg,
|
|
4511
|
+
'--fi-name': resolved.name,
|
|
4512
|
+
'--fi-chevron': resolved.chevron,
|
|
4513
|
+
'--fi-ring': resolved.ring
|
|
4514
|
+
}, style),
|
|
4515
|
+
onClick: onClick
|
|
4516
|
+
}, props), {}, {
|
|
4517
|
+
children: [jsx("span", {
|
|
4518
|
+
className: "friend-list-item__left",
|
|
4519
|
+
children: variant === 'user' ? jsxs(Fragment, {
|
|
4520
|
+
children: [jsx(Avatar, {
|
|
4521
|
+
src: avatarSrc,
|
|
4522
|
+
fallback: avatarFallback !== null && avatarFallback !== void 0 ? avatarFallback : name === null || name === void 0 ? void 0 : name.charAt(0).toUpperCase(),
|
|
4523
|
+
size: "md",
|
|
4524
|
+
className: "friend-list-item__avatar"
|
|
4525
|
+
}), jsx("span", {
|
|
4526
|
+
className: "friend-list-item__name",
|
|
4527
|
+
children: name
|
|
4528
|
+
})]
|
|
4529
|
+
}) : jsxs(Fragment, {
|
|
4530
|
+
children: [jsx("span", {
|
|
4531
|
+
className: "friend-list-item__avatar-stack",
|
|
4532
|
+
children: avatars.slice(0, 4).map(function (av, i) {
|
|
4533
|
+
return jsx(Avatar, {
|
|
4534
|
+
src: av.src,
|
|
4535
|
+
fallback: av.fallback,
|
|
4536
|
+
size: "md",
|
|
4537
|
+
className: "friend-list-item__stack-avatar",
|
|
4538
|
+
style: {
|
|
4539
|
+
zIndex: avatars.length - i
|
|
4540
|
+
}
|
|
4541
|
+
}, i);
|
|
4542
|
+
})
|
|
4543
|
+
}), name && jsx("span", {
|
|
4544
|
+
className: "friend-list-item__name",
|
|
4545
|
+
children: name
|
|
4546
|
+
})]
|
|
4547
|
+
})
|
|
4548
|
+
}), jsx("svg", {
|
|
4549
|
+
className: "friend-list-item__chevron",
|
|
4550
|
+
width: "18",
|
|
4551
|
+
height: "18",
|
|
4552
|
+
viewBox: "0 0 24 24",
|
|
4553
|
+
fill: "none",
|
|
4554
|
+
stroke: "currentColor",
|
|
4555
|
+
strokeWidth: "2.5",
|
|
4556
|
+
strokeLinecap: "round",
|
|
4557
|
+
strokeLinejoin: "round",
|
|
4558
|
+
"aria-hidden": true,
|
|
4559
|
+
children: jsx("polyline", {
|
|
4560
|
+
points: "9 18 15 12 9 6"
|
|
4561
|
+
})
|
|
4562
|
+
})]
|
|
4563
|
+
}));
|
|
4564
|
+
});
|
|
4565
|
+
FriendListItem.displayName = 'FriendListItem';
|
|
4566
|
+
|
|
4139
4567
|
var crazyEmoji = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20100%20100%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%20%20%20%20%3Cg%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-24613.647556%2C-8169.224252%29%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Mesa-de-trabajo7%22%20serif%3Aid%3D%22Mesa%20de%20trabajo7%22%20transform%3D%22matrix%280.126773%2C0%2C0%2C0.126773%2C23935.683955%2C7133.619509%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%225347.875%22%20y%3D%228169%22%20width%3D%22788.814%22%20height%3D%22788.814%22%20style%3D%22fill%3Anone%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%281.163034%2C0.432554%2C-2.700494%2C7.260979%2C25045.992665%2C-90144.952853%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13292.995826%2C12833.117924%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-52.861C-9.722%2C-62.886%20-21.995%2C-72.547%20-36.061%2C-66.137C-42.608%2C-63.099%20-47.848%2C-57.98%20-52.861%2C-52.861C-62.886%2C-43.139%20-72.547%2C-30.866%20-66.137%2C-16.8C-63.099%2C-10.253%20-57.98%2C-5.013%20-52.861%2C-0C-43.139%2C10.025%20-30.866%2C19.686%20-16.8%2C13.276C-10.253%2C10.238%20-5.013%2C5.119%200%2C-0C10.025%2C-9.722%2019.686%2C-21.995%2013.276%2C-36.061C10.299%2C-42.608%205.119%2C-47.848%200%2C-52.861%22%20style%3D%22fill%3Argb%28180%2C222%2C110%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13265.015486%2C12819.184451%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C11.18C-8.997%2C20.083%20-20.468%2C26.07%20-32.917%2C28.36C-26.4%2C31.93%20-19.246%2C33.281%20-11.499%2C29.757C-4.952%2C26.719%200.289%2C21.6%205.301%2C16.481C15.327%2C6.76%2024.987%2C-5.514%2018.577%2C-19.58C18.181%2C-20.442%2017.74%2C-21.284%2017.256%2C-22.101C15.003%2C-9.517%208.986%2C2.087%200%2C11.18%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-3.73212%2C0.597796%2C3.73212%2C0.597796%2C13313.424099%2C12801.420504%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M3.416%2C-8.246C-0.762%2C-8.246%20-4.149%2C-6.083%20-4.149%2C-3.415C-4.149%2C-0.748%20-0.762%2C1.415%203.416%2C1.415C7.593%2C1.415%2010.98%2C-0.748%2010.98%2C-3.415C10.98%2C-6.083%207.593%2C-8.246%203.416%2C-8.246%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-3.73212%2C0.597796%2C3.73212%2C0.597796%2C13120.528495%2C12832.31267%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M3.416%2C-8.246C-0.762%2C-8.246%20-4.149%2C-6.083%20-4.149%2C-3.415C-4.149%2C-0.748%20-0.762%2C1.415%203.416%2C1.415C7.593%2C1.415%2010.98%2C-0.748%2010.98%2C-3.415C10.98%2C-6.083%207.593%2C-8.246%203.416%2C-8.246%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13142.832085%2C12829.559927%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%220.001%22%20height%3D%220.001%22%20style%3D%22fill%3Argb%2826%2C26%2C26%29%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13292.594697%2C12834.210364%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-29.029C-0.763%2C-30.332%20-2.438%2C-30.77%20-3.741%2C-30.007C-3.873%2C-29.93%20-3.999%2C-29.841%20-4.116%2C-29.743C-4.633%2C-25.004%20-7.701%2C-19.11%20-12.744%2C-14.128C-17.787%2C-9.145%20-23.62%2C-6.016%20-28.36%2C-5.5C-29.33%2C-4.343%20-29.178%2C-2.618%20-28.021%2C-1.648C-27.904%2C-1.549%20-27.778%2C-1.461%20-27.646%2C-1.383C-23.758%2C0.854%20-19.24%2C1.741%20-14.795%2C1.138C-3.716%2C-0.385%204.029%2C-10.601%202.506%2C-21.68C2.151%2C-24.263%201.3%2C-26.753%200%2C-29.014L0%2C-29.029Z%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.638886%2C0.732159%2C4.570965%2C0.422686%2C13035.098472%2C12809.133067%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M3.289%2C-5.697C-0.21%2C-5.697%20-3.045%2C-3.996%20-3.046%2C-1.899C-3.045%2C0.198%20-0.209%2C1.899%203.289%2C1.897C6.787%2C1.898%209.623%2C0.198%209.623%2C-1.899C9.623%2C-3.997%206.787%2C-5.697%203.289%2C-5.697%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-4.570965%2C0.422686%2C2.638886%2C0.732159%2C13138.568672%2C12785.492406%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M1.899%2C-7.087C-1.599%2C-7.087%20-4.435%2C-5.387%20-4.435%2C-3.289C-4.435%2C-1.192%20-1.599%2C0.508%201.899%2C0.507C5.397%2C0.509%208.233%2C-1.192%208.234%2C-3.289C8.233%2C-5.386%205.398%2C-7.087%201.899%2C-7.087%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13258.441191%2C12837.363409%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-26.394L-14.825%2C-11.569L-7.428%2C-4.11C-3.317%2C0%203.348%2C0%207.458%2C-4.11C11.569%2C-8.221%2011.569%2C-14.886%207.458%2C-18.997L0.061%2C-26.394L0%2C-26.394Z%22%20style%3D%22fill%3Argb%28255%2C96%2C138%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%285.278015%2C0%2C0%2C0.845411%2C13284.81807%2C12826.446532%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C6.342C-3.373%2C9.791%20-8.624%2C10.584%20-12.866%2C8.286L-12.425%2C8.742C-8.331%2C12.853%20-1.68%2C12.866%202.43%2C8.772C6.541%2C4.678%206.555%2C-1.973%202.461%2C-6.083L2.005%2C-6.524C4.288%2C-2.269%203.469%2C2.984%200%2C6.342%22%20style%3D%22fill%3Argb%28238%2C69%2C114%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-3.73212%2C0.597796%2C3.73212%2C0.597796%2C13250.422054%2C12823.362128%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M2.456%2C-5.878C3.004%2C-5.889%203.541%2C-5.867%204.056%2C-5.847C3.744%2C-1.238%203.165%2C1.855%202.456%2C1.877C1.747%2C1.898%201.221%2C-1.185%200.856%2C-5.847C1.371%2C-5.867%201.962%2C-5.835%202.456%2C-5.878%22%20style%3D%22fill%3Argb%28238%2C69%2C114%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%283.73212%2C0.597796%2C3.73212%2C-0.597796%2C13116.331755%2C12819.313122%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M12.121%2C-5.021C15.108%2C-1.305%2017.105%2C5.033%2017.062%2C12.122C17.02%2C19.211%2015.108%2C25.548%2012.121%2C29.264C11.627%2C23.893%2011.359%2C18.126%2011.37%2C12.122C11.38%2C6.117%2011.627%2C0.35%2012.121%2C-5.021%22%20style%3D%22fill%3Awhite%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-5.278015%2C0%2C0%2C0.845411%2C13193.902155%2C12811.582176%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-29.043C-8.02%2C-29.043%20-14.522%2C-22.541%20-14.522%2C-14.521C-14.522%2C-6.501%20-8.02%2C0%200%2C0C8.02%2C0%2014.522%2C-6.501%2014.522%2C-14.521C14.522%2C-22.541%208.02%2C-29.043%200%2C-29.043%22%20style%3D%22fill%3Awhite%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-5.278015%2C0%2C0%2C0.845411%2C13205.286833%2C12806.445459%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-16.891C-4.664%2C-16.891%20-8.446%2C-13.11%20-8.446%2C-8.445C-8.446%2C-3.781%20-4.664%2C0%200%2C0C4.664%2C0%208.446%2C-3.781%208.446%2C-8.445C8.446%2C-13.11%204.664%2C-16.891%200%2C-16.891%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-5.278015%2C0%2C0%2C0.845411%2C13080.217413%2C12829.80442%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-20.263C-5.596%2C-20.263%20-10.132%2C-15.727%20-10.132%2C-10.131C-10.132%2C-4.536%20-5.596%2C0%200%2C0C5.596%2C0%2010.132%2C-4.536%2010.132%2C-10.131C10.132%2C-15.727%205.596%2C-20.263%200%2C-20.263%22%20style%3D%22fill%3Awhite%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-5.278015%2C0%2C0%2C0.845411%2C13072.285612%2C12826.209056%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0.001%2C-11.757C-3.246%2C-11.757%20-5.878%2C-9.125%20-5.878%2C-5.879C-5.878%2C-2.632%20-3.246%2C0%200.001%2C0C3.248%2C0%205.879%2C-2.632%205.879%2C-5.879C5.879%2C-9.125%203.248%2C-11.757%200.001%2C-11.757%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
4140
4568
|
|
|
4141
4569
|
var explosionEmoji = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20width%3D%22100%25%22%20height%3D%22100%25%22%20viewBox%3D%220%200%20100%20100%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3Aserif%3D%22http%3A%2F%2Fwww.serif.com%2F%22%20style%3D%22fill-rule%3Aevenodd%3Bclip-rule%3Aevenodd%3Bstroke-linejoin%3Around%3Bstroke-miterlimit%3A2%3B%22%3E%20%20%20%20%3Cg%20transform%3D%22matrix%281%2C0%2C0%2C1%2C-24496.406028%2C-8169.224252%29%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22Mesa-de-trabajo7%22%20serif%3Aid%3D%22Mesa%20de%20trabajo7%22%20transform%3D%22matrix%280.126773%2C0%2C0%2C0.126773%2C23818.442428%2C7133.619509%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20x%3D%225347.875%22%20y%3D%228169%22%20width%3D%22788.814%22%20height%3D%22788.814%22%20style%3D%22fill%3Anone%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.072717%2C-0.137748%2C0.859976%2C12.940252%2C-31183.76929%2C-150761.942204%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12666.883148%2C12456.17044%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-67.375C-8.767%2C-67.375%20-15.873%2C-52.292%20-15.873%2C-33.687C-15.873%2C-15.082%20-8.767%2C0%200%2C0C8.767%2C0%2015.873%2C-15.082%2015.873%2C-33.687C15.873%2C-52.292%208.767%2C-67.375%200%2C-67.375%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12658.812161%2C12449.77159%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-30.153C-4.107%2C-30.153%20-7.436%2C-23.403%20-7.436%2C-15.076C-7.436%2C-6.75%20-4.107%2C0%200%2C0C4.107%2C0%207.436%2C-6.75%207.436%2C-15.076C7.436%2C-23.403%204.107%2C-30.153%200%2C-30.153%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12816.526454%2C12463.071406%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-53.545C0.013%2C-54.955%20-1.119%2C-56.109%20-2.53%2C-56.122C-3.307%2C-56.13%20-4.045%2C-55.782%20-4.535%2C-55.179L-16.486%2C-40.491L-35.036%2C-42.534L-53.014%2C-52.258C-54.82%2C-53.224%20-56.989%2C-53.224%20-58.795%2C-52.258L-77.181%2C-42.513L-95.731%2C-40.47L-107.764%2C-55.22C-108.671%2C-56.315%20-110.294%2C-56.466%20-111.388%2C-55.559C-111.976%2C-55.072%20-112.317%2C-54.349%20-112.32%2C-53.586C-112.626%2C-32.605%20-109.848%2C-9.275%20-88.111%2C-1.144C-77.999%2C2.656%20-66.905%2C2.717%20-56.16%2C2.615C-35.22%2C2.921%20-11.89%2C0.143%20-3.759%2C-21.594C0.041%2C-31.706%200.102%2C-42.799%200%2C-53.545%22%20style%3D%22fill%3Argb%28180%2C222%2C110%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12674.217724%2C12461.985449%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C5.557C-18.986%2C5.418%20-37.493%2C-0.426%20-53.116%2C-11.215C-50.092%2C-0.572%20-43.882%2C8.56%20-31.951%2C13.014C-21.839%2C16.813%20-10.746%2C16.875%200%2C16.773C20.94%2C17.079%2044.27%2C14.301%2052.401%2C-7.436C52.912%2C-8.784%2053.341%2C-10.173%2053.729%2C-11.522C37.963%2C-0.516%2019.226%2C5.44%200%2C5.557%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12766.575395%2C12457.978627%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-14.505C-6.273%2C-14.505%20-11.359%2C-11.258%20-11.359%2C-7.253C-11.359%2C-3.247%20-6.273%2C0%200%2C0C6.273%2C0%2011.359%2C-3.247%2011.359%2C-7.253C11.359%2C-11.258%206.273%2C-14.505%200%2C-14.505%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12579.392591%2C12464.036014%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-14.505C-6.273%2C-14.505%20-11.359%2C-11.258%20-11.359%2C-7.253C-11.359%2C-3.247%20-6.273%2C0%200%2C0C6.273%2C0%2011.359%2C-3.247%2011.359%2C-7.253C11.359%2C-11.258%206.273%2C-14.505%200%2C-14.505%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12726.894591%2C12457.00441%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-36.446C-10.064%2C-36.446%20-18.223%2C-28.287%20-18.223%2C-18.223C-18.223%2C-8.159%20-10.064%2C0%200%2C0C10.064%2C0%2018.223%2C-8.159%2018.223%2C-18.223C18.223%2C-28.287%2010.064%2C-36.446%200%2C-36.446%22%20style%3D%22fill%3Awhite%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12613.599647%2C12460.670726%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-36.446C-10.064%2C-36.446%20-18.223%2C-28.287%20-18.223%2C-18.223C-18.223%2C-8.159%20-10.064%2C0%200%2C0C10.064%2C0%2018.223%2C-8.159%2018.223%2C-18.223C18.223%2C-28.287%2010.064%2C-36.446%200%2C-36.446%22%20style%3D%22fill%3Awhite%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12714.771537%2C12452.108121%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-14.219C-3.926%2C-14.219%20-7.109%2C-11.036%20-7.109%2C-7.11C-7.109%2C-3.183%20-3.926%2C0%200%2C0C3.926%2C0%207.109%2C-3.183%207.109%2C-7.11C7.109%2C-11.036%203.926%2C-14.219%200%2C-14.219%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%28-2.411193%2C0.078028%2C0.48714%2C0.386215%2C12612.904681%2C12455.404615%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-14.219C-3.926%2C-14.219%20-7.109%2C-11.036%20-7.109%2C-7.11C-7.109%2C-3.183%20-3.926%2C0%200%2C0C3.926%2C0%207.109%2C-3.183%207.109%2C-7.11C7.109%2C-11.036%203.926%2C-14.219%200%2C-14.219%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12696.968116%2C12457.422546%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C14.811C0.227%2C13.979%200.343%2C13.12%200.347%2C12.257C0.347%2C5.802%20-4.883%2C-0.266%20-11.359%2C-0.266C-17.835%2C-0.266%20-23.065%2C5.863%20-23.065%2C12.257C-23.06%2C13.216%20-22.901%2C14.168%20-22.595%2C15.077C-15.629%2C11.057%20-7.079%2C10.933%200%2C14.75L0%2C14.811Z%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12674.947363%2C12462.563922%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C10.188C5.516%2C10.188%2010.215%2C8.411%2011.359%2C3.855C4.301%2C0%20-4.249%2C0.078%20-11.236%2C4.059C-9.867%2C8.411%20-5.373%2C10.188%200%2C10.188%22%20style%3D%22fill%3Argb%28198%2C45%2C67%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12766.786986%2C12438.188569%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-19.673L0%2C-19.407C0%2C-14.28%20-7.13%2C-12.032%20-15.955%2C-12.032C-19.785%2C-11.904%20-23.604%2C-12.5%20-27.212%2C-13.789C-26.688%2C-12.632%20-26.403%2C-11.382%20-26.374%2C-10.112C-26.374%2C-7.232%20-33.054%2C-6.026%20-41.349%2C-6.026C-49.643%2C-6.026%20-56.344%2C-7.313%20-56.344%2C-10.276C-56.344%2C-11.971%20-52.666%2C-14.893%20-47.968%2C-17.078C-50.075%2C-16.522%20-52.244%2C-16.234%20-54.423%2C-16.22C-58.628%2C-16.211%20-62.768%2C-17.265%20-66.456%2C-19.285C-68.167%2C-12.91%20-74.722%2C-9.129%20-81.097%2C-10.841C-86.314%2C-12.241%20-89.944%2C-16.967%20-89.95%2C-22.37C-89.935%2C-23.055%20-89.867%2C-23.738%20-89.745%2C-24.413C-91.762%2C-22.348%20-92.891%2C-19.576%20-92.891%2C-16.69C-92.878%2C-16.129%20-92.824%2C-15.569%20-92.728%2C-15.015C-99.061%2C-13.462%20-103.269%2C-10.745%20-103.269%2C-7.64C-103.269%2C-2.798%20-93.055%2C-1.021%20-80.43%2C-1.021C-77.202%2C-1.021%20-74.117%2C-1.144%20-71.339%2C-1.389C-68.233%2C3.024%20-56.282%2C4.74%20-41.982%2C4.74C-26.292%2C4.74%20-13.381%2C0.654%20-11.951%2C-4.78C-1.736%2C-6.537%205.577%2C-8.457%205.577%2C-13.074C5.577%2C-15.526%203.514%2C-17.814%200%2C-19.673%22%20style%3D%22fill%3Argb%2856%2C53%2C23%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12558.505106%2C12428.209173%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C31.195C5.386%2C31.192%2010.104%2C27.586%2011.522%2C22.39C15.211%2C24.409%2019.35%2C25.464%2023.555%2C25.454C25.734%2C25.441%2027.903%2C25.153%2030.01%2C24.596C25.312%2C26.782%2021.634%2C29.704%2021.634%2C31.399C21.634%2C34.362%2028.356%2C35.649%2036.629%2C35.649C44.903%2C35.649%2051.604%2C34.362%2051.604%2C31.481C51.564%2C30.239%2051.28%2C29.017%2050.766%2C27.885C54.374%2C29.175%2058.194%2C29.771%2062.023%2C29.642C70.848%2C29.642%2077.978%2C27.395%2077.978%2C22.268L77.978%2C22.002C71.663%2C19.108%2064.821%2C17.543%2057.876%2C17.405C58.148%2C16.268%2058.286%2C15.102%2058.284%2C13.932C58.346%2C5.583%2051.627%2C-1.235%2043.278%2C-1.296C38.54%2C-1.331%2034.06%2C0.858%2031.175%2C4.617C26.362%2C-2.548%2016.652%2C-4.454%209.487%2C0.359C5.152%2C3.272%202.558%2C8.158%202.574%2C13.381C2.575%2C14.328%202.671%2C15.272%202.86%2C16.2C-1.543%2C12.768%20-7.822%2C13.19%20-11.726%2C17.181C-11.848%2C17.855%20-11.916%2C18.538%20-11.931%2C19.224C-11.931%2C25.819%20-6.596%2C31.173%200%2C31.195%22%20style%3D%22fill%3Argb%28100%2C140%2C44%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12756.657138%2C12428.368893%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-5.42C-4.088%2C-8.901%20-9.02%2C-11.247%20-14.3%2C-12.223C-15.417%2C-12.387%20-16.454%2C-11.614%20-16.618%2C-10.498C-16.642%2C-10.332%20-16.646%2C-10.163%20-16.629%2C-9.996L-15.015%2C5.019C-14.909%2C6.143%20-13.913%2C6.967%20-12.789%2C6.861C-12.419%2C6.826%20-12.066%2C6.691%20-11.767%2C6.47L0%2C-2.213C0.886%2C-2.912%201.037%2C-4.196%200.338%2C-5.082C0.239%2C-5.207%200.126%2C-5.321%200%2C-5.42%22%20style%3D%22fill%3Argb%28180%2C222%2C110%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%282.411193%2C-0.078028%2C0.48714%2C0.386215%2C12570.390174%2C12445.436201%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M0%2C-18.46C-4.561%2C-13.845%20-7.763%2C-8.064%20-9.254%2C-1.749C-9.537%2C-0.657%20-8.881%2C0.458%20-7.788%2C0.741C-7.6%2C0.789%20-7.406%2C0.811%20-7.211%2C0.805L11.175%2C0.008C12.302%2C-0.049%2013.169%2C-1.009%2013.111%2C-2.136C13.093%2C-2.493%2012.982%2C-2.838%2012.789%2C-3.138L3.064%2C-18.092C2.432%2C-19.027%201.162%2C-19.271%200.227%2C-18.639C0.147%2C-18.585%200.071%2C-18.525%200%2C-18.46%22%20style%3D%22fill%3Argb%28180%2C222%2C110%29%3Bfill-rule%3Anonzero%3B%22%2F%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
@@ -4493,7 +4921,7 @@ var PatternFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4493
4921
|
});
|
|
4494
4922
|
PatternFill.displayName = 'PatternFill';
|
|
4495
4923
|
|
|
4496
|
-
var _excluded$1 = ["className", "variant", "logoVariant", "logoSize", "logoColor", "backgroundColor", "textColor", "activeColor", "navItemsBgColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "currentLanguage", "onLanguageClick", "onActionClick", "customLogo", "isRegister", "buttonText", "navItems", "navigate"];
|
|
4924
|
+
var _excluded$1 = ["className", "variant", "logoVariant", "logoSize", "logoColor", "backgroundColor", "textColor", "activeColor", "activeIconColor", "navItemsBgColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "currentLanguage", "onLanguageClick", "onActionClick", "customLogo", "isRegister", "buttonText", "navItems", "navigate"];
|
|
4497
4925
|
var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4498
4926
|
var className = _ref.className,
|
|
4499
4927
|
_ref$variant = _ref.variant,
|
|
@@ -4510,6 +4938,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4510
4938
|
textColor = _ref$textColor === void 0 ? 'piedra' : _ref$textColor,
|
|
4511
4939
|
_ref$activeColor = _ref.activeColor,
|
|
4512
4940
|
activeColor = _ref$activeColor === void 0 ? 'bosque' : _ref$activeColor,
|
|
4941
|
+
activeIconColor = _ref.activeIconColor,
|
|
4513
4942
|
_ref$navItemsBgColor = _ref.navItemsBgColor,
|
|
4514
4943
|
navItemsBgColor = _ref$navItemsBgColor === void 0 ? 'hueso' : _ref$navItemsBgColor,
|
|
4515
4944
|
buttonColor = _ref.buttonColor,
|
|
@@ -4543,7 +4972,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4543
4972
|
};
|
|
4544
4973
|
return jsxs("nav", _objectSpread2(_objectSpread2({
|
|
4545
4974
|
ref: ref,
|
|
4546
|
-
className: cn('
|
|
4975
|
+
className: cn('px-6 py-3 flex items-center justify-between', 'rounded-xl m-3', className),
|
|
4547
4976
|
style: {
|
|
4548
4977
|
backgroundColor: variant === 'nologin' ? colors[backgroundColor] : 'transparent'
|
|
4549
4978
|
}
|
|
@@ -4607,7 +5036,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4607
5036
|
children: jsx(Icon, {
|
|
4608
5037
|
name: item.icon,
|
|
4609
5038
|
size: "sm",
|
|
4610
|
-
color: item.active ? 'ice' : textColor
|
|
5039
|
+
color: item.active ? activeIconColor !== null && activeIconColor !== void 0 ? activeIconColor : 'ice' : textColor
|
|
4611
5040
|
})
|
|
4612
5041
|
}), jsx("span", {
|
|
4613
5042
|
children: item.label
|
|
@@ -4964,5 +5393,5 @@ var ColorPalette = function ColorPalette(_ref2) {
|
|
|
4964
5393
|
});
|
|
4965
5394
|
};
|
|
4966
5395
|
|
|
4967
|
-
export { Avatar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ColorPalette, ColorSwatch, Emoji, Error, ErrorFullScreen, FullPage, Grid, GridItem, H1, H2, H3, H4, Icon, Image, Input, Lead, Link, Loading, LoadingFullScreen, Logo, Muted, Navbar, Notification, P, Pattern, PatternFill, PatternGroup, Popup, SearchInput, Small, Subtitle, Switch, TextDivider, badgeVariants, buttonVariants, cn, colorEntries, colors, cssVars, getColor, getCssVar, themeVars };
|
|
5396
|
+
export { Avatar, Badge, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChatMessage, Checkbox, ColorPalette, ColorSwatch, Emoji, Error, ErrorFullScreen, FriendListItem, FullPage, Grid, GridItem, H1, H2, H3, H4, Icon, Image, Input, Lead, Link, Loading, LoadingFullScreen, Logo, Muted, Navbar, Notification, P, Pattern, PatternFill, PatternGroup, Popup, QuestionCard, SearchInput, Small, Streak, Subtitle, Switch, TextDivider, badgeVariants, buttonVariants, cn, colorEntries, colors, cssVars, getColor, getCssVar, themeVars };
|
|
4968
5397
|
//# sourceMappingURL=index.esm.js.map
|