@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.
Files changed (104) hide show
  1. package/README.md +7 -0
  2. package/dist/cjs/components/alert-dialog.js +160 -0
  3. package/dist/cjs/components/back-button.js +57 -0
  4. package/dist/cjs/components/badge.js +61 -0
  5. package/dist/cjs/components/buttons/button.js +88 -0
  6. package/dist/cjs/components/buttons/copy-button.js +62 -0
  7. package/dist/cjs/components/buttons/external-button.js +62 -0
  8. package/dist/cjs/components/buttons/tab-button.js +60 -0
  9. package/dist/cjs/components/card.js +103 -0
  10. package/dist/cjs/components/checkbox.js +61 -0
  11. package/dist/cjs/components/danger-zone.js +35 -0
  12. package/dist/cjs/components/dialog.js +137 -0
  13. package/dist/cjs/components/dropdown-menu.js +200 -0
  14. package/dist/cjs/components/editable-table/edit-button.js +46 -0
  15. package/dist/cjs/components/editable-table/editable-table.js +93 -0
  16. package/dist/cjs/components/editable-table/updated-value.js +73 -0
  17. package/dist/cjs/components/index.js +72 -0
  18. package/dist/cjs/components/input.js +69 -0
  19. package/dist/cjs/components/label.js +54 -0
  20. package/dist/cjs/components/page-layout.js +36 -0
  21. package/dist/cjs/components/search-bar.js +66 -0
  22. package/dist/cjs/components/select.js +167 -0
  23. package/dist/cjs/components/skeleton.js +51 -0
  24. package/dist/cjs/components/table.js +121 -0
  25. package/dist/cjs/components/tabs.js +84 -0
  26. package/dist/cjs/components/textarea.js +56 -0
  27. package/dist/cjs/components/token-icon.js +57 -0
  28. package/dist/cjs/components/tooltip.js +63 -0
  29. package/dist/cjs/configs/index.js +38 -0
  30. package/dist/cjs/configs/tailwind.config.js +84 -0
  31. package/dist/cjs/index.js +24 -0
  32. package/dist/cjs/package.json +1 -0
  33. package/dist/cjs/utils/cn.js +32 -0
  34. package/dist/cjs/utils/copy.js +35 -0
  35. package/dist/cjs/utils/index.js +32 -0
  36. package/dist/esm/components/alert-dialog.js +116 -0
  37. package/dist/esm/components/back-button.js +23 -0
  38. package/dist/esm/components/badge.js +26 -0
  39. package/dist/esm/components/buttons/button.js +53 -0
  40. package/dist/esm/components/buttons/copy-button.js +28 -0
  41. package/dist/esm/components/buttons/external-button.js +28 -0
  42. package/dist/esm/components/buttons/tab-button.js +26 -0
  43. package/dist/esm/components/card.js +64 -0
  44. package/dist/esm/components/checkbox.js +27 -0
  45. package/dist/esm/components/danger-zone.js +11 -0
  46. package/dist/esm/components/dialog.js +97 -0
  47. package/dist/esm/components/dropdown-menu.js +152 -0
  48. package/dist/esm/components/editable-table/edit-button.js +22 -0
  49. package/dist/esm/components/editable-table/editable-table.js +68 -0
  50. package/dist/esm/components/editable-table/updated-value.js +49 -0
  51. package/dist/esm/components/index.js +26 -0
  52. package/dist/esm/components/input.js +35 -0
  53. package/dist/esm/components/label.js +20 -0
  54. package/dist/esm/components/page-layout.js +12 -0
  55. package/dist/esm/components/search-bar.js +42 -0
  56. package/dist/esm/components/select.js +124 -0
  57. package/dist/esm/components/skeleton.js +17 -0
  58. package/dist/esm/components/table.js +80 -0
  59. package/dist/esm/components/tabs.js +47 -0
  60. package/dist/esm/components/textarea.js +22 -0
  61. package/dist/esm/components/token-icon.js +23 -0
  62. package/dist/esm/components/tooltip.js +26 -0
  63. package/dist/esm/configs/index.js +4 -0
  64. package/dist/esm/configs/tailwind.config.js +64 -0
  65. package/dist/esm/index.js +2 -0
  66. package/dist/esm/package.json +1 -0
  67. package/dist/esm/utils/cn.js +8 -0
  68. package/dist/esm/utils/copy.js +11 -0
  69. package/dist/esm/utils/index.js +6 -0
  70. package/dist/globals.css +88 -0
  71. package/dist/types/components/alert-dialog.d.ts +20 -0
  72. package/dist/types/components/back-button.d.ts +7 -0
  73. package/dist/types/components/badge.d.ts +9 -0
  74. package/dist/types/components/buttons/button.d.ts +11 -0
  75. package/dist/types/components/buttons/copy-button.d.ts +8 -0
  76. package/dist/types/components/buttons/external-button.d.ts +7 -0
  77. package/dist/types/components/buttons/tab-button.d.ts +8 -0
  78. package/dist/types/components/card.d.ts +8 -0
  79. package/dist/types/components/checkbox.d.ts +4 -0
  80. package/dist/types/components/danger-zone.d.ts +5 -0
  81. package/dist/types/components/dialog.d.ts +16 -0
  82. package/dist/types/components/dropdown-menu.d.ts +27 -0
  83. package/dist/types/components/editable-table/edit-button.d.ts +7 -0
  84. package/dist/types/components/editable-table/editable-table.d.ts +31 -0
  85. package/dist/types/components/editable-table/updated-value.d.ts +12 -0
  86. package/dist/types/components/index.d.ts +26 -0
  87. package/dist/types/components/input.d.ts +7 -0
  88. package/dist/types/components/label.d.ts +5 -0
  89. package/dist/types/components/page-layout.d.ts +10 -0
  90. package/dist/types/components/search-bar.d.ts +8 -0
  91. package/dist/types/components/select.d.ts +13 -0
  92. package/dist/types/components/skeleton.d.ts +2 -0
  93. package/dist/types/components/table.d.ts +10 -0
  94. package/dist/types/components/tabs.d.ts +7 -0
  95. package/dist/types/components/textarea.d.ts +4 -0
  96. package/dist/types/components/token-icon.d.ts +6 -0
  97. package/dist/types/components/tooltip.d.ts +7 -0
  98. package/dist/types/configs/index.d.ts +1 -0
  99. package/dist/types/configs/tailwind.config.d.ts +3 -0
  100. package/dist/types/index.d.ts +2 -0
  101. package/dist/types/utils/cn.d.ts +2 -0
  102. package/dist/types/utils/copy.d.ts +4 -0
  103. package/dist/types/utils/index.d.ts +3 -0
  104. package/package.json +93 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ # Permissionless UI
2
+
3
+ UI components for internal use
4
+
5
+ ### Important information for contributors
6
+
7
+ As a contributor to the Gearbox Protocol GitHub repository, your pull requests indicate acceptance of our Gearbox Contribution Agreement. This agreement outlines that you assign the Intellectual Property Rights of your contributions to the Gearbox Foundation. This helps safeguard the Gearbox protocol and ensure the accumulation of its intellectual property. Contributions become part of the repository and may be used for various purposes, including commercial. As recognition for your expertise and work, you receive the opportunity to participate in the protocol's development and the potential to see your work integrated within it. The full Gearbox Contribution Agreement is accessible within the [repository](/ContributionAgreement) for comprehensive understanding. [Let's innovate together!]
@@ -0,0 +1,160 @@
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 alert_dialog_exports = {};
30
+ __export(alert_dialog_exports, {
31
+ AlertDialog: () => AlertDialog,
32
+ AlertDialogAction: () => AlertDialogAction,
33
+ AlertDialogCancel: () => AlertDialogCancel,
34
+ AlertDialogContent: () => AlertDialogContent,
35
+ AlertDialogDescription: () => AlertDialogDescription,
36
+ AlertDialogFooter: () => AlertDialogFooter,
37
+ AlertDialogHeader: () => AlertDialogHeader,
38
+ AlertDialogOverlay: () => AlertDialogOverlay,
39
+ AlertDialogPortal: () => AlertDialogPortal,
40
+ AlertDialogTitle: () => AlertDialogTitle,
41
+ AlertDialogTrigger: () => AlertDialogTrigger
42
+ });
43
+ module.exports = __toCommonJS(alert_dialog_exports);
44
+ var import_jsx_runtime = require("react/jsx-runtime");
45
+ var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"));
46
+ var React = __toESM(require("react"));
47
+ var import_utils = __toESM(require('../utils/index.js'));
48
+ var import_button = require('./buttons/button.js');
49
+ const AlertDialog = AlertDialogPrimitive.Root;
50
+ const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
51
+ const AlertDialogPortal = AlertDialogPrimitive.Portal;
52
+ const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
53
+ AlertDialogPrimitive.Overlay,
54
+ {
55
+ className: (0, import_utils.default)(
56
+ "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",
57
+ className
58
+ ),
59
+ ...props,
60
+ ref
61
+ }
62
+ ));
63
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
64
+ const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogPortal, { children: [
65
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogOverlay, {}),
66
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ AlertDialogPrimitive.Content,
68
+ {
69
+ ref,
70
+ className: (0, import_utils.default)(
71
+ "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",
72
+ className
73
+ ),
74
+ ...props
75
+ }
76
+ )
77
+ ] }));
78
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
79
+ const AlertDialogHeader = ({
80
+ className,
81
+ ...props
82
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
+ "div",
84
+ {
85
+ className: (0, import_utils.default)(
86
+ "flex flex-col space-y-2 text-center sm:text-left",
87
+ className
88
+ ),
89
+ ...props
90
+ }
91
+ );
92
+ AlertDialogHeader.displayName = "AlertDialogHeader";
93
+ const AlertDialogFooter = ({
94
+ className,
95
+ ...props
96
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
+ "div",
98
+ {
99
+ className: (0, import_utils.default)(
100
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
101
+ className
102
+ ),
103
+ ...props
104
+ }
105
+ );
106
+ AlertDialogFooter.displayName = "AlertDialogFooter";
107
+ const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
108
+ AlertDialogPrimitive.Title,
109
+ {
110
+ ref,
111
+ className: (0, import_utils.default)("text-lg font-semibold", className),
112
+ ...props
113
+ }
114
+ ));
115
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
116
+ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
117
+ AlertDialogPrimitive.Description,
118
+ {
119
+ ref,
120
+ className: (0, import_utils.default)("text-sm text-muted-foreground", className),
121
+ ...props
122
+ }
123
+ ));
124
+ AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
125
+ const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
126
+ AlertDialogPrimitive.Action,
127
+ {
128
+ ref,
129
+ className: (0, import_utils.default)((0, import_button.buttonVariants)(), className),
130
+ ...props
131
+ }
132
+ ));
133
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
134
+ const AlertDialogCancel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
135
+ AlertDialogPrimitive.Cancel,
136
+ {
137
+ ref,
138
+ className: (0, import_utils.default)(
139
+ (0, import_button.buttonVariants)({ variant: "outline" }),
140
+ "mt-2 sm:mt-0",
141
+ className
142
+ ),
143
+ ...props
144
+ }
145
+ ));
146
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ AlertDialog,
150
+ AlertDialogAction,
151
+ AlertDialogCancel,
152
+ AlertDialogContent,
153
+ AlertDialogDescription,
154
+ AlertDialogFooter,
155
+ AlertDialogHeader,
156
+ AlertDialogOverlay,
157
+ AlertDialogPortal,
158
+ AlertDialogTitle,
159
+ AlertDialogTrigger
160
+ });
@@ -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 back_button_exports = {};
30
+ __export(back_button_exports, {
31
+ BackButton: () => BackButton
32
+ });
33
+ module.exports = __toCommonJS(back_button_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_lucide_react = require("lucide-react");
36
+ var import_link = __toESM(require("next/link"));
37
+ var import_utils = __toESM(require('../utils/index.js'));
38
+ function BackButton({ href, text, className }) {
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
40
+ import_link.default,
41
+ {
42
+ href,
43
+ className: (0, import_utils.default)(
44
+ "flex items-center text-sm text-muted-foreground hover:text-foreground mb-6",
45
+ className
46
+ ),
47
+ children: [
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowLeft, { className: "mr-2 h-4 w-4" }),
49
+ text || "Back"
50
+ ]
51
+ }
52
+ );
53
+ }
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ BackButton
57
+ });
@@ -0,0 +1,61 @@
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 badge_exports = {};
30
+ __export(badge_exports, {
31
+ Badge: () => Badge,
32
+ badgeVariants: () => badgeVariants
33
+ });
34
+ module.exports = __toCommonJS(badge_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_class_variance_authority = require("class-variance-authority");
37
+ var import_utils = __toESM(require('../utils/index.js'));
38
+ const badgeVariants = (0, import_class_variance_authority.cva)(
39
+ "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
40
+ {
41
+ variants: {
42
+ variant: {
43
+ default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
44
+ secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
45
+ destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
46
+ outline: "text-foreground"
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ variant: "default"
51
+ }
52
+ }
53
+ );
54
+ function Badge({ className, variant, ...props }) {
55
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_utils.default)(badgeVariants({ variant }), className), ...props });
56
+ }
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ Badge,
60
+ badgeVariants
61
+ });
@@ -0,0 +1,88 @@
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 button_exports = {};
30
+ __export(button_exports, {
31
+ Button: () => Button,
32
+ buttonVariants: () => buttonVariants
33
+ });
34
+ module.exports = __toCommonJS(button_exports);
35
+ var import_jsx_runtime = require("react/jsx-runtime");
36
+ var import_react_slot = require("@radix-ui/react-slot");
37
+ var import_class_variance_authority = require("class-variance-authority");
38
+ var React = __toESM(require("react"));
39
+ var import_utils = __toESM(require('../../utils/index.js'));
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]:size-4 [&_svg]:shrink-0",
42
+ {
43
+ variants: {
44
+ variant: {
45
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
46
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
47
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
48
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
49
+ ghost: "hover:bg-accent hover:text-accent-foreground",
50
+ link: "text-primary underline-offset-4 hover:underline",
51
+ pink: "bg-pink-700 hover:bg-pink-600 disabled:bg-pink-700 text-white",
52
+ "pink-outline": "border border-pink-700 hover:border-pink-600 disabled:border-pink-700 text-white",
53
+ blue: "bg-blue-800 hover:bg-blue-700 disabled:bg-blue-700 text-white",
54
+ "blue-outline": "border border-blue-800 hover:border-blue-700 disabled:border-blue-800 text-white"
55
+ },
56
+ size: {
57
+ xs: "rounded-full px-3 py-0.5 text-xs",
58
+ sm: "h-8 rounded-md px-3 text-xs",
59
+ default: "h-9 px-4 py-2",
60
+ lg: "h-10 rounded-md px-8",
61
+ icon: "h-9 w-9"
62
+ }
63
+ },
64
+ defaultVariants: {
65
+ variant: "default",
66
+ size: "default"
67
+ }
68
+ }
69
+ );
70
+ const Button = React.forwardRef(
71
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
72
+ const Comp = asChild ? import_react_slot.Slot : "button";
73
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ Comp,
75
+ {
76
+ className: (0, import_utils.default)(buttonVariants({ variant, size, className })),
77
+ ref,
78
+ ...props
79
+ }
80
+ );
81
+ }
82
+ );
83
+ Button.displayName = "Button";
84
+ // Annotate the CommonJS export names for ESM import in node:
85
+ 0 && (module.exports = {
86
+ Button,
87
+ buttonVariants
88
+ });
@@ -0,0 +1,62 @@
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 copy_button_exports = {};
30
+ __export(copy_button_exports, {
31
+ CopyButton: () => CopyButton
32
+ });
33
+ module.exports = __toCommonJS(copy_button_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_lucide_react = require("lucide-react");
36
+ var React = __toESM(require("react"));
37
+ var import_utils = __toESM(require('../../utils/index.js'));
38
+ var import_button = require('./button.js');
39
+ const CopyButton = React.forwardRef(
40
+ ({ text, name, className, size = "3", ...props }, ref) => {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
+ import_button.Button,
43
+ {
44
+ ref,
45
+ variant: "ghost",
46
+ size: "sm",
47
+ className: (0, import_utils.default)(
48
+ "text-muted-foreground hover:text-white p-0 h-auto",
49
+ className
50
+ ),
51
+ onClick: () => (0, import_utils.copyToClipboard)({ text, name }),
52
+ ...props,
53
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Copy, { className: `h-${size} w-${size}` })
54
+ }
55
+ );
56
+ }
57
+ );
58
+ CopyButton.displayName = "CopyButton";
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ CopyButton
62
+ });
@@ -0,0 +1,62 @@
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 external_button_exports = {};
30
+ __export(external_button_exports, {
31
+ ExternalButton: () => ExternalButton
32
+ });
33
+ module.exports = __toCommonJS(external_button_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_lucide_react = require("lucide-react");
36
+ var React = __toESM(require("react"));
37
+ var import_utils = __toESM(require('../../utils/index.js'));
38
+ var import_button = require('./button.js');
39
+ const ExternalButton = React.forwardRef(
40
+ ({ url, className, size = "3", ...props }, ref) => {
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
+ import_button.Button,
43
+ {
44
+ ref,
45
+ variant: "ghost",
46
+ size: "sm",
47
+ className: (0, import_utils.default)(
48
+ "text-muted-foreground hover:text-white p-0 h-auto",
49
+ className
50
+ ),
51
+ onClick: () => window.open(url, "_blank"),
52
+ ...props,
53
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: `h-${size} w-${size}` })
54
+ }
55
+ );
56
+ }
57
+ );
58
+ ExternalButton.displayName = "CopyButton";
59
+ // Annotate the CommonJS export names for ESM import in node:
60
+ 0 && (module.exports = {
61
+ ExternalButton
62
+ });
@@ -0,0 +1,60 @@
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 tab_button_exports = {};
30
+ __export(tab_button_exports, {
31
+ TabButton: () => TabButton
32
+ });
33
+ module.exports = __toCommonJS(tab_button_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
+ var import_button = require('./button.js');
38
+ const TabButton = React.forwardRef(
39
+ ({ className, children, size = "sm", ...props }, ref) => {
40
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
41
+ import_button.Button,
42
+ {
43
+ ref,
44
+ variant: "outline",
45
+ size,
46
+ className: (0, import_utils.default)(
47
+ "bg-gray-900 text-gray-100 border-gray-700 hover:bg-gray-800 border-gray-300",
48
+ className
49
+ ),
50
+ ...props,
51
+ children
52
+ }
53
+ );
54
+ }
55
+ );
56
+ TabButton.displayName = "TabButton";
57
+ // Annotate the CommonJS export names for ESM import in node:
58
+ 0 && (module.exports = {
59
+ TabButton
60
+ });
@@ -0,0 +1,103 @@
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 card_exports = {};
30
+ __export(card_exports, {
31
+ Card: () => Card,
32
+ CardContent: () => CardContent,
33
+ CardDescription: () => CardDescription,
34
+ CardFooter: () => CardFooter,
35
+ CardHeader: () => CardHeader,
36
+ CardTitle: () => CardTitle
37
+ });
38
+ module.exports = __toCommonJS(card_exports);
39
+ var import_jsx_runtime = require("react/jsx-runtime");
40
+ var React = __toESM(require("react"));
41
+ var import_utils = __toESM(require('../utils/index.js'));
42
+ const Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
43
+ "div",
44
+ {
45
+ ref,
46
+ className: (0, import_utils.default)(
47
+ "rounded-xl border bg-card text-card-foreground shadow",
48
+ className
49
+ ),
50
+ ...props
51
+ }
52
+ ));
53
+ Card.displayName = "Card";
54
+ const CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
55
+ "div",
56
+ {
57
+ ref,
58
+ className: (0, import_utils.default)("flex flex-col space-y-1.5 p-6", className),
59
+ ...props
60
+ }
61
+ ));
62
+ CardHeader.displayName = "CardHeader";
63
+ const CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ "div",
65
+ {
66
+ ref,
67
+ className: (0, import_utils.default)(
68
+ "font-semibold leading-none tracking-tight text-2xl",
69
+ className
70
+ ),
71
+ ...props
72
+ }
73
+ ));
74
+ CardTitle.displayName = "CardTitle";
75
+ const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
76
+ "div",
77
+ {
78
+ ref,
79
+ className: (0, import_utils.default)("text-sm text-muted-foreground", className),
80
+ ...props
81
+ }
82
+ ));
83
+ CardDescription.displayName = "CardDescription";
84
+ const CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: (0, import_utils.default)("p-6 pt-0", className), ...props }));
85
+ CardContent.displayName = "CardContent";
86
+ const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ "div",
88
+ {
89
+ ref,
90
+ className: (0, import_utils.default)("flex items-center p-6 pt-0", className),
91
+ ...props
92
+ }
93
+ ));
94
+ CardFooter.displayName = "CardFooter";
95
+ // Annotate the CommonJS export names for ESM import in node:
96
+ 0 && (module.exports = {
97
+ Card,
98
+ CardContent,
99
+ CardDescription,
100
+ CardFooter,
101
+ CardHeader,
102
+ CardTitle
103
+ });