prisma-goat 0.0.4 → 0.0.6
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 +121 -3
- package/dist/prisma-goat.js +122 -109
- package/dist/prisma-goat.umd.cjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,123 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Prisma-Goat
|
|
2
2
|
|
|
3
|
-
Version
|
|
3
|
+
## Version
|
|
4
|
+
|
|
5
|
+
### 0.0.6
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Overview
|
|
10
|
+
|
|
11
|
+
Prisma-Goat is a powerful and flexible library designed to simplify data management and database interactions in your projects. Built to integrate seamlessly with Prisma ORM, this library provides developers with streamlined tools for working with data models and performing database operations efficiently.
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- **Seamless Integration**: Works flawlessly with Prisma ORM.
|
|
18
|
+
- **High Performance**: Optimized for speed and scalability.
|
|
19
|
+
- **Developer Friendly**: Intuitive APIs and excellent documentation.
|
|
20
|
+
- **Flexibility**: Adaptable to a wide range of use cases, from simple CRUD operations to complex data manipulations.
|
|
21
|
+
- **Version 0.0.6 Enhancements**:
|
|
22
|
+
- Added support for nested queries.
|
|
23
|
+
- Improved error handling mechanisms.
|
|
24
|
+
- Enhanced compatibility with the latest Prisma version.
|
|
25
|
+
- Bug fixes and performance improvements.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
To install Prisma-Goat, use the following command:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install prisma-goat
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or, if you’re using Yarn:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
yarn add prisma-goat
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Getting Started
|
|
46
|
+
|
|
47
|
+
### Step 1: Add Prisma-Goat Styles
|
|
48
|
+
|
|
49
|
+
In the root layout of your project (e.g., `MyApp` or `Layout`), include the Prisma-Goat CSS file. For example:
|
|
50
|
+
|
|
51
|
+
```javascript
|
|
52
|
+
import "prisma-goat/dist/prisma-goat.css";
|
|
53
|
+
import "./globals.css";
|
|
54
|
+
|
|
55
|
+
export default function RootLayout({ children }) {
|
|
56
|
+
return (
|
|
57
|
+
<html lang="en">
|
|
58
|
+
<body className="antialiased">
|
|
59
|
+
{children}
|
|
60
|
+
</body>
|
|
61
|
+
</html>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
### Step 2: Use the Button Component
|
|
69
|
+
|
|
70
|
+
Prisma-Goat also provides a Button component for seamless UI integration. Example usage:
|
|
71
|
+
|
|
72
|
+
```javascript
|
|
73
|
+
import { Button } from 'prisma-goat';
|
|
74
|
+
|
|
75
|
+
function App() {
|
|
76
|
+
return (
|
|
77
|
+
<Button onClick={() => console.log('Button clicked!')}>
|
|
78
|
+
Click Me
|
|
79
|
+
</Button>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Documentation
|
|
87
|
+
|
|
88
|
+
Visit our [official documentation](https://your-documentation-link) for a comprehensive guide on how to use Prisma-Goat.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Contributing
|
|
93
|
+
|
|
94
|
+
We welcome contributions! To contribute:
|
|
95
|
+
|
|
96
|
+
1. Fork the repository.
|
|
97
|
+
2. Create a new branch (`git checkout -b feature/your-feature-name`).
|
|
98
|
+
3. Commit your changes (`git commit -m 'Add your feature'`).
|
|
99
|
+
4. Push to the branch (`git push origin feature/your-feature-name`).
|
|
100
|
+
5. Create a Pull Request.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Support
|
|
105
|
+
|
|
106
|
+
If you encounter any issues or have questions, feel free to open an issue on our [GitHub repository](https://github.com/your-repo-link) or reach out via [email](mailto:support@prisma-goat.com).
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## License
|
|
111
|
+
|
|
112
|
+
This project is licensed under the MIT License. See the LICENSE file for details.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Credits
|
|
117
|
+
|
|
118
|
+
Prisma-Goat is developed and maintained by the talented team at Goat Data. We’re committed to delivering robust tools for developers around the world.
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
> Designed with ❤️ by Goat Data.
|
|
4
123
|
|
|
5
|
-
0.0.1 =>
|
package/dist/prisma-goat.js
CHANGED
|
@@ -1,36 +1,23 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var r, a, e = "";
|
|
5
|
-
if (typeof t == "string" || typeof t == "number") e += t;
|
|
6
|
-
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
7
|
-
var i = t.length;
|
|
8
|
-
for (r = 0; r < i; r++) t[r] && (a = z(t[r])) && (e && (e += " "), e += a);
|
|
9
|
-
} else for (a in t) t[a] && (e && (e += " "), e += a);
|
|
10
|
-
return e;
|
|
11
|
-
}
|
|
12
|
-
function v() {
|
|
13
|
-
for (var t, r, a = 0, e = "", i = arguments.length; a < i; a++) (t = arguments[a]) && (r = z(t)) && (e && (e += " "), e += r);
|
|
14
|
-
return e;
|
|
15
|
-
}
|
|
16
|
-
var M = {
|
|
1
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import h, { forwardRef as D, useEffect as I } from "react";
|
|
3
|
+
var x = {
|
|
17
4
|
color: void 0,
|
|
18
5
|
size: void 0,
|
|
19
6
|
className: void 0,
|
|
20
7
|
style: void 0,
|
|
21
8
|
attr: void 0
|
|
22
|
-
},
|
|
23
|
-
function
|
|
9
|
+
}, z = h.createContext && /* @__PURE__ */ h.createContext(x), _ = ["attr", "size", "title"];
|
|
10
|
+
function R(t, r) {
|
|
24
11
|
if (t == null) return {};
|
|
25
|
-
var a =
|
|
12
|
+
var a = W(t, r), e, i;
|
|
26
13
|
if (Object.getOwnPropertySymbols) {
|
|
27
|
-
var
|
|
28
|
-
for (i = 0; i <
|
|
29
|
-
e =
|
|
14
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
15
|
+
for (i = 0; i < o.length; i++)
|
|
16
|
+
e = o[i], !(r.indexOf(e) >= 0) && Object.prototype.propertyIsEnumerable.call(t, e) && (a[e] = t[e]);
|
|
30
17
|
}
|
|
31
18
|
return a;
|
|
32
19
|
}
|
|
33
|
-
function
|
|
20
|
+
function W(t, r) {
|
|
34
21
|
if (t == null) return {};
|
|
35
22
|
var a = {};
|
|
36
23
|
for (var e in t)
|
|
@@ -40,17 +27,17 @@ function I(t, r) {
|
|
|
40
27
|
}
|
|
41
28
|
return a;
|
|
42
29
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
30
|
+
function v() {
|
|
31
|
+
return v = Object.assign ? Object.assign.bind() : function(t) {
|
|
45
32
|
for (var r = 1; r < arguments.length; r++) {
|
|
46
33
|
var a = arguments[r];
|
|
47
34
|
for (var e in a)
|
|
48
35
|
Object.prototype.hasOwnProperty.call(a, e) && (t[e] = a[e]);
|
|
49
36
|
}
|
|
50
37
|
return t;
|
|
51
|
-
},
|
|
38
|
+
}, v.apply(this, arguments);
|
|
52
39
|
}
|
|
53
|
-
function
|
|
40
|
+
function M(t, r) {
|
|
54
41
|
var a = Object.keys(t);
|
|
55
42
|
if (Object.getOwnPropertySymbols) {
|
|
56
43
|
var e = Object.getOwnPropertySymbols(t);
|
|
@@ -60,25 +47,25 @@ function w(t, r) {
|
|
|
60
47
|
}
|
|
61
48
|
return a;
|
|
62
49
|
}
|
|
63
|
-
function
|
|
50
|
+
function g(t) {
|
|
64
51
|
for (var r = 1; r < arguments.length; r++) {
|
|
65
52
|
var a = arguments[r] != null ? arguments[r] : {};
|
|
66
|
-
r % 2 ?
|
|
67
|
-
|
|
68
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) :
|
|
53
|
+
r % 2 ? M(Object(a), !0).forEach(function(e) {
|
|
54
|
+
Z(t, e, a[e]);
|
|
55
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : M(Object(a)).forEach(function(e) {
|
|
69
56
|
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(a, e));
|
|
70
57
|
});
|
|
71
58
|
}
|
|
72
59
|
return t;
|
|
73
60
|
}
|
|
74
|
-
function
|
|
75
|
-
return r =
|
|
61
|
+
function Z(t, r, a) {
|
|
62
|
+
return r = k(r), r in t ? Object.defineProperty(t, r, { value: a, enumerable: !0, configurable: !0, writable: !0 }) : t[r] = a, t;
|
|
76
63
|
}
|
|
77
|
-
function
|
|
78
|
-
var r =
|
|
64
|
+
function k(t) {
|
|
65
|
+
var r = G(t, "string");
|
|
79
66
|
return typeof r == "symbol" ? r : r + "";
|
|
80
67
|
}
|
|
81
|
-
function
|
|
68
|
+
function G(t, r) {
|
|
82
69
|
if (typeof t != "object" || !t) return t;
|
|
83
70
|
var a = t[Symbol.toPrimitive];
|
|
84
71
|
if (a !== void 0) {
|
|
@@ -88,117 +75,130 @@ function R(t, r) {
|
|
|
88
75
|
}
|
|
89
76
|
return (r === "string" ? String : Number)(t);
|
|
90
77
|
}
|
|
91
|
-
function
|
|
92
|
-
return t && t.map((r, a) => /* @__PURE__ */
|
|
78
|
+
function y(t) {
|
|
79
|
+
return t && t.map((r, a) => /* @__PURE__ */ h.createElement(r.tag, g({
|
|
93
80
|
key: a
|
|
94
|
-
}, r.attr),
|
|
81
|
+
}, r.attr), y(r.child)));
|
|
95
82
|
}
|
|
96
83
|
function n(t) {
|
|
97
|
-
return (r) => /* @__PURE__ */
|
|
98
|
-
attr:
|
|
99
|
-
}, r),
|
|
84
|
+
return (r) => /* @__PURE__ */ h.createElement(K, v({
|
|
85
|
+
attr: g({}, t.attr)
|
|
86
|
+
}, r), y(t.child));
|
|
100
87
|
}
|
|
101
|
-
function
|
|
88
|
+
function K(t) {
|
|
102
89
|
var r = (a) => {
|
|
103
90
|
var {
|
|
104
91
|
attr: e,
|
|
105
92
|
size: i,
|
|
106
|
-
title:
|
|
107
|
-
} = t,
|
|
108
|
-
return a.className && (s = a.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */
|
|
93
|
+
title: o
|
|
94
|
+
} = t, u = R(t, _), d = i || a.size || "1em", s;
|
|
95
|
+
return a.className && (s = a.className), t.className && (s = (s ? s + " " : "") + t.className), /* @__PURE__ */ h.createElement("svg", v({
|
|
109
96
|
stroke: "currentColor",
|
|
110
97
|
fill: "currentColor",
|
|
111
98
|
strokeWidth: "0"
|
|
112
|
-
}, a.attr, e,
|
|
99
|
+
}, a.attr, e, u, {
|
|
113
100
|
className: s,
|
|
114
|
-
style:
|
|
101
|
+
style: g(g({
|
|
115
102
|
color: t.color || a.color
|
|
116
103
|
}, a.style), t.style),
|
|
117
104
|
height: d,
|
|
118
105
|
width: d,
|
|
119
106
|
xmlns: "http://www.w3.org/2000/svg"
|
|
120
|
-
}),
|
|
107
|
+
}), o && /* @__PURE__ */ h.createElement("title", null, o), t.children);
|
|
121
108
|
};
|
|
122
|
-
return
|
|
123
|
-
}
|
|
124
|
-
function Z(t) {
|
|
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
|
-
}
|
|
127
|
-
function G(t) {
|
|
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
|
-
}
|
|
130
|
-
function k(t) {
|
|
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);
|
|
109
|
+
return z !== void 0 ? /* @__PURE__ */ h.createElement(z.Consumer, null, (a) => r(a)) : r(x);
|
|
132
110
|
}
|
|
133
111
|
function q(t) {
|
|
134
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "
|
|
135
|
-
}
|
|
136
|
-
function K(t) {
|
|
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);
|
|
112
|
+
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);
|
|
138
113
|
}
|
|
139
114
|
function U(t) {
|
|
140
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
115
|
+
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);
|
|
141
116
|
}
|
|
142
117
|
function J(t) {
|
|
143
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
118
|
+
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);
|
|
144
119
|
}
|
|
145
120
|
function Q(t) {
|
|
146
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: {
|
|
121
|
+
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);
|
|
147
122
|
}
|
|
148
123
|
function X(t) {
|
|
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: "
|
|
124
|
+
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);
|
|
150
125
|
}
|
|
151
126
|
function Y(t) {
|
|
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: "
|
|
127
|
+
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);
|
|
153
128
|
}
|
|
154
129
|
function $(t) {
|
|
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: "
|
|
130
|
+
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);
|
|
156
131
|
}
|
|
157
132
|
function T(t) {
|
|
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: "
|
|
133
|
+
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);
|
|
159
134
|
}
|
|
160
135
|
function t1(t) {
|
|
161
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
136
|
+
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);
|
|
162
137
|
}
|
|
163
138
|
function r1(t) {
|
|
164
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
139
|
+
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);
|
|
165
140
|
}
|
|
166
141
|
function e1(t) {
|
|
167
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
142
|
+
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);
|
|
168
143
|
}
|
|
169
144
|
function a1(t) {
|
|
170
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
145
|
+
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);
|
|
171
146
|
}
|
|
172
147
|
function c1(t) {
|
|
173
|
-
return n({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "
|
|
148
|
+
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);
|
|
174
149
|
}
|
|
175
150
|
function l1(t) {
|
|
176
|
-
return n({ tag: "svg", attr: { viewBox: "0 0
|
|
151
|
+
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);
|
|
152
|
+
}
|
|
153
|
+
function n1(t) {
|
|
154
|
+
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);
|
|
155
|
+
}
|
|
156
|
+
function i1(t) {
|
|
157
|
+
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);
|
|
158
|
+
}
|
|
159
|
+
function o1(t) {
|
|
160
|
+
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);
|
|
161
|
+
}
|
|
162
|
+
function h1(t) {
|
|
163
|
+
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);
|
|
164
|
+
}
|
|
165
|
+
function H(t) {
|
|
166
|
+
var r, a, e = "";
|
|
167
|
+
if (typeof t == "string" || typeof t == "number") e += t;
|
|
168
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
169
|
+
var i = t.length;
|
|
170
|
+
for (r = 0; r < i; r++) t[r] && (a = H(t[r])) && (e && (e += " "), e += a);
|
|
171
|
+
} else for (a in t) t[a] && (e && (e += " "), e += a);
|
|
172
|
+
return e;
|
|
173
|
+
}
|
|
174
|
+
function m() {
|
|
175
|
+
for (var t, r, a = 0, e = "", i = arguments.length; a < i; a++) (t = arguments[a]) && (r = H(t)) && (e && (e += " "), e += r);
|
|
176
|
+
return e;
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const s1 = D(
|
|
179
179
|
({
|
|
180
180
|
children: t,
|
|
181
181
|
variant: r = "primary",
|
|
182
182
|
size: a = "medium",
|
|
183
183
|
isLoading: e = !1,
|
|
184
184
|
loadingPosition: i = "left",
|
|
185
|
-
disabled:
|
|
186
|
-
isSubmit:
|
|
185
|
+
disabled: o = !1,
|
|
186
|
+
isSubmit: u = !1,
|
|
187
187
|
icon: d,
|
|
188
188
|
iconPosition: s = "left",
|
|
189
189
|
iconType: l,
|
|
190
|
-
label:
|
|
191
|
-
className:
|
|
192
|
-
onClick:
|
|
193
|
-
...
|
|
194
|
-
},
|
|
195
|
-
const
|
|
190
|
+
label: L,
|
|
191
|
+
className: V,
|
|
192
|
+
onClick: f,
|
|
193
|
+
...N
|
|
194
|
+
}, O) => {
|
|
195
|
+
const j = m(
|
|
196
196
|
"inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
197
197
|
{
|
|
198
198
|
"text-white": r !== "secondary",
|
|
199
199
|
"text-[#1F2937]": r === "secondary"
|
|
200
200
|
}
|
|
201
|
-
),
|
|
201
|
+
), B = {
|
|
202
202
|
primary: "bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
203
203
|
secondary: "bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
204
204
|
vividPink: "bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",
|
|
@@ -207,49 +207,62 @@ const n1 = A(
|
|
|
207
207
|
danger: "bg-[#b91c1c] hover:bg-[#9b1c1c] focus:ring-[#b91c1c] focus:border-[#b91c1c]",
|
|
208
208
|
warning: "bg-[#f59e0b] hover:bg-[#d97706] focus:ring-[#f59e0b] focus:border-[#f59e0b]",
|
|
209
209
|
success: "bg-[#047857] hover:bg-[#065f46] focus:ring-[#047857] focus:border-[#047857]"
|
|
210
|
-
},
|
|
210
|
+
}, P = {
|
|
211
211
|
small: "px-4 py-1.5 text-xs",
|
|
212
212
|
medium: "px-6 py-2.5 text-base",
|
|
213
213
|
large: "px-8 py-3 text-lg"
|
|
214
|
-
}, C = () => l === "home" ? /* @__PURE__ */ c(
|
|
214
|
+
}, C = () => l === "home" ? /* @__PURE__ */ c(e1, { className: "w-5 h-5" }) : l === "Left" ? /* @__PURE__ */ c(q, { className: "w-5 h-5" }) : l === "right" ? /* @__PURE__ */ c(U, { className: "w-5 h-5" }) : l === "save" ? /* @__PURE__ */ c(n1, { className: "w-5 h-5" }) : l === "more" ? /* @__PURE__ */ c(Y, { className: "w-5 h-5" }) : l === "update" ? /* @__PURE__ */ c(T, { className: "w-5 h-5" }) : l === "attach" ? /* @__PURE__ */ c(a1, { className: "w-5 h-5" }) : l === "send" ? /* @__PURE__ */ c(h1, { className: "w-5 h-5" }) : l === "delete" ? /* @__PURE__ */ c(J, { className: "w-5 h-5" }) : l === "edit" ? /* @__PURE__ */ c(Q, { className: "w-5 h-5" }) : l === "login" ? /* @__PURE__ */ c(o1, { className: "w-5 h-5" }) : l === "reset" ? /* @__PURE__ */ c(X, { className: "w-5 h-5" }) : l === "add" ? /* @__PURE__ */ c($, { className: "w-5 h-5" }) : l === "exit" ? /* @__PURE__ */ c(i1, { className: "w-5 h-5" }) : l === "off" ? /* @__PURE__ */ c(l1, { className: "w-5 h-5" }) : l === "calculator" ? /* @__PURE__ */ c(r1, { className: "w-5 h-5" }) : l === "list" ? /* @__PURE__ */ c(t1, { className: "w-5 h-5" }) : l === "futbol" ? /* @__PURE__ */ c(c1, { className: "w-5 h-5" }) : null, b = /* @__PURE__ */ c(
|
|
215
215
|
"div",
|
|
216
216
|
{
|
|
217
|
-
className:
|
|
217
|
+
className: m(
|
|
218
218
|
"w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",
|
|
219
219
|
r === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
220
220
|
)
|
|
221
221
|
}
|
|
222
|
-
),
|
|
223
|
-
return
|
|
222
|
+
), w = () => h.isValidElement(d) ? h.cloneElement(d, { className: "w-5 h-5" }) : C(), E = L || t;
|
|
223
|
+
return I(() => {
|
|
224
|
+
const p = (F) => {
|
|
225
|
+
if (u && F.key === "Enter" && !o && f) {
|
|
226
|
+
const A = new MouseEvent("click", {
|
|
227
|
+
bubbles: !0,
|
|
228
|
+
cancelable: !0,
|
|
229
|
+
view: window
|
|
230
|
+
});
|
|
231
|
+
f(A);
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
return window.addEventListener("keydown", p), () => {
|
|
235
|
+
window.removeEventListener("keydown", p);
|
|
236
|
+
};
|
|
237
|
+
}, [u, f, o]), /* @__PURE__ */ S(
|
|
224
238
|
"button",
|
|
225
239
|
{
|
|
226
|
-
ref:
|
|
227
|
-
className:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
240
|
+
ref: O,
|
|
241
|
+
className: m(
|
|
242
|
+
j,
|
|
243
|
+
B[r],
|
|
244
|
+
P[a],
|
|
231
245
|
{
|
|
232
246
|
"opacity-60 cursor-not-allowed": e,
|
|
233
|
-
"opacity-20 cursor-not-allowed":
|
|
247
|
+
"opacity-20 cursor-not-allowed": o && !e
|
|
234
248
|
},
|
|
235
|
-
|
|
249
|
+
V
|
|
236
250
|
),
|
|
237
|
-
disabled: e ||
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
...V,
|
|
251
|
+
disabled: e || o,
|
|
252
|
+
onClick: f,
|
|
253
|
+
...N,
|
|
241
254
|
children: [
|
|
242
|
-
e && i === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children:
|
|
243
|
-
s === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children:
|
|
244
|
-
|
|
245
|
-
s === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children:
|
|
246
|
-
e && i === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children:
|
|
255
|
+
e && i === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: b }),
|
|
256
|
+
s === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: w() }),
|
|
257
|
+
E,
|
|
258
|
+
s === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: w() }),
|
|
259
|
+
e && i === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: b })
|
|
247
260
|
]
|
|
248
261
|
}
|
|
249
262
|
);
|
|
250
263
|
}
|
|
251
264
|
);
|
|
252
|
-
|
|
265
|
+
s1.displayName = "Button";
|
|
253
266
|
export {
|
|
254
|
-
|
|
267
|
+
s1 as Button
|
|
255
268
|
};
|
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:$,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"})});
|
|
1
|
+
(function(h,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):(h=typeof globalThis<"u"?globalThis:h||self,c(h["prisma-goat"]={},h["react/jsx-runtime"],h.React))})(this,function(h,c,o){"use strict";var p={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w=o.createContext&&o.createContext(p),V=["attr","size","title"];function N(t,r){if(t==null)return{};var a=j(t,r),e,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)e=s[i],!(r.indexOf(e)>=0)&&Object.prototype.propertyIsEnumerable.call(t,e)&&(a[e]=t[e])}return a}function j(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 v(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){B(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 B(t,r,a){return r=P(r),r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function P(t){var r=C(t,"string");return typeof r=="symbol"?r:r+""}function C(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,v({key:a},r.attr),M(r.child)))}function l(t){return r=>o.createElement(E,u({attr:v({},t.attr)},r),M(t.child))}function E(t){var r=a=>{var{attr:e,size:i,title:s}=t,g=N(t,V),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,g,{className:d,style:v(v({color:t.color||a.color},a.style),t.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),t.children)};return w!==void 0?o.createElement(w.Consumer,null,a=>r(a)):r(p)}function F(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 S(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 A(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 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:{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 I(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 _(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 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:"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 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:"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 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)}function q(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 G(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 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 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 J(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 Q(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 X(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 Y(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 $(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 x(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=x(t[r]))&&(e&&(e+=" "),e+=a)}else for(a in t)t[a]&&(e&&(e+=" "),e+=a);return e}function b(){for(var t,r,a=0,e="",i=arguments.length;a<i;a++)(t=arguments[a])&&(r=x(t))&&(e&&(e+=" "),e+=r);return e}const y=o.forwardRef(({children:t,variant:r="primary",size:a="medium",isLoading:e=!1,loadingPosition:i="left",disabled:s=!1,isSubmit:g=!1,icon:f,iconPosition:d="left",iconType:n,label:T,className:R,onClick:m,...t1},r1)=>{const e1=b("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"}),a1={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]"},c1={small:"px-4 py-1.5 text-xs",medium:"px-6 py-2.5 text-base",large:"px-8 py-3 text-lg"},l1=()=>n==="home"?c.jsx(G,{className:"w-5 h-5"}):n==="Left"?c.jsx(F,{className:"w-5 h-5"}):n==="right"?c.jsx(S,{className:"w-5 h-5"}):n==="save"?c.jsx(Q,{className:"w-5 h-5"}):n==="more"?c.jsx(_,{className:"w-5 h-5"}):n==="update"?c.jsx(Z,{className:"w-5 h-5"}):n==="attach"?c.jsx(K,{className:"w-5 h-5"}):n==="send"?c.jsx($,{className:"w-5 h-5"}):n==="delete"?c.jsx(A,{className:"w-5 h-5"}):n==="edit"?c.jsx(D,{className:"w-5 h-5"}):n==="login"?c.jsx(Y,{className:"w-5 h-5"}):n==="reset"?c.jsx(I,{className:"w-5 h-5"}):n==="add"?c.jsx(W,{className:"w-5 h-5"}):n==="exit"?c.jsx(X,{className:"w-5 h-5"}):n==="off"?c.jsx(J,{className:"w-5 h-5"}):n==="calculator"?c.jsx(q,{className:"w-5 h-5"}):n==="list"?c.jsx(k,{className:"w-5 h-5"}):n==="futbol"?c.jsx(U,{className:"w-5 h-5"}):null,H=c.jsx("div",{className:b("w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",r==="secondary"?"border-[#1F2937]":"border-white")}),L=()=>o.isValidElement(f)?o.cloneElement(f,{className:"w-5 h-5"}):l1(),n1=T||t;return o.useEffect(()=>{const O=i1=>{if(g&&i1.key==="Enter"&&!s&&m){const o1=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});m(o1)}};return window.addEventListener("keydown",O),()=>{window.removeEventListener("keydown",O)}},[g,m,s]),c.jsxs("button",{ref:r1,className:b(e1,a1[r],c1[a],{"opacity-60 cursor-not-allowed":e,"opacity-20 cursor-not-allowed":s&&!e},R),disabled:e||s,onClick:m,...t1,children:[e&&i==="left"&&c.jsx("span",{className:"mr-2",children:H}),d==="left"&&c.jsx("span",{className:"mr-2",children:L()}),n1,d==="right"&&c.jsx("span",{className:"ml-2",children:L()}),e&&i==="right"&&c.jsx("span",{className:"ml-2",children:H})]})});y.displayName="Button",h.Button=y,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
|