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.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
|
}))
|
|
@@ -6720,7 +6720,7 @@ var Avatar = React11.forwardRef(function(_param, ref) {
|
|
|
6720
6720
|
"variant",
|
|
6721
6721
|
"border"
|
|
6722
6722
|
]);
|
|
6723
|
-
var defaultSrc = variant === "user" ? "https://www.myshellstatic.com/
|
|
6723
|
+
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
6724
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AvatarRoot, {
|
|
6725
6725
|
size: size,
|
|
6726
6726
|
className: cn(border && "border-Colors-Border-Default border-[0.3px]", className),
|
|
@@ -8621,7 +8621,7 @@ var Modal = function(_param) {
|
|
|
8621
8621
|
var isMobile2 = (0, import_react_use6.useMedia)("(max-width: 768px)");
|
|
8622
8622
|
if (isMobile2 && !modalOnly && !isNotification) {
|
|
8623
8623
|
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-
|
|
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-md max-h-[85vh]", contentClassName),
|
|
8625
8625
|
onOpenAutoFocus: function(e) {
|
|
8626
8626
|
!autoFocus && e.preventDefault();
|
|
8627
8627
|
},
|
|
@@ -8716,7 +8716,7 @@ var Modal = function(_param) {
|
|
|
8716
8716
|
}
|
|
8717
8717
|
};
|
|
8718
8718
|
var dialogContent = /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ModalContent, {
|
|
8719
|
-
className: cn("rounded-
|
|
8719
|
+
className: cn("rounded-md border-Colors-Border-Opaque bg-Colors-Background-Normal-Primary-Default shadow-modal-default overflow-hidden", !isMobile2 ? modalVariants({
|
|
8720
8720
|
size: size,
|
|
8721
8721
|
zIndex: zIndex
|
|
8722
8722
|
}) : isLogin ? "w-[90%]" : "w-[80%]", isNotification && "w-[312px] md:w-[380px]", contentClassName),
|
|
@@ -12339,7 +12339,7 @@ var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
|
12339
12339
|
var TabsRoot = TabsPrimitive.Tabs;
|
|
12340
12340
|
var TabsList = TabsPrimitive.List;
|
|
12341
12341
|
var TabsTrigger = TabsPrimitive.Trigger;
|
|
12342
|
-
var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relative inline-flex items-center
|
|
12342
|
+
var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relative inline-flex items-center overflow-hidden", {
|
|
12343
12343
|
variants: {
|
|
12344
12344
|
size: {
|
|
12345
12345
|
sm: "h-6",
|
|
@@ -12347,9 +12347,9 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
|
|
|
12347
12347
|
lg: "h-11"
|
|
12348
12348
|
},
|
|
12349
12349
|
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"
|
|
12350
|
+
button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
|
|
12351
|
+
underline: "justify-start border-b border-Colors-Border-Default space-x-6 rounded-none",
|
|
12352
|
+
icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
|
|
12353
12353
|
},
|
|
12354
12354
|
rounded: {
|
|
12355
12355
|
default: "",
|
|
@@ -12485,9 +12485,10 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
|
|
|
12485
12485
|
}
|
|
12486
12486
|
});
|
|
12487
12487
|
var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
12488
|
-
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, [
|
|
12488
|
+
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, [
|
|
12489
12489
|
"className",
|
|
12490
12490
|
"listClassName",
|
|
12491
|
+
"contentClassName",
|
|
12491
12492
|
"variant",
|
|
12492
12493
|
"size",
|
|
12493
12494
|
"isLink",
|
|
@@ -12524,6 +12525,7 @@ var Tabs2 = React36.forwardRef(function(_param, ref) {
|
|
|
12524
12525
|
children: items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
12525
12526
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsContent, {
|
|
12526
12527
|
value: item.value,
|
|
12528
|
+
className: contentClassName,
|
|
12527
12529
|
children: item.children
|
|
12528
12530
|
});
|
|
12529
12531
|
})
|
|
@@ -12548,7 +12550,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
|
|
|
12548
12550
|
"onClickCallback"
|
|
12549
12551
|
]);
|
|
12550
12552
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tooltip, _object_spread_props(_object_spread({
|
|
12551
|
-
triggerClassName: cn("
|
|
12553
|
+
triggerClassName: cn("h-full flex justify-center items-center", variant === "underline" ? "w-fit justify-start items-end" : "w-full flex-1")
|
|
12552
12554
|
}, tooltip), {
|
|
12553
12555
|
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
|
|
12554
12556
|
ref: ref,
|
|
@@ -12750,7 +12752,7 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
|
12750
12752
|
// src/components/chips.tsx
|
|
12751
12753
|
var import_class_variance_authority19 = require("class-variance-authority");
|
|
12752
12754
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12753
|
-
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', {
|
|
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 font-medium', {
|
|
12754
12756
|
variants: {
|
|
12755
12757
|
variant: {
|
|
12756
12758
|
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',
|