prisma-goat 0.0.2 → 0.0.3
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/prisma-goat.js +52 -50
- package/dist/prisma-goat.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/prisma-goat.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import o, { forwardRef as
|
|
1
|
+
import { jsx as c, jsxs as F } from "react/jsx-runtime";
|
|
2
|
+
import o, { forwardRef as A } from "react";
|
|
3
3
|
function z(t) {
|
|
4
4
|
var r, a, e = "";
|
|
5
5
|
if (typeof t == "string" || typeof t == "number") e += t;
|
|
@@ -19,10 +19,10 @@ var M = {
|
|
|
19
19
|
className: void 0,
|
|
20
20
|
style: void 0,
|
|
21
21
|
attr: void 0
|
|
22
|
-
}, p = o.createContext && /* @__PURE__ */ o.createContext(M),
|
|
23
|
-
function
|
|
22
|
+
}, p = o.createContext && /* @__PURE__ */ o.createContext(M), E = ["attr", "size", "title"];
|
|
23
|
+
function S(t, r) {
|
|
24
24
|
if (t == null) return {};
|
|
25
|
-
var a =
|
|
25
|
+
var a = I(t, r), e, i;
|
|
26
26
|
if (Object.getOwnPropertySymbols) {
|
|
27
27
|
var h = Object.getOwnPropertySymbols(t);
|
|
28
28
|
for (i = 0; i < h.length; i++)
|
|
@@ -30,7 +30,7 @@ function E(t, r) {
|
|
|
30
30
|
}
|
|
31
31
|
return a;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function I(t, r) {
|
|
34
34
|
if (t == null) return {};
|
|
35
35
|
var a = {};
|
|
36
36
|
for (var e in t)
|
|
@@ -64,21 +64,21 @@ function f(t) {
|
|
|
64
64
|
for (var r = 1; r < arguments.length; r++) {
|
|
65
65
|
var a = arguments[r] != null ? arguments[r] : {};
|
|
66
66
|
r % 2 ? w(Object(a), !0).forEach(function(e) {
|
|
67
|
-
|
|
67
|
+
_(t, e, a[e]);
|
|
68
68
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : w(Object(a)).forEach(function(e) {
|
|
69
69
|
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(a, e));
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
return t;
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return r =
|
|
74
|
+
function _(t, r, a) {
|
|
75
|
+
return r = D(r), r in t ? Object.defineProperty(t, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = a, t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
var r =
|
|
77
|
+
function D(t) {
|
|
78
|
+
var r = R(t, "string");
|
|
79
79
|
return typeof r == "symbol" ? r : r + "";
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function R(t, r) {
|
|
82
82
|
if (typeof t != "object" || !t) return t;
|
|
83
83
|
var a = t[Symbol.toPrimitive];
|
|
84
84
|
if (a !== void 0) {
|
|
@@ -94,17 +94,17 @@ function x(t) {
|
|
|
94
94
|
}, r.attr), x(r.child)));
|
|
95
95
|
}
|
|
96
96
|
function n(t) {
|
|
97
|
-
return (r) => /* @__PURE__ */ o.createElement(
|
|
97
|
+
return (r) => /* @__PURE__ */ o.createElement(W, u({
|
|
98
98
|
attr: f({}, t.attr)
|
|
99
99
|
}, r), x(t.child));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function W(t) {
|
|
102
102
|
var r = (a) => {
|
|
103
103
|
var {
|
|
104
104
|
attr: e,
|
|
105
105
|
size: i,
|
|
106
106
|
title: h
|
|
107
|
-
} = t, g =
|
|
107
|
+
} = t, g = S(t, E), d = i || a.size || "1em", s;
|
|
108
108
|
return a.className && (s = a.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */ o.createElement("svg", u({
|
|
109
109
|
stroke: "currentColor",
|
|
110
110
|
fill: "currentColor",
|
|
@@ -121,61 +121,61 @@ function R(t) {
|
|
|
121
121
|
};
|
|
122
122
|
return p !== void 0 ? /* @__PURE__ */ o.createElement(p.Consumer, null, (a) => r(a)) : r(M);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function Z(t) {
|
|
125
125
|
return n({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z" }, child: [] }] })(t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function G(t) {
|
|
128
128
|
return n({ tag: "svg", attr: { viewBox: "0 0 1024 1024" }, child: [{ tag: "path", attr: { d: "M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z" }, child: [] }] })(t);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function k(t) {
|
|
131
131
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M9.586 4l-6.586 6.586a2 2 0 0 0 0 2.828l6.586 6.586a2 2 0 0 0 2.18 .434l.145 -.068a2 2 0 0 0 1.089 -1.78v-2.586h2a1 1 0 0 0 1 -1v-6l-.007 -.117a1 1 0 0 0 -.993 -.883l-2 -.001v-2.585a2 2 0 0 0 -3.414 -1.414z" }, child: [] }, { tag: "path", attr: { d: "M21 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z" }, child: [] }, { tag: "path", attr: { d: "M18 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z" }, child: [] }] })(t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function q(t) {
|
|
134
134
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M12.089 3.634a2 2 0 0 0 -1.089 1.78l-.001 2.585l-1.999 .001a1 1 0 0 0 -1 1v6l.007 .117a1 1 0 0 0 .993 .883l1.999 -.001l.001 2.587a2 2 0 0 0 3.414 1.414l6.586 -6.586a2 2 0 0 0 0 -2.828l-6.586 -6.586a2 2 0 0 0 -2.18 -.434l-.145 .068z" }, child: [] }, { tag: "path", attr: { d: "M3 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z" }, child: [] }, { tag: "path", attr: { d: "M6 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z" }, child: [] }] })(t);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function K(t) {
|
|
137
137
|
return n({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z" }, child: [] }] })(t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function U(t) {
|
|
140
140
|
return n({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z" }, child: [] }] })(t);
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function J(t) {
|
|
143
143
|
return n({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z" }, child: [] }] })(t);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Q(t) {
|
|
146
146
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z" }, child: [] }] })(t);
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function X(t) {
|
|
149
149
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M7 17V9.93L13.93 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8.93L14.07 17H7z" }, child: [] }, { tag: "path", attr: { d: "M9 15h4.24l7.2-7.2-4.24-4.24-7.2 7.2zM22.91 2.49 21.5 1.08c-.78-.78-2.05-.78-2.83 0l-1.06 1.06 4.24 4.24 1.06-1.06c.79-.78.79-2.05 0-2.83z" }, child: [] }] })(t);
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Y(t) {
|
|
152
152
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M13 3a9 9 0 0 0-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42A8.982 8.982 0 0 0 13 21a9 9 0 0 0 0-18zm2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1zm-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1v1z" }, child: [] }] })(t);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function $(t) {
|
|
155
155
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 8v6l4.7 2.9.8-1.2-4-2.4V8z" }, child: [] }, { tag: "path", attr: { d: "M17.92 12A6.957 6.957 0 0 1 11 20c-3.9 0-7-3.1-7-7s3.1-7 7-7c.7 0 1.37.1 2 .29V4.23c-.64-.15-1.31-.23-2-.23-5 0-9 4-9 9s4 9 9 9a8.963 8.963 0 0 0 8.94-10h-2.02z" }, child: [] }, { tag: "path", attr: { d: "M20 5V2h-2v3h-3v2h3v3h2V7h3V5z" }, child: [] }] })(t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function T(t) {
|
|
158
158
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm3 5.5h-2.5V21h-1v-2.5H15v-1h2.5V15h1v2.5H21v1zM7 5h13v2H7z" }, child: [] }, { tag: "circle", attr: { cx: "3.5", cy: "18", r: "1.5" }, child: [] }, { tag: "path", attr: { d: "M18 11H7v2h6.11c1.26-1.24 2.99-2 4.89-2zM7 17v2h4.08c-.05-.33-.08-.66-.08-1s.03-.67.08-1H7z" }, child: [] }, { tag: "circle", attr: { cx: "3.5", cy: "6", r: "1.5" }, child: [] }, { tag: "circle", attr: { cx: "3.5", cy: "12", r: "1.5" }, child: [] }] })(t);
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function t1(t) {
|
|
161
161
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M11 8v5l4.25 2.52.77-1.28-3.52-2.09V8H11zm10 2V3l-2.64 2.64A8.937 8.937 0 0 0 12 3a9 9 0 1 0 9 9h-2c0 3.86-3.14 7-7 7s-7-3.14-7-7 3.14-7 7-7c1.93 0 3.68.79 4.95 2.05L14 10h7z" }, child: [] }] })(t);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function r1(t) {
|
|
164
164
|
return n({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M341.334 128v234.666C341.334 409.604 302.938 448 256 448c-46.937 0-85.333-38.396-85.333-85.334V117.334C170.667 87.469 194.135 64 224 64c29.864 0 53.333 23.469 53.333 53.334v245.333c0 11.729-9.605 21.333-21.334 21.333s-21.333-9.604-21.333-21.333V160h-32v202.667C202.667 392.531 226.135 416 256 416c29.865 0 53.334-23.469 53.334-53.333V117.334C309.334 70.401 270.938 32 224 32s-85.334 38.401-85.334 85.334v245.332C138.667 427.729 190.938 480 256 480c65.062 0 117.334-52.271 117.334-117.334V128h-32z" }, child: [] }] })(t);
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function e1(t) {
|
|
167
167
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", strokeWidth: "2", d: "M22,3 L2,11 L20.5,19 L22,3 Z M10,20.5 L13,16 M15.5,9.5 L9,14 L9.85884537,20.0119176 C9.93680292,20.5576204 10.0751625,20.5490248 10.1651297,20.009222 L11,15 L15.5,9.5 Z" }, child: [] }] })(t);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function a1(t) {
|
|
170
170
|
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Login" }, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M20.944,18.432a2.577,2.577,0,0,1-2.729,2.5c-2.153.012-4.307,0-6.46,0a.5.5,0,0,1,0-1c2.2,0,4.4.032,6.6,0,1.107-.016,1.589-.848,1.589-1.838V5.63a1.545,1.545,0,0,0-.969-1.471,3.027,3.027,0,0,0-1.061-.095H11.755a.5.5,0,0,1,0-1c2.225,0,4.465-.085,6.688,0a2.566,2.566,0,0,1,2.5,2.67Z" }, child: [] }, { tag: "path", attr: { d: "M15.794,12.354a.459.459,0,0,0,.138-.312A.3.3,0,0,0,15.938,12a.29.29,0,0,0-.006-.041.455.455,0,0,0-.138-.313L12.125,7.978a.5.5,0,0,0-.707.707L14.234,11.5H3.492a.5.5,0,0,0,0,1H14.234l-2.816,2.815a.5.5,0,0,0,.707.707Z" }, child: [] }] }] }] })(t);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function c1(t) {
|
|
173
173
|
return n({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M336 376V272H191a16 16 0 0 1 0-32h145V136a56.06 56.06 0 0 0-56-56H88a56.06 56.06 0 0 0-56 56v240a56.06 56.06 0 0 0 56 56h192a56.06 56.06 0 0 0 56-56zm89.37-104-52.68 52.69a16 16 0 0 0 22.62 22.62l80-80a16 16 0 0 0 0-22.62l-80-80a16 16 0 0 0-22.62 22.62L425.37 240H336v32z" }, child: [] }] })(t);
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function l1(t) {
|
|
176
176
|
return n({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M192 0c-41.8 0-77.4 26.7-90.5 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64l-37.5 0C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM72 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm104-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM72 368a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm88 0c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z" }, child: [] }] })(t);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const n1 = A(
|
|
179
179
|
({
|
|
180
180
|
children: t,
|
|
181
181
|
variant: r = "primary",
|
|
@@ -189,15 +189,16 @@ const l1 = F(
|
|
|
189
189
|
iconType: l,
|
|
190
190
|
label: H,
|
|
191
191
|
className: y,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
192
|
+
onClick: L,
|
|
193
|
+
...V
|
|
194
|
+
}, N) => {
|
|
195
|
+
const O = v(
|
|
195
196
|
"inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
196
197
|
{
|
|
197
198
|
"text-white": r !== "secondary",
|
|
198
199
|
"text-[#1F2937]": r === "secondary"
|
|
199
200
|
}
|
|
200
|
-
),
|
|
201
|
+
), j = {
|
|
201
202
|
primary: "bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
202
203
|
secondary: "bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
203
204
|
vividPink: "bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",
|
|
@@ -206,11 +207,11 @@ const l1 = F(
|
|
|
206
207
|
danger: "bg-[#b91c1c] hover:bg-[#9b1c1c] focus:ring-[#b91c1c] focus:border-[#b91c1c]",
|
|
207
208
|
warning: "bg-[#f59e0b] hover:bg-[#d97706] focus:ring-[#f59e0b] focus:border-[#f59e0b]",
|
|
208
209
|
success: "bg-[#047857] hover:bg-[#065f46] focus:ring-[#047857] focus:border-[#047857]"
|
|
209
|
-
},
|
|
210
|
+
}, B = {
|
|
210
211
|
small: "px-4 py-1.5 text-xs",
|
|
211
212
|
medium: "px-6 py-2.5 text-base",
|
|
212
213
|
large: "px-8 py-3 text-lg"
|
|
213
|
-
},
|
|
214
|
+
}, C = () => l === "home" ? /* @__PURE__ */ c(G, { className: "w-5 h-5" }) : l === "Left" ? /* @__PURE__ */ c(k, { className: "w-5 h-5" }) : l === "right" ? /* @__PURE__ */ c(q, { className: "w-5 h-5" }) : l === "save" ? /* @__PURE__ */ c(J, { className: "w-5 h-5" }) : l === "more" ? /* @__PURE__ */ c($, { className: "w-5 h-5" }) : l === "update" ? /* @__PURE__ */ c(t1, { className: "w-5 h-5" }) : l === "attach" ? /* @__PURE__ */ c(r1, { className: "w-5 h-5" }) : l === "send" ? /* @__PURE__ */ c(e1, { className: "w-5 h-5" }) : l === "delete" ? /* @__PURE__ */ c(Q, { className: "w-5 h-5" }) : l === "edit" ? /* @__PURE__ */ c(X, { className: "w-5 h-5" }) : l === "login" ? /* @__PURE__ */ c(a1, { className: "w-5 h-5" }) : l === "reset" ? /* @__PURE__ */ c(Y, { className: "w-5 h-5" }) : l === "add" ? /* @__PURE__ */ c(T, { className: "w-5 h-5" }) : l === "exit" ? /* @__PURE__ */ c(c1, { className: "w-5 h-5" }) : l === "off" ? /* @__PURE__ */ c(U, { className: "w-5 h-5" }) : l === "calculator" ? /* @__PURE__ */ c(Z, { className: "w-5 h-5" }) : l === "list" ? /* @__PURE__ */ c(l1, { className: "w-5 h-5" }) : l === "futbol" ? /* @__PURE__ */ c(K, { className: "w-5 h-5" }) : null, m = /* @__PURE__ */ c(
|
|
214
215
|
"div",
|
|
215
216
|
{
|
|
216
217
|
className: v(
|
|
@@ -218,15 +219,15 @@ const l1 = F(
|
|
|
218
219
|
r === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
219
220
|
)
|
|
220
221
|
}
|
|
221
|
-
), b = () => o.isValidElement(d) ? o.cloneElement(d, { className: "w-5 h-5" }) :
|
|
222
|
-
return /* @__PURE__ */
|
|
222
|
+
), b = () => o.isValidElement(d) ? o.cloneElement(d, { className: "w-5 h-5" }) : C(), P = H || t;
|
|
223
|
+
return /* @__PURE__ */ F(
|
|
223
224
|
"button",
|
|
224
225
|
{
|
|
225
|
-
ref:
|
|
226
|
+
ref: N,
|
|
226
227
|
className: v(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
O,
|
|
229
|
+
j[r],
|
|
230
|
+
B[a],
|
|
230
231
|
{
|
|
231
232
|
"opacity-60 cursor-not-allowed": e,
|
|
232
233
|
"opacity-20 cursor-not-allowed": h && !e
|
|
@@ -235,11 +236,12 @@ const l1 = F(
|
|
|
235
236
|
),
|
|
236
237
|
disabled: e || h,
|
|
237
238
|
type: g ? "submit" : "button",
|
|
238
|
-
|
|
239
|
+
onClick: L,
|
|
240
|
+
...V,
|
|
239
241
|
children: [
|
|
240
242
|
e && i === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: m }),
|
|
241
243
|
s === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: b() }),
|
|
242
|
-
|
|
244
|
+
P,
|
|
243
245
|
s === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: b() }),
|
|
244
246
|
e && i === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: m })
|
|
245
247
|
]
|
|
@@ -247,7 +249,7 @@ const l1 = F(
|
|
|
247
249
|
);
|
|
248
250
|
}
|
|
249
251
|
);
|
|
250
|
-
|
|
252
|
+
n1.displayName = "Button";
|
|
251
253
|
export {
|
|
252
|
-
|
|
254
|
+
n1 as Button
|
|
253
255
|
};
|
package/dist/prisma-goat.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(s,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],c):(s=typeof globalThis<"u"?globalThis:s||self,c(s["prisma-goat"]={},s["react/jsx-runtime"],s.React))})(this,function(s,c,o){"use strict";function b(t){var r,a,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(a=b(t[r]))&&(e&&(e+=" "),e+=a)}else for(a in t)t[a]&&(e&&(e+=" "),e+=a);return e}function v(){for(var t,r,a=0,e="",i=arguments.length;a<i;a++)(t=arguments[a])&&(r=b(t))&&(e&&(e+=" "),e+=r);return e}var p={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w=o.createContext&&o.createContext(p),L=["attr","size","title"];function O(t,r){if(t==null)return{};var a=V(t,r),e,i;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(t);for(i=0;i<h.length;i++)e=h[i],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}function V(t,r){if(t==null)return{};var a={};for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){if(r.indexOf(e)>=0)continue;a[e]=t[e]}return a}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},u.apply(this,arguments)}function z(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,e)}return a}function g(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?z(Object(a),!0).forEach(function(e){N(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):z(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function N(t,r,a){return r=j(r),r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function j(t){var r=B(t,"string");return typeof r=="symbol"?r:r+""}function B(t,r){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var e=a.call(t,r||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function M(t){return t&&t.map((r,a)=>o.createElement(r.tag,g({key:a},r.attr),M(r.child)))}function l(t){return r=>o.createElement(C,u({attr:g({},t.attr)},r),M(t.child))}function C(t){var r=a=>{var{attr:e,size:i,title:h}=t,m=O(t,L),f=i||a.size||"1em",d;return a.className&&(d=a.className),t.className&&(d=(d?d+" ":"")+t.className),o.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,e,m,{className:d,style:g(g({color:t.color||a.color},a.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),h&&o.createElement("title",null,h),t.children)};return w!==void 0?o.createElement(w.Consumer,null,a=>r(a)):r(p)}function P(t){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z"},child:[]}]})(t)}function F(t){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"},child:[]}]})(t)}function S(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.586 4l-6.586 6.586a2 2 0 0 0 0 2.828l6.586 6.586a2 2 0 0 0 2.18 .434l.145 -.068a2 2 0 0 0 1.089 -1.78v-2.586h2a1 1 0 0 0 1 -1v-6l-.007 -.117a1 1 0 0 0 -.993 -.883l-2 -.001v-2.585a2 2 0 0 0 -3.414 -1.414z"},child:[]},{tag:"path",attr:{d:"M21 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]},{tag:"path",attr:{d:"M18 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]}]})(t)}function A(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.089 3.634a2 2 0 0 0 -1.089 1.78l-.001 2.585l-1.999 .001a1 1 0 0 0 -1 1v6l.007 .117a1 1 0 0 0 .993 .883l1.999 -.001l.001 2.587a2 2 0 0 0 3.414 1.414l6.586 -6.586a2 2 0 0 0 0 -2.828l-6.586 -6.586a2 2 0 0 0 -2.18 -.434l-.145 .068z"},child:[]},{tag:"path",attr:{d:"M3 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]},{tag:"path",attr:{d:"M6 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]}]})(t)}function E(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"},child:[]}]})(t)}function I(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(t)}function _(t){return l({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},child:[]}]})(t)}function D(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(t)}function W(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 17V9.93L13.93 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8.93L14.07 17H7z"},child:[]},{tag:"path",attr:{d:"M9 15h4.24l7.2-7.2-4.24-4.24-7.2 7.2zM22.91 2.49 21.5 1.08c-.78-.78-2.05-.78-2.83 0l-1.06 1.06 4.24 4.24 1.06-1.06c.79-.78.79-2.05 0-2.83z"},child:[]}]})(t)}function Z(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 3a9 9 0 0 0-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42A8.982 8.982 0 0 0 13 21a9 9 0 0 0 0-18zm2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1zm-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1v1z"},child:[]}]})(t)}function q(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 8v6l4.7 2.9.8-1.2-4-2.4V8z"},child:[]},{tag:"path",attr:{d:"M17.92 12A6.957 6.957 0 0 1 11 20c-3.9 0-7-3.1-7-7s3.1-7 7-7c.7 0 1.37.1 2 .29V4.23c-.64-.15-1.31-.23-2-.23-5 0-9 4-9 9s4 9 9 9a8.963 8.963 0 0 0 8.94-10h-2.02z"},child:[]},{tag:"path",attr:{d:"M20 5V2h-2v3h-3v2h3v3h2V7h3V5z"},child:[]}]})(t)}function G(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm3 5.5h-2.5V21h-1v-2.5H15v-1h2.5V15h1v2.5H21v1zM7 5h13v2H7z"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"18",r:"1.5"},child:[]},{tag:"path",attr:{d:"M18 11H7v2h6.11c1.26-1.24 2.99-2 4.89-2zM7 17v2h4.08c-.05-.33-.08-.66-.08-1s.03-.67.08-1H7z"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"6",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"12",r:"1.5"},child:[]}]})(t)}function k(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 8v5l4.25 2.52.77-1.28-3.52-2.09V8H11zm10 2V3l-2.64 2.64A8.937 8.937 0 0 0 12 3a9 9 0 1 0 9 9h-2c0 3.86-3.14 7-7 7s-7-3.14-7-7 3.14-7 7-7c1.93 0 3.68.79 4.95 2.05L14 10h7z"},child:[]}]})(t)}function K(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M341.334 128v234.666C341.334 409.604 302.938 448 256 448c-46.937 0-85.333-38.396-85.333-85.334V117.334C170.667 87.469 194.135 64 224 64c29.864 0 53.333 23.469 53.333 53.334v245.333c0 11.729-9.605 21.333-21.334 21.333s-21.333-9.604-21.333-21.333V160h-32v202.667C202.667 392.531 226.135 416 256 416c29.865 0 53.334-23.469 53.334-53.333V117.334C309.334 70.401 270.938 32 224 32s-85.334 38.401-85.334 85.334v245.332C138.667 427.729 190.938 480 256 480c65.062 0 117.334-52.271 117.334-117.334V128h-32z"},child:[]}]})(t)}function U(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M22,3 L2,11 L20.5,19 L22,3 Z M10,20.5 L13,16 M15.5,9.5 L9,14 L9.85884537,20.0119176 C9.93680292,20.5576204 10.0751625,20.5490248 10.1651297,20.009222 L11,15 L15.5,9.5 Z"},child:[]}]})(t)}function J(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Login"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.944,18.432a2.577,2.577,0,0,1-2.729,2.5c-2.153.012-4.307,0-6.46,0a.5.5,0,0,1,0-1c2.2,0,4.4.032,6.6,0,1.107-.016,1.589-.848,1.589-1.838V5.63a1.545,1.545,0,0,0-.969-1.471,3.027,3.027,0,0,0-1.061-.095H11.755a.5.5,0,0,1,0-1c2.225,0,4.465-.085,6.688,0a2.566,2.566,0,0,1,2.5,2.67Z"},child:[]},{tag:"path",attr:{d:"M15.794,12.354a.459.459,0,0,0,.138-.312A.3.3,0,0,0,15.938,12a.29.29,0,0,0-.006-.041.455.455,0,0,0-.138-.313L12.125,7.978a.5.5,0,0,0-.707.707L14.234,11.5H3.492a.5.5,0,0,0,0,1H14.234l-2.816,2.815a.5.5,0,0,0,.707.707Z"},child:[]}]}]}]})(t)}function Q(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 376V272H191a16 16 0 0 1 0-32h145V136a56.06 56.06 0 0 0-56-56H88a56.06 56.06 0 0 0-56 56v240a56.06 56.06 0 0 0 56 56h192a56.06 56.06 0 0 0 56-56zm89.37-104-52.68 52.69a16 16 0 0 0 22.62 22.62l80-80a16 16 0 0 0 0-22.62l-80-80a16 16 0 0 0-22.62 22.62L425.37 240H336v32z"},child:[]}]})(t)}function X(t){return l({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M192 0c-41.8 0-77.4 26.7-90.5 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64l-37.5 0C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM72 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm104-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM72 368a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm88 0c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"},child:[]}]})(t)}const x=o.forwardRef(({children:t,variant:r="primary",size:a="medium",isLoading:e=!1,loadingPosition:i="left",disabled:h=!1,isSubmit:m=!1,icon:f,iconPosition:d="left",iconType:n,label:Y,className:$,...T},R)=>{const t1=v("inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",{"text-white":r!=="secondary","text-[#1F2937]":r==="secondary"}),r1={primary:"bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",secondary:"bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",vividPink:"bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",darkMagenta:"bg-[#770069] hover:bg-[#66005c] focus:ring-[#770069] focus:border-[#770069]",veryDarkViolet:"bg-[#350053] hover:bg-[#2c003f] focus:ring-[#350053] focus:border-[#350053]",danger:"bg-[#b91c1c] hover:bg-[#9b1c1c] focus:ring-[#b91c1c] focus:border-[#b91c1c]",warning:"bg-[#f59e0b] hover:bg-[#d97706] focus:ring-[#f59e0b] focus:border-[#f59e0b]",success:"bg-[#047857] hover:bg-[#065f46] focus:ring-[#047857] focus:border-[#047857]"},e1={small:"px-4 py-1.5 text-xs",medium:"px-6 py-2.5 text-base",large:"px-8 py-3 text-lg"},a1=()=>n==="home"?c.jsx(F,{className:"w-5 h-5"}):n==="Left"?c.jsx(S,{className:"w-5 h-5"}):n==="right"?c.jsx(A,{className:"w-5 h-5"}):n==="save"?c.jsx(_,{className:"w-5 h-5"}):n==="more"?c.jsx(q,{className:"w-5 h-5"}):n==="update"?c.jsx(k,{className:"w-5 h-5"}):n==="attach"?c.jsx(K,{className:"w-5 h-5"}):n==="send"?c.jsx(U,{className:"w-5 h-5"}):n==="delete"?c.jsx(D,{className:"w-5 h-5"}):n==="edit"?c.jsx(W,{className:"w-5 h-5"}):n==="login"?c.jsx(J,{className:"w-5 h-5"}):n==="reset"?c.jsx(Z,{className:"w-5 h-5"}):n==="add"?c.jsx(G,{className:"w-5 h-5"}):n==="exit"?c.jsx(Q,{className:"w-5 h-5"}):n==="off"?c.jsx(I,{className:"w-5 h-5"}):n==="calculator"?c.jsx(P,{className:"w-5 h-5"}):n==="list"?c.jsx(X,{className:"w-5 h-5"}):n==="futbol"?c.jsx(E,{className:"w-5 h-5"}):null,y=c.jsx("div",{className:v("w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",r==="secondary"?"border-[#1F2937]":"border-white")}),H=()=>o.isValidElement(f)?o.cloneElement(f,{className:"w-5 h-5"}):a1(),c1=Y||t;return c.jsxs("button",{ref:R,className:v(t1,r1[r],e1[a],{"opacity-60 cursor-not-allowed":e,"opacity-20 cursor-not-allowed":h&&!e},$),disabled:e||h,type:m?"submit":"button",...T,children:[e&&i==="left"&&c.jsx("span",{className:"mr-2",children:y}),d==="left"&&c.jsx("span",{className:"mr-2",children:H()}),c1,d==="right"&&c.jsx("span",{className:"ml-2",children:H()}),e&&i==="right"&&c.jsx("span",{className:"ml-2",children:y})]})});x.displayName="Button",s.Button=x,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(s,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],c):(s=typeof globalThis<"u"?globalThis:s||self,c(s["prisma-goat"]={},s["react/jsx-runtime"],s.React))})(this,function(s,c,o){"use strict";function b(t){var r,a,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(a=b(t[r]))&&(e&&(e+=" "),e+=a)}else for(a in t)t[a]&&(e&&(e+=" "),e+=a);return e}function v(){for(var t,r,a=0,e="",i=arguments.length;a<i;a++)(t=arguments[a])&&(r=b(t))&&(e&&(e+=" "),e+=r);return e}var p={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w=o.createContext&&o.createContext(p),L=["attr","size","title"];function O(t,r){if(t==null)return{};var a=V(t,r),e,i;if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(t);for(i=0;i<h.length;i++)e=h[i],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}function V(t,r){if(t==null)return{};var a={};for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){if(r.indexOf(e)>=0)continue;a[e]=t[e]}return a}function u(){return u=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(t[e]=a[e])}return t},u.apply(this,arguments)}function z(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),a.push.apply(a,e)}return a}function g(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?z(Object(a),!0).forEach(function(e){N(t,e,a[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):z(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))})}return t}function N(t,r,a){return r=j(r),r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function j(t){var r=B(t,"string");return typeof r=="symbol"?r:r+""}function B(t,r){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var e=a.call(t,r||"default");if(typeof e!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function M(t){return t&&t.map((r,a)=>o.createElement(r.tag,g({key:a},r.attr),M(r.child)))}function l(t){return r=>o.createElement(C,u({attr:g({},t.attr)},r),M(t.child))}function C(t){var r=a=>{var{attr:e,size:i,title:h}=t,m=O(t,L),f=i||a.size||"1em",d;return a.className&&(d=a.className),t.className&&(d=(d?d+" ":"")+t.className),o.createElement("svg",u({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,e,m,{className:d,style:g(g({color:t.color||a.color},a.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),h&&o.createElement("title",null,h),t.children)};return w!==void 0?o.createElement(w.Consumer,null,a=>r(a)):r(p)}function P(t){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM440.2 765h-50.8c-2.2 0-4.5-1.1-5.9-2.9L348 718.6l-35.5 43.5a7.38 7.38 0 0 1-5.9 2.9h-50.8c-6.6 0-10.2-7.9-5.8-13.1l62.7-76.8-61.2-74.9c-4.3-5.2-.7-13.1 5.9-13.1h50.9c2.2 0 4.5 1.1 5.9 2.9l34 41.6 34-41.6c1.5-1.9 3.6-2.9 5.9-2.9h50.8c6.6 0 10.2 7.9 5.9 13.1L383.5 675l62.7 76.8c4.2 5.3.6 13.2-6 13.2zm7.8-382c0 2.2-1.4 4-3.2 4H376v68.7c0 1.9-1.8 3.3-4 3.3h-48c-2.2 0-4-1.4-4-3.2V387h-68.8c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4H320v-68.8c0-1.8 1.8-3.2 4-3.2h48c2.2 0 4 1.4 4 3.2V331h68.7c1.9 0 3.3 1.8 3.3 4v48zm328 369c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-104c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48zm0-265c0 2.2-1.4 4-3.2 4H579.2c-1.8 0-3.2-1.8-3.2-4v-48c0-2.2 1.4-4 3.2-4h193.5c1.9 0 3.3 1.8 3.3 4v48z"},child:[]}]})(t)}function F(t){return l({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 0 0-44.4 0L77.5 505a63.9 63.9 0 0 0-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0 0 18.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"},child:[]}]})(t)}function S(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M9.586 4l-6.586 6.586a2 2 0 0 0 0 2.828l6.586 6.586a2 2 0 0 0 2.18 .434l.145 -.068a2 2 0 0 0 1.089 -1.78v-2.586h2a1 1 0 0 0 1 -1v-6l-.007 -.117a1 1 0 0 0 -.993 -.883l-2 -.001v-2.585a2 2 0 0 0 -3.414 -1.414z"},child:[]},{tag:"path",attr:{d:"M21 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]},{tag:"path",attr:{d:"M18 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]}]})(t)}function A(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M12.089 3.634a2 2 0 0 0 -1.089 1.78l-.001 2.585l-1.999 .001a1 1 0 0 0 -1 1v6l.007 .117a1 1 0 0 0 .993 .883l1.999 -.001l.001 2.587a2 2 0 0 0 3.414 1.414l6.586 -6.586a2 2 0 0 0 0 -2.828l-6.586 -6.586a2 2 0 0 0 -2.18 -.434l-.145 .068z"},child:[]},{tag:"path",attr:{d:"M3 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]},{tag:"path",attr:{d:"M6 8a1 1 0 0 1 .993 .883l.007 .117v6a1 1 0 0 1 -1.993 .117l-.007 -.117v-6a1 1 0 0 1 1 -1z"},child:[]}]})(t)}function E(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"},child:[]}]})(t)}function I(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"},child:[]}]})(t)}function _(t){return l({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"},child:[]}]})(t)}function D(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(t)}function W(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M7 17V9.93L13.93 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8.93L14.07 17H7z"},child:[]},{tag:"path",attr:{d:"M9 15h4.24l7.2-7.2-4.24-4.24-7.2 7.2zM22.91 2.49 21.5 1.08c-.78-.78-2.05-.78-2.83 0l-1.06 1.06 4.24 4.24 1.06-1.06c.79-.78.79-2.05 0-2.83z"},child:[]}]})(t)}function Z(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M13 3a9 9 0 0 0-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42A8.982 8.982 0 0 0 13 21a9 9 0 0 0 0-18zm2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1zm-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1v1z"},child:[]}]})(t)}function q(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 8v6l4.7 2.9.8-1.2-4-2.4V8z"},child:[]},{tag:"path",attr:{d:"M17.92 12A6.957 6.957 0 0 1 11 20c-3.9 0-7-3.1-7-7s3.1-7 7-7c.7 0 1.37.1 2 .29V4.23c-.64-.15-1.31-.23-2-.23-5 0-9 4-9 9s4 9 9 9a8.963 8.963 0 0 0 8.94-10h-2.02z"},child:[]},{tag:"path",attr:{d:"M20 5V2h-2v3h-3v2h3v3h2V7h3V5z"},child:[]}]})(t)}function G(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm3 5.5h-2.5V21h-1v-2.5H15v-1h2.5V15h1v2.5H21v1zM7 5h13v2H7z"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"18",r:"1.5"},child:[]},{tag:"path",attr:{d:"M18 11H7v2h6.11c1.26-1.24 2.99-2 4.89-2zM7 17v2h4.08c-.05-.33-.08-.66-.08-1s.03-.67.08-1H7z"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"6",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"3.5",cy:"12",r:"1.5"},child:[]}]})(t)}function k(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M11 8v5l4.25 2.52.77-1.28-3.52-2.09V8H11zm10 2V3l-2.64 2.64A8.937 8.937 0 0 0 12 3a9 9 0 1 0 9 9h-2c0 3.86-3.14 7-7 7s-7-3.14-7-7 3.14-7 7-7c1.93 0 3.68.79 4.95 2.05L14 10h7z"},child:[]}]})(t)}function K(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M341.334 128v234.666C341.334 409.604 302.938 448 256 448c-46.937 0-85.333-38.396-85.333-85.334V117.334C170.667 87.469 194.135 64 224 64c29.864 0 53.333 23.469 53.333 53.334v245.333c0 11.729-9.605 21.333-21.334 21.333s-21.333-9.604-21.333-21.333V160h-32v202.667C202.667 392.531 226.135 416 256 416c29.865 0 53.334-23.469 53.334-53.333V117.334C309.334 70.401 270.938 32 224 32s-85.334 38.401-85.334 85.334v245.332C138.667 427.729 190.938 480 256 480c65.062 0 117.334-52.271 117.334-117.334V128h-32z"},child:[]}]})(t)}function U(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M22,3 L2,11 L20.5,19 L22,3 Z M10,20.5 L13,16 M15.5,9.5 L9,14 L9.85884537,20.0119176 C9.93680292,20.5576204 10.0751625,20.5490248 10.1651297,20.009222 L11,15 L15.5,9.5 Z"},child:[]}]})(t)}function J(t){return l({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Login"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M20.944,18.432a2.577,2.577,0,0,1-2.729,2.5c-2.153.012-4.307,0-6.46,0a.5.5,0,0,1,0-1c2.2,0,4.4.032,6.6,0,1.107-.016,1.589-.848,1.589-1.838V5.63a1.545,1.545,0,0,0-.969-1.471,3.027,3.027,0,0,0-1.061-.095H11.755a.5.5,0,0,1,0-1c2.225,0,4.465-.085,6.688,0a2.566,2.566,0,0,1,2.5,2.67Z"},child:[]},{tag:"path",attr:{d:"M15.794,12.354a.459.459,0,0,0,.138-.312A.3.3,0,0,0,15.938,12a.29.29,0,0,0-.006-.041.455.455,0,0,0-.138-.313L12.125,7.978a.5.5,0,0,0-.707.707L14.234,11.5H3.492a.5.5,0,0,0,0,1H14.234l-2.816,2.815a.5.5,0,0,0,.707.707Z"},child:[]}]}]}]})(t)}function Q(t){return l({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M336 376V272H191a16 16 0 0 1 0-32h145V136a56.06 56.06 0 0 0-56-56H88a56.06 56.06 0 0 0-56 56v240a56.06 56.06 0 0 0 56 56h192a56.06 56.06 0 0 0 56-56zm89.37-104-52.68 52.69a16 16 0 0 0 22.62 22.62l80-80a16 16 0 0 0 0-22.62l-80-80a16 16 0 0 0-22.62 22.62L425.37 240H336v32z"},child:[]}]})(t)}function X(t){return l({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M192 0c-41.8 0-77.4 26.7-90.5 64L64 64C28.7 64 0 92.7 0 128L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64l-37.5 0C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM72 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm104-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM72 368a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm88 0c0-8.8 7.2-16 16-16l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16z"},child:[]}]})(t)}const x=o.forwardRef(({children:t,variant:r="primary",size:a="medium",isLoading:e=!1,loadingPosition:i="left",disabled:h=!1,isSubmit:m=!1,icon:f,iconPosition:d="left",iconType:n,label:Y,className:$,onClick:T,...R},t1)=>{const r1=v("inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",{"text-white":r!=="secondary","text-[#1F2937]":r==="secondary"}),e1={primary:"bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",secondary:"bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",vividPink:"bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",darkMagenta:"bg-[#770069] hover:bg-[#66005c] focus:ring-[#770069] focus:border-[#770069]",veryDarkViolet:"bg-[#350053] hover:bg-[#2c003f] focus:ring-[#350053] focus:border-[#350053]",danger:"bg-[#b91c1c] hover:bg-[#9b1c1c] focus:ring-[#b91c1c] focus:border-[#b91c1c]",warning:"bg-[#f59e0b] hover:bg-[#d97706] focus:ring-[#f59e0b] focus:border-[#f59e0b]",success:"bg-[#047857] hover:bg-[#065f46] focus:ring-[#047857] focus:border-[#047857]"},a1={small:"px-4 py-1.5 text-xs",medium:"px-6 py-2.5 text-base",large:"px-8 py-3 text-lg"},c1=()=>n==="home"?c.jsx(F,{className:"w-5 h-5"}):n==="Left"?c.jsx(S,{className:"w-5 h-5"}):n==="right"?c.jsx(A,{className:"w-5 h-5"}):n==="save"?c.jsx(_,{className:"w-5 h-5"}):n==="more"?c.jsx(q,{className:"w-5 h-5"}):n==="update"?c.jsx(k,{className:"w-5 h-5"}):n==="attach"?c.jsx(K,{className:"w-5 h-5"}):n==="send"?c.jsx(U,{className:"w-5 h-5"}):n==="delete"?c.jsx(D,{className:"w-5 h-5"}):n==="edit"?c.jsx(W,{className:"w-5 h-5"}):n==="login"?c.jsx(J,{className:"w-5 h-5"}):n==="reset"?c.jsx(Z,{className:"w-5 h-5"}):n==="add"?c.jsx(G,{className:"w-5 h-5"}):n==="exit"?c.jsx(Q,{className:"w-5 h-5"}):n==="off"?c.jsx(I,{className:"w-5 h-5"}):n==="calculator"?c.jsx(P,{className:"w-5 h-5"}):n==="list"?c.jsx(X,{className:"w-5 h-5"}):n==="futbol"?c.jsx(E,{className:"w-5 h-5"}):null,y=c.jsx("div",{className:v("w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",r==="secondary"?"border-[#1F2937]":"border-white")}),H=()=>o.isValidElement(f)?o.cloneElement(f,{className:"w-5 h-5"}):c1(),l1=Y||t;return c.jsxs("button",{ref:t1,className:v(r1,e1[r],a1[a],{"opacity-60 cursor-not-allowed":e,"opacity-20 cursor-not-allowed":h&&!e},$),disabled:e||h,type:m?"submit":"button",onClick:T,...R,children:[e&&i==="left"&&c.jsx("span",{className:"mr-2",children:y}),d==="left"&&c.jsx("span",{className:"mr-2",children:H()}),l1,d==="right"&&c.jsx("span",{className:"ml-2",children:H()}),e&&i==="right"&&c.jsx("span",{className:"ml-2",children:y})]})});x.displayName="Button",s.Button=x,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})});
|