myshell-react-lib 0.1.30 → 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 +14 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1147,6 +1147,7 @@ declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsPro
|
|
|
1147
1147
|
*/
|
|
1148
1148
|
isLink?: boolean;
|
|
1149
1149
|
listClassName?: string;
|
|
1150
|
+
contentClassName?: string;
|
|
1150
1151
|
items?: TItems[];
|
|
1151
1152
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1152
1153
|
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -1147,6 +1147,7 @@ declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsPro
|
|
|
1147
1147
|
*/
|
|
1148
1148
|
isLink?: boolean;
|
|
1149
1149
|
listClassName?: string;
|
|
1150
|
+
contentClassName?: string;
|
|
1150
1151
|
items?: TItems[];
|
|
1151
1152
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1152
1153
|
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
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: "",
|
|
@@ -11759,9 +11759,10 @@ var tabVariants = cva17("relative inline-flex h-full items-center overflow-hidde
|
|
|
11759
11759
|
}
|
|
11760
11760
|
});
|
|
11761
11761
|
var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
11762
|
-
var className = _param.className, listClassName = _param.listClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, size = _param.size, _param_isLink = _param.isLink, isLink = _param_isLink === void 0 ? false : _param_isLink, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, items = _param.items, props = _object_without_properties(_param, [
|
|
11762
|
+
var className = _param.className, listClassName = _param.listClassName, contentClassName = _param.contentClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, size = _param.size, _param_isLink = _param.isLink, isLink = _param_isLink === void 0 ? false : _param_isLink, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, items = _param.items, props = _object_without_properties(_param, [
|
|
11763
11763
|
"className",
|
|
11764
11764
|
"listClassName",
|
|
11765
|
+
"contentClassName",
|
|
11765
11766
|
"variant",
|
|
11766
11767
|
"size",
|
|
11767
11768
|
"isLink",
|
|
@@ -11798,6 +11799,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
11798
11799
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
11799
11800
|
return /* @__PURE__ */ jsx52(TabsContent, {
|
|
11800
11801
|
value: item.value,
|
|
11802
|
+
className: contentClassName,
|
|
11801
11803
|
children: item.children
|
|
11802
11804
|
});
|
|
11803
11805
|
})
|
|
@@ -11822,7 +11824,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
11822
11824
|
"onClickCallback"
|
|
11823
11825
|
]);
|
|
11824
11826
|
return /* @__PURE__ */ jsx52(Tooltip, _object_spread_props(_object_spread({
|
|
11825
|
-
triggerClassName: cn("
|
|
11827
|
+
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
11826
11828
|
}, tooltip), {
|
|
11827
11829
|
children: /* @__PURE__ */ jsx52(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
11828
11830
|
ref: ref,
|
|
@@ -12024,7 +12026,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
12024
12026
|
// src/components/chips.tsx
|
|
12025
12027
|
import { cva as cva19 } from "class-variance-authority";
|
|
12026
12028
|
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12027
|
-
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', {
|
|
12028
12030
|
variants: {
|
|
12029
12031
|
variant: {
|
|
12030
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',
|