myshell-react-lib 0.2.7 → 0.2.9

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
@@ -4201,6 +4201,9 @@ __export(index_exports, {
4201
4201
  ContextMenuTrigger: function() {
4202
4202
  return ContextMenuTrigger;
4203
4203
  },
4204
+ DataEmptyState: function() {
4205
+ return DataEmptyState;
4206
+ },
4204
4207
  Description: function() {
4205
4208
  return Description;
4206
4209
  },
@@ -4351,6 +4354,9 @@ __export(index_exports, {
4351
4354
  Image: function() {
4352
4355
  return Image2;
4353
4356
  },
4357
+ ImgEmptyState: function() {
4358
+ return ImgEmptyState;
4359
+ },
4354
4360
  Input: function() {
4355
4361
  return Input;
4356
4362
  },
@@ -4453,9 +4459,6 @@ __export(index_exports, {
4453
4459
  NoPageState: function() {
4454
4460
  return NoPageState;
4455
4461
  },
4456
- NotFoundState: function() {
4457
- return NotFoundState;
4458
- },
4459
4462
  NumberInput: function() {
4460
4463
  return NumberInput;
4461
4464
  },
@@ -4498,6 +4501,9 @@ __export(index_exports, {
4498
4501
  SearchBar: function() {
4499
4502
  return SearchBar;
4500
4503
  },
4504
+ SearchEmptyState: function() {
4505
+ return SearchEmptyState;
4506
+ },
4501
4507
  Select: function() {
4502
4508
  return Select;
4503
4509
  },
@@ -4663,6 +4669,9 @@ __export(index_exports, {
4663
4669
  TopNavigationBar: function() {
4664
4670
  return TopNavigationBar;
4665
4671
  },
4672
+ WalletEmptyState: function() {
4673
+ return WalletEmptyState;
4674
+ },
4666
4675
  buttonVariants: function() {
4667
4676
  return buttonVariants;
4668
4677
  },
@@ -11856,13 +11865,14 @@ var import_lucide_react14 = require("lucide-react");
11856
11865
  var React37 = __toESM(require("react"), 1);
11857
11866
  var import_jsx_runtime49 = require("react/jsx-runtime");
11858
11867
  var Select = React37.forwardRef(function(_param, ref) {
11859
- var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, contentClassName = _param.contentClassName, side = _param.side, _param_variant = _param.variant, variant = _param_variant === void 0 ? "input" : _param_variant, props = _object_without_properties(_param, [
11868
+ var children = _param.children, placeholder = _param.placeholder, options = _param.options, triggerClassName = _param.triggerClassName, contentClassName = _param.contentClassName, side = _param.side, _param_size = _param.size, size = _param_size === void 0 ? "lg" : _param_size, _param_variant = _param.variant, variant = _param_variant === void 0 ? "input" : _param_variant, props = _object_without_properties(_param, [
11860
11869
  "children",
11861
11870
  "placeholder",
11862
11871
  "options",
11863
11872
  "triggerClassName",
11864
11873
  "contentClassName",
11865
11874
  "side",
11875
+ "size",
11866
11876
  "variant"
11867
11877
  ]);
11868
11878
  var _options_find;
@@ -11875,6 +11885,7 @@ var Select = React37.forwardRef(function(_param, ref) {
11875
11885
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectTrigger, {
11876
11886
  className: triggerClassName,
11877
11887
  isButtonVariant: variant === "button",
11888
+ size: size,
11878
11889
  children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", {
11879
11890
  className: "flex items-center space-x-2",
11880
11891
  children: [
@@ -11908,17 +11919,18 @@ var Select = React37.forwardRef(function(_param, ref) {
11908
11919
  var SelectGroup = SelectPrimitive.Group;
11909
11920
  var SelectValue = SelectPrimitive.Value;
11910
11921
  var SelectTrigger = React37.forwardRef(function(_param, ref) {
11911
- var className = _param.className, children = _param.children, isButtonVariant = _param.isButtonVariant, props = _object_without_properties(_param, [
11922
+ var className = _param.className, children = _param.children, isButtonVariant = _param.isButtonVariant, size = _param.size, props = _object_without_properties(_param, [
11912
11923
  "className",
11913
11924
  "children",
11914
- "isButtonVariant"
11925
+ "isButtonVariant",
11926
+ "size"
11915
11927
  ]);
11916
11928
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
11917
11929
  ref: ref,
11918
- className: cn("flex h-7 md:h-10 w-full items-center justify-between rounded-sm border border-transparent hover:border-cc-Input-border-default bg-cc-Input-bg-default text-Colors-Text-Default text-sm p-3 focus:shadow-cc-Focus-Rings-Brand-default placeholder:text-Colors-Text-Subtlest focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-30 [&>span]:line-clamp-1 [&>.select-chevron]:aria-expanded:rotate-180 space-x-1.5", isButtonVariant && buttonVariants({
11930
+ className: cn("flex w-full items-center justify-between rounded-sm border border-transparent hover:border-cc-Input-border-default bg-cc-Input-bg-default text-Colors-Text-Default text-sm p-3 focus:shadow-cc-Focus-Rings-Brand-default placeholder:text-Colors-Text-Subtlest focus:outline-none focus:ring-0 focus:ring-offset-0 disabled:cursor-not-allowed disabled:opacity-30 [&>span]:line-clamp-1 [&>.select-chevron]:aria-expanded:rotate-180 space-x-1.5", isButtonVariant && buttonVariants({
11919
11931
  variant: "ghost",
11920
- size: "lg"
11921
- }), isButtonVariant && "w-auto min-w-max inline-flex px-4", className)
11932
+ size: size
11933
+ }), isButtonVariant && "w-auto min-w-max inline-flex px-4", size === "sm" && "h-7", size === "md" && "h-9", size === "lg" && "h-11", className)
11922
11934
  }, props), {
11923
11935
  children: [
11924
11936
  children,
@@ -13560,10 +13572,13 @@ function Chips(props) {
13560
13572
  var import_navigation = require("next/navigation");
13561
13573
  var import_jsx_runtime61 = require("react/jsx-runtime");
13562
13574
  var stateIconUrls = {
13563
- "not-found": "https://myshellstatic.com/image/website/20250425/page-no-results.png",
13564
- "no-page": "https://myshellstatic.com/image/website/20250425/page-not-found.png",
13565
- error: "https://myshellstatic.com/image/website/20250425/error.png",
13566
- "network-error": "https://myshellstatic.com/image/website/20250425/network-error.png"
13575
+ "wallet-empty": "".concat(getAssetsUrl("image/website/20250603/wallet-empty.png")),
13576
+ "data-empty": "".concat(getAssetsUrl("image/website/20250603/data-list-empty.png")),
13577
+ "img-empty": "".concat(getAssetsUrl("image/website/20250603/img-list-empty.png")),
13578
+ "search-empty": "".concat(getAssetsUrl("image/website/20250603/search-empty.png")),
13579
+ "no-page": "".concat(getAssetsUrl("image/website/20250425/page-not-found.png")),
13580
+ error: "".concat(getAssetsUrl("image/website/20250425/error.png")),
13581
+ "network-error": "".concat(getAssetsUrl("image/website/20250425/network-error.png"))
13567
13582
  };
13568
13583
  var State2 = function(param) {
13569
13584
  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;
@@ -13583,7 +13598,7 @@ var State2 = function(param) {
13583
13598
  });
13584
13599
  } : function() {
13585
13600
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
13586
- className: "w-[146px] md:w-[220px] h-[146px] md:h-[220px] rounded-full object-cover",
13601
+ className: cn(" rounded-full object-cover", variant === "error" || variant === "no-page" || variant === "network-error" ? "w-[146px] md:w-[220px] h-[146px] md:h-[220px]" : "w-[96px] md:w-[56px] h-[96px] md:h-[56px]"),
13587
13602
  children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Image2, {
13588
13603
  src: logo || stateIconUrls[variant],
13589
13604
  alt: "state icon",
@@ -13592,10 +13607,7 @@ var State2 = function(param) {
13592
13607
  });
13593
13608
  };
13594
13609
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", {
13595
- className: cn("flex flex-col items-center", className, {
13596
- "space-y-6": !icon,
13597
- "space-y-3": icon
13598
- }),
13610
+ className: cn("flex flex-col items-center space-y-3", className),
13599
13611
  children: [
13600
13612
  !hideLogo && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(IconComponent2, {}),
13601
13613
  /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", {
@@ -13611,7 +13623,7 @@ var State2 = function(param) {
13611
13623
  }),
13612
13624
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, {
13613
13625
  size: "sm",
13614
- color: icon ? "subtlest" : "subtle",
13626
+ color: backBtnText ? "subtle" : "subtlest",
13615
13627
  className: descriptionClassName,
13616
13628
  children: description
13617
13629
  })
@@ -13637,9 +13649,24 @@ var NetworkErrorState = function(args) {
13637
13649
  variant: "network-error"
13638
13650
  }));
13639
13651
  };
13640
- var NotFoundState = function(args) {
13652
+ var WalletEmptyState = function(args) {
13653
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13654
+ variant: "wallet-empty"
13655
+ }));
13656
+ };
13657
+ var DataEmptyState = function(args) {
13658
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13659
+ variant: "data-empty"
13660
+ }));
13661
+ };
13662
+ var ImgEmptyState = function(args) {
13663
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13664
+ variant: "img-empty"
13665
+ }));
13666
+ };
13667
+ var SearchEmptyState = function(args) {
13641
13668
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13642
- variant: "not-found"
13669
+ variant: "search-empty"
13643
13670
  }));
13644
13671
  };
13645
13672
  var NoPageState = function(args) {
@@ -14493,6 +14520,7 @@ var Message = /*#__PURE__*/ function() {
14493
14520
  ContextMenuSubContent: ContextMenuSubContent,
14494
14521
  ContextMenuSubTrigger: ContextMenuSubTrigger,
14495
14522
  ContextMenuTrigger: ContextMenuTrigger,
14523
+ DataEmptyState: DataEmptyState,
14496
14524
  Description: Description,
14497
14525
  Dialog: Dialog,
14498
14526
  DialogClose: DialogClose,
@@ -14543,6 +14571,7 @@ var Message = /*#__PURE__*/ function() {
14543
14571
  Icon: Icon,
14544
14572
  IconButton: IconButton,
14545
14573
  Image: Image,
14574
+ ImgEmptyState: ImgEmptyState,
14546
14575
  Input: Input,
14547
14576
  Label: Label,
14548
14577
  Link: Link,
@@ -14577,7 +14606,6 @@ var Message = /*#__PURE__*/ function() {
14577
14606
  MultipleSelector: MultipleSelector,
14578
14607
  NetworkErrorState: NetworkErrorState,
14579
14608
  NoPageState: NoPageState,
14580
- NotFoundState: NotFoundState,
14581
14609
  NumberInput: NumberInput,
14582
14610
  Paragraph: Paragraph,
14583
14611
  Popover: Popover,
@@ -14592,6 +14620,7 @@ var Message = /*#__PURE__*/ function() {
14592
14620
  ScrollArea: ScrollArea,
14593
14621
  ScrollBar: ScrollBar,
14594
14622
  SearchBar: SearchBar,
14623
+ SearchEmptyState: SearchEmptyState,
14595
14624
  Select: Select,
14596
14625
  SelectContent: SelectContent,
14597
14626
  SelectGroup: SelectGroup,
@@ -14647,6 +14676,7 @@ var Message = /*#__PURE__*/ function() {
14647
14676
  Tooltip: Tooltip,
14648
14677
  TooltipProvider: TooltipProvider,
14649
14678
  TopNavigationBar: TopNavigationBar,
14679
+ WalletEmptyState: WalletEmptyState,
14650
14680
  buttonVariants: buttonVariants,
14651
14681
  dangerouText: dangerouText,
14652
14682
  iconButtonVariants: iconButtonVariants,