@lark-apaas/client-toolkit 1.0.15 → 1.0.17
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
import { Popover, PopoverContent, PopoverTrigger } from "../ui/popover.js";
|
|
4
4
|
import { getCsrfToken } from "../../utils/getCsrfToken.js";
|
|
@@ -17,7 +17,7 @@ const Component = ()=>{
|
|
|
17
17
|
setIsInternetVisible(data?.data?.is_internet_visible);
|
|
18
18
|
});
|
|
19
19
|
}, []);
|
|
20
|
-
if (!userinfo
|
|
20
|
+
if (!userinfo) return null;
|
|
21
21
|
return /*#__PURE__*/ jsxs(Popover, {
|
|
22
22
|
open: open,
|
|
23
23
|
onOpenChange: setOpen,
|
|
@@ -41,7 +41,7 @@ const Component = ()=>{
|
|
|
41
41
|
})
|
|
42
42
|
}),
|
|
43
43
|
/*#__PURE__*/ jsxs(PopoverContent, {
|
|
44
|
-
className: "w-80 pt-2 bg-white rounded-xl shadow-[0px_10px_36px_10px_rgba(31,35,41,0.04)] shadow-[0px_8px_24px_0px_rgba(31,35,41,0.04)] shadow-[0px_6px_12px_-10px_rgba(31,35,41,0.06)] outline outline-[0.50px] outline-offset-[-0.50px] outline-
|
|
44
|
+
className: "w-80 pt-2 bg-white rounded-xl shadow-[0px_10px_36px_10px_rgba(31,35,41,0.04)] shadow-[0px_8px_24px_0px_rgba(31,35,41,0.04)] shadow-[0px_6px_12px_-10px_rgba(31,35,41,0.06)] outline outline-[0.50px] outline-offset-[-0.50px] outline-[#DEE0E3] inline-flex flex-col justify-center items-start overflow-hidden p-0",
|
|
45
45
|
side: "top",
|
|
46
46
|
align: "end",
|
|
47
47
|
sideOffset: 8,
|
|
@@ -51,39 +51,43 @@ const Component = ()=>{
|
|
|
51
51
|
/*#__PURE__*/ jsxs("div", {
|
|
52
52
|
className: "self-stretch px-2 pt-2 pb-1 flex flex-col justify-start items-start gap-1",
|
|
53
53
|
children: [
|
|
54
|
-
/*#__PURE__*/
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
className: "flex-1 flex justify-start items-center gap-1",
|
|
54
|
+
isInternetVisible && /*#__PURE__*/ jsxs(Fragment, {
|
|
55
|
+
children: [
|
|
56
|
+
/*#__PURE__*/ jsx("div", {
|
|
57
|
+
className: "self-stretch h-10 p-3 bg-token-bg-body rounded-lg flex flex-col justify-center items-start gap-2.5",
|
|
58
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
59
|
+
className: "self-stretch inline-flex justify-start items-center gap-2",
|
|
61
60
|
children: [
|
|
62
|
-
/*#__PURE__*/
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
/*#__PURE__*/ jsxs("div", {
|
|
62
|
+
className: "flex-1 flex justify-start items-center gap-1",
|
|
63
|
+
children: [
|
|
64
|
+
/*#__PURE__*/ jsx("img", {
|
|
65
|
+
src: "https://lf3-static.bytednsdoc.com/obj/eden-cn/LMfspH/ljhwZthlaukjlkulzlp/logo/icon_company_outlined.svg",
|
|
66
|
+
className: "shrink-0 w-[14px] h-[14px]"
|
|
67
|
+
}),
|
|
68
|
+
/*#__PURE__*/ jsx("div", {
|
|
69
|
+
className: "flex-1 justify-start text-token-icon-n1 text-sm font-normal font-['PingFang_SC'] leading-5",
|
|
70
|
+
children: "运营方"
|
|
71
|
+
})
|
|
72
|
+
]
|
|
65
73
|
}),
|
|
66
74
|
/*#__PURE__*/ jsx("div", {
|
|
67
|
-
className: "flex
|
|
68
|
-
children: "
|
|
75
|
+
className: "flex justify-start items-center gap-1 overflow-hidden",
|
|
76
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
77
|
+
className: "justify-start text-token-text-caption text-sm font-normal font-['PingFang_SC'] leading-5",
|
|
78
|
+
children: userinfo?.name
|
|
79
|
+
})
|
|
69
80
|
})
|
|
70
81
|
]
|
|
71
|
-
}),
|
|
72
|
-
/*#__PURE__*/ jsx("div", {
|
|
73
|
-
className: "flex justify-start items-center gap-1 overflow-hidden",
|
|
74
|
-
children: /*#__PURE__*/ jsx("div", {
|
|
75
|
-
className: "justify-start text-token-text-caption text-sm font-normal font-['PingFang_SC'] leading-5",
|
|
76
|
-
children: userinfo?.name
|
|
77
|
-
})
|
|
78
82
|
})
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
}),
|
|
84
|
+
/*#__PURE__*/ jsx("div", {
|
|
85
|
+
className: "self-stretch px-2 flex flex-col justify-start items-start gap-2.5",
|
|
86
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
87
|
+
className: "self-stretch h-0 outline outline-[0.50px] outline-offset-[-0.25px] outline-[rgba(31,35,41,0.15)]"
|
|
88
|
+
})
|
|
89
|
+
})
|
|
90
|
+
]
|
|
87
91
|
}),
|
|
88
92
|
/*#__PURE__*/ jsx("div", {
|
|
89
93
|
className: "self-stretch h-10 p-3 bg-token-bg-body rounded-lg flex flex-col justify-center items-start gap-2.5 hover:bg-[var(--token-fill-hover,rgba(31,35,41,0.08))] cursor-pointer transition-colors",
|