myshell-react-lib 0.1.42 → 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.d.cts CHANGED
@@ -1323,8 +1323,7 @@ interface ChipsProps extends VariantProps<typeof chipsVariants> {
1323
1323
  declare function Chips(props: ChipsProps): react_jsx_runtime.JSX.Element;
1324
1324
 
1325
1325
  type StateVariant = 'not-found' | 'no-page' | 'error' | 'network-error';
1326
- interface StateProps {
1327
- variant: StateVariant;
1326
+ interface BaseStateProps {
1328
1327
  title?: string;
1329
1328
  description?: string;
1330
1329
  className?: string;
@@ -1333,12 +1332,19 @@ interface StateProps {
1333
1332
  hideLogo?: boolean;
1334
1333
  icon?: React.ElementType;
1335
1334
  onBack?: () => void;
1335
+ iconClassName?: string;
1336
+ logoClassName?: string;
1337
+ titleClassName?: string;
1338
+ descriptionClassName?: string;
1339
+ }
1340
+ interface StateProps extends BaseStateProps {
1341
+ variant: StateVariant;
1336
1342
  }
1337
- declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1338
- declare const ErrorState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1339
- declare const NetworkErrorState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1340
- declare const NotFoundState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1341
- declare const NoPageState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1343
+ declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1344
+ declare const ErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1345
+ declare const NetworkErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1346
+ declare const NotFoundState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1347
+ declare const NoPageState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1342
1348
 
1343
1349
  declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
1344
1350
  interface ToastViewportProps extends React$1.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> {
package/dist/index.d.ts CHANGED
@@ -1323,8 +1323,7 @@ interface ChipsProps extends VariantProps<typeof chipsVariants> {
1323
1323
  declare function Chips(props: ChipsProps): react_jsx_runtime.JSX.Element;
1324
1324
 
1325
1325
  type StateVariant = 'not-found' | 'no-page' | 'error' | 'network-error';
1326
- interface StateProps {
1327
- variant: StateVariant;
1326
+ interface BaseStateProps {
1328
1327
  title?: string;
1329
1328
  description?: string;
1330
1329
  className?: string;
@@ -1333,12 +1332,19 @@ interface StateProps {
1333
1332
  hideLogo?: boolean;
1334
1333
  icon?: React.ElementType;
1335
1334
  onBack?: () => void;
1335
+ iconClassName?: string;
1336
+ logoClassName?: string;
1337
+ titleClassName?: string;
1338
+ descriptionClassName?: string;
1339
+ }
1340
+ interface StateProps extends BaseStateProps {
1341
+ variant: StateVariant;
1336
1342
  }
1337
- declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1338
- declare const ErrorState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1339
- declare const NetworkErrorState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1340
- declare const NotFoundState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1341
- declare const NoPageState: (args: StateProps) => react_jsx_runtime.JSX.Element;
1343
+ declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1344
+ declare const ErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1345
+ declare const NetworkErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1346
+ declare const NotFoundState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1347
+ declare const NoPageState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1342
1348
 
1343
1349
  declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
1344
1350
  interface ToastViewportProps extends React$1.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport> {
package/dist/index.js CHANGED
@@ -8119,7 +8119,7 @@ function ModalFooter(_param) {
8119
8119
  "children"
8120
8120
  ]);
8121
8121
  return /* @__PURE__ */ jsx34("div", _object_spread_props(_object_spread({
8122
- className: cn("border-t border-Colors-Border-Default flex justify-end p-4", className)
8122
+ className: cn("border-t border-Colors-Border-Default flex justify-end px-4 pt-3 pb-1.5", className)
8123
8123
  }, props), {
8124
8124
  children: children
8125
8125
  }));
@@ -11436,7 +11436,7 @@ var tabListVariants = cva17("w-full relative inline-flex items-center overflow-h
11436
11436
  },
11437
11437
  variant: {
11438
11438
  button: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5",
11439
- underline: "justify-start border-b border-Colors-Border-Default space-x-6 rounded-none",
11439
+ 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)]',
11440
11440
  icon: "justify-center border border-Colors-Border-Default bg-cc-Tabbar-bg-default text-cc-Tabbar-fg-default p-0.5"
11441
11441
  },
11442
11442
  rounded: {
@@ -11507,7 +11507,7 @@ var tabListVariants = cva17("w-full relative inline-flex items-center overflow-h
11507
11507
  rounded: "default"
11508
11508
  }
11509
11509
  });
11510
- var tabVariants = cva17("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", {
11510
+ var tabVariants = cva17("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", {
11511
11511
  variants: {
11512
11512
  size: {
11513
11513
  sm: "text-xs h-4.5",
@@ -11516,7 +11516,7 @@ var tabVariants = cva17("relative inline-flex h-full items-center overflow-hidde
11516
11516
  },
11517
11517
  variant: {
11518
11518
  button: "w-full px-3 py-2.5 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default",
11519
- underline: "w-fit justify-start shadow-none aria-[selected=true]:border-cc-Tabbar-border-default aria-[selected=true]:border-b-2 rounded-none",
11519
+ 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',
11520
11520
  icon: "w-full px-4 justify-center aria-[selected=true]:bg-cc-Tabbar-bg-select aria-[selected=true]:shadow-background-default"
11521
11521
  },
11522
11522
  rounded: {
@@ -11563,7 +11563,7 @@ var tabVariants = cva17("relative inline-flex h-full items-center overflow-hidde
11563
11563
  {
11564
11564
  variant: "underline",
11565
11565
  size: "lg",
11566
- className: "h-[31px]"
11566
+ className: "h-8"
11567
11567
  }
11568
11568
  ],
11569
11569
  defaultVariants: {
@@ -11669,7 +11669,7 @@ var Tab = React35.forwardRef(function(_param, ref) {
11669
11669
  })
11670
11670
  ]
11671
11671
  }) : /* @__PURE__ */ jsxs29("div", {
11672
- className: "relative flex justify-center items-center",
11672
+ className: cn("relative flex justify-center items-center", variant === "underline" && "pb-2"),
11673
11673
  children: [
11674
11674
  label && /* @__PURE__ */ jsx50("span", {
11675
11675
  className: cn("text-inherit"),
@@ -11996,7 +11996,7 @@ var stateIconUrls = {
11996
11996
  "network-error": "https://myshellstatic.com/image/website/20250425/network-error.png"
11997
11997
  };
11998
11998
  var State2 = function(param) {
11999
- 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;
11999
+ 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;
12000
12000
  var router = useRouter();
12001
12001
  var handleBack = function() {
12002
12002
  if (onBack) {
@@ -12008,7 +12008,8 @@ var State2 = function(param) {
12008
12008
  var IconComponent2 = icon ? function() {
12009
12009
  return /* @__PURE__ */ jsx56(Icon, {
12010
12010
  component: icon,
12011
- size: "4xl"
12011
+ size: "4xl",
12012
+ className: iconClassName
12012
12013
  });
12013
12014
  } : function() {
12014
12015
  return /* @__PURE__ */ jsx56("div", {
@@ -12016,7 +12017,7 @@ var State2 = function(param) {
12016
12017
  children: /* @__PURE__ */ jsx56(Image2, {
12017
12018
  src: logo || stateIconUrls[variant],
12018
12019
  alt: "state icon",
12019
- className: "w-full h-full rounded-full object-cover"
12020
+ className: cn("w-full h-full rounded-full object-cover", logoClassName)
12020
12021
  })
12021
12022
  });
12022
12023
  };
@@ -12035,11 +12036,13 @@ var State2 = function(param) {
12035
12036
  children: [
12036
12037
  title && /* @__PURE__ */ jsx56(Display, {
12037
12038
  size: "sm",
12039
+ className: titleClassName,
12038
12040
  children: title
12039
12041
  }),
12040
12042
  /* @__PURE__ */ jsx56(Text, {
12041
12043
  size: "sm",
12042
12044
  color: "subtle",
12045
+ className: descriptionClassName,
12043
12046
  children: description
12044
12047
  })
12045
12048
  ]