myshell-react-lib 0.2.8 → 0.2.10
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 +12 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4453,6 +4453,9 @@ __export(index_exports, {
|
|
|
4453
4453
|
MultipleSelector: function() {
|
|
4454
4454
|
return MultipleSelector;
|
|
4455
4455
|
},
|
|
4456
|
+
NetworkErrorState: function() {
|
|
4457
|
+
return NetworkErrorState;
|
|
4458
|
+
},
|
|
4456
4459
|
NoPageState: function() {
|
|
4457
4460
|
return NoPageState;
|
|
4458
4461
|
},
|
|
@@ -11876,7 +11879,6 @@ var Select = React37.forwardRef(function(_param, ref) {
|
|
|
11876
11879
|
var icon = options === null || options === void 0 ? void 0 : (_options_find = options.find(function(item) {
|
|
11877
11880
|
return item.value === props.value;
|
|
11878
11881
|
})) === null || _options_find === void 0 ? void 0 : _options_find.icon;
|
|
11879
|
-
console.log("size", size);
|
|
11880
11882
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(SelectPrimitive.Root, _object_spread_props(_object_spread({}, props), {
|
|
11881
11883
|
children: Array.isArray(options) && options.length ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, {
|
|
11882
11884
|
children: [
|
|
@@ -13575,7 +13577,8 @@ var stateIconUrls = {
|
|
|
13575
13577
|
"img-empty": "".concat(getAssetsUrl("image/website/20250603/img-list-empty.png")),
|
|
13576
13578
|
"search-empty": "".concat(getAssetsUrl("image/website/20250603/search-empty.png")),
|
|
13577
13579
|
"no-page": "".concat(getAssetsUrl("image/website/20250425/page-not-found.png")),
|
|
13578
|
-
error: "".concat(getAssetsUrl("image/website/20250425/
|
|
13580
|
+
error: "".concat(getAssetsUrl("image/website/20250425/error.png")),
|
|
13581
|
+
"network-error": "".concat(getAssetsUrl("image/website/20250425/network-error.png"))
|
|
13579
13582
|
};
|
|
13580
13583
|
var State2 = function(param) {
|
|
13581
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;
|
|
@@ -13595,7 +13598,7 @@ var State2 = function(param) {
|
|
|
13595
13598
|
});
|
|
13596
13599
|
} : function() {
|
|
13597
13600
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", {
|
|
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]"),
|
|
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]"),
|
|
13599
13602
|
children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Image2, {
|
|
13600
13603
|
src: logo || stateIconUrls[variant],
|
|
13601
13604
|
alt: "state icon",
|
|
@@ -13641,6 +13644,11 @@ var ErrorState = function(args) {
|
|
|
13641
13644
|
variant: "error"
|
|
13642
13645
|
}));
|
|
13643
13646
|
};
|
|
13647
|
+
var NetworkErrorState = function(args) {
|
|
13648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
13649
|
+
variant: "network-error"
|
|
13650
|
+
}));
|
|
13651
|
+
};
|
|
13644
13652
|
var WalletEmptyState = function(args) {
|
|
13645
13653
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(State2, _object_spread_props(_object_spread({}, args), {
|
|
13646
13654
|
variant: "wallet-empty"
|
|
@@ -14596,6 +14604,7 @@ var Message = /*#__PURE__*/ function() {
|
|
|
14596
14604
|
ModalRoot: ModalRoot,
|
|
14597
14605
|
ModalTitle: ModalTitle,
|
|
14598
14606
|
MultipleSelector: MultipleSelector,
|
|
14607
|
+
NetworkErrorState: NetworkErrorState,
|
|
14599
14608
|
NoPageState: NoPageState,
|
|
14600
14609
|
NumberInput: NumberInput,
|
|
14601
14610
|
Paragraph: Paragraph,
|