@gearbox-protocol/permissionless-ui 1.0.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/README.md +7 -0
- package/dist/cjs/components/alert-dialog.js +160 -0
- package/dist/cjs/components/back-button.js +57 -0
- package/dist/cjs/components/badge.js +61 -0
- package/dist/cjs/components/buttons/button.js +88 -0
- package/dist/cjs/components/buttons/copy-button.js +62 -0
- package/dist/cjs/components/buttons/external-button.js +62 -0
- package/dist/cjs/components/buttons/tab-button.js +60 -0
- package/dist/cjs/components/card.js +103 -0
- package/dist/cjs/components/checkbox.js +61 -0
- package/dist/cjs/components/danger-zone.js +35 -0
- package/dist/cjs/components/dialog.js +137 -0
- package/dist/cjs/components/dropdown-menu.js +200 -0
- package/dist/cjs/components/editable-table/edit-button.js +46 -0
- package/dist/cjs/components/editable-table/editable-table.js +93 -0
- package/dist/cjs/components/editable-table/updated-value.js +73 -0
- package/dist/cjs/components/index.js +72 -0
- package/dist/cjs/components/input.js +69 -0
- package/dist/cjs/components/label.js +54 -0
- package/dist/cjs/components/page-layout.js +36 -0
- package/dist/cjs/components/search-bar.js +66 -0
- package/dist/cjs/components/select.js +167 -0
- package/dist/cjs/components/skeleton.js +51 -0
- package/dist/cjs/components/table.js +121 -0
- package/dist/cjs/components/tabs.js +84 -0
- package/dist/cjs/components/textarea.js +56 -0
- package/dist/cjs/components/token-icon.js +57 -0
- package/dist/cjs/components/tooltip.js +63 -0
- package/dist/cjs/configs/index.js +38 -0
- package/dist/cjs/configs/tailwind.config.js +84 -0
- package/dist/cjs/index.js +24 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/utils/cn.js +32 -0
- package/dist/cjs/utils/copy.js +35 -0
- package/dist/cjs/utils/index.js +32 -0
- package/dist/esm/components/alert-dialog.js +116 -0
- package/dist/esm/components/back-button.js +23 -0
- package/dist/esm/components/badge.js +26 -0
- package/dist/esm/components/buttons/button.js +53 -0
- package/dist/esm/components/buttons/copy-button.js +28 -0
- package/dist/esm/components/buttons/external-button.js +28 -0
- package/dist/esm/components/buttons/tab-button.js +26 -0
- package/dist/esm/components/card.js +64 -0
- package/dist/esm/components/checkbox.js +27 -0
- package/dist/esm/components/danger-zone.js +11 -0
- package/dist/esm/components/dialog.js +97 -0
- package/dist/esm/components/dropdown-menu.js +152 -0
- package/dist/esm/components/editable-table/edit-button.js +22 -0
- package/dist/esm/components/editable-table/editable-table.js +68 -0
- package/dist/esm/components/editable-table/updated-value.js +49 -0
- package/dist/esm/components/index.js +26 -0
- package/dist/esm/components/input.js +35 -0
- package/dist/esm/components/label.js +20 -0
- package/dist/esm/components/page-layout.js +12 -0
- package/dist/esm/components/search-bar.js +42 -0
- package/dist/esm/components/select.js +124 -0
- package/dist/esm/components/skeleton.js +17 -0
- package/dist/esm/components/table.js +80 -0
- package/dist/esm/components/tabs.js +47 -0
- package/dist/esm/components/textarea.js +22 -0
- package/dist/esm/components/token-icon.js +23 -0
- package/dist/esm/components/tooltip.js +26 -0
- package/dist/esm/configs/index.js +4 -0
- package/dist/esm/configs/tailwind.config.js +64 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/utils/cn.js +8 -0
- package/dist/esm/utils/copy.js +11 -0
- package/dist/esm/utils/index.js +6 -0
- package/dist/globals.css +88 -0
- package/dist/types/components/alert-dialog.d.ts +20 -0
- package/dist/types/components/back-button.d.ts +7 -0
- package/dist/types/components/badge.d.ts +9 -0
- package/dist/types/components/buttons/button.d.ts +11 -0
- package/dist/types/components/buttons/copy-button.d.ts +8 -0
- package/dist/types/components/buttons/external-button.d.ts +7 -0
- package/dist/types/components/buttons/tab-button.d.ts +8 -0
- package/dist/types/components/card.d.ts +8 -0
- package/dist/types/components/checkbox.d.ts +4 -0
- package/dist/types/components/danger-zone.d.ts +5 -0
- package/dist/types/components/dialog.d.ts +16 -0
- package/dist/types/components/dropdown-menu.d.ts +27 -0
- package/dist/types/components/editable-table/edit-button.d.ts +7 -0
- package/dist/types/components/editable-table/editable-table.d.ts +31 -0
- package/dist/types/components/editable-table/updated-value.d.ts +12 -0
- package/dist/types/components/index.d.ts +26 -0
- package/dist/types/components/input.d.ts +7 -0
- package/dist/types/components/label.d.ts +5 -0
- package/dist/types/components/page-layout.d.ts +10 -0
- package/dist/types/components/search-bar.d.ts +8 -0
- package/dist/types/components/select.d.ts +13 -0
- package/dist/types/components/skeleton.d.ts +2 -0
- package/dist/types/components/table.d.ts +10 -0
- package/dist/types/components/tabs.d.ts +7 -0
- package/dist/types/components/textarea.d.ts +4 -0
- package/dist/types/components/token-icon.d.ts +6 -0
- package/dist/types/components/tooltip.d.ts +7 -0
- package/dist/types/configs/index.d.ts +1 -0
- package/dist/types/configs/tailwind.config.d.ts +3 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/cn.d.ts +2 -0
- package/dist/types/utils/copy.d.ts +4 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/package.json +93 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 tabs_exports = {};
|
|
30
|
+
__export(tabs_exports, {
|
|
31
|
+
Tabs: () => Tabs,
|
|
32
|
+
TabsContent: () => TabsContent,
|
|
33
|
+
TabsList: () => TabsList,
|
|
34
|
+
TabsTrigger: () => TabsTrigger
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(tabs_exports);
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
39
|
+
var React = __toESM(require("react"));
|
|
40
|
+
var import_utils = __toESM(require('../utils/index.js'));
|
|
41
|
+
const Tabs = TabsPrimitive.Root;
|
|
42
|
+
const TabsList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
+
TabsPrimitive.List,
|
|
44
|
+
{
|
|
45
|
+
ref,
|
|
46
|
+
className: (0, import_utils.default)(
|
|
47
|
+
"inline-flex h-fit items-center justify-start rounded-lg bg-muted p-1 text-muted-foreground bg-transparent p-0 space-x-6",
|
|
48
|
+
className
|
|
49
|
+
),
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
54
|
+
const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
TabsPrimitive.Trigger,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: (0, import_utils.default)(
|
|
59
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow rounded-none border-b-2 border-transparent px-2 py-2 text-gray-400 hover:text-white data-[state=active]:border-white data-[state=active]:bg-transparent data-[state=active]:text-white focus:outline-none",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
66
|
+
const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
+
TabsPrimitive.Content,
|
|
68
|
+
{
|
|
69
|
+
ref,
|
|
70
|
+
className: (0, import_utils.default)(
|
|
71
|
+
"mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
72
|
+
className
|
|
73
|
+
),
|
|
74
|
+
...props
|
|
75
|
+
}
|
|
76
|
+
));
|
|
77
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
Tabs,
|
|
81
|
+
TabsContent,
|
|
82
|
+
TabsList,
|
|
83
|
+
TabsTrigger
|
|
84
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
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 textarea_exports = {};
|
|
30
|
+
__export(textarea_exports, {
|
|
31
|
+
Textarea: () => Textarea
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(textarea_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
var import_utils = __toESM(require('../utils/index.js'));
|
|
37
|
+
const Textarea = React.forwardRef(
|
|
38
|
+
({ className, ...props }, ref) => {
|
|
39
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
+
"textarea",
|
|
41
|
+
{
|
|
42
|
+
className: (0, import_utils.default)(
|
|
43
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
ref,
|
|
47
|
+
...props
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
Textarea.displayName = "Textarea";
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
Textarea
|
|
56
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
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 token_icon_exports = {};
|
|
30
|
+
__export(token_icon_exports, {
|
|
31
|
+
TokenIcon: () => TokenIcon
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(token_icon_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
+
var import_image = __toESM(require("next/image"));
|
|
36
|
+
var import_react = require("react");
|
|
37
|
+
function TokenIcon({ symbol, size = 48 }) {
|
|
38
|
+
const name = symbol.replace("/", "").replace(" ", "").replace("-f", "").replace("-", "_").toLowerCase();
|
|
39
|
+
const defaultSrc = "https://static.gearbox.fi/tokens/default.svg";
|
|
40
|
+
const [src, setSrc] = (0, import_react.useState)(
|
|
41
|
+
`https://static.gearbox.fi/tokens/${name}.svg`
|
|
42
|
+
);
|
|
43
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
44
|
+
import_image.default,
|
|
45
|
+
{
|
|
46
|
+
src,
|
|
47
|
+
alt: `${symbol} icon`,
|
|
48
|
+
width: size,
|
|
49
|
+
height: size,
|
|
50
|
+
onError: () => setSrc(defaultSrc)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
TokenIcon
|
|
57
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
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 tooltip_exports = {};
|
|
30
|
+
__export(tooltip_exports, {
|
|
31
|
+
Tooltip: () => Tooltip,
|
|
32
|
+
TooltipContent: () => TooltipContent,
|
|
33
|
+
TooltipProvider: () => TooltipProvider,
|
|
34
|
+
TooltipTrigger: () => TooltipTrigger
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(tooltip_exports);
|
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
38
|
+
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"));
|
|
39
|
+
var React = __toESM(require("react"));
|
|
40
|
+
var import_utils = __toESM(require('../utils/index.js'));
|
|
41
|
+
const TooltipProvider = TooltipPrimitive.Provider;
|
|
42
|
+
const Tooltip = TooltipPrimitive.Root;
|
|
43
|
+
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
44
|
+
const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TooltipPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
45
|
+
TooltipPrimitive.Content,
|
|
46
|
+
{
|
|
47
|
+
ref,
|
|
48
|
+
sideOffset,
|
|
49
|
+
className: (0, import_utils.default)(
|
|
50
|
+
"z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
51
|
+
className
|
|
52
|
+
),
|
|
53
|
+
...props
|
|
54
|
+
}
|
|
55
|
+
) }));
|
|
56
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
Tooltip,
|
|
60
|
+
TooltipContent,
|
|
61
|
+
TooltipProvider,
|
|
62
|
+
TooltipTrigger
|
|
63
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
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 configs_exports = {};
|
|
30
|
+
__export(configs_exports, {
|
|
31
|
+
tailwindConfig: () => import_tailwind.default
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(configs_exports);
|
|
34
|
+
var import_tailwind = __toESM(require('./tailwind.config.js'));
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
tailwindConfig
|
|
38
|
+
});
|
|
@@ -0,0 +1,84 @@
|
|
|
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 tailwind_config_exports = {};
|
|
20
|
+
__export(tailwind_config_exports, {
|
|
21
|
+
default: () => tailwind_config_default
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(tailwind_config_exports);
|
|
24
|
+
const tailwindConfig = {
|
|
25
|
+
darkMode: ["class"],
|
|
26
|
+
content: [
|
|
27
|
+
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
28
|
+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
29
|
+
"./app/**/*.{js,ts,jsx,tsx,mdx}"
|
|
30
|
+
],
|
|
31
|
+
theme: {
|
|
32
|
+
extend: {
|
|
33
|
+
colors: {
|
|
34
|
+
background: "hsl(var(--background))",
|
|
35
|
+
foreground: "hsl(var(--foreground))",
|
|
36
|
+
card: {
|
|
37
|
+
DEFAULT: "hsl(var(--card))",
|
|
38
|
+
foreground: "hsl(var(--card-foreground))"
|
|
39
|
+
},
|
|
40
|
+
popover: {
|
|
41
|
+
DEFAULT: "hsl(var(--popover))",
|
|
42
|
+
foreground: "hsl(var(--popover-foreground))"
|
|
43
|
+
},
|
|
44
|
+
primary: {
|
|
45
|
+
DEFAULT: "hsl(var(--primary))",
|
|
46
|
+
foreground: "hsl(var(--primary-foreground))"
|
|
47
|
+
},
|
|
48
|
+
secondary: {
|
|
49
|
+
DEFAULT: "hsl(var(--secondary))",
|
|
50
|
+
foreground: "hsl(var(--secondary-foreground))"
|
|
51
|
+
},
|
|
52
|
+
muted: {
|
|
53
|
+
DEFAULT: "hsl(var(--muted))",
|
|
54
|
+
foreground: "hsl(var(--muted-foreground))"
|
|
55
|
+
},
|
|
56
|
+
accent: {
|
|
57
|
+
DEFAULT: "hsl(var(--accent))",
|
|
58
|
+
foreground: "hsl(var(--accent-foreground))"
|
|
59
|
+
},
|
|
60
|
+
destructive: {
|
|
61
|
+
DEFAULT: "hsl(var(--destructive))",
|
|
62
|
+
foreground: "hsl(var(--destructive-foreground))"
|
|
63
|
+
},
|
|
64
|
+
border: "hsl(var(--border))",
|
|
65
|
+
input: "hsl(var(--input))",
|
|
66
|
+
ring: "hsl(var(--ring))",
|
|
67
|
+
chart: {
|
|
68
|
+
"1": "hsl(var(--chart-1))",
|
|
69
|
+
"2": "hsl(var(--chart-2))",
|
|
70
|
+
"3": "hsl(var(--chart-3))",
|
|
71
|
+
"4": "hsl(var(--chart-4))",
|
|
72
|
+
"5": "hsl(var(--chart-5))"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
borderRadius: {
|
|
76
|
+
lg: "var(--radius)",
|
|
77
|
+
md: "calc(var(--radius) - 2px)",
|
|
78
|
+
sm: "calc(var(--radius) - 4px)"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
plugins: [require("tailwindcss-animate")]
|
|
83
|
+
};
|
|
84
|
+
var tailwind_config_default = tailwindConfig;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 index_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require('./components/index.js'), module.exports);
|
|
19
|
+
__reExport(index_exports, require('./utils/index.js'), module.exports);
|
|
20
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
21
|
+
0 && (module.exports = {
|
|
22
|
+
...require('./components/index.js'),
|
|
23
|
+
...require('./utils/index.js')
|
|
24
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type": "commonjs"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 cn_exports = {};
|
|
20
|
+
__export(cn_exports, {
|
|
21
|
+
cn: () => cn
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(cn_exports);
|
|
24
|
+
var import_clsx = require("clsx");
|
|
25
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
26
|
+
function cn(...inputs) {
|
|
27
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
cn
|
|
32
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
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 copy_exports = {};
|
|
20
|
+
__export(copy_exports, {
|
|
21
|
+
copyToClipboard: () => copyToClipboard
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(copy_exports);
|
|
24
|
+
var import_sonner = require("sonner");
|
|
25
|
+
const copyToClipboard = ({
|
|
26
|
+
text,
|
|
27
|
+
name = "Address"
|
|
28
|
+
}) => {
|
|
29
|
+
navigator.clipboard.writeText(text);
|
|
30
|
+
import_sonner.toast.success(`${name} copied to clipboard`);
|
|
31
|
+
};
|
|
32
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {
|
|
34
|
+
copyToClipboard
|
|
35
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
var utils_exports = {};
|
|
21
|
+
__export(utils_exports, {
|
|
22
|
+
default: () => import_cn.cn
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(utils_exports);
|
|
25
|
+
__reExport(utils_exports, require('./cn.js'), module.exports);
|
|
26
|
+
var import_cn = require('./cn.js');
|
|
27
|
+
__reExport(utils_exports, require('./copy.js'), module.exports);
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
...require('./cn.js'),
|
|
31
|
+
...require('./copy.js')
|
|
32
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import cn from "../utils/index.js";
|
|
5
|
+
import { buttonVariants } from "./buttons/button.js";
|
|
6
|
+
const AlertDialog = AlertDialogPrimitive.Root;
|
|
7
|
+
const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
8
|
+
const AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
9
|
+
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
+
AlertDialogPrimitive.Overlay,
|
|
11
|
+
{
|
|
12
|
+
className: cn(
|
|
13
|
+
"fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
14
|
+
className
|
|
15
|
+
),
|
|
16
|
+
...props,
|
|
17
|
+
ref
|
|
18
|
+
}
|
|
19
|
+
));
|
|
20
|
+
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
21
|
+
const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(AlertDialogPortal, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx(AlertDialogOverlay, {}),
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
AlertDialogPrimitive.Content,
|
|
25
|
+
{
|
|
26
|
+
ref,
|
|
27
|
+
className: cn(
|
|
28
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
|
|
29
|
+
className
|
|
30
|
+
),
|
|
31
|
+
...props
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }));
|
|
35
|
+
AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
36
|
+
const AlertDialogHeader = ({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}) => /* @__PURE__ */ jsx(
|
|
40
|
+
"div",
|
|
41
|
+
{
|
|
42
|
+
className: cn(
|
|
43
|
+
"flex flex-col space-y-2 text-center sm:text-left",
|
|
44
|
+
className
|
|
45
|
+
),
|
|
46
|
+
...props
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
50
|
+
const AlertDialogFooter = ({
|
|
51
|
+
className,
|
|
52
|
+
...props
|
|
53
|
+
}) => /* @__PURE__ */ jsx(
|
|
54
|
+
"div",
|
|
55
|
+
{
|
|
56
|
+
className: cn(
|
|
57
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
58
|
+
className
|
|
59
|
+
),
|
|
60
|
+
...props
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
64
|
+
const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
65
|
+
AlertDialogPrimitive.Title,
|
|
66
|
+
{
|
|
67
|
+
ref,
|
|
68
|
+
className: cn("text-lg font-semibold", className),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
73
|
+
const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
74
|
+
AlertDialogPrimitive.Description,
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: cn("text-sm text-muted-foreground", className),
|
|
78
|
+
...props
|
|
79
|
+
}
|
|
80
|
+
));
|
|
81
|
+
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
82
|
+
const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
83
|
+
AlertDialogPrimitive.Action,
|
|
84
|
+
{
|
|
85
|
+
ref,
|
|
86
|
+
className: cn(buttonVariants(), className),
|
|
87
|
+
...props
|
|
88
|
+
}
|
|
89
|
+
));
|
|
90
|
+
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
91
|
+
const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
92
|
+
AlertDialogPrimitive.Cancel,
|
|
93
|
+
{
|
|
94
|
+
ref,
|
|
95
|
+
className: cn(
|
|
96
|
+
buttonVariants({ variant: "outline" }),
|
|
97
|
+
"mt-2 sm:mt-0",
|
|
98
|
+
className
|
|
99
|
+
),
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
));
|
|
103
|
+
AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
|
|
104
|
+
export {
|
|
105
|
+
AlertDialog,
|
|
106
|
+
AlertDialogAction,
|
|
107
|
+
AlertDialogCancel,
|
|
108
|
+
AlertDialogContent,
|
|
109
|
+
AlertDialogDescription,
|
|
110
|
+
AlertDialogFooter,
|
|
111
|
+
AlertDialogHeader,
|
|
112
|
+
AlertDialogOverlay,
|
|
113
|
+
AlertDialogPortal,
|
|
114
|
+
AlertDialogTitle,
|
|
115
|
+
AlertDialogTrigger
|
|
116
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ArrowLeft } from "lucide-react";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import cn from "../utils/index.js";
|
|
5
|
+
function BackButton({ href, text, className }) {
|
|
6
|
+
return /* @__PURE__ */ jsxs(
|
|
7
|
+
Link,
|
|
8
|
+
{
|
|
9
|
+
href,
|
|
10
|
+
className: cn(
|
|
11
|
+
"flex items-center text-sm text-muted-foreground hover:text-foreground mb-6",
|
|
12
|
+
className
|
|
13
|
+
),
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ jsx(ArrowLeft, { className: "mr-2 h-4 w-4" }),
|
|
16
|
+
text || "Back"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
BackButton
|
|
23
|
+
};
|