myshell-react-lib 0.2.6 → 0.2.8

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
  },
@@ -4447,15 +4453,9 @@ __export(index_exports, {
4447
4453
  MultipleSelector: function() {
4448
4454
  return MultipleSelector;
4449
4455
  },
4450
- NetworkErrorState: function() {
4451
- return NetworkErrorState;
4452
- },
4453
4456
  NoPageState: function() {
4454
4457
  return NoPageState;
4455
4458
  },
4456
- NotFoundState: function() {
4457
- return NotFoundState;
4458
- },
4459
4459
  NumberInput: function() {
4460
4460
  return NumberInput;
4461
4461
  },
@@ -4498,6 +4498,9 @@ __export(index_exports, {
4498
4498
  SearchBar: function() {
4499
4499
  return SearchBar;
4500
4500
  },
4501
+ SearchEmptyState: function() {
4502
+ return SearchEmptyState;
4503
+ },
4501
4504
  Select: function() {
4502
4505
  return Select;
4503
4506
  },
@@ -4663,6 +4666,9 @@ __export(index_exports, {
4663
4666
  TopNavigationBar: function() {
4664
4667
  return TopNavigationBar;
4665
4668
  },
4669
+ WalletEmptyState: function() {
4670
+ return WalletEmptyState;
4671
+ },
4666
4672
  buttonVariants: function() {
4667
4673
  return buttonVariants;
4668
4674
  },
@@ -6621,12 +6627,12 @@ function createIconButtonWithVariant(props, ref) {
6621
6627
  ref: ref,
6622
6628
  disabled: disable
6623
6629
  }, passProps), {
6624
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, {
6625
- component: import_lucide_react2.Loader2,
6630
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_lucide_react2.Loader2, {
6631
+ strokeWidth: 1.5,
6626
6632
  className: cn("animate-spin", iconCls)
6627
- }) : IconEle ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Icon, {
6628
- component: IconEle,
6629
- className: iconCls
6633
+ }) : IconEle ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(IconEle, {
6634
+ className: iconCls,
6635
+ strokeWidth: 1.5
6630
6636
  }) : React14.isValidElement(children) ? React14.cloneElement(children, {
6631
6637
  className: cn(iconCls, children.props.className)
6632
6638
  }) : null
@@ -11856,25 +11862,28 @@ var import_lucide_react14 = require("lucide-react");
11856
11862
  var React37 = __toESM(require("react"), 1);
11857
11863
  var import_jsx_runtime49 = require("react/jsx-runtime");
11858
11864
  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, [
11865
+ 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
11866
  "children",
11861
11867
  "placeholder",
11862
11868
  "options",
11863
11869
  "triggerClassName",
11864
11870
  "contentClassName",
11865
11871
  "side",
11872
+ "size",
11866
11873
  "variant"
11867
11874
  ]);
11868
11875
  var _options_find;
11869
11876
  var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
11870
11877
  return item.value === props.value;
11871
11878
  })) === null || _options_find === void 0 ? void 0 : _options_find.icon;
11879
+ console.log("size", size);
11872
11880
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
11873
11881
  children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, {
11874
11882
  children: [
11875
11883
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectTrigger, {
11876
11884
  className: triggerClassName,
11877
11885
  isButtonVariant: variant === "button",
11886
+ size: size,
11878
11887
  children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", {
11879
11888
  className: "flex items-center space-x-2",
11880
11889
  children: [
@@ -11908,17 +11917,18 @@ var Select = React37.forwardRef(function(_param, ref) {
11908
11917
  var SelectGroup = SelectPrimitive.Group;
11909
11918
  var SelectValue = SelectPrimitive.Value;
11910
11919
  var SelectTrigger = React37.forwardRef(function(_param, ref) {
11911
- var className = _param.className, children = _param.children, isButtonVariant = _param.isButtonVariant, props = _object_without_properties(_param, [
11920
+ var className = _param.className, children = _param.children, isButtonVariant = _param.isButtonVariant, size = _param.size, props = _object_without_properties(_param, [
11912
11921
  "className",
11913
11922
  "children",
11914
- "isButtonVariant"
11923
+ "isButtonVariant",
11924
+ "size"
11915
11925
  ]);
11916
11926
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(SelectPrimitive.Trigger, _object_spread_props(_object_spread({
11917
11927
  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({
11928
+ 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
11929
  variant: "ghost",
11920
- size: "lg"
11921
- }), isButtonVariant && "w-auto min-w-max inline-flex px-4", className)
11930
+ size: size
11931
+ }), isButtonVariant && "w-auto min-w-max inline-flex px-4", size === "sm" && "h-7", size === "md" && "h-9", size === "lg" && "h-11", className)
11922
11932
  }, props), {
11923
11933
  children: [
11924
11934
  children,
@@ -13560,10 +13570,12 @@ function Chips(props) {
13560
13570
  var import_navigation = require("next/navigation");
13561
13571
  var import_jsx_runtime61 = require("react/jsx-runtime");
13562
13572
  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"
13573
+ "wallet-empty": "".concat(getAssetsUrl("image/website/20250603/wallet-empty.png")),
13574
+ "data-empty": "".concat(getAssetsUrl("image/website/20250603/data-list-empty.png")),
13575
+ "img-empty": "".concat(getAssetsUrl("image/website/20250603/img-list-empty.png")),
13576
+ "search-empty": "".concat(getAssetsUrl("image/website/20250603/search-empty.png")),
13577
+ "no-page": "".concat(getAssetsUrl("image/website/20250425/page-not-found.png")),
13578
+ error: "".concat(getAssetsUrl("image/website/20250425/network-error.png"))
13567
13579
  };
13568
13580
  var State2 = function(param) {
13569
13581
  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 +13595,7 @@ var State2 = function(param) {
13583
13595
  });
13584
13596
  } : function() {
13585
13597
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
13586
- className: "w-[146px] md:w-[220px] h-[146px] md:h-[220px] rounded-full object-cover",
13598
+ className: cn(" rounded-full object-cover", variant === "error" || variant === "no-page" ? "w-[146px] md:w-[220px] h-[146px] md:h-[220px]" : "w-[96px] md:w-[56px] h-[96px] md:h-[56px]"),
13587
13599
  children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Image2, {
13588
13600
  src: logo || stateIconUrls[variant],
13589
13601
  alt: "state icon",
@@ -13592,10 +13604,7 @@ var State2 = function(param) {
13592
13604
  });
13593
13605
  };
13594
13606
  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
- }),
13607
+ className: cn("flex flex-col items-center space-y-3", className),
13599
13608
  children: [
13600
13609
  !hideLogo && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(IconComponent2, {}),
13601
13610
  /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", {
@@ -13611,7 +13620,7 @@ var State2 = function(param) {
13611
13620
  }),
13612
13621
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, {
13613
13622
  size: "sm",
13614
- color: icon ? "subtlest" : "subtle",
13623
+ color: backBtnText ? "subtle" : "subtlest",
13615
13624
  className: descriptionClassName,
13616
13625
  children: description
13617
13626
  })
@@ -13632,14 +13641,24 @@ var ErrorState = function(args) {
13632
13641
  variant: "error"
13633
13642
  }));
13634
13643
  };
13635
- var NetworkErrorState = function(args) {
13644
+ var WalletEmptyState = function(args) {
13645
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13646
+ variant: "wallet-empty"
13647
+ }));
13648
+ };
13649
+ var DataEmptyState = function(args) {
13650
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13651
+ variant: "data-empty"
13652
+ }));
13653
+ };
13654
+ var ImgEmptyState = function(args) {
13636
13655
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13637
- variant: "network-error"
13656
+ variant: "img-empty"
13638
13657
  }));
13639
13658
  };
13640
- var NotFoundState = function(args) {
13659
+ var SearchEmptyState = function(args) {
13641
13660
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
13642
- variant: "not-found"
13661
+ variant: "search-empty"
13643
13662
  }));
13644
13663
  };
13645
13664
  var NoPageState = function(args) {
@@ -14493,6 +14512,7 @@ var Message = /*#__PURE__*/ function() {
14493
14512
  ContextMenuSubContent: ContextMenuSubContent,
14494
14513
  ContextMenuSubTrigger: ContextMenuSubTrigger,
14495
14514
  ContextMenuTrigger: ContextMenuTrigger,
14515
+ DataEmptyState: DataEmptyState,
14496
14516
  Description: Description,
14497
14517
  Dialog: Dialog,
14498
14518
  DialogClose: DialogClose,
@@ -14543,6 +14563,7 @@ var Message = /*#__PURE__*/ function() {
14543
14563
  Icon: Icon,
14544
14564
  IconButton: IconButton,
14545
14565
  Image: Image,
14566
+ ImgEmptyState: ImgEmptyState,
14546
14567
  Input: Input,
14547
14568
  Label: Label,
14548
14569
  Link: Link,
@@ -14575,9 +14596,7 @@ var Message = /*#__PURE__*/ function() {
14575
14596
  ModalRoot: ModalRoot,
14576
14597
  ModalTitle: ModalTitle,
14577
14598
  MultipleSelector: MultipleSelector,
14578
- NetworkErrorState: NetworkErrorState,
14579
14599
  NoPageState: NoPageState,
14580
- NotFoundState: NotFoundState,
14581
14600
  NumberInput: NumberInput,
14582
14601
  Paragraph: Paragraph,
14583
14602
  Popover: Popover,
@@ -14592,6 +14611,7 @@ var Message = /*#__PURE__*/ function() {
14592
14611
  ScrollArea: ScrollArea,
14593
14612
  ScrollBar: ScrollBar,
14594
14613
  SearchBar: SearchBar,
14614
+ SearchEmptyState: SearchEmptyState,
14595
14615
  Select: Select,
14596
14616
  SelectContent: SelectContent,
14597
14617
  SelectGroup: SelectGroup,
@@ -14647,6 +14667,7 @@ var Message = /*#__PURE__*/ function() {
14647
14667
  Tooltip: Tooltip,
14648
14668
  TooltipProvider: TooltipProvider,
14649
14669
  TopNavigationBar: TopNavigationBar,
14670
+ WalletEmptyState: WalletEmptyState,
14650
14671
  buttonVariants: buttonVariants,
14651
14672
  dangerouText: dangerouText,
14652
14673
  iconButtonVariants: iconButtonVariants,