aloha-ui-library 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.d.ts +9 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +9 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Card/Card.d.ts +43 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/ChatMessage/ChatMessage.d.ts +29 -0
- package/dist/components/ChatMessage/index.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +6 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/ColorPalette/ColorPalette.d.ts +18 -0
- package/dist/components/ColorPalette/index.d.ts +1 -0
- package/dist/components/Emoji/Emoji.d.ts +23 -0
- package/dist/components/Emoji/index.d.ts +1 -0
- package/dist/components/Error/Error.d.ts +11 -0
- package/dist/components/Error/index.d.ts +1 -0
- package/dist/components/ErrorFullScreen/ErrorFullScreen.d.ts +11 -0
- package/dist/components/ErrorFullScreen/index.d.ts +1 -0
- package/dist/components/FriendListItem/FriendListItem.d.ts +28 -0
- package/dist/components/FriendListItem/index.d.ts +1 -0
- package/dist/components/FullPage/FullPage.d.ts +8 -0
- package/dist/components/FullPage/index.d.ts +1 -0
- package/dist/components/Grid/Grid.d.ts +50 -0
- package/dist/components/Grid/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Image/Image.d.ts +22 -0
- package/dist/components/Image/index.d.ts +1 -0
- package/dist/components/Input/Input.d.ts +7 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Link/Link.d.ts +27 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Loading/Loading.d.ts +8 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/components/LoadingFullScreen/LoadingFullScreen.d.ts +8 -0
- package/dist/components/LoadingFullScreen/index.d.ts +1 -0
- package/dist/components/Logo/Logo.d.ts +11 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Navbar/Navbar.d.ts +62 -0
- package/dist/components/Navbar/index.d.ts +1 -0
- package/dist/components/Notification/Notification.d.ts +15 -0
- package/dist/components/Notification/index.d.ts +1 -0
- package/dist/components/Pattern/Pattern.d.ts +34 -0
- package/dist/components/Pattern/index.d.ts +1 -0
- package/dist/components/PatternFill/PatternFill.d.ts +31 -0
- package/dist/components/PatternFill/index.d.ts +1 -0
- package/dist/components/PatternGroup/PatternGroup.d.ts +35 -0
- package/dist/components/PatternGroup/index.d.ts +1 -0
- package/dist/components/Popup/Popup.d.ts +43 -0
- package/dist/components/Popup/index.d.ts +1 -0
- package/dist/components/QuestionCard/QuestionCard.d.ts +55 -0
- package/dist/components/QuestionCard/index.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +6 -0
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/components/Streak/Streak.d.ts +13 -0
- package/dist/components/Streak/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +10 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/TextDivider/TextDivider.d.ts +30 -0
- package/dist/components/TextDivider/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +34 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/index.css +2 -2
- package/dist/index.esm.css +2 -2
- package/dist/index.esm.js +143 -56
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +143 -56
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2920,7 +2920,7 @@ var H2 = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
2920
2920
|
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
2921
2921
|
return jsxRuntime.jsx("h2", _objectSpread2(_objectSpread2({
|
|
2922
2922
|
ref: ref,
|
|
2923
|
-
className: cn('scroll-m-20
|
|
2923
|
+
className: cn('scroll-m-20 text-3xl font-semibold tracking-tight first:mt-0', fontFamilyClasses[font], weight && fontWeightClasses[weight], className),
|
|
2924
2924
|
style: _objectSpread2(_objectSpread2({}, getColorStyle(color)), style)
|
|
2925
2925
|
}, props), {}, {
|
|
2926
2926
|
children: children
|
|
@@ -3054,17 +3054,37 @@ var Muted = /*#__PURE__*/React.forwardRef(function (_ref9, ref) {
|
|
|
3054
3054
|
});
|
|
3055
3055
|
Muted.displayName = 'Muted';
|
|
3056
3056
|
|
|
3057
|
-
var _excluded$m = ["className", "size", "borderRadius", "showBorder", "backgroundColor", "borderColor", "shadow"],
|
|
3058
|
-
_excluded2$2 = ["className"],
|
|
3057
|
+
var _excluded$m = ["className", "size", "borderRadius", "showBorder", "backgroundColor", "borderColor", "shadow", "padding", "margin", "style"],
|
|
3058
|
+
_excluded2$2 = ["className", "padding", "margin", "style"],
|
|
3059
3059
|
_excluded3$1 = ["className", "font", "weight", "descriptionColor", "small", "children"],
|
|
3060
3060
|
_excluded4 = ["color"],
|
|
3061
|
-
_excluded5 = ["className"],
|
|
3062
|
-
_excluded6 = ["className"];
|
|
3061
|
+
_excluded5 = ["className", "padding", "margin", "style"],
|
|
3062
|
+
_excluded6 = ["className", "padding", "margin", "style"];
|
|
3063
3063
|
var sizeClasses$2 = {
|
|
3064
3064
|
full: 'w-full',
|
|
3065
3065
|
constrained: 'max-w-md',
|
|
3066
3066
|
auto: 'w-auto'
|
|
3067
3067
|
};
|
|
3068
|
+
var spacingValues$1 = {
|
|
3069
|
+
none: '0',
|
|
3070
|
+
xs: '0.25rem',
|
|
3071
|
+
sm: '0.5rem',
|
|
3072
|
+
md: '1rem',
|
|
3073
|
+
lg: '1.5rem',
|
|
3074
|
+
xl: '2rem'
|
|
3075
|
+
};
|
|
3076
|
+
var buildSpacingStyle = function buildSpacingStyle(padding, margin) {
|
|
3077
|
+
var style = {};
|
|
3078
|
+
if (padding !== undefined) {
|
|
3079
|
+
var _spacingValues$paddin;
|
|
3080
|
+
style.padding = (_spacingValues$paddin = spacingValues$1[padding]) !== null && _spacingValues$paddin !== void 0 ? _spacingValues$paddin : padding;
|
|
3081
|
+
}
|
|
3082
|
+
if (margin !== undefined) {
|
|
3083
|
+
var _spacingValues$margin;
|
|
3084
|
+
style.margin = (_spacingValues$margin = spacingValues$1[margin]) !== null && _spacingValues$margin !== void 0 ? _spacingValues$margin : margin;
|
|
3085
|
+
}
|
|
3086
|
+
return style;
|
|
3087
|
+
};
|
|
3068
3088
|
var borderRadiusClasses = {
|
|
3069
3089
|
none: 'rounded-none',
|
|
3070
3090
|
sm: 'rounded-sm',
|
|
@@ -3130,20 +3150,27 @@ var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3130
3150
|
borderColor = _ref$borderColor === void 0 ? 'default' : _ref$borderColor,
|
|
3131
3151
|
_ref$shadow = _ref.shadow,
|
|
3132
3152
|
shadow = _ref$shadow === void 0 ? true : _ref$shadow,
|
|
3153
|
+
padding = _ref.padding,
|
|
3154
|
+
margin = _ref.margin,
|
|
3155
|
+
style = _ref.style,
|
|
3133
3156
|
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
3134
3157
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3135
3158
|
ref: ref,
|
|
3136
|
-
className: cn('text-card-foreground', sizeClasses$2[size], borderRadiusClasses[borderRadius], showBorder ? 'border' : '', showBorder ? getBorderColor(borderColor) : '', getBackgroundColor(backgroundColor), shadow ? 'shadow-sm' : '', className)
|
|
3159
|
+
className: cn('text-card-foreground', sizeClasses$2[size], borderRadiusClasses[borderRadius], showBorder ? 'border' : '', showBorder ? getBorderColor(borderColor) : '', getBackgroundColor(backgroundColor), shadow ? 'shadow-sm' : '', className),
|
|
3160
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3137
3161
|
}, props));
|
|
3138
3162
|
});
|
|
3139
3163
|
Card.displayName = 'Card';
|
|
3140
|
-
// Subcomponentes flexibles
|
|
3141
3164
|
var CardHeader = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
3142
3165
|
var className = _ref2.className,
|
|
3166
|
+
padding = _ref2.padding,
|
|
3167
|
+
margin = _ref2.margin,
|
|
3168
|
+
style = _ref2.style,
|
|
3143
3169
|
props = _objectWithoutProperties(_ref2, _excluded2$2);
|
|
3144
3170
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3145
3171
|
ref: ref,
|
|
3146
|
-
className: cn('flex flex-col space-y-1.5 p-6', className)
|
|
3172
|
+
className: cn('flex flex-col space-y-1.5', padding === undefined ? 'p-6' : '', className),
|
|
3173
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3147
3174
|
}, props));
|
|
3148
3175
|
});
|
|
3149
3176
|
CardHeader.displayName = 'CardHeader';
|
|
@@ -3214,19 +3241,27 @@ var CardDescription = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
|
|
|
3214
3241
|
CardDescription.displayName = 'CardDescription';
|
|
3215
3242
|
var CardContent = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
3216
3243
|
var className = _ref5.className,
|
|
3244
|
+
padding = _ref5.padding,
|
|
3245
|
+
margin = _ref5.margin,
|
|
3246
|
+
style = _ref5.style,
|
|
3217
3247
|
props = _objectWithoutProperties(_ref5, _excluded5);
|
|
3218
3248
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3219
3249
|
ref: ref,
|
|
3220
|
-
className: cn('p-6 pt-0', className)
|
|
3250
|
+
className: cn(padding === undefined ? 'p-6 pt-0' : '', className),
|
|
3251
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3221
3252
|
}, props));
|
|
3222
3253
|
});
|
|
3223
3254
|
CardContent.displayName = 'CardContent';
|
|
3224
3255
|
var CardFooter = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
3225
3256
|
var className = _ref6.className,
|
|
3257
|
+
padding = _ref6.padding,
|
|
3258
|
+
margin = _ref6.margin,
|
|
3259
|
+
style = _ref6.style,
|
|
3226
3260
|
props = _objectWithoutProperties(_ref6, _excluded6);
|
|
3227
3261
|
return jsxRuntime.jsx("div", _objectSpread2({
|
|
3228
3262
|
ref: ref,
|
|
3229
|
-
className: cn('flex items-center p-6 pt-0', className)
|
|
3263
|
+
className: cn('flex items-center', padding === undefined ? 'p-6 pt-0' : '', className),
|
|
3264
|
+
style: _objectSpread2(_objectSpread2({}, buildSpacingStyle(padding, margin)), style)
|
|
3230
3265
|
}, props));
|
|
3231
3266
|
});
|
|
3232
3267
|
CardFooter.displayName = 'CardFooter';
|
|
@@ -3820,82 +3855,133 @@ var Image = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3820
3855
|
});
|
|
3821
3856
|
Image.displayName = 'Image';
|
|
3822
3857
|
|
|
3858
|
+
// ─── helpers ────────────────────────────────────────────────────────────────
|
|
3859
|
+
var spacingValues = {
|
|
3860
|
+
none: '0',
|
|
3861
|
+
xs: '0.25rem',
|
|
3862
|
+
sm: '0.5rem',
|
|
3863
|
+
md: '1rem',
|
|
3864
|
+
lg: '1.5rem',
|
|
3865
|
+
xl: '2rem'
|
|
3866
|
+
};
|
|
3867
|
+
var resolveSpacing = function resolveSpacing(val) {
|
|
3868
|
+
var _spacingValues$val;
|
|
3869
|
+
return (_spacingValues$val = spacingValues[val]) !== null && _spacingValues$val !== void 0 ? _spacingValues$val : val;
|
|
3870
|
+
};
|
|
3871
|
+
/** Width cap for non-fullscreen variants */
|
|
3872
|
+
var panelMaxWidth = {
|
|
3873
|
+
sm: '24rem',
|
|
3874
|
+
// 384px
|
|
3875
|
+
md: '32rem',
|
|
3876
|
+
// 512px
|
|
3877
|
+
lg: '48rem',
|
|
3878
|
+
// 768px
|
|
3879
|
+
xl: '64rem',
|
|
3880
|
+
// 1024px
|
|
3881
|
+
full: '100%'
|
|
3882
|
+
};
|
|
3883
|
+
// ─── component ───────────────────────────────────────────────────────────────
|
|
3823
3884
|
var Popup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3824
3885
|
var open = _ref.open,
|
|
3825
3886
|
onClose = _ref.onClose,
|
|
3826
|
-
title = _ref.title,
|
|
3827
|
-
children = _ref.children,
|
|
3828
3887
|
_ref$size = _ref.size,
|
|
3829
3888
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3889
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
3890
|
+
backgroundColor = _ref$backgroundColor === void 0 ? 'ice' : _ref$backgroundColor,
|
|
3891
|
+
overlayColor = _ref.overlayColor,
|
|
3892
|
+
borderRadius = _ref.borderRadius,
|
|
3893
|
+
className = _ref.className,
|
|
3894
|
+
title = _ref.title,
|
|
3895
|
+
_ref$titleComponent = _ref.titleComponent,
|
|
3896
|
+
titleComponent = _ref$titleComponent === void 0 ? 'h3' : _ref$titleComponent,
|
|
3897
|
+
titleFont = _ref.titleFont,
|
|
3898
|
+
_ref$titleWeight = _ref.titleWeight,
|
|
3899
|
+
titleWeight = _ref$titleWeight === void 0 ? 'bold' : _ref$titleWeight,
|
|
3900
|
+
_ref$titleColor = _ref.titleColor,
|
|
3901
|
+
titleColor = _ref$titleColor === void 0 ? 'corteza' : _ref$titleColor,
|
|
3902
|
+
_ref$showHeaderDivide = _ref.showHeaderDivider,
|
|
3903
|
+
showHeaderDivider = _ref$showHeaderDivide === void 0 ? true : _ref$showHeaderDivide,
|
|
3830
3904
|
_ref$showCloseButton = _ref.showCloseButton,
|
|
3831
3905
|
showCloseButton = _ref$showCloseButton === void 0 ? true : _ref$showCloseButton,
|
|
3832
3906
|
_ref$closeOnOverlayCl = _ref.closeOnOverlayClick,
|
|
3833
3907
|
closeOnOverlayClick = _ref$closeOnOverlayCl === void 0 ? true : _ref$closeOnOverlayCl,
|
|
3834
|
-
|
|
3835
|
-
|
|
3908
|
+
_ref$contentPadding = _ref.contentPadding,
|
|
3909
|
+
contentPadding = _ref$contentPadding === void 0 ? 'lg' : _ref$contentPadding,
|
|
3910
|
+
children = _ref.children,
|
|
3911
|
+
footer = _ref.footer,
|
|
3912
|
+
_ref$showFooterDivide = _ref.showFooterDivider,
|
|
3913
|
+
showFooterDivider = _ref$showFooterDivide === void 0 ? true : _ref$showFooterDivide;
|
|
3914
|
+
// ── side effects ──────────────────────────────────────────────────────
|
|
3836
3915
|
React.useEffect(function () {
|
|
3837
|
-
|
|
3838
|
-
document.body.style.overflow = 'hidden';
|
|
3839
|
-
} else {
|
|
3840
|
-
document.body.style.overflow = 'unset';
|
|
3841
|
-
}
|
|
3916
|
+
document.body.style.overflow = open ? 'hidden' : 'unset';
|
|
3842
3917
|
return function () {
|
|
3843
3918
|
document.body.style.overflow = 'unset';
|
|
3844
3919
|
};
|
|
3845
3920
|
}, [open]);
|
|
3846
3921
|
React.useEffect(function () {
|
|
3847
|
-
var
|
|
3848
|
-
if (e.key === 'Escape' && open)
|
|
3849
|
-
onClose();
|
|
3850
|
-
}
|
|
3922
|
+
var handler = function handler(e) {
|
|
3923
|
+
if (e.key === 'Escape' && open) onClose();
|
|
3851
3924
|
};
|
|
3852
|
-
document.addEventListener('keydown',
|
|
3925
|
+
document.addEventListener('keydown', handler);
|
|
3853
3926
|
return function () {
|
|
3854
|
-
return document.removeEventListener('keydown',
|
|
3927
|
+
return document.removeEventListener('keydown', handler);
|
|
3855
3928
|
};
|
|
3856
3929
|
}, [open, onClose]);
|
|
3857
3930
|
if (!open) return null;
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3931
|
+
// ── derived values ────────────────────────────────────────────────────
|
|
3932
|
+
var isFull = size === 'full';
|
|
3933
|
+
var maxW = panelMaxWidth[size];
|
|
3934
|
+
var padding = resolveSpacing(contentPadding);
|
|
3935
|
+
var TitleTag = titleComponent === 'h4' ? H4 : H3;
|
|
3936
|
+
var handleOverlay = function handleOverlay(e) {
|
|
3937
|
+
if (e.target === e.currentTarget && closeOnOverlayClick) onClose();
|
|
3864
3938
|
};
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
onClick: handleOverlayClick,
|
|
3939
|
+
// ── render ────────────────────────────────────────────────────────────
|
|
3940
|
+
return /* ── Overlay ── */jsxRuntime.jsx("div", {
|
|
3941
|
+
className: "fixed inset-0 z-50 flex items-center justify-center",
|
|
3942
|
+
style: {
|
|
3943
|
+
backgroundColor: overlayColor !== null && overlayColor !== void 0 ? overlayColor : 'rgba(0,0,0,0.45)'
|
|
3944
|
+
},
|
|
3945
|
+
onClick: handleOverlay,
|
|
3873
3946
|
children: jsxRuntime.jsxs("div", {
|
|
3874
3947
|
ref: ref,
|
|
3875
|
-
|
|
3948
|
+
role: "dialog",
|
|
3949
|
+
"aria-modal": "true",
|
|
3950
|
+
className: cn(/* always fills the full height so the content can scroll inside */
|
|
3951
|
+
'relative flex flex-col w-full overflow-hidden shadow-2xl', /* full-screen: no margin, no rounding; others: centered with padding */
|
|
3952
|
+
isFull ? 'inset-0 rounded-none h-screen' : 'max-h-[90vh] mx-4 my-auto', className),
|
|
3953
|
+
style: {
|
|
3954
|
+
maxWidth: isFull ? '100vw' : maxW,
|
|
3955
|
+
backgroundColor: colors[backgroundColor],
|
|
3956
|
+
borderRadius: isFull ? 0 : borderRadius !== null && borderRadius !== void 0 ? borderRadius : '0.75rem'
|
|
3957
|
+
},
|
|
3876
3958
|
onClick: function onClick(e) {
|
|
3877
3959
|
return e.stopPropagation();
|
|
3878
3960
|
},
|
|
3879
3961
|
children: [(title || showCloseButton) && jsxRuntime.jsxs("div", {
|
|
3880
|
-
className:
|
|
3881
|
-
children: [title
|
|
3882
|
-
|
|
3962
|
+
className: cn('flex-shrink-0 flex items-center justify-between px-5 py-4', showHeaderDivider ? 'border-b border-black/10' : ''),
|
|
3963
|
+
children: [title ? jsxRuntime.jsx(TitleTag, {
|
|
3964
|
+
font: titleFont,
|
|
3965
|
+
weight: titleWeight,
|
|
3966
|
+
color: titleColor,
|
|
3967
|
+
className: "leading-none m-0 p-0",
|
|
3883
3968
|
children: title
|
|
3884
|
-
}), showCloseButton && jsxRuntime.
|
|
3969
|
+
}) : jsxRuntime.jsx("span", {}) /* spacer so X stays right */, showCloseButton && jsxRuntime.jsx("button", {
|
|
3885
3970
|
onClick: onClose,
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
children: "Close"
|
|
3892
|
-
})]
|
|
3971
|
+
"aria-label": "Cerrar",
|
|
3972
|
+
className: cn('ml-auto rounded-lg p-1.5 transition-all', 'opacity-60 hover:opacity-100 hover:bg-black/8', 'focus:outline-none focus:ring-2 focus:ring-black/20'),
|
|
3973
|
+
children: jsxRuntime.jsx(lucideReact.X, {
|
|
3974
|
+
className: "h-5 w-5"
|
|
3975
|
+
})
|
|
3893
3976
|
})]
|
|
3894
3977
|
}), jsxRuntime.jsx("div", {
|
|
3895
|
-
className: "
|
|
3978
|
+
className: "flex-1 overflow-y-auto",
|
|
3979
|
+
style: {
|
|
3980
|
+
padding: padding
|
|
3981
|
+
},
|
|
3896
3982
|
children: children
|
|
3897
3983
|
}), footer && jsxRuntime.jsx("div", {
|
|
3898
|
-
className:
|
|
3984
|
+
className: cn('flex-shrink-0 px-5 py-4', showFooterDivider ? 'border-t border-black/10' : ''),
|
|
3899
3985
|
children: footer
|
|
3900
3986
|
})]
|
|
3901
3987
|
})
|
|
@@ -4837,7 +4923,7 @@ var PatternFill = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4837
4923
|
});
|
|
4838
4924
|
PatternFill.displayName = 'PatternFill';
|
|
4839
4925
|
|
|
4840
|
-
var _excluded$1 = ["className", "variant", "logoVariant", "logoSize", "logoColor", "backgroundColor", "textColor", "activeColor", "navItemsBgColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "currentLanguage", "onLanguageClick", "onActionClick", "customLogo", "isRegister", "buttonText", "navItems", "navigate"];
|
|
4926
|
+
var _excluded$1 = ["className", "variant", "logoVariant", "logoSize", "logoColor", "backgroundColor", "textColor", "activeColor", "activeIconColor", "navItemsBgColor", "buttonColor", "buttonTextColor", "buttonBorderColor", "currentLanguage", "onLanguageClick", "onActionClick", "customLogo", "isRegister", "buttonText", "navItems", "navigate"];
|
|
4841
4927
|
var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4842
4928
|
var className = _ref.className,
|
|
4843
4929
|
_ref$variant = _ref.variant,
|
|
@@ -4854,6 +4940,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4854
4940
|
textColor = _ref$textColor === void 0 ? 'piedra' : _ref$textColor,
|
|
4855
4941
|
_ref$activeColor = _ref.activeColor,
|
|
4856
4942
|
activeColor = _ref$activeColor === void 0 ? 'bosque' : _ref$activeColor,
|
|
4943
|
+
activeIconColor = _ref.activeIconColor,
|
|
4857
4944
|
_ref$navItemsBgColor = _ref.navItemsBgColor,
|
|
4858
4945
|
navItemsBgColor = _ref$navItemsBgColor === void 0 ? 'hueso' : _ref$navItemsBgColor,
|
|
4859
4946
|
buttonColor = _ref.buttonColor,
|
|
@@ -4887,7 +4974,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4887
4974
|
};
|
|
4888
4975
|
return jsxRuntime.jsxs("nav", _objectSpread2(_objectSpread2({
|
|
4889
4976
|
ref: ref,
|
|
4890
|
-
className: cn('
|
|
4977
|
+
className: cn('px-6 py-3 flex items-center justify-between', 'rounded-xl m-3', className),
|
|
4891
4978
|
style: {
|
|
4892
4979
|
backgroundColor: variant === 'nologin' ? colors[backgroundColor] : 'transparent'
|
|
4893
4980
|
}
|
|
@@ -4951,7 +5038,7 @@ var Navbar = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4951
5038
|
children: jsxRuntime.jsx(Icon, {
|
|
4952
5039
|
name: item.icon,
|
|
4953
5040
|
size: "sm",
|
|
4954
|
-
color: item.active ? 'ice' : textColor
|
|
5041
|
+
color: item.active ? activeIconColor !== null && activeIconColor !== void 0 ? activeIconColor : 'ice' : textColor
|
|
4955
5042
|
})
|
|
4956
5043
|
}), jsxRuntime.jsx("span", {
|
|
4957
5044
|
children: item.label
|