myshell-react-lib 0.1.31 → 0.1.34
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/index.cjs +26 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +26 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6172,14 +6172,14 @@ var PopoverContent = React7.forwardRef(function(_param, ref) {
|
|
|
6172
6172
|
arrowPadding: arrowPadding,
|
|
6173
6173
|
side: side,
|
|
6174
6174
|
forceMount: true,
|
|
6175
|
-
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-md border border-Colors-Border-Opaque p-3 text-left text-xs shadow-modal-default outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&[data-state=open]>span]:animate-none", variant === "default" ? mode === "popover" ? "bg-Colors-Background-Normal-
|
|
6175
|
+
className: cn("relative z-[49] mx-4 w-fit max-w-72 rounded-md border border-Colors-Border-Opaque p-3 text-left text-xs shadow-modal-default outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&[data-state=open]>span]:animate-none", variant === "default" ? mode === "popover" ? "bg-Colors-Background-Normal-Secondary-Alt border-Colors-Border-Opaque text-Colors-Text-Default" : "bg-cc-Tooltip-bg-default text-cc-Tooltip-fg-default border border-cc-Tooltip-border-default" : "bg-Colors-Utility-Lake-Blue-50 text-Colors-Text-Static-White", className)
|
|
6176
6176
|
}, props), {
|
|
6177
6177
|
children: [
|
|
6178
6178
|
children,
|
|
6179
6179
|
showArrow && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(PopoverPrimitive.Arrow, {
|
|
6180
6180
|
width: 16,
|
|
6181
6181
|
height: 6,
|
|
6182
|
-
className: cn("visible", variant === "default" ? mode === "popover" ? "fill-[var(--Colors-Background-Normal-
|
|
6182
|
+
className: cn("visible", variant === "default" ? mode === "popover" ? "fill-[var(--Colors-Background-Normal-Secondary-Alt)]" : "fill-cc-Tooltip-bg-default" : "fill-Colors-Utility-Lake-Blue-50")
|
|
6183
6183
|
})
|
|
6184
6184
|
]
|
|
6185
6185
|
}))
|
|
@@ -6280,6 +6280,7 @@ var Tooltip = React8.forwardRef(function(_param, ref) {
|
|
|
6280
6280
|
}
|
|
6281
6281
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_jsx_runtime11.Fragment, {
|
|
6282
6282
|
children: isDesktop ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(TooltipProvider, {
|
|
6283
|
+
delayDuration: 100,
|
|
6283
6284
|
children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(TooltipPrimitive.Root, {
|
|
6284
6285
|
open: disabled || !description && !title ? false : open,
|
|
6285
6286
|
defaultOpen: defaultOpen,
|
|
@@ -6419,7 +6420,7 @@ var COMPOUND_VARIANTS = [
|
|
|
6419
6420
|
{
|
|
6420
6421
|
variant: "plain",
|
|
6421
6422
|
color: "default",
|
|
6422
|
-
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover
|
|
6423
|
+
className: "text-cc-Button-Plain-fg-default hover:bg-cc-Button-Plain-bg-hover active:bg-cc-Button-Plain-bg-active disabled:text-cc-Button-Plain-fg-alt"
|
|
6423
6424
|
},
|
|
6424
6425
|
{
|
|
6425
6426
|
variant: "plain",
|
|
@@ -6720,7 +6721,7 @@ var Avatar = React11.forwardRef(function(_param, ref) {
|
|
|
6720
6721
|
"variant",
|
|
6721
6722
|
"border"
|
|
6722
6723
|
]);
|
|
6723
|
-
var defaultSrc = variant === "user" ? "https://www.myshellstatic.com/
|
|
6724
|
+
var defaultSrc = variant === "user" ? "https://www.myshellstatic.com/image/user/avatar/20250414/default_user_avatar.png" : "https://www.myshellstatic.com/image/bot/icon/20250414/default_bot_avatar.png";
|
|
6724
6725
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AvatarRoot, {
|
|
6725
6726
|
size: size,
|
|
6726
6727
|
className: cn(border && "border-Colors-Border-Default border-[0.3px]", className),
|
|
@@ -6745,7 +6746,7 @@ var badgeVariants = (0, import_class_variance_authority7.cva)("rounded-full flex
|
|
|
6745
6746
|
public: "w-2.5 h-2.5 bg-Colors-Utit border-[2px] bg-Colors-Utility-Lake-Blue-50 border-Colors-Utility-Lake-Blue-10",
|
|
6746
6747
|
private: "w-2.5 h-2.5 bg-Colors-Utility-Khaki-50 border-Colors-Utility-Khaki-10 border-[2px]",
|
|
6747
6748
|
hidden: "w-2.5 h-2.5 bg-Colors-Utility-Gray-40 border-Colors-Utility-Gray-10 border-[2px]",
|
|
6748
|
-
new: "w-
|
|
6749
|
+
new: "w-9 h-4.5 flex juctify-center items-center bg-Colors-Foreground-Critical-Default px-1.5"
|
|
6749
6750
|
}
|
|
6750
6751
|
},
|
|
6751
6752
|
defaultVariants: {
|
|
@@ -6760,7 +6761,7 @@ function Badge(props) {
|
|
|
6760
6761
|
status: status
|
|
6761
6762
|
}), className),
|
|
6762
6763
|
children: status === "new" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", {
|
|
6763
|
-
className: "text-2xs font-medium text-Colors-Text-Static-White leading-[
|
|
6764
|
+
className: "text-2xs font-medium text-Colors-Text-Static-White leading-[12px]",
|
|
6764
6765
|
children: "New"
|
|
6765
6766
|
}) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", {
|
|
6766
6767
|
className: "font-medium text-2xs leading-[1.3]",
|
|
@@ -7712,7 +7713,7 @@ var import_class_variance_authority11 = require("class-variance-authority");
|
|
|
7712
7713
|
var React20 = __toESM(require("react"), 1);
|
|
7713
7714
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
7714
7715
|
var Input = React20.forwardRef(function(_param, ref) {
|
|
7715
|
-
var className = _param.className, type = _param.type, _param_autoComplete = _param.autoComplete, autoComplete = _param_autoComplete === void 0 ? "off" : _param_autoComplete, _param_isFull = _param.isFull, isFull = _param_isFull === void 0 ? true : _param_isFull, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "
|
|
7716
|
+
var className = _param.className, type = _param.type, _param_autoComplete = _param.autoComplete, autoComplete = _param_autoComplete === void 0 ? "off" : _param_autoComplete, _param_isFull = _param.isFull, isFull = _param_isFull === void 0 ? true : _param_isFull, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "sm" : _param_rounded, _param_size = _param.size, size = _param_size === void 0 ? "sm" : _param_size, _param_border = _param.border, border = _param_border === void 0 ? "default" : _param_border, _param_outline = _param.outline, outline = _param_outline === void 0 ? "default" : _param_outline, _param_background = _param.background, background = _param_background === void 0 ? "default" : _param_background, _param_shadow = _param.shadow, shadow = _param_shadow === void 0 ? "default" : _param_shadow, props = _object_without_properties(_param, [
|
|
7716
7717
|
"className",
|
|
7717
7718
|
"type",
|
|
7718
7719
|
"autoComplete",
|
|
@@ -7729,13 +7730,16 @@ var Input = React20.forwardRef(function(_param, ref) {
|
|
|
7729
7730
|
variants: {
|
|
7730
7731
|
rounded: {
|
|
7731
7732
|
none: "rounded-none",
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7733
|
+
xxs: "rounded-xxs",
|
|
7734
|
+
xs: "rounded-xs",
|
|
7735
|
+
sm: "rounded-sm",
|
|
7736
|
+
md: "rounded-md",
|
|
7737
|
+
lg: "rounded-lg",
|
|
7736
7738
|
xl: "rounded-xl",
|
|
7737
7739
|
"2xl": "rounded-2xl",
|
|
7738
7740
|
"3xl": "rounded-3xl",
|
|
7741
|
+
"4xl": "rounded-4xl",
|
|
7742
|
+
"5xl": "rounded-5xl",
|
|
7739
7743
|
full: "rounded-full"
|
|
7740
7744
|
},
|
|
7741
7745
|
size: {
|
|
@@ -8621,7 +8625,7 @@ var Modal = function(_param) {
|
|
|
8621
8625
|
var isMobile2 = (0, import_react_use6.useMedia)("(max-width: 768px)");
|
|
8622
8626
|
if (isMobile2 && !modalOnly && !isNotification) {
|
|
8623
8627
|
var drawerContent = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_vaul2.Drawer.Content, {
|
|
8624
|
-
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Normal-Secondary-Alt shadow-modal-default focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-
|
|
8628
|
+
className: cn("fixed inset-x-0 bottom-0 z-50 h-auto overflow-hidden no-scrollbar border-Colors-Border-Opaque bg-Colors-Background-Normal-Secondary-Alt shadow-modal-default focus:outline-none", fullScreen ? "rounded-t-none max-h-full" : "rounded-t-md max-h-[85vh]", contentClassName),
|
|
8625
8629
|
onOpenAutoFocus: function(e) {
|
|
8626
8630
|
!autoFocus && e.preventDefault();
|
|
8627
8631
|
},
|
|
@@ -8716,7 +8720,7 @@ var Modal = function(_param) {
|
|
|
8716
8720
|
}
|
|
8717
8721
|
};
|
|
8718
8722
|
var dialogContent = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ModalContent, {
|
|
8719
|
-
className: cn("rounded-
|
|
8723
|
+
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default shadow-modal-default overflow-hidden", !isMobile2 ? modalVariants({
|
|
8720
8724
|
size: size,
|
|
8721
8725
|
zIndex: zIndex
|
|
8722
8726
|
}) : isLogin ? "w-[90%]" : "w-[80%]", isNotification && "w-[312px] md:w-[380px]", contentClassName),
|
|
@@ -8797,7 +8801,7 @@ var Modal = function(_param) {
|
|
|
8797
8801
|
icon: import_XMarkIcon.default,
|
|
8798
8802
|
size: "md",
|
|
8799
8803
|
variant: "plain",
|
|
8800
|
-
color: "
|
|
8804
|
+
color: "gray",
|
|
8801
8805
|
className: iconClassName
|
|
8802
8806
|
}),
|
|
8803
8807
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", {
|
|
@@ -11854,7 +11858,7 @@ var SelectContent = React32.forwardRef(function(_param, ref) {
|
|
|
11854
11858
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectPrimitive.Portal, {
|
|
11855
11859
|
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectPrimitive.Content, _object_spread_props(_object_spread({
|
|
11856
11860
|
ref: ref,
|
|
11857
|
-
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-
|
|
11861
|
+
className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-sm border border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default text-Colors-Text-Default shadow-modal-default data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className),
|
|
11858
11862
|
position: position
|
|
11859
11863
|
}, props), {
|
|
11860
11864
|
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectPrimitive.Viewport, {
|
|
@@ -12339,7 +12343,7 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
12339
12343
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12340
12344
|
var TabsList = TabsPrimitive.List;
|
|
12341
12345
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
12342
|
-
var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relative inline-flex items-center
|
|
12346
|
+
var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relative inline-flex items-center overflow-hidden", {
|
|
12343
12347
|
variants: {
|
|
12344
12348
|
size: {
|
|
12345
12349
|
sm: "h-6",
|
|
@@ -12347,9 +12351,9 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
|
|
|
12347
12351
|
lg: "h-11"
|
|
12348
12352
|
},
|
|
12349
12353
|
variant: {
|
|
12350
|
-
button: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
12351
|
-
underline: "border-b border-Colors-Border-Default space-x-6 rounded-none",
|
|
12352
|
-
icon: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
12354
|
+
button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
12355
|
+
underline: "justify-start border-b border-Colors-Border-Default space-x-6 rounded-none",
|
|
12356
|
+
icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
12353
12357
|
},
|
|
12354
12358
|
rounded: {
|
|
12355
12359
|
default: "",
|
|
@@ -12550,7 +12554,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12550
12554
|
"onClickCallback"
|
|
12551
12555
|
]);
|
|
12552
12556
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12553
|
-
triggerClassName: cn("
|
|
12557
|
+
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12554
12558
|
}, tooltip), {
|
|
12555
12559
|
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12556
12560
|
ref: ref,
|
|
@@ -12633,7 +12637,7 @@ var Textarea = React37.forwardRef(function(_param, ref) {
|
|
|
12633
12637
|
className: "relative",
|
|
12634
12638
|
children: [
|
|
12635
12639
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("textarea", _object_spread({
|
|
12636
|
-
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-
|
|
12640
|
+
className: cn("w-full min-h-[123px] p-3 pb-10 rounded-sm border border-Colors-Border-Default bg-Colors-Background-Normal-Primary-Active ", "text-sm text-Colors-Text-Default placeholder:text-Colors-Text-Subtlest", "hover:border-Colors-Border-Hover bg-cc-Input-bg-default hover:bg-cc-Input-bg-hover disabled:bg-cc-Input-bg-disabled aria-[invalid=true]:border-Colors-Border-Critical aria-[invalid=true]:hover:bg-Colors-Background-Critical-Subtle", "aria-[invalid=true]:focus-visible:ring-error file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-Colors-Text-Subtler", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-30", maxLength && ((value1 === null || value1 === void 0 ? void 0 : (_value_toString = value1.toString()) === null || _value_toString === void 0 ? void 0 : _value_toString.length) || 0) > maxLength || error ? "border-Colors-Border-Critical hover:bg-Colors-Background-Critical-Subtle focus-visible:ring-error" : "", className),
|
|
12637
12641
|
ref: ref,
|
|
12638
12642
|
maxLength: maxLength,
|
|
12639
12643
|
value: value1
|
|
@@ -12752,7 +12756,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
12752
12756
|
// src/components/chips.tsx
|
|
12753
12757
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12754
12758
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12755
|
-
var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex items-center justify-center text-Colors-Text-Subtle rounded-sm border px-1.5 text-sm cursor-pointer focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled="true"]:cursor-not-allowed', {
|
|
12759
|
+
var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex items-center justify-center text-Colors-Text-Subtle rounded-sm border px-1.5 text-sm cursor-pointer focus-visible:ring-2 focus-visible:ring-cc-Focus-Rings-Brand-default focus-visible:ring-offset-1 data-[disabled="true"]:cursor-not-allowed font-medium', {
|
|
12756
12760
|
variants: {
|
|
12757
12761
|
variant: {
|
|
12758
12762
|
primary: 'border-cc-Chips-Primary-border-default bg-cc-Chips-Primary-bg-default hover:bg-cc-Chips-Primary-bg-hover data-[selected="true"]:text-Colors-Text-Bolder data-[disabled="true"]:data-[selected="true"]:text-Colors-Text-Bolder data-[selected="true"]:bg-cc-Chips-Primary-bg-select data-[disabled="true"]:text-Colors-Text-Disabled data-[disabled="true"]:bg-cc-Chips-Primary-bg-disabled data-[disabled="true"]:data-[selected="true"]:bg-cc-Chips-Primary-bg-select-disabled',
|