@gearbox-protocol/permissionless-ui 1.22.0 → 1.22.1
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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),w=require("../../base-link/base-link.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),v=require("react"),w=require("../../base-link/base-link.cjs"),_=require("../../block-sync/block-sync.cjs"),u=require("../../../utils/cn.cjs"),k=require("../app-logo/app-logo.cjs"),F=require("../legal-disclaimer/legal-disclaimer.cjs"),L=require("../social-icons/social-icons.cjs");function S(s){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const t in s)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(s,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}return r.default=s,Object.freeze(r)}const p=S(v),g=p.forwardRef(({logo:s,copyright:r,social:t,version:a,secondaryInfo:o,legalLinks:n,containerClassName:i,className:l,children:x,mobileExtraContent:d,...c},m)=>e.jsx("footer",{ref:m,className:u.cn("relative w-full border-t bg-card border-border flex items-center justify-center",l),...c,children:e.jsxs("div",{className:u.cn("flex flex-col sm:flex-row sm:flex-nowrap justify-between items-center sm:items-start gap-4 sm:gap-0 py-6 w-full px-4",i),children:[e.jsxs("div",{className:"text-center sm:text-left text-sm text-muted-foreground w-full sm:w-auto",children:[s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex justify-center sm:justify-start",children:s}),e.jsx("div",{className:"h-2"})]}),r&&e.jsx("div",{children:r}),e.jsx("div",{className:"mt-4 flex flex-col items-center justify-center gap-2 sm:hidden",children:d})]}),e.jsxs("div",{className:"w-full sm:w-auto",children:[t&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"flex items-center justify-center sm:justify-end gap-2.5",children:t}),e.jsx("div",{className:"h-3"})]}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center sm:justify-end gap-2 text-sm text-muted-foreground",children:[a&&e.jsx("span",{children:a}),o&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),o]}),n&&e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),n]})]})]}),x]})}));g.displayName="Footer";function j({href:s,text:r,external:t=!1}){return e.jsx(w.BaseLink,{href:s,external:t,variant:"underlined",color:"secondary",size:"sm",children:r})}function f({title:s,links:r}){return e.jsxs("div",{className:"flex flex-col gap-1 md:items-end",children:[e.jsx("h3",{className:"text-foreground",children:s}),e.jsx("div",{className:"flex flex-wrap gap-4 justify-end",children:r.map((t,a)=>e.jsxs(p.Fragment,{children:[e.jsx(j,{...t}),a<r.length-1&&e.jsx("span",{className:"text-muted-foreground text-sm",children:"•"})]},t.href))})]})}function D({appName:s,legalAppName:r,legalReferences:t,legalContent:a,className:o,version:n,discordAddr:i,landingAddr:l,twitterAddr:x,telegramAddr:d,blockSyncProps:c,onPress:m,showLegalLinks:b,showDeveloperLinks:N}){const y=!!(x||i||d);return e.jsx("footer",{className:u.cn("relative w-full border-t bg-card border-border","text-sm font-normal leading-[120%] tracking-[-0.14px] text-secondary-foreground",o),children:e.jsxs("div",{className:"flex flex-col md:flex-row md:flex-nowrap justify-between py-6 px-8",children:[e.jsxs("div",{className:"w-full md:w-auto text-center md:text-left flex flex-col items-center md:items-start",children:[e.jsx(k.AppLogo,{appName:s}),e.jsx("div",{className:"h-2"}),(()=>{const h=a??(t?e.jsx(F.LegalDisclaimer,{appName:r,hrefs:t}):e.jsxs("div",{className:"text-muted-foreground text-center md:text-left",children:[e.jsxs("div",{children:["Copyright © Gearbox Foundation 2023-",new Date().getFullYear(),"."]}),e.jsx("div",{children:"Built at ETHGlobal MarketMake hackathon."})]}));return m?e.jsx("button",{type:"button",onClick:m,className:"cursor-pointer text-left bg-transparent border-none p-0 m-0",children:h}):h})(),(n||c)&&e.jsxs("div",{className:"flex flex-col items-center gap-2 mt-4 md:hidden",children:[n&&e.jsxs("span",{children:["Version ",n]}),c&&e.jsx(_.BlockSync,{...c})]})]}),e.jsxs("div",{className:"hidden md:flex flex-col gap-4",children:[y&&e.jsx("div",{className:"flex items-center justify-end gap-2.5",children:e.jsx(L.SocialIcons,{twitterAddr:x,discordAddr:i,telegramAddr:d})}),b&&t&&e.jsx(f,{title:"Legal",links:[{href:t.termsOfService,text:"Terms of Service"},{href:t.privacyNotice,text:"Privacy Notice"},{href:t.riskDisclosure,text:"Risk Disclosure"}]}),N&&e.jsx(f,{title:"Developers",links:[{href:"https://docs.gearbox.fi/gearbox-permissionless-doc",text:"Documentation",external:!0},{href:"https://docs.gearbox.finance/risk-and-security/audits-bug-bounty",text:"Audits",external:!0},{href:"https://github.com/Gearbox-protocol",text:"GitHub",external:!0}]}),(n||l)&&e.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2 text-muted-foreground",children:[n&&e.jsxs("span",{children:["Version ",n]}),n&&l&&e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/30"}),l&&e.jsx(j,{href:`${l}/terms`,text:"Legal Info",external:!0})]})]})]})})}exports.Footer=g;exports.FooterLink=j;exports.FooterLinkSection=f;exports.GearboxFooter=D;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t, Fragment as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import * as N from "react";
|
|
3
3
|
import { BaseLink as j } from "../../base-link/base-link.js";
|
|
4
4
|
import { BlockSync as k } from "../../block-sync/block-sync.js";
|
|
5
5
|
import { cn as h } from "../../../utils/cn.js";
|
|
6
6
|
import { AppLogo as F } from "../app-logo/app-logo.js";
|
|
7
7
|
import { LegalDisclaimer as D } from "../legal-disclaimer/legal-disclaimer.js";
|
|
8
8
|
import { SocialIcons as L } from "../social-icons/social-icons.js";
|
|
9
|
-
const G =
|
|
9
|
+
const G = N.forwardRef(
|
|
10
10
|
({
|
|
11
11
|
logo: a,
|
|
12
12
|
copyright: s,
|
|
13
13
|
social: r,
|
|
14
14
|
version: i,
|
|
15
|
-
secondaryInfo:
|
|
15
|
+
secondaryInfo: c,
|
|
16
16
|
legalLinks: l,
|
|
17
|
-
containerClassName:
|
|
17
|
+
containerClassName: d,
|
|
18
18
|
className: n,
|
|
19
|
-
children:
|
|
20
|
-
mobileExtraContent:
|
|
21
|
-
...
|
|
22
|
-
},
|
|
19
|
+
children: m,
|
|
20
|
+
mobileExtraContent: f,
|
|
21
|
+
...o
|
|
22
|
+
}, u) => /* @__PURE__ */ e(
|
|
23
23
|
"footer",
|
|
24
24
|
{
|
|
25
|
-
ref:
|
|
25
|
+
ref: u,
|
|
26
26
|
className: h(
|
|
27
27
|
"relative w-full border-t bg-card border-border flex items-center justify-center",
|
|
28
28
|
n
|
|
29
29
|
),
|
|
30
|
-
...
|
|
30
|
+
...o,
|
|
31
31
|
children: /* @__PURE__ */ t(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
34
|
className: h(
|
|
35
35
|
"flex flex-col sm:flex-row sm:flex-nowrap justify-between items-center sm:items-start gap-4 sm:gap-0 py-6 w-full px-4",
|
|
36
|
-
|
|
36
|
+
d
|
|
37
37
|
),
|
|
38
38
|
children: [
|
|
39
39
|
/* @__PURE__ */ t("div", { className: "text-center sm:text-left text-sm text-muted-foreground w-full sm:w-auto", children: [
|
|
40
|
-
a && /* @__PURE__ */ t(
|
|
40
|
+
a && /* @__PURE__ */ t(x, { children: [
|
|
41
41
|
/* @__PURE__ */ e("div", { className: "flex justify-center sm:justify-start", children: a }),
|
|
42
42
|
/* @__PURE__ */ e("div", { className: "h-2" })
|
|
43
43
|
] }),
|
|
44
44
|
s && /* @__PURE__ */ e("div", { children: s }),
|
|
45
|
-
/* @__PURE__ */ e("div", { className: "mt-4 flex flex-col items-center justify-center gap-2 sm:hidden", children:
|
|
45
|
+
/* @__PURE__ */ e("div", { className: "mt-4 flex flex-col items-center justify-center gap-2 sm:hidden", children: f })
|
|
46
46
|
] }),
|
|
47
47
|
/* @__PURE__ */ t("div", { className: "w-full sm:w-auto", children: [
|
|
48
|
-
r && /* @__PURE__ */ t(
|
|
48
|
+
r && /* @__PURE__ */ t(x, { children: [
|
|
49
49
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-center sm:justify-end gap-2.5", children: r }),
|
|
50
50
|
/* @__PURE__ */ e("div", { className: "h-3" })
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ t("div", { className: "flex flex-wrap items-center justify-center sm:justify-end gap-2 text-sm text-muted-foreground", children: [
|
|
53
53
|
i && /* @__PURE__ */ e("span", { children: i }),
|
|
54
|
-
|
|
54
|
+
c && /* @__PURE__ */ t(x, { children: [
|
|
55
55
|
/* @__PURE__ */ e("span", { className: "h-1 w-1 rounded-full bg-muted-foreground/30" }),
|
|
56
|
-
|
|
56
|
+
c
|
|
57
57
|
] }),
|
|
58
|
-
l && /* @__PURE__ */ t(
|
|
58
|
+
l && /* @__PURE__ */ t(x, { children: [
|
|
59
59
|
/* @__PURE__ */ e("span", { className: "h-1 w-1 rounded-full bg-muted-foreground/30" }),
|
|
60
60
|
l
|
|
61
61
|
] })
|
|
62
62
|
] })
|
|
63
63
|
] }),
|
|
64
|
-
|
|
64
|
+
m
|
|
65
65
|
]
|
|
66
66
|
}
|
|
67
67
|
)
|
|
@@ -82,13 +82,13 @@ function b({ href: a, text: s, external: r = !1 }) {
|
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function g({
|
|
86
86
|
title: a,
|
|
87
87
|
links: s
|
|
88
88
|
}) {
|
|
89
89
|
return /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 md:items-end", children: [
|
|
90
90
|
/* @__PURE__ */ e("h3", { className: "text-foreground", children: a }),
|
|
91
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 justify-end", children: s.map((r, i) => /* @__PURE__ */ t(
|
|
91
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 justify-end", children: s.map((r, i) => /* @__PURE__ */ t(N.Fragment, { children: [
|
|
92
92
|
/* @__PURE__ */ e(b, { ...r }),
|
|
93
93
|
i < s.length - 1 && /* @__PURE__ */ e("span", { className: "text-muted-foreground text-sm", children: "•" })
|
|
94
94
|
] }, r.href)) })
|
|
@@ -99,25 +99,25 @@ function z({
|
|
|
99
99
|
legalAppName: s,
|
|
100
100
|
legalReferences: r,
|
|
101
101
|
legalContent: i,
|
|
102
|
-
className:
|
|
102
|
+
className: c,
|
|
103
103
|
version: l,
|
|
104
|
-
discordAddr:
|
|
104
|
+
discordAddr: d,
|
|
105
105
|
landingAddr: n,
|
|
106
|
-
twitterAddr:
|
|
107
|
-
telegramAddr:
|
|
108
|
-
blockSyncProps:
|
|
109
|
-
onPress:
|
|
106
|
+
twitterAddr: m,
|
|
107
|
+
telegramAddr: f,
|
|
108
|
+
blockSyncProps: o,
|
|
109
|
+
onPress: u,
|
|
110
110
|
showLegalLinks: v,
|
|
111
111
|
showDeveloperLinks: w
|
|
112
112
|
}) {
|
|
113
|
-
const y = !!(
|
|
113
|
+
const y = !!(m || d || f);
|
|
114
114
|
return /* @__PURE__ */ e(
|
|
115
115
|
"footer",
|
|
116
116
|
{
|
|
117
117
|
className: h(
|
|
118
118
|
"relative w-full border-t bg-card border-border",
|
|
119
119
|
"text-sm font-normal leading-[120%] tracking-[-0.14px] text-secondary-foreground",
|
|
120
|
-
|
|
120
|
+
c
|
|
121
121
|
),
|
|
122
122
|
children: /* @__PURE__ */ t("div", { className: "flex flex-col md:flex-row md:flex-nowrap justify-between py-6 px-8", children: [
|
|
123
123
|
/* @__PURE__ */ t("div", { className: "w-full md:w-auto text-center md:text-left flex flex-col items-center md:items-start", children: [
|
|
@@ -138,39 +138,36 @@ function z({
|
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ e("div", { children: "Built at ETHGlobal MarketMake hackathon." })
|
|
140
140
|
] }));
|
|
141
|
-
return
|
|
141
|
+
return u ? /* @__PURE__ */ e(
|
|
142
142
|
"button",
|
|
143
143
|
{
|
|
144
144
|
type: "button",
|
|
145
|
-
onClick:
|
|
145
|
+
onClick: u,
|
|
146
146
|
className: "cursor-pointer text-left bg-transparent border-none p-0 m-0",
|
|
147
147
|
children: p
|
|
148
148
|
}
|
|
149
149
|
) : p;
|
|
150
150
|
})(),
|
|
151
|
-
(l ||
|
|
151
|
+
(l || o) && // Breakpoint synced with HelpCenterContainer (hidden md:flex).
|
|
152
152
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 mt-4 md:hidden", children: [
|
|
153
153
|
l && /* @__PURE__ */ t("span", { children: [
|
|
154
154
|
"Version ",
|
|
155
155
|
l
|
|
156
156
|
] }),
|
|
157
|
-
|
|
157
|
+
o && /* @__PURE__ */ e(k, { ...o })
|
|
158
158
|
] })
|
|
159
159
|
] }),
|
|
160
160
|
/* @__PURE__ */ t("div", { className: "hidden md:flex flex-col gap-4", children: [
|
|
161
|
-
y && /* @__PURE__ */
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
) }),
|
|
170
|
-
/* @__PURE__ */ e("div", { className: "h-3" })
|
|
171
|
-
] }),
|
|
161
|
+
y && /* @__PURE__ */ e("div", { className: "flex items-center justify-end gap-2.5", children: /* @__PURE__ */ e(
|
|
162
|
+
L,
|
|
163
|
+
{
|
|
164
|
+
twitterAddr: m,
|
|
165
|
+
discordAddr: d,
|
|
166
|
+
telegramAddr: f
|
|
167
|
+
}
|
|
168
|
+
) }),
|
|
172
169
|
v && r && /* @__PURE__ */ e(
|
|
173
|
-
|
|
170
|
+
g,
|
|
174
171
|
{
|
|
175
172
|
title: "Legal",
|
|
176
173
|
links: [
|
|
@@ -190,7 +187,7 @@ function z({
|
|
|
190
187
|
}
|
|
191
188
|
),
|
|
192
189
|
w && /* @__PURE__ */ e(
|
|
193
|
-
|
|
190
|
+
g,
|
|
194
191
|
{
|
|
195
192
|
title: "Developers",
|
|
196
193
|
links: [
|
|
@@ -235,6 +232,6 @@ function z({
|
|
|
235
232
|
export {
|
|
236
233
|
G as Footer,
|
|
237
234
|
b as FooterLink,
|
|
238
|
-
|
|
235
|
+
g as FooterLinkSection,
|
|
239
236
|
z as GearboxFooter
|
|
240
237
|
};
|