@gearbox-protocol/permissionless-ui 1.1.7 → 1.2.0
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/cjs/components/buttons/button.js +1 -1
- package/dist/cjs/components/buttons/copy-button.js +1 -8
- package/dist/cjs/components/buttons/external-button.js +1 -8
- package/dist/cjs/components/buttons/index.js +2 -0
- package/dist/cjs/components/buttons/navigation-button.js +58 -0
- package/dist/cjs/components/index.js +4 -2
- package/dist/cjs/components/layout/app-logo.js +67 -0
- package/dist/cjs/components/layout/footer.js +116 -0
- package/dist/cjs/components/layout/header.js +41 -0
- package/dist/cjs/components/layout/index.js +30 -0
- package/dist/cjs/components/layout/legal-disclaimer.js +75 -0
- package/dist/cjs/components/{page-layout.js → layout/page-layout.js} +2 -2
- package/dist/cjs/components/markdown-viewer.js +234 -0
- package/dist/esm/components/buttons/button.js +1 -1
- package/dist/esm/components/buttons/copy-button.js +1 -8
- package/dist/esm/components/buttons/external-button.js +1 -8
- package/dist/esm/components/buttons/index.js +1 -0
- package/dist/esm/components/buttons/navigation-button.js +24 -0
- package/dist/esm/components/index.js +2 -1
- package/dist/esm/components/layout/app-logo.js +33 -0
- package/dist/esm/components/layout/footer.js +82 -0
- package/dist/esm/components/layout/header.js +17 -0
- package/dist/esm/components/layout/index.js +5 -0
- package/dist/esm/components/layout/legal-disclaimer.js +41 -0
- package/dist/esm/components/{page-layout.js → layout/page-layout.js} +2 -2
- package/dist/esm/components/markdown-viewer.js +200 -0
- package/dist/types/components/buttons/index.d.ts +1 -0
- package/dist/types/components/buttons/navigation-button.d.ts +8 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/layout/app-logo.d.ts +4 -0
- package/dist/types/components/layout/footer.d.ts +5 -0
- package/dist/types/components/layout/header.d.ts +6 -0
- package/dist/types/components/layout/index.d.ts +5 -0
- package/dist/types/components/layout/legal-disclaimer.d.ts +8 -0
- package/dist/types/components/markdown-viewer.d.ts +6 -0
- package/package.json +4 -1
- /package/dist/types/components/{page-layout.d.ts → layout/page-layout.d.ts} +0 -0
|
@@ -38,7 +38,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
38
38
|
var React = __toESM(require("react"));
|
|
39
39
|
var import_utils = __toESM(require('../../utils/index.js'));
|
|
40
40
|
const buttonVariants = (0, import_class_variance_authority.cva)(
|
|
41
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:
|
|
41
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors cursor-pointer focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
42
42
|
{
|
|
43
43
|
variants: {
|
|
44
44
|
variant: {
|
|
@@ -46,18 +46,11 @@ const CopyButton = React.forwardRef(
|
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: (0, import_utils.default)(
|
|
48
48
|
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
49
|
-
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
50
49
|
className
|
|
51
50
|
),
|
|
52
51
|
onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
|
|
53
52
|
...props,
|
|
54
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
-
import_lucide_react.Copy,
|
|
56
|
-
{
|
|
57
|
-
className: `!h-${size} !w-${size}`,
|
|
58
|
-
size: Number(size) ? Number(size) * 4 : void 0
|
|
59
|
-
}
|
|
60
|
-
)
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Copy, { className: `h-${size} w-${size}` })
|
|
61
54
|
}
|
|
62
55
|
);
|
|
63
56
|
}
|
|
@@ -46,18 +46,11 @@ const ExternalButton = React.forwardRef(
|
|
|
46
46
|
size: "sm",
|
|
47
47
|
className: (0, import_utils.default)(
|
|
48
48
|
"text-muted-foreground hover:text-white hover:bg-accent/0 p-0 h-auto",
|
|
49
|
-
Number(size) ? `[&_svg]:!size-[${Number(size) / 4}rem]` : "",
|
|
50
49
|
className
|
|
51
50
|
),
|
|
52
51
|
onClick: () => window.open(url, "_blank"),
|
|
53
52
|
...props,
|
|
54
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
-
import_lucide_react.ExternalLink,
|
|
56
|
-
{
|
|
57
|
-
className: `!h-${size} !w-${size}`,
|
|
58
|
-
size: Number(size) ? Number(size) * 4 : void 0
|
|
59
|
-
}
|
|
60
|
-
)
|
|
53
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: `h-${size} w-${size}` })
|
|
61
54
|
}
|
|
62
55
|
);
|
|
63
56
|
}
|
|
@@ -19,6 +19,7 @@ __reExport(buttons_exports, require('./back-button.js'), module.exports);
|
|
|
19
19
|
__reExport(buttons_exports, require('./button.js'), module.exports);
|
|
20
20
|
__reExport(buttons_exports, require('./copy-button.js'), module.exports);
|
|
21
21
|
__reExport(buttons_exports, require('./external-button.js'), module.exports);
|
|
22
|
+
__reExport(buttons_exports, require('./navigation-button.js'), module.exports);
|
|
22
23
|
__reExport(buttons_exports, require('./tab-button.js'), module.exports);
|
|
23
24
|
// Annotate the CommonJS export names for ESM import in node:
|
|
24
25
|
0 && (module.exports = {
|
|
@@ -26,5 +27,6 @@ __reExport(buttons_exports, require('./tab-button.js'), module.exports);
|
|
|
26
27
|
...require('./button.js'),
|
|
27
28
|
...require('./copy-button.js'),
|
|
28
29
|
...require('./external-button.js'),
|
|
30
|
+
...require('./navigation-button.js'),
|
|
29
31
|
...require('./tab-button.js')
|
|
30
32
|
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
var navigation_button_exports = {};
|
|
31
|
+
__export(navigation_button_exports, {
|
|
32
|
+
NavigationButton: () => NavigationButton
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(navigation_button_exports);
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
var import_link = __toESM(require("next/link"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_utils = __toESM(require('../../utils/index.js'));
|
|
39
|
+
const NavigationButton = import_react.default.forwardRef(({ href, text, isActive, ...props }, ref) => {
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
+
import_link.default,
|
|
42
|
+
{
|
|
43
|
+
href,
|
|
44
|
+
ref,
|
|
45
|
+
className: (0, import_utils.default)(
|
|
46
|
+
"text-foreground px-2 py-1 rounded transition-colors duration-200 ease-in-out ",
|
|
47
|
+
isActive ? "bg-muted" : "hover:bg-muted"
|
|
48
|
+
),
|
|
49
|
+
...props,
|
|
50
|
+
children: text
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
NavigationButton.displayName = "NavButton";
|
|
55
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
+
0 && (module.exports = {
|
|
57
|
+
NavigationButton
|
|
58
|
+
});
|
|
@@ -27,7 +27,8 @@ __reExport(components_exports, require('./dropdown-menu.js'), module.exports);
|
|
|
27
27
|
__reExport(components_exports, require('./editable-table/index.js'), module.exports);
|
|
28
28
|
__reExport(components_exports, require('./input.js'), module.exports);
|
|
29
29
|
__reExport(components_exports, require('./label.js'), module.exports);
|
|
30
|
-
__reExport(components_exports, require('./
|
|
30
|
+
__reExport(components_exports, require('./layout/index.js'), module.exports);
|
|
31
|
+
__reExport(components_exports, require('./markdown-viewer.js'), module.exports);
|
|
31
32
|
__reExport(components_exports, require('./search-bar.js'), module.exports);
|
|
32
33
|
__reExport(components_exports, require('./select.js'), module.exports);
|
|
33
34
|
__reExport(components_exports, require('./signatures/index.js'), module.exports);
|
|
@@ -51,7 +52,8 @@ __reExport(components_exports, require('./tooltip.js'), module.exports);
|
|
|
51
52
|
...require('./editable-table/index.js'),
|
|
52
53
|
...require('./input.js'),
|
|
53
54
|
...require('./label.js'),
|
|
54
|
-
...require('./
|
|
55
|
+
...require('./layout/index.js'),
|
|
56
|
+
...require('./markdown-viewer.js'),
|
|
55
57
|
...require('./search-bar.js'),
|
|
56
58
|
...require('./select.js'),
|
|
57
59
|
...require('./signatures/index.js'),
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var app_logo_exports = {};
|
|
30
|
+
__export(app_logo_exports, {
|
|
31
|
+
AppLogo: () => AppLogo
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(app_logo_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_image = __toESM(require("next/image"));
|
|
36
|
+
var import_utils = __toESM(require('../../utils/index.js'));
|
|
37
|
+
function AppLogo({
|
|
38
|
+
appName,
|
|
39
|
+
size = "default"
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: (0, import_utils.default)(
|
|
45
|
+
"font-bold text-foreground flex items-center gap-2",
|
|
46
|
+
size === "default" ? "text-xl" : "text-md"
|
|
47
|
+
),
|
|
48
|
+
children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
+
import_image.default,
|
|
51
|
+
{
|
|
52
|
+
src: "https://static.gearbox.fi/logo/logo_monochrome_white@2x.png",
|
|
53
|
+
alt: "Gearbox Protocol",
|
|
54
|
+
width: size === "default" ? 120 : 100,
|
|
55
|
+
height: size === "default" ? 24 : 20,
|
|
56
|
+
priority: true
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-bold italic", children: appName })
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
65
|
+
0 && (module.exports = {
|
|
66
|
+
AppLogo
|
|
67
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var footer_exports = {};
|
|
30
|
+
__export(footer_exports, {
|
|
31
|
+
Footer: () => Footer
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(footer_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
36
|
+
var import_app_logo = require('./app-logo.js');
|
|
37
|
+
var import_legal_disclaimer = require('./legal-disclaimer.js');
|
|
38
|
+
function FooterLink({ href, text }) {
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
+
"a",
|
|
41
|
+
{
|
|
42
|
+
href,
|
|
43
|
+
className: "text-muted-foreground hover:text-foreground transition-colors duration-200 text-sm",
|
|
44
|
+
children: text
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function FooterLinkSection({
|
|
49
|
+
title,
|
|
50
|
+
links
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1 md:items-end", children: [
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "font-semibold text-foreground", children: title }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex flex-wrap gap-4", children: links.map((link, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FooterLink, { href: link.href, text: link.text }),
|
|
56
|
+
index < links.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm", children: "\u2022" })
|
|
57
|
+
] }, link.href)) })
|
|
58
|
+
] });
|
|
59
|
+
}
|
|
60
|
+
function Footer({
|
|
61
|
+
appName,
|
|
62
|
+
legalReferences
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("footer", { className: "border-t border-gray-800 bg-background px-4 py-8 mt-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-w-7xl mx-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-8 items-top", children: [
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-8 h-full justify-between", children: [
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_logo.AppLogo, { appName, size: "small" }),
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_legal_disclaimer.LegalDisclaimer, { hrefs: legalReferences })
|
|
68
|
+
] }),
|
|
69
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-8 h-full justify-between", children: [
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
+
FooterLinkSection,
|
|
72
|
+
{
|
|
73
|
+
title: "Legal",
|
|
74
|
+
links: [
|
|
75
|
+
{
|
|
76
|
+
href: legalReferences.termsOfService,
|
|
77
|
+
text: "Terms of Service"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
href: legalReferences.privacyNotice,
|
|
81
|
+
text: "Privacy Notice"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
href: legalReferences.riskDisclosure,
|
|
85
|
+
text: "Risk Disclosure"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
91
|
+
FooterLinkSection,
|
|
92
|
+
{
|
|
93
|
+
title: "Developers",
|
|
94
|
+
links: [
|
|
95
|
+
{
|
|
96
|
+
href: "https://docs.gearbox.fi/gearbox-permissionless-doc",
|
|
97
|
+
text: "Documentation"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
href: "https://docs.gearbox.finance/risk-and-security/audits-bug-bounty",
|
|
101
|
+
text: "Audits"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
href: "https://github.com/Gearbox-protocol",
|
|
105
|
+
text: "GitHub"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] })
|
|
111
|
+
] }) }) });
|
|
112
|
+
}
|
|
113
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
114
|
+
0 && (module.exports = {
|
|
115
|
+
Footer
|
|
116
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var header_exports = {};
|
|
20
|
+
__export(header_exports, {
|
|
21
|
+
Header: () => Header
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(header_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_buttons = require('../buttons/index.js');
|
|
26
|
+
var import_app_logo = require('./app-logo.js');
|
|
27
|
+
function Header({
|
|
28
|
+
appName,
|
|
29
|
+
navigation,
|
|
30
|
+
connectKitButton
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("header", { className: "sticky top-0 z-50 border-b border-gray-800 bg-background px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
33
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_app_logo.AppLogo, { appName }),
|
|
34
|
+
navigation.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("nav", { className: "hidden md:flex space-x-4", children: navigation.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_buttons.NavigationButton, { ...item }, item.href)) }),
|
|
35
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center gap-4", children: connectKitButton })
|
|
36
|
+
] }) });
|
|
37
|
+
}
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
Header
|
|
41
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var layout_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(layout_exports);
|
|
18
|
+
__reExport(layout_exports, require('./app-logo.js'), module.exports);
|
|
19
|
+
__reExport(layout_exports, require('./footer.js'), module.exports);
|
|
20
|
+
__reExport(layout_exports, require('./header.js'), module.exports);
|
|
21
|
+
__reExport(layout_exports, require('./legal-disclaimer.js'), module.exports);
|
|
22
|
+
__reExport(layout_exports, require('./page-layout.js'), module.exports);
|
|
23
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
24
|
+
0 && (module.exports = {
|
|
25
|
+
...require('./app-logo.js'),
|
|
26
|
+
...require('./footer.js'),
|
|
27
|
+
...require('./header.js'),
|
|
28
|
+
...require('./legal-disclaimer.js'),
|
|
29
|
+
...require('./page-layout.js')
|
|
30
|
+
});
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var legal_disclaimer_exports = {};
|
|
30
|
+
__export(legal_disclaimer_exports, {
|
|
31
|
+
LegalDisclaimer: () => LegalDisclaimer
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(legal_disclaimer_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_link = __toESM(require("next/link"));
|
|
36
|
+
function LegalDisclaimer({ hrefs }) {
|
|
37
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-sm text-muted-foreground max-w-md", children: [
|
|
38
|
+
"Any use of and/or interaction with the Permissionless Interface is subject to the",
|
|
39
|
+
" ",
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
41
|
+
import_link.default,
|
|
42
|
+
{
|
|
43
|
+
href: hrefs.termsOfService,
|
|
44
|
+
className: "underline hover:text-foreground transition-colors",
|
|
45
|
+
children: "Terms of Service"
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
" ",
|
|
49
|
+
"and",
|
|
50
|
+
" ",
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
|
+
import_link.default,
|
|
53
|
+
{
|
|
54
|
+
href: hrefs.privacyNotice,
|
|
55
|
+
className: "underline hover:text-foreground transition-colors",
|
|
56
|
+
children: "Privacy Notice"
|
|
57
|
+
}
|
|
58
|
+
),
|
|
59
|
+
", and acceptance of risks described in the",
|
|
60
|
+
" ",
|
|
61
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
+
import_link.default,
|
|
63
|
+
{
|
|
64
|
+
href: hrefs.riskDisclosure,
|
|
65
|
+
className: "underline hover:text-foreground transition-colors",
|
|
66
|
+
children: "Risk Disclosure Statement"
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
"."
|
|
70
|
+
] });
|
|
71
|
+
}
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
LegalDisclaimer
|
|
75
|
+
});
|
|
@@ -22,8 +22,8 @@ __export(page_layout_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(page_layout_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_back_button = require('
|
|
26
|
-
var import_card = require('
|
|
25
|
+
var import_back_button = require('../buttons/back-button.js');
|
|
26
|
+
var import_card = require('../card.js');
|
|
27
27
|
function PageLayout({
|
|
28
28
|
children,
|
|
29
29
|
title,
|