myshell-react-lib 0.2.23 → 0.2.24

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
@@ -1508,11 +1508,12 @@ interface BaseStateProps {
1508
1508
  logoClassName?: string;
1509
1509
  titleClassName?: string;
1510
1510
  descriptionClassName?: string;
1511
+ children?: React.ReactNode;
1511
1512
  }
1512
1513
  interface StateProps extends BaseStateProps {
1513
1514
  variant: EmptyStateVariant | ErrorStateVariant;
1514
1515
  }
1515
- declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1516
+ declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, children, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1516
1517
  declare const ErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1517
1518
  declare const NetworkErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1518
1519
  declare const WalletEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1508,11 +1508,12 @@ interface BaseStateProps {
1508
1508
  logoClassName?: string;
1509
1509
  titleClassName?: string;
1510
1510
  descriptionClassName?: string;
1511
+ children?: React.ReactNode;
1511
1512
  }
1512
1513
  interface StateProps extends BaseStateProps {
1513
1514
  variant: EmptyStateVariant | ErrorStateVariant;
1514
1515
  }
1515
- declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1516
+ declare const State$1: ({ variant, title, description, className, icon, logo, backBtnText, iconClassName, logoClassName, titleClassName, descriptionClassName, hideLogo, children, onBack, }: StateProps) => react_jsx_runtime.JSX.Element;
1516
1517
  declare const ErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1517
1518
  declare const NetworkErrorState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
1518
1519
  declare const WalletEmptyState: (args: BaseStateProps) => react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -15181,7 +15181,7 @@ var iconsMap = {
15181
15181
  "network-error": NetworkErrorIcon
15182
15182
  };
15183
15183
  var State2 = function(param) {
15184
- 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;
15184
+ 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, children = param.children, onBack = param.onBack;
15185
15185
  var router = useRouter();
15186
15186
  var handleBack = function() {
15187
15187
  if (onBack) {
@@ -15225,12 +15225,13 @@ var State2 = function(param) {
15225
15225
  className: titleClassName,
15226
15226
  children: title
15227
15227
  }),
15228
- /* @__PURE__ */ jsx66(Text, {
15228
+ description && /* @__PURE__ */ jsx66(Text, {
15229
15229
  size: "sm",
15230
15230
  color: backBtnText ? "subtle" : "subtlest",
15231
15231
  className: descriptionClassName,
15232
15232
  children: description
15233
- })
15233
+ }),
15234
+ children
15234
15235
  ]
15235
15236
  }),
15236
15237
  backBtnText && /* @__PURE__ */ jsx66(Button, {