myshell-react-lib 0.1.29 → 0.1.30

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 CHANGED
@@ -4598,7 +4598,7 @@ __export(index_exports, {
4598
4598
  return Tab;
4599
4599
  },
4600
4600
  Tabs: function() {
4601
- return Tabs;
4601
+ return Tabs2;
4602
4602
  },
4603
4603
  TabsContent: function() {
4604
4604
  return TabsContent;
@@ -4606,6 +4606,9 @@ __export(index_exports, {
4606
4606
  TabsList: function() {
4607
4607
  return TabsList;
4608
4608
  },
4609
+ TabsRoot: function() {
4610
+ return TabsRoot;
4611
+ },
4609
4612
  TabsTrigger: function() {
4610
4613
  return TabsTrigger;
4611
4614
  },
@@ -12333,9 +12336,10 @@ var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
12333
12336
  var import_class_variance_authority17 = require("class-variance-authority");
12334
12337
  var React36 = __toESM(require("react"), 1);
12335
12338
  var import_jsx_runtime52 = require("react/jsx-runtime");
12339
+ var TabsRoot = TabsPrimitive.Tabs;
12336
12340
  var TabsList = TabsPrimitive.List;
12337
12341
  var TabsTrigger = TabsPrimitive.Trigger;
12338
- var tabListVariants = (0, import_class_variance_authority17.cva)("relative inline-flex items-center justify-center overflow-hidden", {
12342
+ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relative inline-flex items-center justify-center overflow-hidden", {
12339
12343
  variants: {
12340
12344
  size: {
12341
12345
  sm: "h-6",
@@ -12415,7 +12419,7 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("relative inlin
12415
12419
  rounded: "default"
12416
12420
  }
12417
12421
  });
12418
- var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-flex w-full h-full items-center justify-center overflow-hidden whitespace-nowrap font-medium text-cc-Tabbar-fg-default aria-[selected=true]:text-cc-Tabbar-fg-bolder [&>div>span]:hover:text-cc-Tabbar-fg-bolder disabled:cursor-not-allowed disabled:text-cc-Tabbar-fg-disabled [&>div>span]:disabled:text-cc-Tabbar-fg-disabled data-[state=active]:text-cc-Tabbar-fg-bolder", {
12422
+ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-flex h-full items-center overflow-hidden whitespace-nowrap font-medium text-cc-Tabbar-fg-default aria-[selected=true]:text-cc-Tabbar-fg-bolder [&>div>span]:hover:text-cc-Tabbar-fg-bolder disabled:cursor-not-allowed disabled:text-cc-Tabbar-fg-disabled [&>div>span]:disabled:text-cc-Tabbar-fg-disabled data-[state=active]:text-cc-Tabbar-fg-bolder", {
12419
12423
  variants: {
12420
12424
  size: {
12421
12425
  sm: "text-xs h-4.5",
@@ -12423,9 +12427,9 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
12423
12427
  lg: "text-base h-9.5"
12424
12428
  },
12425
12429
  variant: {
12426
- button: "aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
12427
- underline: "shadow-none aria-[selected=true]:border-cc-Tabbar-border-default aria-[selected=true]:border-b-2 rounded-none",
12428
- icon: "aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default px-4"
12430
+ button: "w-full px-3 py-2.5 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
12431
+ underline: "w-fit justify-start shadow-none aria-[selected=true]:border-cc-Tabbar-border-default aria-[selected=true]:border-b-2 rounded-none",
12432
+ icon: "w-full px-4 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default"
12429
12433
  },
12430
12434
  rounded: {
12431
12435
  default: "",
@@ -12480,7 +12484,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
12480
12484
  rounded: "default"
12481
12485
  }
12482
12486
  });
12483
- var Tabs = React36.forwardRef(function(_param, ref) {
12487
+ var Tabs2 = React36.forwardRef(function(_param, ref) {
12484
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, [
12485
12489
  "className",
12486
12490
  "listClassName",
@@ -12496,14 +12500,14 @@ var Tabs = React36.forwardRef(function(_param, ref) {
12496
12500
  }, props), {
12497
12501
  children: [
12498
12502
  /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", {
12499
- className: "w-full flex justify-center items-center",
12503
+ className: "w-full flex justify-start items-center",
12500
12504
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.List, _object_spread_props(_object_spread({
12501
12505
  ref: ref,
12502
12506
  className: cn(tabListVariants({
12503
12507
  variant: variant,
12504
12508
  size: size,
12505
12509
  rounded: rounded
12506
- }), "", listClassName)
12510
+ }), listClassName)
12507
12511
  }, props), {
12508
12512
  children: items === null || items === void 0 ? void 0 : items.map(function(item) {
12509
12513
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tab, _object_spread({
@@ -12527,7 +12531,7 @@ var Tabs = React36.forwardRef(function(_param, ref) {
12527
12531
  ]
12528
12532
  }));
12529
12533
  });
12530
- Tabs.displayName = TabsPrimitive.Root.displayName;
12534
+ Tabs2.displayName = TabsPrimitive.Root.displayName;
12531
12535
  var Tab = React36.forwardRef(function(_param, ref) {
12532
12536
  var className = _param.className, variant = _param.variant, size = _param.size, isLink = _param.isLink, link = _param.link, count2 = _param.count, label = _param.label, icon = _param.icon, tooltip = _param.tooltip, hasUnRead = _param.hasUnRead, _param_rounded = _param.rounded, rounded = _param_rounded === void 0 ? "default" : _param_rounded, onClickCallback = _param.onClickCallback, props = _object_without_properties(_param, [
12533
12537
  "className",
@@ -12544,7 +12548,7 @@ var Tab = React36.forwardRef(function(_param, ref) {
12544
12548
  "onClickCallback"
12545
12549
  ]);
12546
12550
  return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Tooltip, _object_spread_props(_object_spread({
12547
- triggerClassName: cn("w-full h-full flex-1 flex justify-center items-center", variant === "underline" && "justify-center items-end")
12551
+ triggerClassName: cn("w-full h-full flex-1 flex justify-center items-center", variant === "underline" && "justify-start items-end")
12548
12552
  }, tooltip), {
12549
12553
  children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(TabsPrimitive.Trigger, _object_spread_props(_object_spread({
12550
12554
  ref: ref,
@@ -12758,7 +12762,8 @@ var chipsVariants = (0, import_class_variance_authority19.cva)('min-w-10 flex it
12758
12762
  }
12759
12763
  },
12760
12764
  defaultVariants: {
12761
- variant: "primary"
12765
+ variant: "primary",
12766
+ size: "sm"
12762
12767
  }
12763
12768
  });
12764
12769
  function Chips(props) {
@@ -14022,6 +14027,7 @@ var RectangleGroupIcon = React53.forwardRef(function(props, ref) {
14022
14027
  Tabs: Tabs,
14023
14028
  TabsContent: TabsContent,
14024
14029
  TabsList: TabsList,
14030
+ TabsRoot: TabsRoot,
14025
14031
  TabsTrigger: TabsTrigger,
14026
14032
  Text: Text,
14027
14033
  Textarea: Textarea,