prisma-goat 0.0.5 → 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.css +1 -1
- package/dist/prisma-goat.js +87 -78
- 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.5 =>
|
package/dist/prisma-goat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.inline-flex{display:inline-flex}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border-2{border-width:2px}.border-\[\#1F2937\]{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-t-transparent{border-top-color:transparent}.bg-\[\#047857\]{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-\[\#1F2937\]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-\[\#350053\]{--tw-bg-opacity: 1;background-color:rgb(53 0 83 / var(--tw-bg-opacity, 1))}.bg-\[\#770069\]{--tw-bg-opacity: 1;background-color:rgb(119 0 105 / var(--tw-bg-opacity, 1))}.bg-\[\#b91c1c\]{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-\[\#f59e0b\]{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-\[\#ff0145\]{--tw-bg-opacity: 1;background-color:rgb(255 1 69 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-\[\#1F2937\]{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20{opacity:.2}.opacity-60{opacity:.6}.ring-offset-2{--tw-ring-offset-width: 2px}.hover\:border-\[\#374151\]:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-\[\#065f46\]:hover{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#2c003f\]:hover{--tw-bg-opacity: 1;background-color:rgb(44 0 63 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#374151\]:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#66005c\]:hover{--tw-bg-opacity: 1;background-color:rgb(102 0 92 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#9b1c1c\]:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#d97706\]:hover{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#e6003f\]:hover{--tw-bg-opacity: 1;background-color:rgb(230 0 63 / var(--tw-bg-opacity, 1))}.focus\:border-\[\#047857\]:focus{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.focus\:border-\[\#1F2937\]:focus{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.focus\:border-\[\#350053\]:focus{--tw-border-opacity: 1;border-color:rgb(53 0 83 / var(--tw-border-opacity, 1))}.focus\:border-\[\#770069\]:focus{--tw-border-opacity: 1;border-color:rgb(119 0 105 / var(--tw-border-opacity, 1))}.focus\:border-\[\#b91c1c\]:focus{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.focus\:border-\[\#f59e0b\]:focus{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.focus\:border-\[\#ff0145\]:focus{--tw-border-opacity: 1;border-color:rgb(255 1 69 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#047857\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(4 120 87 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#1F2937\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#350053\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(53 0 83 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#770069\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 0 105 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#b91c1c\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(185 28 28 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#f59e0b\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#ff0145\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 1 69 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ml-2{margin-left:.5rem}.mr-2{margin-right:.5rem}.inline-flex{display:inline-flex}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.items-center{align-items:center}.justify-center{justify-content:center}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.border-2{border-width:2px}.border-\[\#1F2937\]{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-t-transparent{border-top-color:transparent}.bg-\[\#047857\]{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.bg-\[\#1F2937\]{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-\[\#350053\]{--tw-bg-opacity: 1;background-color:rgb(53 0 83 / var(--tw-bg-opacity, 1))}.bg-\[\#770069\]{--tw-bg-opacity: 1;background-color:rgb(119 0 105 / var(--tw-bg-opacity, 1))}.bg-\[\#b91c1c\]{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.bg-\[\#f59e0b\]{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-\[\#ff0145\]{--tw-bg-opacity: 1;background-color:rgb(255 1 69 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-\[\#1F2937\]{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-20{opacity:.2}.opacity-60{opacity:.6}.hover\:border-\[\#374151\]:hover{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.hover\:bg-\[\#065f46\]:hover{--tw-bg-opacity: 1;background-color:rgb(6 95 70 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#2c003f\]:hover{--tw-bg-opacity: 1;background-color:rgb(44 0 63 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#374151\]:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#66005c\]:hover{--tw-bg-opacity: 1;background-color:rgb(102 0 92 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#9b1c1c\]:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#d97706\]:hover{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.hover\:bg-\[\#e6003f\]:hover{--tw-bg-opacity: 1;background-color:rgb(230 0 63 / var(--tw-bg-opacity, 1))}.focus\:border-\[\#047857\]:focus{--tw-border-opacity: 1;border-color:rgb(4 120 87 / var(--tw-border-opacity, 1))}.focus\:border-\[\#1F2937\]:focus{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.focus\:border-\[\#350053\]:focus{--tw-border-opacity: 1;border-color:rgb(53 0 83 / var(--tw-border-opacity, 1))}.focus\:border-\[\#770069\]:focus{--tw-border-opacity: 1;border-color:rgb(119 0 105 / var(--tw-border-opacity, 1))}.focus\:border-\[\#b91c1c\]:focus{--tw-border-opacity: 1;border-color:rgb(185 28 28 / var(--tw-border-opacity, 1))}.focus\:border-\[\#f59e0b\]:focus{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.focus\:border-\[\#ff0145\]:focus{--tw-border-opacity: 1;border-color:rgb(255 1 69 / var(--tw-border-opacity, 1))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#047857\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(4 120 87 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#1F2937\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#350053\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(53 0 83 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#770069\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 0 105 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#b91c1c\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(185 28 28 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#f59e0b\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(245 158 11 / var(--tw-ring-opacity, 1))}.focus\:ring-\[\#ff0145\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 1 69 / var(--tw-ring-opacity, 1))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}
|
package/dist/prisma-goat.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsx as c, jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as c, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import h, { forwardRef as D, useEffect as I } from "react";
|
|
3
3
|
var x = {
|
|
4
4
|
color: void 0,
|
|
5
5
|
size: void 0,
|
|
6
6
|
className: void 0,
|
|
7
7
|
style: void 0,
|
|
8
8
|
attr: void 0
|
|
9
|
-
}, z =
|
|
10
|
-
function
|
|
9
|
+
}, z = h.createContext && /* @__PURE__ */ h.createContext(x), _ = ["attr", "size", "title"];
|
|
10
|
+
function R(t, r) {
|
|
11
11
|
if (t == null) return {};
|
|
12
|
-
var a =
|
|
12
|
+
var a = W(t, r), e, i;
|
|
13
13
|
if (Object.getOwnPropertySymbols) {
|
|
14
|
-
var
|
|
15
|
-
for (i = 0; i <
|
|
16
|
-
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]);
|
|
17
17
|
}
|
|
18
18
|
return a;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function W(t, r) {
|
|
21
21
|
if (t == null) return {};
|
|
22
22
|
var a = {};
|
|
23
23
|
for (var e in t)
|
|
@@ -27,15 +27,15 @@ function _(t, r) {
|
|
|
27
27
|
}
|
|
28
28
|
return a;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
return
|
|
30
|
+
function v() {
|
|
31
|
+
return v = Object.assign ? Object.assign.bind() : function(t) {
|
|
32
32
|
for (var r = 1; r < arguments.length; r++) {
|
|
33
33
|
var a = arguments[r];
|
|
34
34
|
for (var e in a)
|
|
35
35
|
Object.prototype.hasOwnProperty.call(a, e) && (t[e] = a[e]);
|
|
36
36
|
}
|
|
37
37
|
return t;
|
|
38
|
-
},
|
|
38
|
+
}, v.apply(this, arguments);
|
|
39
39
|
}
|
|
40
40
|
function M(t, r) {
|
|
41
41
|
var a = Object.keys(t);
|
|
@@ -51,21 +51,21 @@ function g(t) {
|
|
|
51
51
|
for (var r = 1; r < arguments.length; r++) {
|
|
52
52
|
var a = arguments[r] != null ? arguments[r] : {};
|
|
53
53
|
r % 2 ? M(Object(a), !0).forEach(function(e) {
|
|
54
|
-
|
|
54
|
+
Z(t, e, a[e]);
|
|
55
55
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : M(Object(a)).forEach(function(e) {
|
|
56
56
|
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(a, e));
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
return t;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
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;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
var r =
|
|
64
|
+
function k(t) {
|
|
65
|
+
var r = G(t, "string");
|
|
66
66
|
return typeof r == "symbol" ? r : r + "";
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function G(t, r) {
|
|
69
69
|
if (typeof t != "object" || !t) return t;
|
|
70
70
|
var a = t[Symbol.toPrimitive];
|
|
71
71
|
if (a !== void 0) {
|
|
@@ -75,134 +75,130 @@ function Z(t, r) {
|
|
|
75
75
|
}
|
|
76
76
|
return (r === "string" ? String : Number)(t);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return t && t.map((r, a) => /* @__PURE__ */
|
|
78
|
+
function y(t) {
|
|
79
|
+
return t && t.map((r, a) => /* @__PURE__ */ h.createElement(r.tag, g({
|
|
80
80
|
key: a
|
|
81
|
-
}, r.attr),
|
|
81
|
+
}, r.attr), y(r.child)));
|
|
82
82
|
}
|
|
83
83
|
function n(t) {
|
|
84
|
-
return (r) => /* @__PURE__ */
|
|
84
|
+
return (r) => /* @__PURE__ */ h.createElement(K, v({
|
|
85
85
|
attr: g({}, t.attr)
|
|
86
|
-
}, r),
|
|
86
|
+
}, r), y(t.child));
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function K(t) {
|
|
89
89
|
var r = (a) => {
|
|
90
90
|
var {
|
|
91
91
|
attr: e,
|
|
92
92
|
size: i,
|
|
93
|
-
title:
|
|
94
|
-
} = t,
|
|
95
|
-
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({
|
|
96
96
|
stroke: "currentColor",
|
|
97
97
|
fill: "currentColor",
|
|
98
98
|
strokeWidth: "0"
|
|
99
|
-
}, a.attr, e,
|
|
99
|
+
}, a.attr, e, u, {
|
|
100
100
|
className: s,
|
|
101
101
|
style: g(g({
|
|
102
102
|
color: t.color || a.color
|
|
103
103
|
}, a.style), t.style),
|
|
104
|
-
height:
|
|
105
|
-
width:
|
|
104
|
+
height: d,
|
|
105
|
+
width: d,
|
|
106
106
|
xmlns: "http://www.w3.org/2000/svg"
|
|
107
|
-
}),
|
|
107
|
+
}), o && /* @__PURE__ */ h.createElement("title", null, o), t.children);
|
|
108
108
|
};
|
|
109
|
-
return z !== void 0 ? /* @__PURE__ */
|
|
109
|
+
return z !== void 0 ? /* @__PURE__ */ h.createElement(z.Consumer, null, (a) => r(a)) : r(x);
|
|
110
110
|
}
|
|
111
111
|
function q(t) {
|
|
112
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);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function U(t) {
|
|
115
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);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function J(t) {
|
|
118
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);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Q(t) {
|
|
121
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);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function X(t) {
|
|
124
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);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Y(t) {
|
|
127
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);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function $(t) {
|
|
130
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);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function T(t) {
|
|
133
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);
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function t1(t) {
|
|
136
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);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function r1(t) {
|
|
139
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);
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function e1(t) {
|
|
142
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);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function a1(t) {
|
|
145
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);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function c1(t) {
|
|
148
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);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function l1(t) {
|
|
151
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
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function n1(t) {
|
|
154
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
155
|
}
|
|
156
|
-
function
|
|
156
|
+
function i1(t) {
|
|
157
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
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function o1(t) {
|
|
160
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
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function h1(t) {
|
|
163
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
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function H(t) {
|
|
166
166
|
var r, a, e = "";
|
|
167
167
|
if (typeof t == "string" || typeof t == "number") e += t;
|
|
168
168
|
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
169
169
|
var i = t.length;
|
|
170
|
-
for (r = 0; r < i; r++) t[r] && (a =
|
|
170
|
+
for (r = 0; r < i; r++) t[r] && (a = H(t[r])) && (e && (e += " "), e += a);
|
|
171
171
|
} else for (a in t) t[a] && (e && (e += " "), e += a);
|
|
172
172
|
return e;
|
|
173
173
|
}
|
|
174
174
|
function m() {
|
|
175
|
-
for (var t, r, a = 0, e = "", i = arguments.length; a < i; a++) (t = arguments[a]) && (r =
|
|
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
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:
|
|
187
|
-
icon:
|
|
185
|
+
disabled: o = !1,
|
|
186
|
+
isSubmit: u = !1,
|
|
187
|
+
icon: d,
|
|
188
188
|
iconPosition: s = "left",
|
|
189
189
|
iconType: l,
|
|
190
190
|
label: L,
|
|
191
191
|
className: V,
|
|
192
|
-
onClick:
|
|
192
|
+
onClick: f,
|
|
193
193
|
...N
|
|
194
194
|
}, O) => {
|
|
195
|
-
const j = (
|
|
196
|
-
|
|
197
|
-
}, B = m(
|
|
198
|
-
"inline-flex items-center justify-center rounded-lg font-bold w-full",
|
|
195
|
+
const j = m(
|
|
196
|
+
"inline-flex items-center justify-center rounded-lg font-bold focus:outline-none focus:ring-2 focus:ring-offset-2 w-full",
|
|
199
197
|
{
|
|
200
|
-
"focus:outline-none focus:ring-2 focus:ring-offset-2": d || !h,
|
|
201
|
-
// Esto aplica focus:ring cuando isSubmit es true
|
|
202
198
|
"text-white": r !== "secondary",
|
|
203
199
|
"text-[#1F2937]": r === "secondary"
|
|
204
200
|
}
|
|
205
|
-
),
|
|
201
|
+
), B = {
|
|
206
202
|
primary: "bg-[#1F2937] hover:bg-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
207
203
|
secondary: "bg-transparent border-2 border-[#1F2937] hover:border-[#374151] focus:ring-[#1F2937] focus:border-[#1F2937]",
|
|
208
204
|
vividPink: "bg-[#ff0145] hover:bg-[#e6003f] focus:ring-[#ff0145] focus:border-[#ff0145]",
|
|
@@ -215,7 +211,7 @@ const h1 = S(
|
|
|
215
211
|
small: "px-4 py-1.5 text-xs",
|
|
216
212
|
medium: "px-6 py-2.5 text-base",
|
|
217
213
|
large: "px-8 py-3 text-lg"
|
|
218
|
-
},
|
|
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(
|
|
219
215
|
"div",
|
|
220
216
|
{
|
|
221
217
|
className: m(
|
|
@@ -223,37 +219,50 @@ const h1 = S(
|
|
|
223
219
|
r === "secondary" ? "border-[#1F2937]" : "border-white"
|
|
224
220
|
)
|
|
225
221
|
}
|
|
226
|
-
),
|
|
227
|
-
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(
|
|
228
238
|
"button",
|
|
229
239
|
{
|
|
230
240
|
ref: O,
|
|
231
241
|
className: m(
|
|
232
|
-
|
|
233
|
-
|
|
242
|
+
j,
|
|
243
|
+
B[r],
|
|
234
244
|
P[a],
|
|
235
245
|
{
|
|
236
246
|
"opacity-60 cursor-not-allowed": e,
|
|
237
|
-
"opacity-20 cursor-not-allowed":
|
|
247
|
+
"opacity-20 cursor-not-allowed": o && !e
|
|
238
248
|
},
|
|
239
249
|
V
|
|
240
250
|
),
|
|
241
|
-
disabled: e ||
|
|
242
|
-
|
|
243
|
-
onClick: d ? j : v,
|
|
251
|
+
disabled: e || o,
|
|
252
|
+
onClick: f,
|
|
244
253
|
...N,
|
|
245
254
|
children: [
|
|
246
255
|
e && i === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: b }),
|
|
247
|
-
s === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children:
|
|
248
|
-
|
|
249
|
-
s === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children:
|
|
256
|
+
s === "left" && /* @__PURE__ */ c("span", { className: "mr-2", children: w() }),
|
|
257
|
+
E,
|
|
258
|
+
s === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: w() }),
|
|
250
259
|
e && i === "right" && /* @__PURE__ */ c("span", { className: "ml-2", children: b })
|
|
251
260
|
]
|
|
252
261
|
}
|
|
253
262
|
);
|
|
254
263
|
}
|
|
255
264
|
);
|
|
256
|
-
|
|
265
|
+
s1.displayName = "Button";
|
|
257
266
|
export {
|
|
258
|
-
|
|
267
|
+
s1 as Button
|
|
259
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";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 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 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 g(){return g=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},g.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=C(r),r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function C(t){var r=P(t,"string");return typeof r=="symbol"?r:r+""}function P(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(F,g({attr:v({},t.attr)},r),M(t.child))}function F(t){var r=a=>{var{attr:e,size:i,title:h}=t,f=N(t,V),u=i||a.size||"1em",d;return a.className&&(d=a.className),t.className&&(d=(d?d+" ":"")+t.className),o.createElement("svg",g({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,e,f,{className:d,style:v(v({color:t.color||a.color},a.style),t.style),height:u,width:u,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 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 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 q(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 G(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 K(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 U(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 k(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 m(){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:h=!1,isSubmit:f=!1,icon:u,iconPosition:d="left",iconType:n,label:T,className:R,onClick:b,...t1},r1)=>{const e1=O=>{O.preventDefault(),b&&b(O)},a1=m("inline-flex items-center justify-center rounded-lg font-bold w-full",{"focus:outline-none focus:ring-2 focus:ring-offset-2":f||!h,"text-white":r!=="secondary","text-[#1F2937]":r==="secondary"}),c1={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]"},l1={small:"px-4 py-1.5 text-xs",medium:"px-6 py-2.5 text-base",large:"px-8 py-3 text-lg"},n1=()=>n==="home"?c.jsx(K,{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(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(U,{className:"w-5 h-5"}):n==="send"?c.jsx($,{className:"w-5 h-5"}):n==="delete"?c.jsx(E,{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(G,{className:"w-5 h-5"}):n==="list"?c.jsx(q,{className:"w-5 h-5"}):n==="futbol"?c.jsx(k,{className:"w-5 h-5"}):null,H=c.jsx("div",{className:m("w-5 h-5 animate-spin border-2 border-t-transparent rounded-full",r==="secondary"?"border-[#1F2937]":"border-white")}),L=()=>o.isValidElement(u)?o.cloneElement(u,{className:"w-5 h-5"}):n1(),i1=T||t;return c.jsxs("button",{ref:r1,className:m(a1,c1[r],l1[a],{"opacity-60 cursor-not-allowed":e,"opacity-20 cursor-not-allowed":h&&!e},R),disabled:e||h,type:f?"submit":"button",onClick:f?e1:b,...t1,children:[e&&i==="left"&&c.jsx("span",{className:"mr-2",children:H}),d==="left"&&c.jsx("span",{className:"mr-2",children:L()}),i1,d==="right"&&c.jsx("span",{className:"ml-2",children:L()}),e&&i==="right"&&c.jsx("span",{className:"ml-2",children:H})]})});y.displayName="Button",s.Button=y,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"})});
|