myshell-react-lib 0.2.29 → 0.2.31
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 +24 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +24 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1295,6 +1295,10 @@ declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsPro
|
|
|
1295
1295
|
contentClassName?: string;
|
|
1296
1296
|
contentBoxClassName?: string;
|
|
1297
1297
|
items?: TItems[];
|
|
1298
|
+
tabBarExtraContent?: {
|
|
1299
|
+
left?: React$1.ReactNode;
|
|
1300
|
+
right?: React$1.ReactNode;
|
|
1301
|
+
};
|
|
1298
1302
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1299
1303
|
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1300
1304
|
variant?: "button" | "underline" | "icon";
|
package/dist/index.d.ts
CHANGED
|
@@ -1295,6 +1295,10 @@ declare const Tabs: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsPro
|
|
|
1295
1295
|
contentClassName?: string;
|
|
1296
1296
|
contentBoxClassName?: string;
|
|
1297
1297
|
items?: TItems[];
|
|
1298
|
+
tabBarExtraContent?: {
|
|
1299
|
+
left?: React$1.ReactNode;
|
|
1300
|
+
right?: React$1.ReactNode;
|
|
1301
|
+
};
|
|
1298
1302
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1299
1303
|
declare const Tab: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
1300
1304
|
variant?: "button" | "underline" | "icon";
|
package/dist/index.js
CHANGED
|
@@ -9032,7 +9032,7 @@ var VARIANT_BASE = {
|
|
|
9032
9032
|
link: "",
|
|
9033
9033
|
plain: "",
|
|
9034
9034
|
opacity: "backdrop-blur-2xl text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
9035
|
-
ghost: "shadow-none text-Colors-Text-
|
|
9035
|
+
ghost: "shadow-none text-Colors-Text-Default bg-cc-Button-Ghost-bg-default border border-cc-Button-Ghost-border-default hover:bg-cc-Button-Ghost-bg-hover hover:border-cc-Button-Ghost-border-alt active:bg-cc-Button-Ghost-bg-active disabled:text-cc-Button-Ghost-fg-alt"
|
|
9036
9036
|
};
|
|
9037
9037
|
var SPECIAL_LAYOUTS = {
|
|
9038
9038
|
link: "h-fit w-fit min-w-auto px-0.5 py-0.5",
|
|
@@ -9951,7 +9951,7 @@ var VARIANT_STYLES = {
|
|
|
9951
9951
|
tertiary: "shadow-none",
|
|
9952
9952
|
plain: "",
|
|
9953
9953
|
opacity: "backdrop-blur-2xl text-Colors-Text-Static-White bg-Colors-Beta-White-30 border border-Colors-Beta-White-12 shadow-none hover:bg-Colors-Beta-White-40 focus:shadow-cc-Focus-Rings-Brand-default active:bg-Colors-Beta-White-50 disabled:bg-Colors-Beta-White-60 disabled:text-Colors-Beta-White-80",
|
|
9954
|
-
ghost: "shadow-none text-Colors-Text-
|
|
9954
|
+
ghost: "shadow-none text-Colors-Text-Default bg-cc-Button-Ghost-bg-default border border-cc-Button-Ghost-border-default hover:bg-cc-Button-Ghost-bg-hover hover:border-cc-Button-Ghost-border-alt active:bg-cc-Button-Ghost-bg-active disabled:text-cc-Button-Ghost-fg-alt",
|
|
9955
9955
|
static: "text-cc-Button-Static-fg-default border-cc-Button-Static-border-default bg-cc-Button-Static-bg-default hover:bg-cc-Button-Static-bg-hover active:bg-cc-Button-Static-bg-active disabled:bg-cc-Button-Static-bg-disabled disabled:text-cc-Button-Static-fg-alt"
|
|
9956
9956
|
};
|
|
9957
9957
|
var COLOR_STYLES = {
|
|
@@ -14857,7 +14857,7 @@ var tabVariants = cva18("relative inline-flex h-full items-center whitespace-now
|
|
|
14857
14857
|
}
|
|
14858
14858
|
});
|
|
14859
14859
|
var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
14860
|
-
var className = _param.className, listClassName = _param.listClassName, listBoxClassName = _param.listBoxClassName, contentClassName = _param.contentClassName, contentBoxClassName = _param.contentBoxClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _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, [
|
|
14860
|
+
var className = _param.className, listClassName = _param.listClassName, listBoxClassName = _param.listBoxClassName, contentClassName = _param.contentClassName, contentBoxClassName = _param.contentBoxClassName, _param_variant = _param.variant, variant = _param_variant === void 0 ? "button" : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _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, tabBarExtraContent = _param.tabBarExtraContent, props = _object_without_properties(_param, [
|
|
14861
14861
|
"className",
|
|
14862
14862
|
"listClassName",
|
|
14863
14863
|
"listBoxClassName",
|
|
@@ -14867,7 +14867,8 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
14867
14867
|
"size",
|
|
14868
14868
|
"isLink",
|
|
14869
14869
|
"rounded",
|
|
14870
|
-
"items"
|
|
14870
|
+
"items",
|
|
14871
|
+
"tabBarExtraContent"
|
|
14871
14872
|
]);
|
|
14872
14873
|
return /* @__PURE__ */ jsxs41(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
14873
14874
|
ref: ref,
|
|
@@ -14876,7 +14877,7 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
14876
14877
|
children: [
|
|
14877
14878
|
/* @__PURE__ */ jsx61("div", {
|
|
14878
14879
|
className: cn("w-full flex justify-start items-center", listBoxClassName),
|
|
14879
|
-
children: /* @__PURE__ */
|
|
14880
|
+
children: /* @__PURE__ */ jsxs41(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
14880
14881
|
ref: ref,
|
|
14881
14882
|
className: cn(tabListVariants({
|
|
14882
14883
|
variant: variant,
|
|
@@ -14884,14 +14885,24 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
14884
14885
|
rounded: rounded
|
|
14885
14886
|
}), listClassName)
|
|
14886
14887
|
}, props), {
|
|
14887
|
-
children:
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14888
|
+
children: [
|
|
14889
|
+
(tabBarExtraContent === null || tabBarExtraContent === void 0 ? void 0 : tabBarExtraContent.left) && /* @__PURE__ */ jsx61("div", {
|
|
14890
|
+
className: "flex justify-start items-center",
|
|
14891
|
+
children: tabBarExtraContent.left
|
|
14892
|
+
}),
|
|
14893
|
+
items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
14894
|
+
return /* @__PURE__ */ jsx61(Tab, _object_spread({
|
|
14895
|
+
isLink: isLink,
|
|
14896
|
+
variant: variant,
|
|
14897
|
+
size: size,
|
|
14898
|
+
rounded: rounded
|
|
14899
|
+
}, item), item.value);
|
|
14900
|
+
}),
|
|
14901
|
+
(tabBarExtraContent === null || tabBarExtraContent === void 0 ? void 0 : tabBarExtraContent.right) && /* @__PURE__ */ jsx61("div", {
|
|
14902
|
+
className: "flex-1 flex justify-end items-center",
|
|
14903
|
+
children: tabBarExtraContent.right
|
|
14904
|
+
})
|
|
14905
|
+
]
|
|
14895
14906
|
}))
|
|
14896
14907
|
}),
|
|
14897
14908
|
!isLink && /* @__PURE__ */ jsx61("div", {
|