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.cjs
CHANGED
|
@@ -9824,7 +9824,7 @@ var VARIANT_BASE = {
|
|
|
9824
9824
|
link: "",
|
|
9825
9825
|
plain: "",
|
|
9826
9826
|
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",
|
|
9827
|
-
ghost: "shadow-none text-Colors-Text-
|
|
9827
|
+
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"
|
|
9828
9828
|
};
|
|
9829
9829
|
var SPECIAL_LAYOUTS = {
|
|
9830
9830
|
link: "h-fit w-fit min-w-auto px-0.5 py-0.5",
|
|
@@ -10743,7 +10743,7 @@ var VARIANT_STYLES = {
|
|
|
10743
10743
|
tertiary: "shadow-none",
|
|
10744
10744
|
plain: "",
|
|
10745
10745
|
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",
|
|
10746
|
-
ghost: "shadow-none text-Colors-Text-
|
|
10746
|
+
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",
|
|
10747
10747
|
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"
|
|
10748
10748
|
};
|
|
10749
10749
|
var COLOR_STYLES = {
|
|
@@ -15649,7 +15649,7 @@ var tabVariants = (0, import_class_variance_authority18.cva)("relative inline-fl
|
|
|
15649
15649
|
}
|
|
15650
15650
|
});
|
|
15651
15651
|
var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
15652
|
-
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, [
|
|
15652
|
+
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, [
|
|
15653
15653
|
"className",
|
|
15654
15654
|
"listClassName",
|
|
15655
15655
|
"listBoxClassName",
|
|
@@ -15659,7 +15659,8 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
15659
15659
|
"size",
|
|
15660
15660
|
"isLink",
|
|
15661
15661
|
"rounded",
|
|
15662
|
-
"items"
|
|
15662
|
+
"items",
|
|
15663
|
+
"tabBarExtraContent"
|
|
15663
15664
|
]);
|
|
15664
15665
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(TabsPrimitive.Root, _object_spread_props(_object_spread({
|
|
15665
15666
|
ref: ref,
|
|
@@ -15668,7 +15669,7 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
15668
15669
|
children: [
|
|
15669
15670
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
15670
15671
|
className: cn("w-full flex justify-start items-center", listBoxClassName),
|
|
15671
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime61.
|
|
15672
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(TabsPrimitive.List, _object_spread_props(_object_spread({
|
|
15672
15673
|
ref: ref,
|
|
15673
15674
|
className: cn(tabListVariants({
|
|
15674
15675
|
variant: variant,
|
|
@@ -15676,14 +15677,24 @@ var Tabs2 = React47.forwardRef(function(_param, ref) {
|
|
|
15676
15677
|
rounded: rounded
|
|
15677
15678
|
}), listClassName)
|
|
15678
15679
|
}, props), {
|
|
15679
|
-
children:
|
|
15680
|
-
|
|
15681
|
-
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
15680
|
+
children: [
|
|
15681
|
+
(tabBarExtraContent === null || tabBarExtraContent === void 0 ? void 0 : tabBarExtraContent.left) && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
15682
|
+
className: "flex justify-start items-center",
|
|
15683
|
+
children: tabBarExtraContent.left
|
|
15684
|
+
}),
|
|
15685
|
+
items === null || items === void 0 ? void 0 : items.map(function(item) {
|
|
15686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Tab, _object_spread({
|
|
15687
|
+
isLink: isLink,
|
|
15688
|
+
variant: variant,
|
|
15689
|
+
size: size,
|
|
15690
|
+
rounded: rounded
|
|
15691
|
+
}, item), item.value);
|
|
15692
|
+
}),
|
|
15693
|
+
(tabBarExtraContent === null || tabBarExtraContent === void 0 ? void 0 : tabBarExtraContent.right) && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
15694
|
+
className: "flex-1 flex justify-end items-center",
|
|
15695
|
+
children: tabBarExtraContent.right
|
|
15696
|
+
})
|
|
15697
|
+
]
|
|
15687
15698
|
}))
|
|
15688
15699
|
}),
|
|
15689
15700
|
!isLink && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|