myshell-react-lib 0.1.31 → 0.1.33
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 +11 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5446,14 +5446,14 @@ var PopoverContent = React7.forwardRef(function(_param, ref) {
|
|
|
5446
5446
|
arrowPadding: arrowPadding,
|
|
5447
5447
|
side: side,
|
|
5448
5448
|
forceMount: true,
|
|
5449
|
-
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-
|
|
5449
|
+
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)
|
|
5450
5450
|
}, props), {
|
|
5451
5451
|
children: [
|
|
5452
5452
|
children,
|
|
5453
5453
|
showArrow && /* @__PURE__ */ jsx10(PopoverPrimitive.Arrow, {
|
|
5454
5454
|
width: 16,
|
|
5455
5455
|
height: 6,
|
|
5456
|
-
className: cn("visible", variant === "default" ? mode === "popover" ? "fill-[var(--Colors-Background-Normal-
|
|
5456
|
+
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")
|
|
5457
5457
|
})
|
|
5458
5458
|
]
|
|
5459
5459
|
}))
|
|
@@ -5994,7 +5994,7 @@ var Avatar = React11.forwardRef(function(_param, ref) {
|
|
|
5994
5994
|
"variant",
|
|
5995
5995
|
"border"
|
|
5996
5996
|
]);
|
|
5997
|
-
var defaultSrc = variant === "user" ? "https://www.myshellstatic.com/
|
|
5997
|
+
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";
|
|
5998
5998
|
return /* @__PURE__ */ jsx16(AvatarRoot, {
|
|
5999
5999
|
size: size,
|
|
6000
6000
|
className: cn(border && "border-Colors-Border-Default border-[0.3px]", className),
|
|
@@ -7895,7 +7895,7 @@ var Modal = function(_param) {
|
|
|
7895
7895
|
var isMobile2 = useMedia4("(max-width: 768px)");
|
|
7896
7896
|
if (isMobile2 && !modalOnly && !isNotification) {
|
|
7897
7897
|
var drawerContent = /* @__PURE__ */ jsxs17(DrawerPrimitive2.Content, {
|
|
7898
|
-
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-
|
|
7898
|
+
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),
|
|
7899
7899
|
onOpenAutoFocus: function(e) {
|
|
7900
7900
|
!autoFocus && e.preventDefault();
|
|
7901
7901
|
},
|
|
@@ -7990,7 +7990,7 @@ var Modal = function(_param) {
|
|
|
7990
7990
|
}
|
|
7991
7991
|
};
|
|
7992
7992
|
var dialogContent = /* @__PURE__ */ jsxs17(ModalContent, {
|
|
7993
|
-
className: cn("rounded-
|
|
7993
|
+
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default shadow-modal-default overflow-hidden", !isMobile2 ? modalVariants({
|
|
7994
7994
|
size: size,
|
|
7995
7995
|
zIndex: zIndex
|
|
7996
7996
|
}) : isLogin ? "w-[90%]" : "w-[80%]", isNotification && "w-[312px] md:w-[380px]", contentClassName),
|
|
@@ -11613,7 +11613,7 @@ import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
|
11613
11613
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
11614
11614
|
var TabsList = TabsPrimitive.List;
|
|
11615
11615
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
11616
|
-
var tabListVariants = cva17("w-full relative inline-flex items-center
|
|
11616
|
+
var tabListVariants = cva17("w-full relative inline-flex items-center overflow-hidden", {
|
|
11617
11617
|
variants: {
|
|
11618
11618
|
size: {
|
|
11619
11619
|
sm: "h-6",
|
|
@@ -11621,9 +11621,9 @@ var tabListVariants = cva17("w-full relative inline-flex items-center justify-ce
|
|
|
11621
11621
|
lg: "h-11"
|
|
11622
11622
|
},
|
|
11623
11623
|
variant: {
|
|
11624
|
-
button: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
11625
|
-
underline: "border-b border-Colors-Border-Default space-x-6 rounded-none",
|
|
11626
|
-
icon: "border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
11624
|
+
button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
11625
|
+
underline: "justify-start border-b border-Colors-Border-Default space-x-6 rounded-none",
|
|
11626
|
+
icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
11627
11627
|
},
|
|
11628
11628
|
rounded: {
|
|
11629
11629
|
default: "",
|
|
@@ -11824,7 +11824,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11824
11824
|
"onClickCallback"
|
|
11825
11825
|
]);
|
|
11826
11826
|
return /* @__PURE__ */ jsx52(Tooltip, _object_spread_props(_object_spread({
|
|
11827
|
-
triggerClassName: cn("
|
|
11827
|
+
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
11828
11828
|
}, tooltip), {
|
|
11829
11829
|
children: /* @__PURE__ */ jsx52(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11830
11830
|
ref: ref,
|
|
@@ -12026,7 +12026,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
12026
12026
|
// src/components/chips.tsx
|
|
12027
12027
|
import { cva as cva19 } from "class-variance-authority";
|
|
12028
12028
|
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12029
|
-
var chipsVariants = cva19('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', {
|
|
12029
|
+
var chipsVariants = cva19('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', {
|
|
12030
12030
|
variants: {
|
|
12031
12031
|
variant: {
|
|
12032
12032
|
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',
|