aloha-ui-library 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +20 -8
- package/dist/components/Avatar/avatarParts.d.ts +8 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +17 -0
- package/dist/components/AvatarGroup/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +6 -1
- package/dist/components/ColorPalette/ColorPalette.d.ts +6 -3
- package/dist/components/Error/Error.d.ts +2 -1
- package/dist/components/FriendListItem/FriendListItem.d.ts +2 -4
- package/dist/components/Loading/Loading.d.ts +2 -1
- package/dist/components/LoadingFullScreen/LoadingFullScreen.d.ts +4 -2
- package/dist/components/Modal/Modal.d.ts +16 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +4 -1
- package/dist/components/PatternGroup/PatternGroup.d.ts +6 -4
- package/dist/components/Radio/Radio.d.ts +16 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +21 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +10 -0
- package/dist/components/TextArea/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +4 -2
- package/dist/index.css +3 -3
- package/dist/index.d.ts +15 -9
- package/dist/index.esm.css +3 -3
- package/dist/index.esm.js +540 -186
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +545 -185
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -13,6 +13,9 @@ function _arrayLikeToArray(r, a) {
|
|
|
13
13
|
function _arrayWithHoles(r) {
|
|
14
14
|
if (Array.isArray(r)) return r;
|
|
15
15
|
}
|
|
16
|
+
function _arrayWithoutHoles(r) {
|
|
17
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
18
|
+
}
|
|
16
19
|
function _defineProperty(e, r, t) {
|
|
17
20
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
18
21
|
value: t,
|
|
@@ -21,6 +24,9 @@ function _defineProperty(e, r, t) {
|
|
|
21
24
|
writable: true
|
|
22
25
|
}) : e[r] = t, e;
|
|
23
26
|
}
|
|
27
|
+
function _iterableToArray(r) {
|
|
28
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
29
|
+
}
|
|
24
30
|
function _iterableToArrayLimit(r, l) {
|
|
25
31
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
26
32
|
if (null != t) {
|
|
@@ -48,6 +54,9 @@ function _iterableToArrayLimit(r, l) {
|
|
|
48
54
|
function _nonIterableRest() {
|
|
49
55
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
50
56
|
}
|
|
57
|
+
function _nonIterableSpread() {
|
|
58
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
59
|
+
}
|
|
51
60
|
function ownKeys(e, r) {
|
|
52
61
|
var t = Object.keys(e);
|
|
53
62
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -92,6 +101,9 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
92
101
|
function _slicedToArray(r, e) {
|
|
93
102
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
94
103
|
}
|
|
104
|
+
function _toConsumableArray(r) {
|
|
105
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
106
|
+
}
|
|
95
107
|
function _toPrimitive(t, r) {
|
|
96
108
|
if ("object" != typeof t || !t) return t;
|
|
97
109
|
var e = t[Symbol.toPrimitive];
|
|
@@ -543,7 +555,7 @@ const fractionRegex = /^\d+\/\d+$/;
|
|
|
543
555
|
const stringLengths = /*#__PURE__*/new Set(['px', 'full', 'screen']);
|
|
544
556
|
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
|
545
557
|
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
|
546
|
-
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/;
|
|
558
|
+
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
|
547
559
|
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
|
548
560
|
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
549
561
|
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
|
@@ -2764,7 +2776,7 @@ var themeVars = {
|
|
|
2764
2776
|
primary: 'var(--theme-primary)'
|
|
2765
2777
|
};
|
|
2766
2778
|
|
|
2767
|
-
var _excluded$
|
|
2779
|
+
var _excluded$w = ["className", "variant", "size", "loading", "disabled", "color", "textColor", "borderColor", "icon", "children", "style", "borderWidth"];
|
|
2768
2780
|
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', {
|
|
2769
2781
|
variants: {
|
|
2770
2782
|
variant: {
|
|
@@ -2801,7 +2813,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2801
2813
|
style = _ref.style,
|
|
2802
2814
|
_ref$borderWidth = _ref.borderWidth,
|
|
2803
2815
|
borderWidth = _ref$borderWidth === void 0 ? 1 : _ref$borderWidth,
|
|
2804
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2816
|
+
props = _objectWithoutProperties(_ref, _excluded$w);
|
|
2805
2817
|
var customStyle = {};
|
|
2806
2818
|
// Aplicar color de fondo si se especifica
|
|
2807
2819
|
if (color) {
|
|
@@ -2860,27 +2872,27 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2860
2872
|
});
|
|
2861
2873
|
Button.displayName = 'Button';
|
|
2862
2874
|
|
|
2863
|
-
var _excluded$
|
|
2864
|
-
_excluded2$
|
|
2875
|
+
var _excluded$v = ["className", "children", "font", "weight", "color", "style"],
|
|
2876
|
+
_excluded2$4 = ["className", "children", "font", "weight", "color", "style"],
|
|
2865
2877
|
_excluded3$2 = ["className", "children", "font", "weight", "color", "style"],
|
|
2866
2878
|
_excluded4$1 = ["className", "children", "font", "weight", "color", "style"],
|
|
2867
2879
|
_excluded5$1 = ["className", "children", "font", "weight", "color", "style"],
|
|
2868
|
-
_excluded6
|
|
2880
|
+
_excluded6 = ["className", "children", "font", "weight", "color", "style"],
|
|
2869
2881
|
_excluded7 = ["className", "children", "font", "weight", "color", "style"],
|
|
2870
2882
|
_excluded8 = ["className", "children", "font", "weight", "color", "style"],
|
|
2871
2883
|
_excluded9 = ["className", "children", "font", "weight", "color", "style"];
|
|
2872
|
-
var fontFamilyClasses = {
|
|
2884
|
+
var fontFamilyClasses$1 = {
|
|
2873
2885
|
jetbrains: 'font-jetbrains',
|
|
2874
2886
|
nunito: 'font-nunito',
|
|
2875
2887
|
"default": ''
|
|
2876
2888
|
};
|
|
2877
|
-
var fontWeightClasses = {
|
|
2889
|
+
var fontWeightClasses$1 = {
|
|
2878
2890
|
light: 'font-light',
|
|
2879
2891
|
medium: 'font-medium',
|
|
2880
2892
|
bold: 'font-bold',
|
|
2881
2893
|
black: 'font-black'
|
|
2882
2894
|
};
|
|
2883
|
-
var getColorStyle = function getColorStyle(color) {
|
|
2895
|
+
var getColorStyle$1 = function getColorStyle(color) {
|
|
2884
2896
|
if (!color || color === 'default') return {};
|
|
2885
2897
|
if (color.startsWith('theme-')) {
|
|
2886
2898
|
return {
|
|
@@ -2899,11 +2911,11 @@ var H1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2899
2911
|
weight = _ref.weight,
|
|
2900
2912
|
color = _ref.color,
|
|
2901
2913
|
style = _ref.style,
|
|
2902
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2914
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
2903
2915
|
return jsxRuntime.jsx("h1", _objectSpread2(_objectSpread2({
|
|
2904
2916
|
ref: ref,
|
|
2905
|
-
className: cn('scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2906
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2917
|
+
className: cn('scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
2918
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2907
2919
|
}, props), {}, {
|
|
2908
2920
|
children: children
|
|
2909
2921
|
}));
|
|
@@ -2917,11 +2929,11 @@ var H2 = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
2917
2929
|
weight = _ref2.weight,
|
|
2918
2930
|
color = _ref2.color,
|
|
2919
2931
|
style = _ref2.style,
|
|
2920
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
2932
|
+
props = _objectWithoutProperties(_ref2, _excluded2$4);
|
|
2921
2933
|
return jsxRuntime.jsx("h2", _objectSpread2(_objectSpread2({
|
|
2922
2934
|
ref: ref,
|
|
2923
|
-
className: cn('scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2924
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2935
|
+
className: cn('scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
2936
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2925
2937
|
}, props), {}, {
|
|
2926
2938
|
children: children
|
|
2927
2939
|
}));
|
|
@@ -2938,8 +2950,8 @@ var H3 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
2938
2950
|
props = _objectWithoutProperties(_ref3, _excluded3$2);
|
|
2939
2951
|
return jsxRuntime.jsx("h3", _objectSpread2(_objectSpread2({
|
|
2940
2952
|
ref: ref,
|
|
2941
|
-
className: cn('scroll-m-20 text-2xl font-semibold tracking-tight', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2942
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2953
|
+
className: cn('scroll-m-20 text-2xl font-semibold tracking-tight', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
2954
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2943
2955
|
}, props), {}, {
|
|
2944
2956
|
children: children
|
|
2945
2957
|
}));
|
|
@@ -2956,8 +2968,8 @@ var H4 = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
2956
2968
|
props = _objectWithoutProperties(_ref4, _excluded4$1);
|
|
2957
2969
|
return jsxRuntime.jsx("h4", _objectSpread2(_objectSpread2({
|
|
2958
2970
|
ref: ref,
|
|
2959
|
-
className: cn('scroll-m-20 text-xl font-semibold tracking-tight', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2960
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2971
|
+
className: cn('scroll-m-20 text-xl font-semibold tracking-tight', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
2972
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2961
2973
|
}, props), {}, {
|
|
2962
2974
|
children: children
|
|
2963
2975
|
}));
|
|
@@ -2974,8 +2986,8 @@ var P = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
2974
2986
|
props = _objectWithoutProperties(_ref5, _excluded5$1);
|
|
2975
2987
|
return jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({
|
|
2976
2988
|
ref: ref,
|
|
2977
|
-
className: cn('leading-7 [&:not(:first-child)]:mt-6', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2978
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2989
|
+
className: cn('leading-7 [&:not(:first-child)]:mt-6', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
2990
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2979
2991
|
}, props), {}, {
|
|
2980
2992
|
children: children
|
|
2981
2993
|
}));
|
|
@@ -2989,11 +3001,11 @@ var Subtitle = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
|
2989
3001
|
weight = _ref6.weight,
|
|
2990
3002
|
color = _ref6.color,
|
|
2991
3003
|
style = _ref6.style,
|
|
2992
|
-
props = _objectWithoutProperties(_ref6, _excluded6
|
|
3004
|
+
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
2993
3005
|
return jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({
|
|
2994
3006
|
ref: ref,
|
|
2995
|
-
className: cn('text-xl text-muted-foreground', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2996
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
3007
|
+
className: cn('text-xl text-muted-foreground', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
3008
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
2997
3009
|
}, props), {}, {
|
|
2998
3010
|
children: children
|
|
2999
3011
|
}));
|
|
@@ -3010,8 +3022,8 @@ var Lead = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
|
|
|
3010
3022
|
props = _objectWithoutProperties(_ref7, _excluded7);
|
|
3011
3023
|
return jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({
|
|
3012
3024
|
ref: ref,
|
|
3013
|
-
className: cn('text-xl text-muted-foreground', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
3014
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
3025
|
+
className: cn('text-xl text-muted-foreground', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
3026
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
3015
3027
|
}, props), {}, {
|
|
3016
3028
|
children: children
|
|
3017
3029
|
}));
|
|
@@ -3028,8 +3040,8 @@ var Small = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
3028
3040
|
props = _objectWithoutProperties(_ref8, _excluded8);
|
|
3029
3041
|
return jsxRuntime.jsx("small", _objectSpread2(_objectSpread2({
|
|
3030
3042
|
ref: ref,
|
|
3031
|
-
className: cn('text-sm font-medium leading-none', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
3032
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
3043
|
+
className: cn('text-sm font-medium leading-none', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
3044
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
3033
3045
|
}, props), {}, {
|
|
3034
3046
|
children: children
|
|
3035
3047
|
}));
|
|
@@ -3046,21 +3058,20 @@ var Muted = /*#__PURE__*/React.forwardRef(function (_ref9, ref) {
|
|
|
3046
3058
|
props = _objectWithoutProperties(_ref9, _excluded9);
|
|
3047
3059
|
return jsxRuntime.jsx("p", _objectSpread2(_objectSpread2({
|
|
3048
3060
|
ref: ref,
|
|
3049
|
-
className: cn('text-sm text-muted-foreground', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
3050
|
-
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
3061
|
+
className: cn('text-sm text-muted-foreground', fontFamilyClasses$1[font], weight && fontWeightClasses$1[weight], className),
|
|
3062
|
+
style: _objectSpread2(_objectSpread2({}, getColorStyle$1(color)), style)
|
|
3051
3063
|
}, props), {}, {
|
|
3052
3064
|
children: children
|
|
3053
3065
|
}));
|
|
3054
3066
|
});
|
|
3055
3067
|
Muted.displayName = 'Muted';
|
|
3056
3068
|
|
|
3057
|
-
var _excluded$
|
|
3058
|
-
_excluded2$
|
|
3069
|
+
var _excluded$u = ["className", "size", "borderRadius", "showBorder", "backgroundColor", "borderColor", "shadow", "padding", "margin", "style"],
|
|
3070
|
+
_excluded2$3 = ["className", "padding", "margin", "style"],
|
|
3059
3071
|
_excluded3$1 = ["className", "font", "weight", "descriptionColor", "small", "children"],
|
|
3060
|
-
_excluded4 = ["
|
|
3061
|
-
_excluded5 = ["className", "padding", "margin", "style"]
|
|
3062
|
-
|
|
3063
|
-
var sizeClasses$2 = {
|
|
3072
|
+
_excluded4 = ["className", "padding", "margin", "style"],
|
|
3073
|
+
_excluded5 = ["className", "padding", "margin", "style"];
|
|
3074
|
+
var sizeClasses$4 = {
|
|
3064
3075
|
full: 'w-full',
|
|
3065
3076
|
constrained: 'max-w-md',
|
|
3066
3077
|
auto: 'w-auto'
|
|
@@ -3153,10 +3164,10 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3153
3164
|
padding = _ref.padding,
|
|
3154
3165
|
margin = _ref.margin,
|
|
3155
3166
|
style = _ref.style,
|
|
3156
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3167
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
3157
3168
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3158
3169
|
ref: ref,
|
|
3159
|
-
className: cn('text-card-foreground', sizeClasses$
|
|
3170
|
+
className: cn('text-card-foreground', sizeClasses$4[size], borderRadiusClasses[borderRadius], showBorder ? 'border' : '', showBorder ? getBorderColor(borderColor) : '', getBackgroundColor(backgroundColor), shadow ? 'shadow-sm' : '', className),
|
|
3160
3171
|
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3161
3172
|
}, props));
|
|
3162
3173
|
});
|
|
@@ -3166,7 +3177,7 @@ var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
3166
3177
|
padding = _ref2.padding,
|
|
3167
3178
|
margin = _ref2.margin,
|
|
3168
3179
|
style = _ref2.style,
|
|
3169
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
3180
|
+
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
3170
3181
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3171
3182
|
ref: ref,
|
|
3172
3183
|
className: cn('flex flex-col space-y-1.5', padding === undefined ? 'p-6' : '', className),
|
|
@@ -3226,8 +3237,8 @@ var CardDescription = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
3226
3237
|
restProps = _objectWithoutProperties(_ref4, _excluded3$1);
|
|
3227
3238
|
var Component = small ? Small : P;
|
|
3228
3239
|
// Filtrar 'color' de restProps para evitar conflictos
|
|
3229
|
-
restProps
|
|
3230
|
-
|
|
3240
|
+
var props = _objectSpread2({}, restProps);
|
|
3241
|
+
delete props.color;
|
|
3231
3242
|
return jsxRuntime.jsx(Component, _objectSpread2(_objectSpread2({
|
|
3232
3243
|
ref: ref,
|
|
3233
3244
|
font: font,
|
|
@@ -3244,7 +3255,7 @@ var CardContent = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
3244
3255
|
padding = _ref5.padding,
|
|
3245
3256
|
margin = _ref5.margin,
|
|
3246
3257
|
style = _ref5.style,
|
|
3247
|
-
props = _objectWithoutProperties(_ref5,
|
|
3258
|
+
props = _objectWithoutProperties(_ref5, _excluded4);
|
|
3248
3259
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3249
3260
|
ref: ref,
|
|
3250
3261
|
className: cn(padding === undefined ? 'p-6 pt-0' : '', className),
|
|
@@ -3257,7 +3268,7 @@ var CardFooter = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
|
3257
3268
|
padding = _ref6.padding,
|
|
3258
3269
|
margin = _ref6.margin,
|
|
3259
3270
|
style = _ref6.style,
|
|
3260
|
-
props = _objectWithoutProperties(_ref6,
|
|
3271
|
+
props = _objectWithoutProperties(_ref6, _excluded5);
|
|
3261
3272
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3262
3273
|
ref: ref,
|
|
3263
3274
|
className: cn('flex items-center', padding === undefined ? 'p-6 pt-0' : '', className),
|
|
@@ -3432,7 +3443,7 @@ var getAvatarPartImage = function getAvatarPartImage(id, type) {
|
|
|
3432
3443
|
return (part === null || part === void 0 ? void 0 : part.image) || null;
|
|
3433
3444
|
};
|
|
3434
3445
|
|
|
3435
|
-
var _excluded$
|
|
3446
|
+
var _excluded$t = ["className", "emoji", "size", "style", "src", "alt", "fallback"];
|
|
3436
3447
|
var DEFAULT_AVATAR = {
|
|
3437
3448
|
skinId: 1,
|
|
3438
3449
|
eyebrowId: 1,
|
|
@@ -3441,6 +3452,14 @@ var DEFAULT_AVATAR = {
|
|
|
3441
3452
|
hairId: 1,
|
|
3442
3453
|
mouthId: 1
|
|
3443
3454
|
};
|
|
3455
|
+
var sizeMap$1 = {
|
|
3456
|
+
xs: 24,
|
|
3457
|
+
sm: 32,
|
|
3458
|
+
md: 40,
|
|
3459
|
+
lg: 80,
|
|
3460
|
+
xl: 120,
|
|
3461
|
+
'2xl': 160
|
|
3462
|
+
};
|
|
3444
3463
|
var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3445
3464
|
var className = _ref.className,
|
|
3446
3465
|
emoji = _ref.emoji,
|
|
@@ -3451,15 +3470,16 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3451
3470
|
_ref$alt = _ref.alt,
|
|
3452
3471
|
alt = _ref$alt === void 0 ? 'Avatar' : _ref$alt,
|
|
3453
3472
|
fallback = _ref.fallback,
|
|
3454
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3473
|
+
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
3474
|
+
var resolvedSize = typeof size === 'number' ? size : sizeMap$1[size] || 100;
|
|
3455
3475
|
// Si tiene src, mostrar como imagen directa
|
|
3456
3476
|
if (src) {
|
|
3457
3477
|
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
3458
3478
|
ref: ref,
|
|
3459
3479
|
className: cn('avatar-container', className),
|
|
3460
3480
|
style: _objectSpread2({
|
|
3461
|
-
width: "".concat(
|
|
3462
|
-
height: "".concat(
|
|
3481
|
+
width: "".concat(resolvedSize, "px"),
|
|
3482
|
+
height: "".concat(resolvedSize, "px")
|
|
3463
3483
|
}, style)
|
|
3464
3484
|
}, props), {}, {
|
|
3465
3485
|
children: jsxRuntime.jsx("img", {
|
|
@@ -3475,8 +3495,8 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3475
3495
|
ref: ref,
|
|
3476
3496
|
className: cn('avatar-container avatar-fallback', className),
|
|
3477
3497
|
style: _objectSpread2({
|
|
3478
|
-
width: "".concat(
|
|
3479
|
-
height: "".concat(
|
|
3498
|
+
width: "".concat(resolvedSize, "px"),
|
|
3499
|
+
height: "".concat(resolvedSize, "px")
|
|
3480
3500
|
}, style)
|
|
3481
3501
|
}, props), {}, {
|
|
3482
3502
|
children: fallback
|
|
@@ -3494,8 +3514,8 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3494
3514
|
ref: ref,
|
|
3495
3515
|
className: cn('avatar-container', className),
|
|
3496
3516
|
style: _objectSpread2({
|
|
3497
|
-
width: "".concat(
|
|
3498
|
-
height: "".concat(
|
|
3517
|
+
width: "".concat(resolvedSize, "px"),
|
|
3518
|
+
height: "".concat(resolvedSize, "px")
|
|
3499
3519
|
}, style)
|
|
3500
3520
|
}, props), {}, {
|
|
3501
3521
|
children: [currentSkin && jsxRuntime.jsx("img", {
|
|
@@ -3527,7 +3547,65 @@ var Avatar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3527
3547
|
});
|
|
3528
3548
|
Avatar.displayName = 'Avatar';
|
|
3529
3549
|
|
|
3530
|
-
var _excluded$
|
|
3550
|
+
var _excluded$s = ["className", "avatars", "max", "size", "ringColor", "style"];
|
|
3551
|
+
var sizeMap = {
|
|
3552
|
+
xs: 24,
|
|
3553
|
+
sm: 32,
|
|
3554
|
+
md: 40,
|
|
3555
|
+
lg: 80,
|
|
3556
|
+
xl: 120,
|
|
3557
|
+
'2xl': 160
|
|
3558
|
+
};
|
|
3559
|
+
var AvatarGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3560
|
+
var className = _ref.className,
|
|
3561
|
+
_ref$avatars = _ref.avatars,
|
|
3562
|
+
avatars = _ref$avatars === void 0 ? [] : _ref$avatars,
|
|
3563
|
+
_ref$max = _ref.max,
|
|
3564
|
+
max = _ref$max === void 0 ? 4 : _ref$max,
|
|
3565
|
+
_ref$size = _ref.size,
|
|
3566
|
+
size = _ref$size === void 0 ? 'sm' : _ref$size,
|
|
3567
|
+
ringColor = _ref.ringColor,
|
|
3568
|
+
style = _ref.style,
|
|
3569
|
+
props = _objectWithoutProperties(_ref, _excluded$s);
|
|
3570
|
+
var visibleAvatars = avatars.slice(0, max);
|
|
3571
|
+
var extraCount = avatars.length - max;
|
|
3572
|
+
var resolvedSize = typeof size === 'number' ? size : sizeMap[size] || 32;
|
|
3573
|
+
// Get color value from name or pass directly
|
|
3574
|
+
var ringColorValue = ringColor ? colors[ringColor] || ringColor : '#fff';
|
|
3575
|
+
return jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
3576
|
+
ref: ref,
|
|
3577
|
+
className: cn('avatar-group-stack', className),
|
|
3578
|
+
style: _objectSpread2({
|
|
3579
|
+
'--ag-ring-color': ringColorValue
|
|
3580
|
+
}, style)
|
|
3581
|
+
}, props), {}, {
|
|
3582
|
+
children: [extraCount > 0 && jsxRuntime.jsxs("div", {
|
|
3583
|
+
className: "avatar-group-extra",
|
|
3584
|
+
style: {
|
|
3585
|
+
width: "".concat(resolvedSize, "px"),
|
|
3586
|
+
height: "".concat(resolvedSize, "px"),
|
|
3587
|
+
fontSize: "".concat(resolvedSize * 0.35, "px"),
|
|
3588
|
+
zIndex: 0
|
|
3589
|
+
},
|
|
3590
|
+
children: ["+", extraCount]
|
|
3591
|
+
}), _toConsumableArray(visibleAvatars).reverse().map(function (av, index) {
|
|
3592
|
+
var zIndex = index + 1;
|
|
3593
|
+
return jsxRuntime.jsx(Avatar, {
|
|
3594
|
+
emoji: av.emoji,
|
|
3595
|
+
src: av.src,
|
|
3596
|
+
fallback: av.fallback,
|
|
3597
|
+
size: size,
|
|
3598
|
+
className: "avatar-group-item",
|
|
3599
|
+
style: {
|
|
3600
|
+
zIndex: zIndex
|
|
3601
|
+
}
|
|
3602
|
+
}, index);
|
|
3603
|
+
})]
|
|
3604
|
+
}));
|
|
3605
|
+
});
|
|
3606
|
+
AvatarGroup.displayName = 'AvatarGroup';
|
|
3607
|
+
|
|
3608
|
+
var _excluded$r = ["className", "variant", "backgroundColor", "textColor", "style"];
|
|
3531
3609
|
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', {
|
|
3532
3610
|
variants: {
|
|
3533
3611
|
variant: {
|
|
@@ -3544,19 +3622,34 @@ var badgeVariants = cva('inline-flex items-center rounded-full border px-2.5 py-
|
|
|
3544
3622
|
function Badge(_ref) {
|
|
3545
3623
|
var className = _ref.className,
|
|
3546
3624
|
variant = _ref.variant,
|
|
3547
|
-
|
|
3625
|
+
backgroundColor = _ref.backgroundColor,
|
|
3626
|
+
textColor = _ref.textColor,
|
|
3627
|
+
style = _ref.style,
|
|
3628
|
+
props = _objectWithoutProperties(_ref, _excluded$r);
|
|
3629
|
+
var customStyle = {};
|
|
3630
|
+
// Aplicar color de fondo si se especifica
|
|
3631
|
+
if (backgroundColor) {
|
|
3632
|
+
customStyle.backgroundColor = colors[backgroundColor];
|
|
3633
|
+
customStyle.borderColor = colors[backgroundColor];
|
|
3634
|
+
}
|
|
3635
|
+
// Aplicar color de texto si se especifica
|
|
3636
|
+
if (textColor) {
|
|
3637
|
+
customStyle.color = colors[textColor];
|
|
3638
|
+
}
|
|
3639
|
+
var finalStyle = _objectSpread2(_objectSpread2({}, customStyle), style);
|
|
3548
3640
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3549
3641
|
className: cn(badgeVariants({
|
|
3550
3642
|
variant: variant
|
|
3551
|
-
}), className)
|
|
3643
|
+
}), className),
|
|
3644
|
+
style: finalStyle
|
|
3552
3645
|
}, props));
|
|
3553
3646
|
}
|
|
3554
3647
|
|
|
3555
|
-
var _excluded$
|
|
3648
|
+
var _excluded$q = ["className", "error"];
|
|
3556
3649
|
var FormError = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3557
3650
|
var className = _ref.className,
|
|
3558
3651
|
error = _ref.error,
|
|
3559
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3652
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
3560
3653
|
if (!error) return null;
|
|
3561
3654
|
return jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
3562
3655
|
ref: ref,
|
|
@@ -3578,7 +3671,7 @@ var FormError = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3578
3671
|
});
|
|
3579
3672
|
FormError.displayName = 'FormError';
|
|
3580
3673
|
|
|
3581
|
-
var _excluded$
|
|
3674
|
+
var _excluded$p = ["className", "type", "label", "helperText", "required", "id", "error"];
|
|
3582
3675
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3583
3676
|
var className = _ref.className,
|
|
3584
3677
|
type = _ref.type,
|
|
@@ -3587,7 +3680,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3587
3680
|
required = _ref.required,
|
|
3588
3681
|
id = _ref.id,
|
|
3589
3682
|
error = _ref.error,
|
|
3590
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3683
|
+
props = _objectWithoutProperties(_ref, _excluded$p);
|
|
3591
3684
|
var _useState = React.useState(false),
|
|
3592
3685
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3593
3686
|
showPassword = _useState2[0],
|
|
@@ -3650,7 +3743,55 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3650
3743
|
});
|
|
3651
3744
|
Input.displayName = 'Input';
|
|
3652
3745
|
|
|
3653
|
-
var _excluded$
|
|
3746
|
+
var _excluded$o = ["className", "label", "helperText", "required", "id", "error", "resize"];
|
|
3747
|
+
var TextArea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3748
|
+
var className = _ref.className,
|
|
3749
|
+
label = _ref.label,
|
|
3750
|
+
helperText = _ref.helperText,
|
|
3751
|
+
required = _ref.required,
|
|
3752
|
+
id = _ref.id,
|
|
3753
|
+
error = _ref.error,
|
|
3754
|
+
_ref$resize = _ref.resize,
|
|
3755
|
+
resize = _ref$resize === void 0 ? 'vertical' : _ref$resize,
|
|
3756
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
3757
|
+
var textareaId = id || "textarea-".concat(Math.random().toString(36).substr(2, 9));
|
|
3758
|
+
return jsxRuntime.jsxs("div", {
|
|
3759
|
+
className: "w-full",
|
|
3760
|
+
children: [(label || helperText) && jsxRuntime.jsxs("div", {
|
|
3761
|
+
className: "mb-2",
|
|
3762
|
+
children: [label && jsxRuntime.jsxs(P, {
|
|
3763
|
+
className: "text-sm font-medium m-0 [&:not(:first-child)]:mt-0 inline",
|
|
3764
|
+
children: [label, required && jsxRuntime.jsx("span", {
|
|
3765
|
+
style: {
|
|
3766
|
+
color: colors.coral
|
|
3767
|
+
},
|
|
3768
|
+
children: " *"
|
|
3769
|
+
})]
|
|
3770
|
+
}), helperText && jsxRuntime.jsx(P, {
|
|
3771
|
+
className: "text-xs text-gray-500 m-0 mt-1 [&:not(:first-child)]:mt-1",
|
|
3772
|
+
children: helperText
|
|
3773
|
+
})]
|
|
3774
|
+
}), jsxRuntime.jsx("div", {
|
|
3775
|
+
className: "relative",
|
|
3776
|
+
children: jsxRuntime.jsx("textarea", _objectSpread2({
|
|
3777
|
+
id: textareaId,
|
|
3778
|
+
className: cn('flex w-full rounded-lg border-2 px-3 py-2 text-sm transition-all', 'placeholder:text-gray-500', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2', 'disabled:cursor-not-allowed disabled:opacity-50', error ? 'border-coral/50' : '', className),
|
|
3779
|
+
style: {
|
|
3780
|
+
borderColor: error ? colors.coral : colors.piedra,
|
|
3781
|
+
backgroundColor: colors.koala,
|
|
3782
|
+
resize: resize
|
|
3783
|
+
},
|
|
3784
|
+
ref: ref,
|
|
3785
|
+
required: required
|
|
3786
|
+
}, props))
|
|
3787
|
+
}), error && typeof error === 'string' && jsxRuntime.jsx(FormError, {
|
|
3788
|
+
error: error
|
|
3789
|
+
})]
|
|
3790
|
+
});
|
|
3791
|
+
});
|
|
3792
|
+
TextArea.displayName = 'TextArea';
|
|
3793
|
+
|
|
3794
|
+
var _excluded$n = ["className", "label", "helperText", "required", "id", "error", "options", "placeholder", "children"];
|
|
3654
3795
|
var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3655
3796
|
var className = _ref.className,
|
|
3656
3797
|
label = _ref.label,
|
|
@@ -3661,7 +3802,7 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3661
3802
|
options = _ref.options,
|
|
3662
3803
|
placeholder = _ref.placeholder,
|
|
3663
3804
|
children = _ref.children,
|
|
3664
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3805
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
3665
3806
|
var selectId = id || "select-".concat(Math.random().toString(36).substr(2, 9));
|
|
3666
3807
|
return jsxRuntime.jsxs("div", {
|
|
3667
3808
|
className: "w-full",
|
|
@@ -3713,12 +3854,12 @@ var Select = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3713
3854
|
});
|
|
3714
3855
|
Select.displayName = 'Select';
|
|
3715
3856
|
|
|
3716
|
-
var _excluded$
|
|
3857
|
+
var _excluded$m = ["className", "label", "id"];
|
|
3717
3858
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3718
3859
|
var className = _ref.className,
|
|
3719
3860
|
label = _ref.label,
|
|
3720
3861
|
id = _ref.id,
|
|
3721
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3862
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
3722
3863
|
var checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
|
|
3723
3864
|
var _React$useState = React.useState(false),
|
|
3724
3865
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -3778,21 +3919,47 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3778
3919
|
});
|
|
3779
3920
|
Checkbox.displayName = 'Checkbox';
|
|
3780
3921
|
|
|
3781
|
-
var _excluded$
|
|
3922
|
+
var _excluded$l = ["className", "label", "font", "weight", "labelColor", "id"];
|
|
3923
|
+
var fontFamilyClasses = {
|
|
3924
|
+
jetbrains: 'font-jetbrains',
|
|
3925
|
+
nunito: 'font-nunito',
|
|
3926
|
+
"default": ''
|
|
3927
|
+
};
|
|
3928
|
+
var fontWeightClasses = {
|
|
3929
|
+
light: 'font-light',
|
|
3930
|
+
medium: 'font-medium',
|
|
3931
|
+
bold: 'font-bold',
|
|
3932
|
+
black: 'font-black'
|
|
3933
|
+
};
|
|
3934
|
+
var getColorStyle = function getColorStyle(color) {
|
|
3935
|
+
if (!color || color === 'default') return {};
|
|
3936
|
+
if (color.startsWith('theme-')) {
|
|
3937
|
+
return {
|
|
3938
|
+
color: "var(--".concat(color, ")")
|
|
3939
|
+
};
|
|
3940
|
+
}
|
|
3941
|
+
if (color in colors) {
|
|
3942
|
+
return {
|
|
3943
|
+
color: colors[color]
|
|
3944
|
+
};
|
|
3945
|
+
}
|
|
3946
|
+
return {};
|
|
3947
|
+
};
|
|
3782
3948
|
var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3783
3949
|
var className = _ref.className,
|
|
3784
3950
|
label = _ref.label,
|
|
3785
|
-
font = _ref.font,
|
|
3951
|
+
_ref$font = _ref.font,
|
|
3952
|
+
font = _ref$font === void 0 ? 'default' : _ref$font,
|
|
3786
3953
|
weight = _ref.weight,
|
|
3787
3954
|
labelColor = _ref.labelColor,
|
|
3788
3955
|
id = _ref.id,
|
|
3789
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3956
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
3790
3957
|
var switchId = id || "switch-".concat(Math.random().toString(36).substr(2, 9));
|
|
3791
3958
|
return jsxRuntime.jsxs("div", {
|
|
3792
|
-
className: "flex items-center
|
|
3959
|
+
className: "flex items-center gap-3",
|
|
3793
3960
|
children: [jsxRuntime.jsxs("label", {
|
|
3794
3961
|
htmlFor: switchId,
|
|
3795
|
-
className: "relative inline-flex cursor-pointer items-center",
|
|
3962
|
+
className: "relative inline-flex cursor-pointer items-center flex-shrink-0",
|
|
3796
3963
|
children: [jsxRuntime.jsx("input", _objectSpread2({
|
|
3797
3964
|
type: "checkbox",
|
|
3798
3965
|
id: switchId,
|
|
@@ -3801,22 +3968,117 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3801
3968
|
}, props)), jsxRuntime.jsx("div", {
|
|
3802
3969
|
className: cn('peer h-8 w-14 rounded-[0.6rem] border-2 border-[#A69C8A] bg-[#D8D8C1] after:absolute after:left-[3px] after:top-[3px] after:h-[26px] after:w-[26px] after:rounded-md after:bg-white after:shadow-md after:transition-all after:content-[""] peer-checked:border-[#4A443F] peer-checked:bg-[#4A443F] peer-checked:after:translate-x-[24px] peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-[#4A443F]/30 peer-disabled:cursor-not-allowed peer-disabled:opacity-50', className)
|
|
3803
3970
|
})]
|
|
3804
|
-
}), label && jsxRuntime.jsx(
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
color: labelColor,
|
|
3808
|
-
className: "leading-none m-0 flex items-center",
|
|
3971
|
+
}), label && jsxRuntime.jsx("span", {
|
|
3972
|
+
className: cn('text-sm', fontFamilyClasses[font], weight && fontWeightClasses[weight]),
|
|
3973
|
+
style: getColorStyle(labelColor),
|
|
3809
3974
|
children: label
|
|
3810
3975
|
})]
|
|
3811
3976
|
});
|
|
3812
3977
|
});
|
|
3813
3978
|
Switch.displayName = 'Switch';
|
|
3814
3979
|
|
|
3815
|
-
var _excluded$
|
|
3980
|
+
var _excluded$k = ["className", "name", "value", "defaultValue", "onChange", "disabled", "children"],
|
|
3981
|
+
_excluded2$2 = ["className", "value", "label", "id", "disabled"];
|
|
3982
|
+
var RadioGroupContext = /*#__PURE__*/React.createContext(undefined);
|
|
3983
|
+
var RadioGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3984
|
+
var className = _ref.className,
|
|
3985
|
+
name = _ref.name,
|
|
3986
|
+
controlledValue = _ref.value,
|
|
3987
|
+
defaultValue = _ref.defaultValue,
|
|
3988
|
+
onChange = _ref.onChange,
|
|
3989
|
+
_ref$disabled = _ref.disabled,
|
|
3990
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
3991
|
+
children = _ref.children,
|
|
3992
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
3993
|
+
var _React$useState = React.useState(defaultValue || ''),
|
|
3994
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3995
|
+
localValue = _React$useState2[0],
|
|
3996
|
+
setLocalValue = _React$useState2[1];
|
|
3997
|
+
var isControlled = controlledValue !== undefined;
|
|
3998
|
+
var activeValue = isControlled ? controlledValue : localValue;
|
|
3999
|
+
var handleValueChange = function handleValueChange(newValue) {
|
|
4000
|
+
if (!isControlled) {
|
|
4001
|
+
setLocalValue(newValue);
|
|
4002
|
+
}
|
|
4003
|
+
if (onChange) {
|
|
4004
|
+
onChange(newValue);
|
|
4005
|
+
}
|
|
4006
|
+
};
|
|
4007
|
+
return jsxRuntime.jsx(RadioGroupContext.Provider, {
|
|
4008
|
+
value: {
|
|
4009
|
+
name: name,
|
|
4010
|
+
value: activeValue,
|
|
4011
|
+
onChange: handleValueChange,
|
|
4012
|
+
disabled: disabled
|
|
4013
|
+
},
|
|
4014
|
+
children: jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
4015
|
+
ref: ref,
|
|
4016
|
+
role: "radiogroup",
|
|
4017
|
+
className: cn('aloha-radio-group', className)
|
|
4018
|
+
}, props), {}, {
|
|
4019
|
+
children: children
|
|
4020
|
+
}))
|
|
4021
|
+
});
|
|
4022
|
+
});
|
|
4023
|
+
RadioGroup.displayName = 'RadioGroup';
|
|
4024
|
+
var RadioGroupItem = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
4025
|
+
var className = _ref2.className,
|
|
4026
|
+
value = _ref2.value,
|
|
4027
|
+
label = _ref2.label,
|
|
4028
|
+
id = _ref2.id,
|
|
4029
|
+
itemDisabled = _ref2.disabled,
|
|
4030
|
+
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
4031
|
+
var context = React.useContext(RadioGroupContext);
|
|
4032
|
+
if (!context) {
|
|
4033
|
+
throw new Error('RadioGroupItem must be used within a RadioGroup component');
|
|
4034
|
+
}
|
|
4035
|
+
var name = props.name || context.name;
|
|
4036
|
+
var isChecked = context.value === value;
|
|
4037
|
+
var isDisabled = itemDisabled || context.disabled;
|
|
4038
|
+
var inputId = id || "radio-".concat(name, "-").concat(value);
|
|
4039
|
+
var handleChange = function handleChange() {
|
|
4040
|
+
if (!isDisabled && context.onChange) {
|
|
4041
|
+
context.onChange(value);
|
|
4042
|
+
}
|
|
4043
|
+
};
|
|
4044
|
+
return jsxRuntime.jsxs("label", {
|
|
4045
|
+
htmlFor: inputId,
|
|
4046
|
+
className: cn('aloha-radio-item', isChecked && 'aloha-radio-item--checked', isDisabled && 'aloha-radio-item--disabled', className),
|
|
4047
|
+
children: [jsxRuntime.jsx("input", _objectSpread2({
|
|
4048
|
+
ref: ref,
|
|
4049
|
+
type: "radio",
|
|
4050
|
+
id: inputId,
|
|
4051
|
+
name: name,
|
|
4052
|
+
value: value,
|
|
4053
|
+
checked: isChecked,
|
|
4054
|
+
disabled: isDisabled,
|
|
4055
|
+
onChange: handleChange,
|
|
4056
|
+
className: "sr-only"
|
|
4057
|
+
}, props)), jsxRuntime.jsx("span", {
|
|
4058
|
+
className: "aloha-radio-indicator",
|
|
4059
|
+
style: {
|
|
4060
|
+
borderColor: isChecked ? colors.bosque : colors.piedra,
|
|
4061
|
+
backgroundColor: isChecked ? colors.hueso : colors.koala
|
|
4062
|
+
},
|
|
4063
|
+
children: isChecked && jsxRuntime.jsx("span", {
|
|
4064
|
+
className: "aloha-radio-inner-dot",
|
|
4065
|
+
style: {
|
|
4066
|
+
backgroundColor: colors.olivo
|
|
4067
|
+
}
|
|
4068
|
+
})
|
|
4069
|
+
}), label && jsxRuntime.jsx(P, {
|
|
4070
|
+
className: "aloha-radio-label text-sm m-0 [&:not(:first-child)]:mt-0",
|
|
4071
|
+
children: label
|
|
4072
|
+
})]
|
|
4073
|
+
});
|
|
4074
|
+
});
|
|
4075
|
+
RadioGroupItem.displayName = 'RadioGroupItem';
|
|
4076
|
+
|
|
4077
|
+
var _excluded$j = ["className", "onSearch"];
|
|
3816
4078
|
var SearchInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3817
4079
|
var className = _ref.className,
|
|
3818
4080
|
onSearch = _ref.onSearch,
|
|
3819
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4081
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
3820
4082
|
var handleKeyDown = function handleKeyDown(e) {
|
|
3821
4083
|
if (e.key === 'Enter' && onSearch) {
|
|
3822
4084
|
onSearch(e.currentTarget.value);
|
|
@@ -3836,7 +4098,7 @@ var SearchInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3836
4098
|
});
|
|
3837
4099
|
SearchInput.displayName = 'SearchInput';
|
|
3838
4100
|
|
|
3839
|
-
var _excluded$
|
|
4101
|
+
var _excluded$i = ["type", "title", "message", "timestamp", "avatar", "read", "onClose", "onClick", "className"];
|
|
3840
4102
|
var Notification = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3841
4103
|
var type = _ref.type,
|
|
3842
4104
|
title = _ref.title,
|
|
@@ -3848,58 +4110,63 @@ var Notification = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3848
4110
|
onClose = _ref.onClose,
|
|
3849
4111
|
onClick = _ref.onClick,
|
|
3850
4112
|
className = _ref.className,
|
|
3851
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3852
|
-
var
|
|
3853
|
-
like: '
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
4113
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
4114
|
+
var iconColors = {
|
|
4115
|
+
like: '#FF6F61',
|
|
4116
|
+
// coral
|
|
4117
|
+
comment: '#0084FF',
|
|
4118
|
+
// electrico
|
|
4119
|
+
follow: '#648C2C',
|
|
4120
|
+
// bosque
|
|
4121
|
+
mention: '#B388D3',
|
|
4122
|
+
// lavanda
|
|
4123
|
+
info: '#4A443F' // piedra
|
|
3858
4124
|
};
|
|
3859
4125
|
return jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
3860
4126
|
ref: ref,
|
|
3861
|
-
className: cn('
|
|
4127
|
+
className: cn('aloha-notification', !read && 'aloha-notification--unread', onClick && 'aloha-notification--clickable', className),
|
|
3862
4128
|
onClick: onClick
|
|
3863
4129
|
}, props), {}, {
|
|
3864
|
-
children: [avatar ? jsxRuntime.jsx(Avatar, {
|
|
3865
|
-
src: avatar,
|
|
4130
|
+
children: [avatar ? jsxRuntime.jsx(Avatar, _objectSpread2({
|
|
3866
4131
|
alt: title,
|
|
3867
|
-
size: "sm"
|
|
3868
|
-
|
|
3869
|
-
|
|
4132
|
+
size: "sm",
|
|
4133
|
+
className: "aloha-notification__avatar"
|
|
4134
|
+
}, avatar)) : jsxRuntime.jsx("div", {
|
|
4135
|
+
className: "aloha-notification__icon-container",
|
|
4136
|
+
style: {
|
|
4137
|
+
color: iconColors[type]
|
|
4138
|
+
},
|
|
3870
4139
|
children: jsxRuntime.jsx(lucideReact.Bell, {
|
|
3871
4140
|
className: "h-4 w-4"
|
|
3872
4141
|
})
|
|
3873
4142
|
}), jsxRuntime.jsxs("div", {
|
|
3874
|
-
className: "
|
|
4143
|
+
className: "aloha-notification__content",
|
|
3875
4144
|
children: [jsxRuntime.jsx("p", {
|
|
3876
|
-
className: "
|
|
4145
|
+
className: "aloha-notification__title",
|
|
3877
4146
|
children: title
|
|
3878
4147
|
}), jsxRuntime.jsx("p", {
|
|
3879
|
-
className: "
|
|
4148
|
+
className: "aloha-notification__message",
|
|
3880
4149
|
children: message
|
|
3881
4150
|
}), jsxRuntime.jsx("p", {
|
|
3882
|
-
className: "
|
|
4151
|
+
className: "aloha-notification__timestamp",
|
|
3883
4152
|
children: timestamp
|
|
3884
4153
|
})]
|
|
3885
|
-
}), onClose && jsxRuntime.
|
|
4154
|
+
}), onClose && jsxRuntime.jsx("button", {
|
|
3886
4155
|
onClick: function onClick(e) {
|
|
3887
4156
|
e.stopPropagation();
|
|
3888
4157
|
onClose();
|
|
3889
4158
|
},
|
|
3890
|
-
className: "
|
|
3891
|
-
|
|
4159
|
+
className: "aloha-notification__close-btn",
|
|
4160
|
+
"aria-label": "Close notification",
|
|
4161
|
+
children: jsxRuntime.jsx(lucideReact.X, {
|
|
3892
4162
|
className: "h-4 w-4"
|
|
3893
|
-
})
|
|
3894
|
-
className: "sr-only",
|
|
3895
|
-
children: "Close"
|
|
3896
|
-
})]
|
|
4163
|
+
})
|
|
3897
4164
|
})]
|
|
3898
4165
|
}));
|
|
3899
4166
|
});
|
|
3900
4167
|
Notification.displayName = 'Notification';
|
|
3901
4168
|
|
|
3902
|
-
var _excluded$
|
|
4169
|
+
var _excluded$h = ["className", "text", "component", "font", "weight", "textColor", "lineColor", "lineThickness", "avatars", "avatarRingColor", "rightSlot"];
|
|
3903
4170
|
// ── Color de la línea (herencia del original) ─────────────────────
|
|
3904
4171
|
var getLineColorClass = function getLineColorClass(color) {
|
|
3905
4172
|
if (!color || color === 'default') return 'bg-gray-300';
|
|
@@ -3938,7 +4205,7 @@ var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3938
4205
|
avatars = _ref.avatars,
|
|
3939
4206
|
avatarRingColor = _ref.avatarRingColor,
|
|
3940
4207
|
rightSlot = _ref.rightSlot,
|
|
3941
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4208
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
3942
4209
|
var renderText = function renderText() {
|
|
3943
4210
|
var commonProps = {
|
|
3944
4211
|
font: font,
|
|
@@ -3983,22 +4250,11 @@ var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3983
4250
|
ref: ref,
|
|
3984
4251
|
className: cn('text-divider', className)
|
|
3985
4252
|
}, props), {}, {
|
|
3986
|
-
children: [hasAvatars && jsxRuntime.jsx(
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
children: avatars.map(function (av, i) {
|
|
3992
|
-
return jsxRuntime.jsx(Avatar, {
|
|
3993
|
-
src: av.src,
|
|
3994
|
-
fallback: av.fallback,
|
|
3995
|
-
size: "sm",
|
|
3996
|
-
className: "text-divider__stack-avatar",
|
|
3997
|
-
style: {
|
|
3998
|
-
zIndex: avatars.length - i
|
|
3999
|
-
}
|
|
4000
|
-
}, i);
|
|
4001
|
-
})
|
|
4253
|
+
children: [hasAvatars && jsxRuntime.jsx(AvatarGroup, {
|
|
4254
|
+
avatars: avatars,
|
|
4255
|
+
size: "sm",
|
|
4256
|
+
ringColor: avatarRingColor || lineColor,
|
|
4257
|
+
className: "text-divider__avatar-stack"
|
|
4002
4258
|
}), renderText(), jsxRuntime.jsx("div", {
|
|
4003
4259
|
className: cn('text-divider__line', getLineColorClass(lineColor)),
|
|
4004
4260
|
style: {
|
|
@@ -4012,7 +4268,7 @@ var TextDivider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4012
4268
|
});
|
|
4013
4269
|
TextDivider.displayName = 'TextDivider';
|
|
4014
4270
|
|
|
4015
|
-
var _excluded$
|
|
4271
|
+
var _excluded$g = ["className", "children", "color", "hoverColor", "underline", "external"],
|
|
4016
4272
|
_excluded2$1 = ["to"],
|
|
4017
4273
|
_excluded3 = ["href", "target", "rel"];
|
|
4018
4274
|
var getColorClass = function getColorClass(color) {
|
|
@@ -4076,7 +4332,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4076
4332
|
underline = _ref$underline === void 0 ? 'hover' : _ref$underline,
|
|
4077
4333
|
_ref$external = _ref.external,
|
|
4078
4334
|
external = _ref$external === void 0 ? false : _ref$external,
|
|
4079
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4335
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
4080
4336
|
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);
|
|
4081
4337
|
// Si tiene la prop "to", usar React Router Link
|
|
4082
4338
|
if ('to' in props && props.to) {
|
|
@@ -4117,7 +4373,7 @@ var Link = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4117
4373
|
});
|
|
4118
4374
|
Link.displayName = 'Link';
|
|
4119
4375
|
|
|
4120
|
-
var _excluded$
|
|
4376
|
+
var _excluded$f = ["src", "alt", "width", "height", "objectFit", "loading", "fallbackSrc", "onError", "className"];
|
|
4121
4377
|
var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4122
4378
|
var src = _ref.src,
|
|
4123
4379
|
alt = _ref.alt,
|
|
@@ -4130,7 +4386,7 @@ var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4130
4386
|
fallbackSrc = _ref.fallbackSrc,
|
|
4131
4387
|
onError = _ref.onError,
|
|
4132
4388
|
className = _ref.className,
|
|
4133
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4389
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
4134
4390
|
var _React$useState = React.useState(src),
|
|
4135
4391
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
4136
4392
|
imgSrc = _React$useState2[0],
|
|
@@ -4328,7 +4584,72 @@ var Popup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4328
4584
|
});
|
|
4329
4585
|
Popup.displayName = 'Popup';
|
|
4330
4586
|
|
|
4331
|
-
var
|
|
4587
|
+
var _excluded$e = ["className", "isOpen", "onClose", "title", "size", "children", "footer"];
|
|
4588
|
+
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4589
|
+
var className = _ref.className,
|
|
4590
|
+
isOpen = _ref.isOpen,
|
|
4591
|
+
onClose = _ref.onClose,
|
|
4592
|
+
title = _ref.title,
|
|
4593
|
+
_ref$size = _ref.size,
|
|
4594
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
4595
|
+
children = _ref.children,
|
|
4596
|
+
footer = _ref.footer,
|
|
4597
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
4598
|
+
// Lock body scrolling when modal is open
|
|
4599
|
+
React.useEffect(function () {
|
|
4600
|
+
if (isOpen) {
|
|
4601
|
+
document.body.style.overflow = 'hidden';
|
|
4602
|
+
} else {
|
|
4603
|
+
document.body.style.overflow = '';
|
|
4604
|
+
}
|
|
4605
|
+
return function () {
|
|
4606
|
+
document.body.style.overflow = '';
|
|
4607
|
+
};
|
|
4608
|
+
}, [isOpen]);
|
|
4609
|
+
if (!isOpen) return null;
|
|
4610
|
+
return jsxRuntime.jsx("div", {
|
|
4611
|
+
className: "aloha-modal-overlay",
|
|
4612
|
+
onClick: onClose,
|
|
4613
|
+
children: jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
4614
|
+
ref: ref,
|
|
4615
|
+
className: cn('aloha-modal-dialog', "aloha-modal-dialog--".concat(size), className),
|
|
4616
|
+
onClick: function onClick(e) {
|
|
4617
|
+
return e.stopPropagation();
|
|
4618
|
+
},
|
|
4619
|
+
role: "dialog",
|
|
4620
|
+
"aria-modal": "true"
|
|
4621
|
+
}, props), {}, {
|
|
4622
|
+
children: [jsxRuntime.jsxs("div", {
|
|
4623
|
+
className: "aloha-modal-header",
|
|
4624
|
+
children: [title ? jsxRuntime.jsx(H3, {
|
|
4625
|
+
className: "m-0 [&:not(:first-child)]:mt-0 aloha-modal-title",
|
|
4626
|
+
children: title
|
|
4627
|
+
}) : jsxRuntime.jsx("div", {}), jsxRuntime.jsx("button", {
|
|
4628
|
+
type: "button",
|
|
4629
|
+
className: "aloha-modal-close-btn",
|
|
4630
|
+
onClick: onClose,
|
|
4631
|
+
"aria-label": "Close modal",
|
|
4632
|
+
children: jsxRuntime.jsx(lucideReact.X, {
|
|
4633
|
+
size: 20
|
|
4634
|
+
})
|
|
4635
|
+
})]
|
|
4636
|
+
}), jsxRuntime.jsx("div", {
|
|
4637
|
+
className: "aloha-modal-body",
|
|
4638
|
+
children: children
|
|
4639
|
+
}), footer && jsxRuntime.jsx("div", {
|
|
4640
|
+
className: "aloha-modal-footer",
|
|
4641
|
+
children: footer
|
|
4642
|
+
})]
|
|
4643
|
+
}))
|
|
4644
|
+
});
|
|
4645
|
+
});
|
|
4646
|
+
Modal.displayName = 'Modal';
|
|
4647
|
+
|
|
4648
|
+
var variantClasses = {
|
|
4649
|
+
inline: 'inline-flex flex-col items-center',
|
|
4650
|
+
card: 'border border-red-200 bg-red-50 rounded-lg p-6'
|
|
4651
|
+
};
|
|
4652
|
+
var Error$1 = function Error(_ref) {
|
|
4332
4653
|
var _ref$title = _ref.title,
|
|
4333
4654
|
title = _ref$title === void 0 ? 'Error' : _ref$title,
|
|
4334
4655
|
_ref$message = _ref.message,
|
|
@@ -4341,10 +4662,6 @@ var Error = function Error(_ref) {
|
|
|
4341
4662
|
variant = _ref$variant === void 0 ? 'inline' : _ref$variant,
|
|
4342
4663
|
_ref$showIcon = _ref.showIcon,
|
|
4343
4664
|
showIcon = _ref$showIcon === void 0 ? true : _ref$showIcon;
|
|
4344
|
-
var variantClasses = {
|
|
4345
|
-
inline: 'inline-flex flex-col items-center',
|
|
4346
|
-
card: 'border border-red-200 bg-red-50 rounded-lg p-6'
|
|
4347
|
-
};
|
|
4348
4665
|
return jsxRuntime.jsx("div", {
|
|
4349
4666
|
className: cn(variantClasses[variant], className),
|
|
4350
4667
|
children: jsxRuntime.jsxs("div", {
|
|
@@ -4369,7 +4686,7 @@ var Error = function Error(_ref) {
|
|
|
4369
4686
|
});
|
|
4370
4687
|
};
|
|
4371
4688
|
|
|
4372
|
-
var _excluded$
|
|
4689
|
+
var _excluded$d = ["message", "type", "onClose", "duration", "className", "position"];
|
|
4373
4690
|
var Toast = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4374
4691
|
var message = _ref.message,
|
|
4375
4692
|
_ref$type = _ref.type,
|
|
@@ -4380,7 +4697,7 @@ var Toast = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4380
4697
|
className = _ref.className,
|
|
4381
4698
|
_ref$position = _ref.position,
|
|
4382
4699
|
position = _ref$position === void 0 ? 'bottom-center' : _ref$position,
|
|
4383
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4700
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
4384
4701
|
React.useEffect(function () {
|
|
4385
4702
|
if (duration > 0) {
|
|
4386
4703
|
var timer = setTimeout(onClose, duration);
|
|
@@ -4443,6 +4760,11 @@ var Toast = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4443
4760
|
});
|
|
4444
4761
|
Toast.displayName = 'Toast';
|
|
4445
4762
|
|
|
4763
|
+
var sizeClasses$3 = {
|
|
4764
|
+
sm: 'w-4 h-4',
|
|
4765
|
+
md: 'w-8 h-8',
|
|
4766
|
+
lg: 'w-12 h-12'
|
|
4767
|
+
};
|
|
4446
4768
|
var Loading = function Loading(_ref) {
|
|
4447
4769
|
var message = _ref.message,
|
|
4448
4770
|
className = _ref.className,
|
|
@@ -4450,16 +4772,11 @@ var Loading = function Loading(_ref) {
|
|
|
4450
4772
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
4451
4773
|
_ref$centered = _ref.centered,
|
|
4452
4774
|
centered = _ref$centered === void 0 ? false : _ref$centered;
|
|
4453
|
-
var sizeClasses = {
|
|
4454
|
-
sm: 'w-4 h-4',
|
|
4455
|
-
md: 'w-8 h-8',
|
|
4456
|
-
lg: 'w-12 h-12'
|
|
4457
|
-
};
|
|
4458
4775
|
var wrapper = centered ? 'flex flex-col items-center justify-center' : 'inline-flex flex-col items-center';
|
|
4459
4776
|
return jsxRuntime.jsxs("div", {
|
|
4460
4777
|
className: cn(wrapper, className),
|
|
4461
4778
|
children: [jsxRuntime.jsx(lucideReact.Loader2, {
|
|
4462
|
-
className: cn('animate-spin text-primary', sizeClasses[size])
|
|
4779
|
+
className: cn('animate-spin text-primary', sizeClasses$3[size])
|
|
4463
4780
|
}), message && jsxRuntime.jsx("p", {
|
|
4464
4781
|
className: "mt-2 text-sm text-gray-600",
|
|
4465
4782
|
children: message
|
|
@@ -4473,13 +4790,13 @@ var verticalLogo = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encodin
|
|
|
4473
4790
|
|
|
4474
4791
|
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";
|
|
4475
4792
|
|
|
4476
|
-
var _excluded$
|
|
4793
|
+
var _excluded$c = ["variant", "size", "color", "className"];
|
|
4477
4794
|
var logoMap = {
|
|
4478
4795
|
horizontal: horizontalLogo,
|
|
4479
4796
|
vertical: verticalLogo,
|
|
4480
4797
|
icon: onlyIconLogo
|
|
4481
4798
|
};
|
|
4482
|
-
var sizeClasses$
|
|
4799
|
+
var sizeClasses$2 = {
|
|
4483
4800
|
xs: 'h-6',
|
|
4484
4801
|
sm: 'h-8',
|
|
4485
4802
|
md: 'h-12',
|
|
@@ -4548,12 +4865,12 @@ var Logo = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4548
4865
|
_ref$color = _ref.color,
|
|
4549
4866
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
4550
4867
|
className = _ref.className,
|
|
4551
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4868
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
4552
4869
|
var logoSrc = logoMap[variant];
|
|
4553
4870
|
var colorValue = getColorValue$1(color);
|
|
4554
4871
|
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
4555
4872
|
ref: ref,
|
|
4556
|
-
className: cn('inline-flex items-center justify-center flex-shrink-0', sizeClasses$
|
|
4873
|
+
className: cn('inline-flex items-center justify-center flex-shrink-0', sizeClasses$2[size], widthClasses[variant][size], className)
|
|
4557
4874
|
}, props), {}, {
|
|
4558
4875
|
children: jsxRuntime.jsx("div", {
|
|
4559
4876
|
className: "w-full h-full",
|
|
@@ -4589,7 +4906,7 @@ var settingsIcon = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encodin
|
|
|
4589
4906
|
|
|
4590
4907
|
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";
|
|
4591
4908
|
|
|
4592
|
-
var _excluded$
|
|
4909
|
+
var _excluded$b = ["name", "size", "color", "className"];
|
|
4593
4910
|
var iconMap = {
|
|
4594
4911
|
chat: chatIcon,
|
|
4595
4912
|
friends: friendsIcon,
|
|
@@ -4602,7 +4919,7 @@ var iconMap = {
|
|
|
4602
4919
|
settings: settingsIcon,
|
|
4603
4920
|
streak: streakIcon
|
|
4604
4921
|
};
|
|
4605
|
-
var sizeClasses = {
|
|
4922
|
+
var sizeClasses$1 = {
|
|
4606
4923
|
xs: 'w-4 h-4',
|
|
4607
4924
|
sm: 'w-6 h-6',
|
|
4608
4925
|
md: 'w-8 h-8',
|
|
@@ -4640,12 +4957,12 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4640
4957
|
_ref$color = _ref.color,
|
|
4641
4958
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
4642
4959
|
className = _ref.className,
|
|
4643
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4960
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
4644
4961
|
var iconSrc = iconMap[name];
|
|
4645
4962
|
var colorValue = getColorValue(color);
|
|
4646
4963
|
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
4647
4964
|
ref: ref,
|
|
4648
|
-
className: cn('inline-flex items-center justify-center flex-shrink-0', sizeClasses[size], className)
|
|
4965
|
+
className: cn('inline-flex items-center justify-center flex-shrink-0', sizeClasses$1[size], className)
|
|
4649
4966
|
}, props), {}, {
|
|
4650
4967
|
children: jsxRuntime.jsx("div", {
|
|
4651
4968
|
className: "w-full h-full",
|
|
@@ -4661,7 +4978,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4661
4978
|
});
|
|
4662
4979
|
Icon.displayName = 'Icon';
|
|
4663
4980
|
|
|
4664
|
-
var _excluded$
|
|
4981
|
+
var _excluded$a = ["count", "size", "color", "className"];
|
|
4665
4982
|
var textSizeClasses = {
|
|
4666
4983
|
xs: 'text-xs',
|
|
4667
4984
|
sm: 'text-sm',
|
|
@@ -4686,7 +5003,7 @@ var Streak = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4686
5003
|
_ref$color = _ref.color,
|
|
4687
5004
|
color = _ref$color === void 0 ? 'girasol' : _ref$color,
|
|
4688
5005
|
className = _ref.className,
|
|
4689
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5006
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
4690
5007
|
return jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
4691
5008
|
ref: ref,
|
|
4692
5009
|
className: cn('inline-flex items-center gap-1', className)
|
|
@@ -4703,7 +5020,7 @@ var Streak = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4703
5020
|
});
|
|
4704
5021
|
Streak.displayName = 'Streak';
|
|
4705
5022
|
|
|
4706
|
-
var _excluded$
|
|
5023
|
+
var _excluded$9 = ["message", "name", "time", "emoji", "variant", "bgColor", "messageColor", "headerColor", "className", "style"];
|
|
4707
5024
|
var ChatMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4708
5025
|
var message = _ref.message,
|
|
4709
5026
|
name = _ref.name,
|
|
@@ -4716,7 +5033,7 @@ var ChatMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4716
5033
|
headerColor = _ref.headerColor,
|
|
4717
5034
|
className = _ref.className,
|
|
4718
5035
|
style = _ref.style,
|
|
4719
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5036
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
4720
5037
|
var isSent = variant === 'sent';
|
|
4721
5038
|
// Colores por defecto según variante, sobreescribibles via props
|
|
4722
5039
|
var defaultBg = isSent ? 'bosque' : 'lima';
|
|
@@ -4777,7 +5094,7 @@ var meltEmoji = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3
|
|
|
4777
5094
|
|
|
4778
5095
|
var mewingEmoji = "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-8280.586411%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%2C7244.981668%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.605505%2C0%2C0%2C10.594615%2C-11297.766966%2C-124160.181479%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22matrix%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10775.590065%2C12518.555122%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%2C0.033C0.215%2C-14.433%20-1.653%2C-30.535%20-16.714%2C-36.156C-23.707%2C-38.817%20-31.361%2C-38.867%20-38.784%2C-38.801C-53.25%2C-39.016%20-69.368%2C-37.148%20-74.989%2C-22.087C-77.601%2C-15.094%20-77.651%2C-7.439%20-77.585%2C0.033C-77.8%2C14.515%20-75.932%2C30.617%20-60.871%2C36.238C-53.878%2C38.85%20-46.224%2C38.9%20-38.784%2C38.834C-24.319%2C39.049%20-8.216%2C37.18%20-2.596%2C22.12C0.033%2C15.077%200.066%2C7.423%200%2C0.033%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10528.926254%2C12507.635034%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%2C0.969C2.711%2C0.8%205.383%2C0.244%207.935%2C-0.684C9.159%2C-1.147%2010.347%2C-1.7%2011.49%2C-2.337C12.664%2C-2.966%2013.788%2C-3.726%2015.061%2C-4.553L15.16%2C-4.553C15.915%2C-5.04%2016.921%2C-4.834%2017.425%2C-4.09C17.704%2C-3.664%2017.771%2C-3.133%2017.607%2C-2.652C16.245%2C0.823%2013.411%2C3.512%209.87%2C4.689C6.398%2C6.009%202.526%2C5.774%20-0.76%2C4.044C-1.538%2C3.591%20-1.81%2C2.599%20-1.372%2C1.812C-1.103%2C1.353%20-0.629%2C1.051%20-0.099%2C1.002L0%2C0.969Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10548.211052%2C12517.448342%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-2.857C2.641%2C-1.889%205.484%2C-1.599%208.266%2C-2.014C9.564%2C-2.266%2010.821%2C-2.694%2012.002%2C-3.287C13.289%2C-3.977%2014.527%2C-4.756%2015.705%2C-5.618C16.35%2C-6.076%2017.243%2C-5.929%2017.706%2C-5.287C17.989%2C-4.886%2018.045%2C-4.367%2017.855%2C-3.915C16.277%2C-0.303%2012.969%2C2.258%209.076%2C2.88C7.125%2C3.219%205.12%2C3.072%203.24%2C2.45C1.442%2C1.871%20-0.187%2C0.861%20-1.504%2C-0.493C-2.055%2C-1.053%20-2.055%2C-1.95%20-1.504%2C-2.51C-1.136%2C-2.864%20-0.604%2C-2.991%20-0.116%2C-2.84L0%2C-2.857Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10686.421875%2C12515.197465%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-8.881C2.14%2C-7.067%204.696%2C-5.811%207.439%2C-5.227C8.746%2C-5.018%2010.076%2C-4.99%2011.391%2C-5.145C12.838%2C-5.351%2014.269%2C-5.661%2015.672%2C-6.071C16.434%2C-6.283%2017.225%2C-5.839%2017.441%2C-5.079C17.563%2C-4.6%2017.439%2C-4.092%2017.111%2C-3.723C14.366%2C-0.91%2010.389%2C0.333%206.53%2C-0.417C4.58%2C-0.765%202.747%2C-1.589%201.19%2C-2.814C-0.295%2C-3.976%20-1.47%2C-5.486%20-2.232%2C-7.211C-2.51%2C-7.946%20-2.14%2C-8.766%20-1.405%2C-9.044C-0.957%2C-9.214%20-0.454%2C-9.146%20-0.066%2C-8.865L0%2C-8.881Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10663.703479%2C12526.470683%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.25C0.98%2C5.723%201.915%2C5.114%202.794%2C4.431C3.105%2C4.179%203.373%2C3.877%203.587%2C3.539C3.673%2C3.397%203.729%2C3.24%203.753%2C3.076C3.733%2C2.906%203.676%2C2.742%203.587%2C2.596C3.373%2C2.258%203.105%2C1.956%202.794%2C1.704C1.911%2C1.026%200.977%2C0.419%200%2C-0.115C-0.427%2C-0.362%20-0.573%2C-0.908%20-0.326%2C-1.335C-0.322%2C-1.341%20-0.318%2C-1.348%20-0.314%2C-1.355C-0.195%2C-1.567%200.01%2C-1.718%200.248%2C-1.768C1.712%2C-2.12%203.252%2C-1.981%204.629%2C-1.371C5.44%2C-1.036%206.167%2C-0.529%206.762%2C0.117C8.328%2C1.804%208.328%2C4.414%206.762%2C6.101C6.163%2C6.741%205.436%2C7.248%204.629%2C7.589C3.233%2C8.213%201.674%2C8.37%200.182%2C8.035C-0.306%2C7.921%20-0.61%2C7.433%20-0.496%2C6.944C-0.433%2C6.703%20-0.279%2C6.495%20-0.066%2C6.366L0%2C6.25Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10656.884448%2C12521.48376%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.323C0.978%2C5.785%201.912%2C5.171%202.794%2C4.488C3.1%2C4.237%203.368%2C3.941%203.587%2C3.612C3.674%2C3.465%203.73%2C3.302%203.753%2C3.132C3.733%2C2.963%203.676%2C2.799%203.587%2C2.653C3.372%2C2.32%203.104%2C2.024%202.794%2C1.777C1.916%2C1.088%200.981%2C0.474%200%2C-0.058C-0.427%2C-0.305%20-0.573%2C-0.851%20-0.326%2C-1.278C-0.322%2C-1.285%20-0.318%2C-1.292%20-0.314%2C-1.298C-0.195%2C-1.511%200.01%2C-1.661%200.248%2C-1.712C1.713%2C-2.055%203.25%2C-1.916%204.629%2C-1.315C5.44%2C-0.98%206.167%2C-0.472%206.762%2C0.173C8.328%2C1.86%208.328%2C4.47%206.762%2C6.158C6.163%2C6.797%205.436%2C7.304%204.629%2C7.646C3.248%2C8.239%201.713%2C8.378%200.248%2C8.042C-0.24%2C7.928%20-0.543%2C7.44%20-0.43%2C6.951C-0.372%2C6.712%20-0.216%2C6.508%200%2C6.389L0%2C6.323Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10586.818862%2C12525.048135%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%2C17.335C-1.446%2C13.818%20-3.595%2C10.634%20-6.315%2C7.978C-7.674%2C6.725%20-9.159%2C5.617%20-10.746%2C4.671C-12.41%2C3.689%20-14.145%2C2.833%20-15.937%2C2.109C-16.687%2C1.878%20-17.109%2C1.083%20-16.879%2C0.332C-16.857%2C0.261%20-16.829%2C0.192%20-16.797%2C0.125C-16.585%2C-0.378%20-16.102%2C-0.713%20-15.557%2C-0.735C-13.239%2C-0.826%20-10.93%2C-0.402%20-8.795%2C0.505C-6.621%2C1.406%20-4.636%2C2.707%20-2.943%2C4.341C0.477%2C7.573%202.49%2C12.02%202.662%2C16.723C2.68%2C17.49%202.073%2C18.126%201.306%2C18.145L1.273%2C18.145C0.705%2C18.161%200.186%2C17.826%20-0.033%2C17.302L0%2C17.335Z%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10641.273015%2C12540.151137%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%2C3.852C-13.139%2C3.769%20-25.949%2C-0.263%20-36.767%2C-7.72C-34.602%2C-0.331%20-30.32%2C5.935%20-22.087%2C9.01C-15.094%2C11.622%20-7.439%2C11.672%200%2C11.606C14.466%2C11.82%2030.568%2C9.952%2036.189%2C-5.108C36.552%2C-6.051%2036.85%2C-7.01%2037.114%2C-7.968C26.225%2C-0.361%2013.283%2C3.76%200%2C3.852%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10732.08863%2C12498.744325%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%2C8.727C-0.716%2C7.204%20-1.586%2C5.758%20-2.596%2C4.412L-3.257%2C4.313C-4.533%2C4.079%20-5.793%2C3.758%20-7.026%2C3.354C-9.568%2C2.41%20-11.962%2C1.107%20-14.135%2C-0.514L-14.218%2C-0.514C-14.988%2C-1.004%20-16.01%2C-0.775%20-16.499%2C-0.004C-16.737%2C0.37%20-16.814%2C0.823%20-16.714%2C1.255C-15.308%2C4.698%20-12.49%2C7.372%20-8.977%2C8.595C-6.092%2C9.684%20-2.916%2C9.731%200%2C8.727%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%284.050659%2C-0.127195%2C0.839348%2C0.613836%2C10614.352437%2C12544.46919%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%2C4.131C-0.57%2C3.71%20-1.259%2C3.479%20-1.967%2C3.47C-1.362%2C1.747%20-2.268%2C-0.14%20-3.991%2C-0.745C-4.787%2C-1.025%20-5.66%2C-0.99%20-6.431%2C-0.647C-6.353%2C-2.471%20-7.77%2C-4.013%20-9.594%2C-4.091C-10.079%2C-4.111%20-10.563%2C-4.025%20-11.01%2C-3.837L-5.77%2C-10.45C-4.652%2C-11.895%20-4.917%2C-13.971%20-6.361%2C-15.089C-6.379%2C-15.102%20-6.397%2C-15.116%20-6.414%2C-15.129C-7.906%2C-16.067%20-9.865%2C-15.732%20-10.961%2C-14.352L-21.376%2C-1.308L-21.707%2C-0.878C-21.581%2C-2.736%20-21.886%2C-4.597%20-22.599%2C-6.317C-23.411%2C-7.552%20-24.943%2C-8.098%20-26.352%2C-7.656C-28.138%2C-6.995%20-27.89%2C-5.358%20-28.005%2C-3.308L-28.452%2C2.18C-28.906%2C7.344%20-26.792%2C12.4%20-22.798%2C15.703L-20.334%2C17.588C-17.303%2C20.017%20-13.046%2C20.198%20-9.82%2C18.034L-7.489%2C16.497C-4.477%2C14.481%20-1.79%2C12.017%200.479%2C9.19C1.744%2C7.665%201.534%2C5.403%200.009%2C4.138C0.006%2C4.136%200.003%2C4.133%200%2C4.131%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";
|
|
4779
5096
|
|
|
4780
|
-
var _excluded$
|
|
5097
|
+
var _excluded$8 = ["className", "name", "size", "alt"];
|
|
4781
5098
|
// Mapeo de nombres a URLs de emojis
|
|
4782
5099
|
var emojiMap = {
|
|
4783
5100
|
crazy: crazyEmoji,
|
|
@@ -4804,7 +5121,7 @@ var Emoji = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4804
5121
|
_ref$size = _ref.size,
|
|
4805
5122
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
4806
5123
|
alt = _ref.alt,
|
|
4807
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5124
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
4808
5125
|
var emojiSrc = emojiMap[name];
|
|
4809
5126
|
if (!emojiSrc) {
|
|
4810
5127
|
console.warn("Emoji \"".concat(name, "\" not found"));
|
|
@@ -4820,7 +5137,7 @@ var Emoji = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4820
5137
|
});
|
|
4821
5138
|
Emoji.displayName = 'Emoji';
|
|
4822
5139
|
|
|
4823
|
-
var _excluded$
|
|
5140
|
+
var _excluded$7 = ["questionLabel", "questionText", "labelEmoji", "state", "respondents", "respondButtonLabel", "onRespond", "bgColor", "labelBgColor", "labelTextColor", "buttonBgColor", "buttonTextColor", "respondedTextColor", "questionTextColor", "answerBgColor", "answerTextColor", "className", "style"];
|
|
4824
5141
|
// ── Defaults por color ────────────────────────────────────────────
|
|
4825
5142
|
var DEFAULT_COLORS = {
|
|
4826
5143
|
bgColor: 'koala',
|
|
@@ -4856,7 +5173,7 @@ var QuestionCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4856
5173
|
answerTextColor = _ref.answerTextColor,
|
|
4857
5174
|
className = _ref.className,
|
|
4858
5175
|
style = _ref.style,
|
|
4859
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5176
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
4860
5177
|
var resolved = {
|
|
4861
5178
|
bg: colors[bgColor !== null && bgColor !== void 0 ? bgColor : DEFAULT_COLORS.bgColor],
|
|
4862
5179
|
labelBg: colors[labelBgColor !== null && labelBgColor !== void 0 ? labelBgColor : DEFAULT_COLORS.labelBgColor],
|
|
@@ -4945,7 +5262,7 @@ var QuestionCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4945
5262
|
});
|
|
4946
5263
|
QuestionCard.displayName = 'QuestionCard';
|
|
4947
5264
|
|
|
4948
|
-
var _excluded$
|
|
5265
|
+
var _excluded$6 = ["variant", "name", "emoji", "avatars", "showChevron", "isSelected", "bgColor", "nameColor", "chevronColor", "avatarRingColor", "className", "style", "onClick"];
|
|
4949
5266
|
// ── Componente ────────────────────────────────────────────────────
|
|
4950
5267
|
var FriendListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4951
5268
|
var _ref$variant = _ref.variant,
|
|
@@ -4965,7 +5282,7 @@ var FriendListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4965
5282
|
className = _ref.className,
|
|
4966
5283
|
style = _ref.style,
|
|
4967
5284
|
onClick = _ref.onClick,
|
|
4968
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5285
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
4969
5286
|
var resolved = {
|
|
4970
5287
|
bg: colors[bgColor !== null && bgColor !== void 0 ? bgColor : 'marmol'],
|
|
4971
5288
|
name: colors[nameColor !== null && nameColor !== void 0 ? nameColor : 'olivo'],
|
|
@@ -4998,18 +5315,12 @@ var FriendListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4998
5315
|
children: name
|
|
4999
5316
|
})]
|
|
5000
5317
|
}) : jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
5001
|
-
children: [jsxRuntime.jsx(
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
className: "friend-list-item__stack-avatar",
|
|
5008
|
-
style: {
|
|
5009
|
-
zIndex: avatars.length - i
|
|
5010
|
-
}
|
|
5011
|
-
}, i);
|
|
5012
|
-
})
|
|
5318
|
+
children: [jsxRuntime.jsx(AvatarGroup, {
|
|
5319
|
+
avatars: avatars,
|
|
5320
|
+
max: 4,
|
|
5321
|
+
size: 40,
|
|
5322
|
+
ringColor: avatarRingColor,
|
|
5323
|
+
className: "friend-list-item__avatar-stack"
|
|
5013
5324
|
}), name && jsxRuntime.jsx("span", {
|
|
5014
5325
|
className: "friend-list-item__name",
|
|
5015
5326
|
children: name
|
|
@@ -5046,7 +5357,7 @@ var face5 = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22
|
|
|
5046
5357
|
|
|
5047
5358
|
var face6 = "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-24936.620621%2C-8515.048319%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%2C24258.657021%2C7479.443576%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%2814.552328%2C0%2C0%2C14.552328%2C5404.128905%2C8888.799472%29%22%3E%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.916ZM46.95%2C-29.804L42.206%2C-29.804C41.717%2C-31.858%2040.812%2C-33.635%2039.492%2C-35.135C38.171%2C-36.634%2036.517%2C-37.8%2034.528%2C-38.631C32.54%2C-39.463%2030.322%2C-39.879%2027.877%2C-39.879L19.074%2C-39.879C16.596%2C-39.879%2014.363%2C-39.463%2012.373%2C-38.631C10.385%2C-37.8%208.73%2C-36.634%207.409%2C-35.135C6.089%2C-33.635%205.184%2C-31.858%204.695%2C-29.804L0%2C-29.804C1.076%2C-34.531%203.277%2C-38.199%206.602%2C-40.807C9.928%2C-43.416%2014.085%2C-44.72%2019.074%2C-44.72L27.877%2C-44.72C32.865%2C-44.72%2037.022%2C-43.416%2040.348%2C-40.807C43.673%2C-38.199%2045.874%2C-34.531%2046.95%2C-29.804ZM20.023%2C-18.819L17.238%2C-18.819L14.761%2C-24.471C14.638%2C-24.744%2014.535%2C-25.031%2014.453%2C-25.331C14.372%2C-25.631%2014.317%2C-25.87%2014.29%2C-26.048C14.262%2C-25.87%2014.211%2C-25.631%2014.136%2C-25.331C14.061%2C-25.031%2013.962%2C-24.744%2013.839%2C-24.471L11.361%2C-18.819L8.556%2C-18.819L12.815%2C-28.239L15.744%2C-28.239L20.023%2C-18.819ZM37.783%2C-18.819L34.998%2C-18.819L32.521%2C-24.471C32.398%2C-24.744%2032.295%2C-25.031%2032.213%2C-25.331C32.132%2C-25.631%2032.077%2C-25.87%2032.05%2C-26.048C32.022%2C-25.87%2031.971%2C-25.631%2031.896%2C-25.331C31.821%2C-25.031%2031.722%2C-24.744%2031.599%2C-24.471L29.121%2C-18.819L26.316%2C-18.819L30.575%2C-28.239L33.504%2C-28.239L37.783%2C-18.819Z%22%20style%3D%22fill%3Argb%280%2C132%2C255%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";
|
|
5048
5359
|
|
|
5049
|
-
var _excluded$
|
|
5360
|
+
var _excluded$5 = ["className", "name", "size", "color", "backgroundColor", "repeat", "width", "height", "padding", "rounded", "style"];
|
|
5050
5361
|
// Mapeo de nombres a URLs de patrones
|
|
5051
5362
|
var patternMap = {
|
|
5052
5363
|
face1: face1,
|
|
@@ -5082,7 +5393,7 @@ var Pattern = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5082
5393
|
_ref$rounded = _ref.rounded,
|
|
5083
5394
|
rounded = _ref$rounded === void 0 ? 'none' : _ref$rounded,
|
|
5084
5395
|
style = _ref.style,
|
|
5085
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5396
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
5086
5397
|
var patternSrc = patternMap[name];
|
|
5087
5398
|
if (!patternSrc) {
|
|
5088
5399
|
console.warn("Pattern \"".concat(name, "\" not found"));
|
|
@@ -5155,7 +5466,7 @@ function getHueRotation(color) {
|
|
|
5155
5466
|
return hueMap[color] || 0;
|
|
5156
5467
|
}
|
|
5157
5468
|
|
|
5158
|
-
var _excluded$
|
|
5469
|
+
var _excluded$4 = ["className", "patterns", "backgroundColor", "gap", "direction", "columns", "size", "padding", "rounded", "style"];
|
|
5159
5470
|
var PatternGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5160
5471
|
var className = _ref.className,
|
|
5161
5472
|
_ref$patterns = _ref.patterns,
|
|
@@ -5175,7 +5486,7 @@ var PatternGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5175
5486
|
_ref$rounded = _ref.rounded,
|
|
5176
5487
|
rounded = _ref$rounded === void 0 ? 'none' : _ref$rounded,
|
|
5177
5488
|
style = _ref.style,
|
|
5178
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5489
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
5179
5490
|
var roundedClasses = {
|
|
5180
5491
|
none: '',
|
|
5181
5492
|
sm: 'rounded-sm',
|
|
@@ -5217,7 +5528,7 @@ var PatternGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5217
5528
|
});
|
|
5218
5529
|
PatternGroup.displayName = 'PatternGroup';
|
|
5219
5530
|
|
|
5220
|
-
var _excluded$
|
|
5531
|
+
var _excluded$3 = ["className", "width", "height", "patternSize", "gap", "patterns", "colors", "randomRotation", "randomScale", "randomOpacity", "backgroundColor", "rounded", "padding", "style"];
|
|
5221
5532
|
var allPatterns = ['face1', 'face2', 'face3', 'face4', 'face5', 'face6'];
|
|
5222
5533
|
var defaultColors = ['bosque', 'lima', 'coral', 'aqua', 'lavanda', 'electrico'];
|
|
5223
5534
|
var PatternFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -5247,7 +5558,7 @@ var PatternFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5247
5558
|
_ref$padding = _ref.padding,
|
|
5248
5559
|
padding = _ref$padding === void 0 ? 0 : _ref$padding,
|
|
5249
5560
|
style = _ref.style,
|
|
5250
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5561
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
5251
5562
|
var containerRef = React.useRef(null);
|
|
5252
5563
|
var _useState = React.useState([]),
|
|
5253
5564
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -5332,7 +5643,7 @@ var PatternFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5332
5643
|
});
|
|
5333
5644
|
PatternFill.displayName = 'PatternFill';
|
|
5334
5645
|
|
|
5335
|
-
var _excluded$
|
|
5646
|
+
var _excluded$2 = ["className", "variant", "logoVariant", "logoSize", "logoColor", "backgroundColor", "textColor", "activeColor", "activeIconColor", "navItemsBgColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "currentLanguage", "onLanguageClick", "onActionClick", "customLogo", "isRegister", "buttonText", "navItems", "navigate"];
|
|
5336
5647
|
var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5337
5648
|
var className = _ref.className,
|
|
5338
5649
|
_ref$variant = _ref.variant,
|
|
@@ -5366,7 +5677,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5366
5677
|
_ref$navItems = _ref.navItems,
|
|
5367
5678
|
navItems = _ref$navItems === void 0 ? [] : _ref$navItems,
|
|
5368
5679
|
navigate = _ref.navigate,
|
|
5369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5680
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
5370
5681
|
// Determinar el texto del botón para nologin
|
|
5371
5682
|
var defaultButtonText = isRegister ? 'Registrarse' : 'Iniciar Sesión';
|
|
5372
5683
|
var finalButtonText = buttonText || defaultButtonText;
|
|
@@ -5459,6 +5770,49 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5459
5770
|
});
|
|
5460
5771
|
Navbar.displayName = 'Navbar';
|
|
5461
5772
|
|
|
5773
|
+
var _excluded$1 = ["className", "items", "activeId", "onChange", "variant", "fullWidth"];
|
|
5774
|
+
var Tabs = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5775
|
+
var className = _ref.className,
|
|
5776
|
+
_ref$items = _ref.items,
|
|
5777
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
5778
|
+
activeId = _ref.activeId,
|
|
5779
|
+
onChange = _ref.onChange,
|
|
5780
|
+
_ref$variant = _ref.variant,
|
|
5781
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
5782
|
+
_ref$fullWidth = _ref.fullWidth,
|
|
5783
|
+
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
5784
|
+
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
5785
|
+
return jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({
|
|
5786
|
+
ref: ref,
|
|
5787
|
+
className: cn('aloha-tabs', "aloha-tabs--".concat(variant), fullWidth && 'aloha-tabs--full-width', className)
|
|
5788
|
+
}, props), {}, {
|
|
5789
|
+
children: jsxRuntime.jsx("div", {
|
|
5790
|
+
className: "aloha-tabs__list",
|
|
5791
|
+
role: "tablist",
|
|
5792
|
+
children: items.map(function (tab) {
|
|
5793
|
+
var isActive = tab.id === activeId;
|
|
5794
|
+
return jsxRuntime.jsxs("button", {
|
|
5795
|
+
type: "button",
|
|
5796
|
+
role: "tab",
|
|
5797
|
+
"aria-selected": isActive,
|
|
5798
|
+
onClick: function onClick() {
|
|
5799
|
+
return onChange(tab.id);
|
|
5800
|
+
},
|
|
5801
|
+
className: cn('aloha-tabs__trigger', isActive && 'aloha-tabs__trigger--active'),
|
|
5802
|
+
children: [tab.icon && jsxRuntime.jsx("span", {
|
|
5803
|
+
className: "aloha-tabs__icon",
|
|
5804
|
+
children: tab.icon
|
|
5805
|
+
}), jsxRuntime.jsx("span", {
|
|
5806
|
+
className: "aloha-tabs__label",
|
|
5807
|
+
children: tab.label
|
|
5808
|
+
})]
|
|
5809
|
+
}, tab.id);
|
|
5810
|
+
})
|
|
5811
|
+
})
|
|
5812
|
+
}));
|
|
5813
|
+
});
|
|
5814
|
+
Tabs.displayName = 'Tabs';
|
|
5815
|
+
|
|
5462
5816
|
var _excluded = ["columns", "rows", "gap", "children", "className", "responsive", "autoFit", "backgroundColor", "padding", "rounded", "style"],
|
|
5463
5817
|
_excluded2 = ["children", "className", "colSpan", "rowSpan", "colStart", "rowStart", "backgroundColor", "padding", "rounded", "flex", "flexDirection", "align", "justify", "style"];
|
|
5464
5818
|
var Grid = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -5667,6 +6021,18 @@ var FullPage = function FullPage(_ref) {
|
|
|
5667
6021
|
});
|
|
5668
6022
|
};
|
|
5669
6023
|
|
|
6024
|
+
var sizeClasses = {
|
|
6025
|
+
sm: 'w-8 h-8',
|
|
6026
|
+
md: 'w-12 h-12',
|
|
6027
|
+
lg: 'w-16 h-16',
|
|
6028
|
+
xl: 'w-24 h-24'
|
|
6029
|
+
};
|
|
6030
|
+
var backgroundClasses = {
|
|
6031
|
+
white: 'bg-white',
|
|
6032
|
+
gray: 'bg-gray-50',
|
|
6033
|
+
dark: 'bg-gray-900 text-white',
|
|
6034
|
+
transparent: 'bg-transparent'
|
|
6035
|
+
};
|
|
5670
6036
|
var LoadingFullScreen = function LoadingFullScreen(_ref) {
|
|
5671
6037
|
var _ref$message = _ref.message,
|
|
5672
6038
|
message = _ref$message === void 0 ? 'Cargando...' : _ref$message,
|
|
@@ -5675,18 +6041,6 @@ var LoadingFullScreen = function LoadingFullScreen(_ref) {
|
|
|
5675
6041
|
spinnerSize = _ref$spinnerSize === void 0 ? 'lg' : _ref$spinnerSize,
|
|
5676
6042
|
_ref$background = _ref.background,
|
|
5677
6043
|
background = _ref$background === void 0 ? 'white' : _ref$background;
|
|
5678
|
-
var sizeClasses = {
|
|
5679
|
-
sm: 'w-8 h-8',
|
|
5680
|
-
md: 'w-12 h-12',
|
|
5681
|
-
lg: 'w-16 h-16',
|
|
5682
|
-
xl: 'w-24 h-24'
|
|
5683
|
-
};
|
|
5684
|
-
var backgroundClasses = {
|
|
5685
|
-
white: 'bg-white',
|
|
5686
|
-
gray: 'bg-gray-50',
|
|
5687
|
-
dark: 'bg-gray-900 text-white',
|
|
5688
|
-
transparent: 'bg-transparent'
|
|
5689
|
-
};
|
|
5690
6044
|
return jsxRuntime.jsxs("div", {
|
|
5691
6045
|
className: cn('fixed inset-0 z-50 flex flex-col items-center justify-center', backgroundClasses[background], className),
|
|
5692
6046
|
children: [jsxRuntime.jsx(lucideReact.Loader2, {
|
|
@@ -5805,6 +6159,7 @@ var ColorPalette = function ColorPalette(_ref2) {
|
|
|
5805
6159
|
};
|
|
5806
6160
|
|
|
5807
6161
|
exports.Avatar = Avatar;
|
|
6162
|
+
exports.AvatarGroup = AvatarGroup;
|
|
5808
6163
|
exports.Badge = Badge;
|
|
5809
6164
|
exports.Button = Button;
|
|
5810
6165
|
exports.Card = Card;
|
|
@@ -5818,7 +6173,7 @@ exports.Checkbox = Checkbox;
|
|
|
5818
6173
|
exports.ColorPalette = ColorPalette;
|
|
5819
6174
|
exports.ColorSwatch = ColorSwatch;
|
|
5820
6175
|
exports.Emoji = Emoji;
|
|
5821
|
-
exports.Error = Error;
|
|
6176
|
+
exports.Error = Error$1;
|
|
5822
6177
|
exports.ErrorFullScreen = ErrorFullScreen;
|
|
5823
6178
|
exports.FormError = FormError;
|
|
5824
6179
|
exports.FriendListItem = FriendListItem;
|
|
@@ -5837,6 +6192,7 @@ exports.Link = Link;
|
|
|
5837
6192
|
exports.Loading = Loading;
|
|
5838
6193
|
exports.LoadingFullScreen = LoadingFullScreen;
|
|
5839
6194
|
exports.Logo = Logo;
|
|
6195
|
+
exports.Modal = Modal;
|
|
5840
6196
|
exports.Muted = Muted;
|
|
5841
6197
|
exports.Navbar = Navbar;
|
|
5842
6198
|
exports.Notification = Notification;
|
|
@@ -5846,12 +6202,16 @@ exports.PatternFill = PatternFill;
|
|
|
5846
6202
|
exports.PatternGroup = PatternGroup;
|
|
5847
6203
|
exports.Popup = Popup;
|
|
5848
6204
|
exports.QuestionCard = QuestionCard;
|
|
6205
|
+
exports.RadioGroup = RadioGroup;
|
|
6206
|
+
exports.RadioGroupItem = RadioGroupItem;
|
|
5849
6207
|
exports.SearchInput = SearchInput;
|
|
5850
6208
|
exports.Select = Select;
|
|
5851
6209
|
exports.Small = Small;
|
|
5852
6210
|
exports.Streak = Streak;
|
|
5853
6211
|
exports.Subtitle = Subtitle;
|
|
5854
6212
|
exports.Switch = Switch;
|
|
6213
|
+
exports.Tabs = Tabs;
|
|
6214
|
+
exports.TextArea = TextArea;
|
|
5855
6215
|
exports.TextDivider = TextDivider;
|
|
5856
6216
|
exports.Toast = Toast;
|
|
5857
6217
|
exports.badgeVariants = badgeVariants;
|