myshell-react-lib 0.1.43 → 0.1.44

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
@@ -8860,7 +8860,7 @@ function ModalFooter(_param) {
8860
8860
  "children"
8861
8861
  ]);
8862
8862
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", _object_spread_props(_object_spread({
8863
- className: cn("border-t border-Colors-Border-Default flex justify-end p-4", className)
8863
+ className: cn("border-t border-Colors-Border-Default flex justify-end px-4 pt-3 pb-1.5", className)
8864
8864
  }, props), {
8865
8865
  children: children
8866
8866
  }));
@@ -12177,7 +12177,7 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
12177
12177
  },
12178
12178
  variant: {
12179
12179
  button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
12180
- underline: "justify-start border-b border-Colors-Border-Default space-x-6 rounded-none",
12180
+ underline: 'justify-start space-x-6 rounded-none relative before:absolute before:content-[""] before:bottom-0 before:left-0 before:right-0 before:h-[1px] before:bg-[var(--Colors-Border-Default)]',
12181
12181
  icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
12182
12182
  },
12183
12183
  rounded: {
@@ -12248,7 +12248,7 @@ var tabListVariants = (0, import_class_variance_authority17.cva)("w-full relativ
12248
12248
  rounded: "default"
12249
12249
  }
12250
12250
  });
12251
- 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", {
12251
+ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-flex h-full items-center 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", {
12252
12252
  variants: {
12253
12253
  size: {
12254
12254
  sm: "text-xs h-4.5",
@@ -12257,7 +12257,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
12257
12257
  },
12258
12258
  variant: {
12259
12259
  button: "w-full px-3 py-2.5 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
12260
- underline: "w-fit justify-start shadow-none aria-[selected=true]:border-cc-Tabbar-border-default aria-[selected=true]:border-b-2 rounded-none",
12260
+ underline: 'w-fit justify-start shadow-none rounded-none relative aria-[selected=true]:before:absolute aria-[selected=true]:before:content-[""] aria-[selected=true]:before:bottom-0 aria-[selected=true]:before:left-0 aria-[selected=true]:before:right-0 aria-[selected=true]:before:h-0.5 aria-[selected=true]:before:bg-cc-Tabbar-border-default aria-[selected=true]:before:z-20',
12261
12261
  icon: "w-full px-4 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default"
12262
12262
  },
12263
12263
  rounded: {
@@ -12304,7 +12304,7 @@ var tabVariants = (0, import_class_variance_authority17.cva)("relative inline-fl
12304
12304
  {
12305
12305
  variant: "underline",
12306
12306
  size: "lg",
12307
- className: "h-[31px]"
12307
+ className: "h-8"
12308
12308
  }
12309
12309
  ],
12310
12310
  defaultVariants: {
@@ -12410,7 +12410,7 @@ var Tab = React35.forwardRef(function(_param, ref) {
12410
12410
  })
12411
12411
  ]
12412
12412
  }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", {
12413
- className: "relative flex justify-center items-center",
12413
+ className: cn("relative flex justify-center items-center", variant === "underline" && "pb-2"),
12414
12414
  children: [
12415
12415
  label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", {
12416
12416
  className: cn("text-inherit"),
@@ -12737,7 +12737,7 @@ var stateIconUrls = {
12737
12737
  "network-error": "https://myshellstatic.com/image/website/20250425/network-error.png"
12738
12738
  };
12739
12739
  var State2 = function(param) {
12740
- var variant = param.variant, title = param.title, description = param.description, className = param.className, icon = param.icon, logo = param.logo, backBtnText = param.backBtnText, _param_hideLogo = param.hideLogo, hideLogo = _param_hideLogo === void 0 ? false : _param_hideLogo, onBack = param.onBack;
12740
+ var variant = param.variant, title = param.title, description = param.description, className = param.className, icon = param.icon, logo = param.logo, backBtnText = param.backBtnText, iconClassName = param.iconClassName, logoClassName = param.logoClassName, titleClassName = param.titleClassName, descriptionClassName = param.descriptionClassName, _param_hideLogo = param.hideLogo, hideLogo = _param_hideLogo === void 0 ? false : _param_hideLogo, onBack = param.onBack;
12741
12741
  var router = (0, import_navigation.useRouter)();
12742
12742
  var handleBack = function() {
12743
12743
  if (onBack) {
@@ -12749,7 +12749,8 @@ var State2 = function(param) {
12749
12749
  var IconComponent2 = icon ? function() {
12750
12750
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Icon, {
12751
12751
  component: icon,
12752
- size: "4xl"
12752
+ size: "4xl",
12753
+ className: iconClassName
12753
12754
  });
12754
12755
  } : function() {
12755
12756
  return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", {
@@ -12757,7 +12758,7 @@ var State2 = function(param) {
12757
12758
  children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Image2, {
12758
12759
  src: logo || stateIconUrls[variant],
12759
12760
  alt: "state icon",
12760
- className: "w-full h-full rounded-full object-cover"
12761
+ className: cn("w-full h-full rounded-full object-cover", logoClassName)
12761
12762
  })
12762
12763
  });
12763
12764
  };
@@ -12776,11 +12777,13 @@ var State2 = function(param) {
12776
12777
  children: [
12777
12778
  title && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Display, {
12778
12779
  size: "sm",
12780
+ className: titleClassName,
12779
12781
  children: title
12780
12782
  }),
12781
12783
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Text, {
12782
12784
  size: "sm",
12783
12785
  color: "subtle",
12786
+ className: descriptionClassName,
12784
12787
  children: description
12785
12788
  })
12786
12789
  ]