@argojun/react-components 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arnav Gour
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,186 @@
1
+ # @argojun/react-components
2
+
3
+ A collection of beautifully crafted React components built with Tailwind CSS.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @argojun/react-components
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ Import components directly from the package:
14
+
15
+ ```jsx
16
+ import { Button, Input, Select, Checkbox, Radio, DateTimePicker, FileUpload, MultiSelect, Textarea, Icon } from '@argojun/react-components';
17
+ ```
18
+
19
+ ### Include Styles
20
+
21
+ Make sure to include the styles in your app:
22
+
23
+ ```jsx
24
+ import '@argojun/react-components/styles.css';
25
+ ```
26
+
27
+ Or if you're using Tailwind CSS, you can include the component paths in your `tailwind.config.js`:
28
+
29
+ ```js
30
+ module.exports = {
31
+ content: [
32
+ // ... your paths
33
+ './node_modules/@argojun/react-components/dist/**/*.js',
34
+ ],
35
+ // ...
36
+ };
37
+ ```
38
+
39
+ ## Components
40
+
41
+ ### Button
42
+
43
+ ```jsx
44
+ <Button variant="primary" color="violet" size="md">
45
+ Click me
46
+ </Button>
47
+
48
+ <Button variant="outline" startIcon="plus" isLoading={loading}>
49
+ Add Item
50
+ </Button>
51
+ ```
52
+
53
+ **Props:**
54
+ - `variant`: `'primary'` | `'secondary'` | `'outline'` | `'ghost'` | `'danger'`
55
+ - `size`: `'sm'` | `'md'` | `'lg'`
56
+ - `color`: `'violet'` | `'blue'` | `'emerald'` | `'rose'` | `'amber'` | `'black'`
57
+ - `isLoading`: boolean
58
+ - `startIcon` / `endIcon`: icon name string
59
+ - `fullWidth`: boolean
60
+
61
+ ### Input
62
+
63
+ ```jsx
64
+ <Input
65
+ label="Email"
66
+ placeholder="Enter your email"
67
+ leftIcon="envelope"
68
+ theme="glass"
69
+ color="blue"
70
+ />
71
+ ```
72
+
73
+ **Props:**
74
+ - `theme`: `'default'` | `'glass'` | `'minimal'` | `'outlined'` | `'filled'` | `'gradient'`
75
+ - `size`: `'xs'` | `'sm'` | `'md'` | `'lg'` | `'xl'`
76
+ - `color`: `'violet'` | `'blue'` | `'emerald'` | `'rose'` | `'amber'` | `'black'`
77
+ - `leftIcon` / `rightIcon`: icon name string
78
+ - `floatingLabel`: boolean
79
+ - `clearable`: boolean
80
+ - `copyable`: boolean
81
+
82
+ ### Select
83
+
84
+ ```jsx
85
+ <Select
86
+ label="Country"
87
+ options={[
88
+ { value: 'us', label: 'United States' },
89
+ { value: 'uk', label: 'United Kingdom' },
90
+ ]}
91
+ searchable
92
+ clearable
93
+ />
94
+ ```
95
+
96
+ ### MultiSelect
97
+
98
+ ```jsx
99
+ <MultiSelect
100
+ label="Tags"
101
+ options={tags}
102
+ maxSelections={5}
103
+ searchable
104
+ />
105
+ ```
106
+
107
+ ### Checkbox
108
+
109
+ ```jsx
110
+ <Checkbox
111
+ label="Accept terms"
112
+ description="I agree to the terms and conditions"
113
+ color="emerald"
114
+ />
115
+ ```
116
+
117
+ ### Radio
118
+
119
+ ```jsx
120
+ <Radio
121
+ name="plan"
122
+ label="Pro Plan"
123
+ description="$29/month"
124
+ variant="card"
125
+ />
126
+ ```
127
+
128
+ ### DateTimePicker
129
+
130
+ ```jsx
131
+ <DateTimePicker
132
+ mode="datetime"
133
+ label="Appointment"
134
+ minDate={new Date()}
135
+ />
136
+ ```
137
+
138
+ ### FileUpload
139
+
140
+ ```jsx
141
+ <FileUpload
142
+ accept="image/*"
143
+ multiple
144
+ maxFiles={5}
145
+ maxSize={5 * 1024 * 1024}
146
+ showPreview
147
+ />
148
+ ```
149
+
150
+ ### Textarea
151
+
152
+ ```jsx
153
+ <Textarea
154
+ label="Description"
155
+ placeholder="Enter description..."
156
+ autoResize
157
+ showCharCount
158
+ maxLength={500}
159
+ />
160
+ ```
161
+
162
+ ### Icon
163
+
164
+ ```jsx
165
+ <Icon icon="check" size="md" variant="solid" />
166
+ <Icon icon="user" size="lg" />
167
+ ```
168
+
169
+ ## Peer Dependencies
170
+
171
+ This package requires the following peer dependencies:
172
+
173
+ ```json
174
+ {
175
+ "react": ">=17.0.0",
176
+ "react-dom": ">=17.0.0"
177
+ }
178
+ ```
179
+
180
+ ## Tailwind CSS
181
+
182
+ These components are built with Tailwind CSS. Make sure you have Tailwind configured in your project for the best experience.
183
+
184
+ ## License
185
+
186
+ MIT
@@ -0,0 +1,4 @@
1
+ "use strict";var e=require("react"),t=require("prop-types"),a=require("motion/react");function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function l(e,t,a,r,l,o,n){try{var s=e[o](n),i=s.value}catch(e){return void a(e)}s.done?t(i):Promise.resolve(i).then(r,l)}function o(e){return function(){var t=this,a=arguments;return new Promise(function(r,o){var n=e.apply(t,a);function s(e){l(n,r,o,s,i,"next",e)}function i(e){l(n,r,o,s,i,"throw",e)}s(void 0)})}}function n(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=v(e))||t){a&&(e=a);var r=0,l=function(){};return{s:l,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){s=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(s)throw o}}}}function s(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},i.apply(null,arguments)}function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(Object(a),!0).forEach(function(t){s(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function u(e,t){if(null==e)return{};var a,r,l=function(e,t){if(null==e)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;a[r]=e[r]}return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)a=o[r],-1===t.indexOf(a)&&{}.propertyIsEnumerable.call(e,a)&&(l[a]=e[a])}return l}function m(){
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
+ var e,t,a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",l=a.toStringTag||"@@toStringTag";function o(a,r,l,o){var i=r&&r.prototype instanceof s?r:s,c=Object.create(i.prototype);return b(c,"_invoke",function(a,r,l){var o,s,i,c=0,d=l||[],u=!1,m={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(t,a){return o=t,s=0,i=e,m.n=a,n}};function b(a,r){for(s=a,i=r,t=0;!u&&c&&!l&&t<d.length;t++){var l,o=d[t],b=m.p,h=o[2];a>3?(l=h===r)&&(i=o[(s=o[4])?5:(s=3,3)],o[4]=o[5]=e):o[0]<=b&&((l=a<2&&b<o[1])?(s=0,m.v=r,m.n=o[1]):b<h&&(l=a<3||o[0]>r||r>h)&&(o[4]=a,o[5]=r,m.n=h,s=0))}if(l||a>1)return n;throw u=!0,r}return function(l,d,h){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&b(d,h),s=d,i=h;(t=s<2?e:i)||!u;){o||(s?s<3?(s>1&&(m.n=-1),b(s,i)):m.n=i:m.v=i);try{if(c=2,o){if(s||(l="next"),t=o[l]){if(!(t=t.call(o,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,s<2&&(s=0)}else 1===s&&(t=o.return)&&t.call(o),s<2&&(i=TypeError("The iterator does not provide a '"+l+"' method"),s=1);o=e}else if((t=(u=m.n<0)?i:a.call(r,m))!==n)break}catch(t){o=e,s=1,i=t}finally{c=1}}return{value:t,done:u}}}(a,l,o),!0),c}var n={};function s(){}function i(){}function c(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(b(t={},r,function(){return this}),t),u=c.prototype=s.prototype=Object.create(d);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,b(e,l,"GeneratorFunction")),e.prototype=Object.create(u),e}return i.prototype=c,b(u,"constructor",c),b(c,"constructor",i),i.displayName="GeneratorFunction",b(c,l,"GeneratorFunction"),b(u),b(u,l,"Generator"),b(u,r,function(){return this}),b(u,"toString",function(){return"[object Generator]"}),(m=function(){return{w:o,m:h}})()}function b(e,t,a,r){var l=Object.defineProperty;try{l({},"",{})}catch(e){l=0}b=function(e,t,a,r){function o(t,a){b(e,t,function(e){return this._invoke(t,a,e)})}t?l?l(e,t,{value:a,enumerable:!r,configurable:!r,writable:!r}):e[t]=a:(o("next",0),o("throw",1),o("return",2))},b(e,t,a,r)}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var r,l,o,n,s=[],i=!0,c=!1;try{if(o=(a=a.call(e)).next,0===t);else for(;!(i=(r=o.call(a)).done)&&(s.push(r.value),s.length!==t);i=!0);}catch(e){c=!0,l=e}finally{try{if(!i&&null!=a.return&&(n=a.return(),Object(n)!==n))return}finally{if(c)throw l}}return s}}(e,t)||v(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(e){if("string"==typeof e)return r(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}var g=["icon","className","size","variant"],f={"chevron-down":"M6 9l6 6 6-6","chevron-up":"M18 15l-6-6-6 6","chevron-left":"M15 18l-6-6 6-6","chevron-right":"M9 6l6 6-6 6","arrow-left":"M19 12H5m0 0l7 7m-7-7l7-7","arrow-right":"M5 12h14m0 0l-7-7m7 7l-7 7","arrow-up":"M12 19V5m0 0l-7 7m7-7l7 7","arrow-down":"M12 5v14m0 0l7-7m-7 7l-7-7",menu:"M4 6h16M4 12h16M4 18h16",x:"M6 18L18 6M6 6l12 12",xmark:"M6 18L18 6M6 6l12 12",plus:"M12 5v14m-7-7h14",minus:"M5 12h14",check:"M5 13l4 4L19 7","external-link":"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14",search:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z",filter:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z",edit:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z",trash:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16",copy:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z",download:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4",upload:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12",refresh:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15",settings:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",cog:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z",info:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z","circle-info":"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",warning:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z","triangle-exclamation":"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z",error:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z","circle-exclamation":"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",success:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z","circle-check":"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",question:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z","circle-question":"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z",eye:"M15 12a3 3 0 11-6 0 3 3 0 016 0z M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z","eye-slash":"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21",lock:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z",unlock:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z",envelope:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",mail:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z",phone:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z",chat:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",comment:"M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z",bell:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",user:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",users:"M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z","user-plus":"M18 9v3m0 0v3m0-3h3m-3 0h-3m-2-5a4 4 0 11-8 0 4 4 0 018 0zM3 20a6 6 0 0112 0v1H3v-1z",image:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z",camera:"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z M15 13a3 3 0 11-6 0 3 3 0 016 0z",video:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",music:"M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3",play:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z M21 12a9 9 0 11-18 0 9 9 0 0118 0z",pause:"M10 9v6m4-6v6m7-3a9 9 0 11-18 0 9 9 0 0118 0z",stop:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z",file:"M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z","file-lines":"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",folder:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z","folder-open":"M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z",document:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z",clipboard:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2",calendar:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z","calendar-days":"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z M7 14h.01M11 14h.01M15 14h.01M7 18h.01M11 18h.01",clock:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",time:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z",grid:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z",list:"M4 6h16M4 10h16M4 14h16M4 18h16","list-check":"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4",table:"M3 10h18M3 14h18m-9-4v8m-7 0h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z",columns:"M9 4v16m6-16v16M3 4h18v16H3V4z",code:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4",terminal:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",bug:"M12 19l9 2-9-18-9 18 9-2zm0 0v-8",database:"M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4",server:"M5 12h14M5 12a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v4a2 2 0 01-2 2M5 12a2 2 0 00-2 2v4a2 2 0 002 2h14a2 2 0 002-2v-4a2 2 0 00-2-2m-2-4h.01M17 16h.01",cart:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z","shopping-cart":"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z","credit-card":"M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z",tag:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z",tags:"M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z",gift:"M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7",circle:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0","circle-dot":"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0 M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",square:"M5 5h14v14H5z","square-check":"M9 12l2 2 4-4m5 2V7a2 2 0 00-2-2H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-1",heart:"M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z",star:"M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z",bookmark:"M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z",flag:"M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9",sun:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z",moon:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",cloud:"M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z","cloud-arrow-up":"M6.5 19a4.5 4.5 0 01-.42-8.98 6 6 0 0111.84 0A4.5 4.5 0 0117.5 19h-11zM12 10v5m-2.5-2.5L12 10l2.5 2.5","cloud-arrow-down":"M6.5 19a4.5 4.5 0 01-.42-8.98 6 6 0 0111.84 0A4.5 4.5 0 0117.5 19h-11zM12 10v5m-2.5-2.5L12 15l2.5-2.5",lightning:"M13 10V3L4 14h7v7l9-11h-7z",bolt:"M13 10V3L4 14h7v7l9-11h-7z",desktop:"M3 5a2 2 0 012-2h14a2 2 0 012 2v10a2 2 0 01-2 2H5a2 2 0 01-2-2V5zM9 21h6M12 17v4",home:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6",globe:"M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z",location:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z","map-pin":"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z M15 11a3 3 0 11-6 0 3 3 0 016 0z",link:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1","paper-plane":"M12 19l9 2-9-18-9 18 9-2zm0 0v-8",rocket:"M15.59 14.37a6 6 0 01-5.84 7.38v-4.8m5.84-2.58a14.98 14.98 0 006.16-12.12A14.98 14.98 0 009.631 8.41m5.96 5.96a14.926 14.926 0 01-5.841 2.58m-.119-8.54a6 6 0 00-7.381 5.84h4.8m2.581-5.84a14.927 14.927 0 00-2.58 5.84m2.699 2.7c-.103.021-.207.041-.311.06a15.09 15.09 0 01-2.448-2.448 14.9 14.9 0 01.06-.312m-2.24 2.39a4.493 4.493 0 00-1.757 4.306 4.493 4.493 0 004.306-1.758M16.5 9a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0z",sparkles:"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z","wand-magic-sparkles":"M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z",swatchbook:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01",palette:"M7 21a4 4 0 01-4-4V5a2 2 0 012-2h4a2 2 0 012 2v12a4 4 0 01-4 4zm0 0h12a2 2 0 002-2v-4a2 2 0 00-2-2h-2.343M11 7.343l1.657-1.657a2 2 0 012.828 0l2.829 2.829a2 2 0 010 2.828l-8.486 8.485M7 17h.01","fill-drip":"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z",font:"M4 6h16M4 12h16m-7 6h7","align-left":"M4 6h16M4 12h10M4 18h14","text-width":"M4 6h16M8 12h8M6 18h12",icons:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z","toggle-on":"M5 12a7 7 0 0114 0 7 7 0 01-14 0zm7-3a3 3 0 100 6 3 3 0 000-6z",compress:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4","left-right":"M7 16V4m0 0L3 8m4-4l4 4m6 8V4m0 12l-4-4m4 4l4-4","shield-check":"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z",spinner:"M21 12a9 9 0 1 1-6.219-8.56","spinner-third":"M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48l2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48l2.83-2.83",box:"M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4","universal-access":"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z",feather:"M20.24 12.24a6 6 0 00-8.49-8.49L5 10.5V19h8.5z M16 8L2 22 M17.5 15H9",github:"M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 00-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0020 4.77 5.07 5.07 0 0019.91 1S18.73.65 16 2.48a13.38 13.38 0 00-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 005 4.77a5.44 5.44 0 00-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 009 18.13V22",npm:"M3 3h18v18H3V3zm3 3v12h3V9h3v9h6V6H6z",yarn:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",facebook:"M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z",instagram:"M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z M17.5 6.5h.01 M7 2h10a5 5 0 015 5v10a5 5 0 01-5 5H7a5 5 0 01-5-5V7a5 5 0 015-5z",linkedin:"M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6z M2 9h4v12H2z M6 4a2 2 0 11-4 0 2 2 0 014 0z",youtube:"M22.54 6.42a2.78 2.78 0 00-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 00-1.94 2A29 29 0 001 11.75a29 29 0 00.46 5.33A2.78 2.78 0 003.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 001.94-2 29 29 0 00.46-5.25 29 29 0 00-.46-5.33zM9.75 15.02l5.75-3.27-5.75-3.27z",twitch:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",android:"M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.28-.54-.38-.83-.22-.3.16-.42.54-.26.85l1.84 3.18C2.92 11.03 1 14.22 1 17.8h22c0-3.58-1.92-6.77-5.4-8.32zM7.5 15c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm9 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",telegram:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z",figma:"M5 5.5A3.5 3.5 0 018.5 2H12v7H8.5A3.5 3.5 0 015 5.5zM12 2h3.5a3.5 3.5 0 110 7H12V2zM12 12.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm0 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0z",react:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0 2c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6z",apple:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.09l-.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"},p={home:"M12.71 2.29a1 1 0 00-1.42 0l-9 9a1 1 0 001.42 1.42L4 12.41V21a1 1 0 001 1h5a1 1 0 001-1v-5h2v5a1 1 0 001 1h5a1 1 0 001-1v-8.59l.29.3a1 1 0 001.42-1.42l-9-9z","chevron-down":"M5.293 7.293a1 1 0 011.414 0L12 12.586l5.293-5.293a1 1 0 111.414 1.414l-6 6a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414z","chevron-up":"M18.707 16.707a1 1 0 01-1.414 0L12 11.414l-5.293 5.293a1 1 0 01-1.414-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 010 1.414z","chevron-left":"M15.707 18.707a1 1 0 010-1.414L10.414 12l5.293-5.293a1 1 0 00-1.414-1.414l-6 6a1 1 0 000 1.414l6 6a1 1 0 001.414 0z","chevron-right":"M8.293 5.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L13.586 12 8.293 6.707a1 1 0 010-1.414z",menu:"M3 5a1 1 0 011-1h16a1 1 0 110 2H4a1 1 0 01-1-1zm0 6a1 1 0 011-1h16a1 1 0 110 2H4a1 1 0 01-1-1zm1 5a1 1 0 100 2h16a1 1 0 100-2H4z",x:"M4.293 4.293a1 1 0 011.414 0L12 10.586l6.293-6.293a1 1 0 111.414 1.414L13.414 12l6.293 6.293a1 1 0 01-1.414 1.414L12 13.414l-6.293 6.293a1 1 0 01-1.414-1.414L10.586 12 4.293 5.707a1 1 0 010-1.414z",xmark:"M4.293 4.293a1 1 0 011.414 0L12 10.586l6.293-6.293a1 1 0 111.414 1.414L13.414 12l6.293 6.293a1 1 0 01-1.414 1.414L12 13.414l-6.293 6.293a1 1 0 01-1.414-1.414L10.586 12 4.293 5.707a1 1 0 010-1.414z",check:"M20.707 5.293a1 1 0 010 1.414l-11 11a1 1 0 01-1.414 0l-5-5a1 1 0 111.414-1.414L9 15.586 19.293 5.293a1 1 0 011.414 0z",plus:"M12 4a1 1 0 011 1v6h6a1 1 0 110 2h-6v6a1 1 0 11-2 0v-6H5a1 1 0 110-2h6V5a1 1 0 011-1z",minus:"M4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1z","circle-check":"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.707 8.707l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 111.414-1.414L11 13.586l4.293-4.293a1 1 0 111.414 1.414z",success:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.707 8.707l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 111.414-1.414L11 13.586l4.293-4.293a1 1 0 111.414 1.414z","circle-exclamation":"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 5a1 1 0 011 1v4a1 1 0 11-2 0V8a1 1 0 011-1zm0 10a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",warning:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 5a1 1 0 011 1v4a1 1 0 11-2 0V8a1 1 0 011-1zm0 10a1.5 1.5 0 100-3 1.5 1.5 0 000 3z","triangle-exclamation":"M12.866 3l9.526 16.5a1 1 0 01-.866 1.5H2.474a1 1 0 01-.866-1.5L11.134 3a1 1 0 011.732 0zM12 8a1 1 0 00-1 1v4a1 1 0 002 0V9a1 1 0 00-1-1zm0 10a1.5 1.5 0 100-3 1.5 1.5 0 000 3z","circle-info":"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 5a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm1 10a1 1 0 01-2 0v-4a1 1 0 012 0v4z",info:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 5a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm1 10a1 1 0 01-2 0v-4a1 1 0 012 0v4z",search:"M10 2a8 8 0 105.293 14.293l3.707 3.707a1.5 1.5 0 002.121-2.121l-3.707-3.707A8 8 0 0010 2zm0 3a5 5 0 110 10 5 5 0 010-10z",filter:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2a1 1 0 01-.293.707L15 12.414V19a1 1 0 01-.553.894l-4 2A1 1 0 019 21v-8.586L3.293 6.707A1 1 0 013 6V4z",edit:"M16.707 2.293a1 1 0 00-1.414 0l-9.5 9.5a1 1 0 00-.263.464l-1.5 5a1 1 0 001.213 1.213l5-1.5a1 1 0 00.464-.263l9.5-9.5a1 1 0 000-1.414l-3.5-3.5zM5 21a1 1 0 011-1h12a1 1 0 110 2H6a1 1 0 01-1-1z",trash:"M9 3a1 1 0 00-1 1H5a1 1 0 000 2h14a1 1 0 100-2h-3a1 1 0 00-1-1H9zM6 7v12a2 2 0 002 2h8a2 2 0 002-2V7H6zm3.5 2a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8a.5.5 0 01.5-.5zm5 0a.5.5 0 01.5.5v8a.5.5 0 01-1 0v-8a.5.5 0 01.5-.5z",copy:"M7 4a2 2 0 00-2 2v10a2 2 0 002 2h1v1a2 2 0 002 2h8a2 2 0 002-2V9a2 2 0 00-2-2h-1V6a2 2 0 00-2-2H7zm3 5h8v10h-8V9z",download:"M12 2a1 1 0 011 1v8.586l2.293-2.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L11 11.586V3a1 1 0 011-1zM3 16a1 1 0 011 1v2a1 1 0 001 1h14a1 1 0 001-1v-2a1 1 0 112 0v2a3 3 0 01-3 3H5a3 3 0 01-3-3v-2a1 1 0 011-1z",upload:"M12 2a1 1 0 01.707.293l4 4a1 1 0 01-1.414 1.414L13 5.414V14a1 1 0 11-2 0V5.414L8.707 7.707a1 1 0 01-1.414-1.414l4-4A1 1 0 0112 2zM3 16a1 1 0 011 1v2a1 1 0 001 1h14a1 1 0 001-1v-2a1 1 0 112 0v2a3 3 0 01-3 3H5a3 3 0 01-3-3v-2a1 1 0 011-1z",refresh:"M4 12a8 8 0 0114.93-4H15a1 1 0 100 2h6a1 1 0 001-1V3a1 1 0 10-2 0v3.07A10 10 0 002 12a1 1 0 102 0zm16 0a8 8 0 01-14.93 4H9a1 1 0 100-2H3a1 1 0 00-1 1v6a1 1 0 102 0v-3.07A10 10 0 0022 12a1 1 0 10-2 0z",settings:"M12 8a4 4 0 100 8 4 4 0 000-8zm-2 4a2 2 0 114 0 2 2 0 01-4 0zM11 1a1 1 0 012 0v2.062a8.004 8.004 0 013.906 1.617l1.458-1.457a1 1 0 111.414 1.414l-1.457 1.458A8.004 8.004 0 0119.938 10H22a1 1 0 110 2h-2.062a8.004 8.004 0 01-1.617 3.906l1.457 1.458a1 1 0 01-1.414 1.414l-1.458-1.457A8.004 8.004 0 0114 19.938V22a1 1 0 11-2 0v-2.062a8.004 8.004 0 01-3.906-1.617l-1.458 1.457a1 1 0 01-1.414-1.414l1.457-1.458A8.004 8.004 0 015.062 14H3a1 1 0 110-2h2.062a8.004 8.004 0 011.617-3.906L5.222 6.636a1 1 0 011.414-1.414l1.458 1.457A8.004 8.004 0 0112 5.062V3z",cog:"M10.325 2.317a1.724 1.724 0 013.35 0 1.724 1.724 0 002.573 1.066 1.724 1.724 0 012.37 2.37 1.724 1.724 0 001.065 2.572 1.724 1.724 0 010 3.35 1.724 1.724 0 00-1.066 2.573 1.724 1.724 0 01-2.37 2.37 1.724 1.724 0 00-2.572 1.065 1.724 1.724 0 01-3.35 0 1.724 1.724 0 00-2.573-1.066 1.724 1.724 0 01-2.37-2.37 1.724 1.724 0 00-1.065-2.572 1.724 1.724 0 010-3.35 1.724 1.724 0 001.066-2.573 1.724 1.724 0 012.37-2.37c.996.608 2.296.07 2.572-1.065zM12 15a3 3 0 100-6 3 3 0 000 6z",user:"M12 4a4 4 0 100 8 4 4 0 000-8zM6 20a6 6 0 1112 0H6z",envelope:"M3 5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V5zm2 0l7 5 7-5H5zm0 2.236V19h14V7.236l-6.445 4.604a1 1 0 01-1.11 0L5 7.236z",mail:"M3 5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V5zm2 0l7 5 7-5H5zm0 2.236V19h14V7.236l-6.445 4.604a1 1 0 01-1.11 0L5 7.236z",bell:"M10 2a1 1 0 012 0v1.07A7.002 7.002 0 0119 10v4.382l1.447 2.894A1 1 0 0119.553 19H4.447a1 1 0 01-.894-1.724L5 14.382V10a7.002 7.002 0 017-6.93V2zm0 18h4a2 2 0 11-4 0z",image:"M4 3a2 2 0 00-2 2v14a2 2 0 002 2h16a2 2 0 002-2V5a2 2 0 00-2-2H4zm16 14l-4-4-2 2-4-4-6 6V5h16v12zM8 9a2 2 0 100-4 2 2 0 000 4z",play:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-2 14V8l6 4-6 4z",file:"M4 4a2 2 0 012-2h7.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V20a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",folder:"M2 6a2 2 0 012-2h5l2 2h9a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V6z",calendar:"M6 2a1 1 0 011 1v1h6V3a1 1 0 112 0v1h2a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V6a2 2 0 012-2h2V3a1 1 0 011-1zm11 8H5v10h14V10z",clock:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 5a1 1 0 10-2 0v5a1 1 0 00.293.707l3 3a1 1 0 001.414-1.414L13 11.586V7z",time:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 5a1 1 0 10-2 0v5a1 1 0 00.293.707l3 3a1 1 0 001.414-1.414L13 11.586V7z",desktop:"M2 5a2 2 0 012-2h16a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm9 14a1 1 0 011-1 1 1 0 011 1v1h2a1 1 0 110 2H9a1 1 0 110-2h2v-1z",heart:"M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z",star:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z",bookmark:"M5 3a2 2 0 012-2h10a2 2 0 012 2v18l-7-4-7 4V3z",circle:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2z",square:"M4 4a2 2 0 012-2h12a2 2 0 012 2v16a2 2 0 01-2 2H6a2 2 0 01-2-2V4z",sun:"M12 2a1 1 0 011 1v2a1 1 0 11-2 0V3a1 1 0 011-1zm0 14a4 4 0 100-8 4 4 0 000 8zm9-4a1 1 0 01-1 1h-2a1 1 0 110-2h2a1 1 0 011 1zM5 12a1 1 0 01-1 1H2a1 1 0 110-2h2a1 1 0 011 1z",moon:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z",eye:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5a5 5 0 110-10 5 5 0 010 10zm0-8a3 3 0 100 6 3 3 0 000-6z",lock:"M12 2a5 5 0 00-5 5v2H6a2 2 0 00-2 2v9a2 2 0 002 2h12a2 2 0 002-2v-9a2 2 0 00-2-2h-1V7a5 5 0 00-5-5zm3 7H9V7a3 3 0 116 0v2z",bolt:"M13 2L4 14h7v8l9-12h-7V2z",lightning:"M13 2L4 14h7v8l9-12h-7V2z","paper-plane":"M2.01 21L23 12 2.01 3 2 10l15 2-15 2z",sparkles:"M9.813 2.126a1 1 0 011.874 0l1.5 4.001 4.001 1.5a1 1 0 010 1.874l-4.001 1.5-1.5 4.001a1 1 0 01-1.874 0l-1.5-4.001-4.001-1.5a1 1 0 010-1.874l4.001-1.5 1.5-4.001z",grid:"M4 3a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1H4zm10 0a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1h-6zM3 14a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zm11-1a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1v-6a1 1 0 00-1-1h-6z",icons:"M4 3a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1H4zm10 0a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1V4a1 1 0 00-1-1h-6zM3 14a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H4a1 1 0 01-1-1v-6zm11-1a1 1 0 00-1 1v6a1 1 0 001 1h6a1 1 0 001-1v-6a1 1 0 00-1-1h-6z",tag:"M2 4a2 2 0 012-2h6.586a2 2 0 011.414.586l8.414 8.414a2 2 0 010 2.828l-6.586 6.586a2 2 0 01-2.828 0L2.586 12A2 2 0 012 10.586V4zm5 3a1 1 0 100 2 1 1 0 000-2z",github:"M12 2C6.477 2 2 6.477 2 12c0 4.42 2.865 8.164 6.839 9.489.5.092.682-.217.682-.482 0-.237-.009-.866-.014-1.7-2.782.603-3.369-1.342-3.369-1.342-.455-1.156-1.11-1.463-1.11-1.463-.908-.62.069-.607.069-.607 1.003.07 1.531 1.03 1.531 1.03.892 1.529 2.341 1.088 2.91.832.091-.647.35-1.088.636-1.339-2.22-.252-4.555-1.11-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.104-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.548 9.548 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.203 2.392.1 2.646.64.698 1.028 1.591 1.028 2.682 0 3.841-2.337 4.687-4.565 4.935.359.309.678.919.678 1.852 0 1.336-.012 2.415-.012 2.743 0 .267.18.578.688.48C19.138 20.16 22 16.416 22 12c0-5.523-4.477-10-10-10z",npm:"M3 3h18v18H3V3zm3 3v12h3V9h3v9h6V6H6z",yarn:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5",facebook:"M18 2h-3a5 5 0 00-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 011-1h3z",twitter:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",instagram:"M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z M17.5 6.5h.01 M7 2h10a5 5 0 015 5v10a5 5 0 01-5 5H7a5 5 0 01-5-5V7a5 5 0 015-5z",linkedin:"M16 8a6 6 0 016 6v7h-4v-7a2 2 0 00-2-2 2 2 0 00-2 2v7h-4v-7a6 6 0 016-6z M2 9h4v12H2z M6 4a2 2 0 11-4 0 2 2 0 014 0z",youtube:"M22.54 6.42a2.78 2.78 0 00-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 00-1.94 2A29 29 0 001 11.75a29 29 0 00.46 5.33A2.78 2.78 0 003.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 001.94-2 29 29 0 00.46-5.25 29 29 0 00-.46-5.33zM9.75 15.02l5.75-3.27-5.75-3.27z",twitch:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",android:"M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.28-.54-.38-.83-.22-.3.16-.42.54-.26.85l1.84 3.18C2.92 11.03 1 14.22 1 17.8h22c0-3.58-1.92-6.77-5.4-8.32zM7.5 15c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm9 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z",whatsapp:"M12 2a10 10 0 018.5 15.5l-1.3 4.6-4.6-1.3A10 10 0 1112 2zm0 2a8 8 0 00-6.8 12.3l.5.8-.8 3.1 3.1-.8.8.5A8 8 0 1012 4zm4.5 11.5c-.2-.1-1.3-.7-1.5-.7-.2-.1-.4-.1-.5.1-.1.2-.6.7-.7.9-.1.1-.3.1-.5 0-.9-.4-1.6-1-2.2-1.8-.1-.2 0-.3.1-.4.1-.1.2-.2.3-.4 0-.1.1-.2.2-.3.1-.2.1-.3 0-.4-.1-.1-.5-1.2-.7-1.6-.2-.4-.4-.4-.5-.4h-.5c-.2 0-.5.1-.7.4-.2.3-.9.9-.9 2.1s.9 2.4 1 2.6c.1.1 1.8 2.8 4.4 3.9 1.6.7 2.2.7 3 .6.9-.1 1.9-.8 2.1-1.6.3-.8.3-1.5.2-1.6 0 0-.2-.1-.4-.2z",telegram:"M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z",figma:"M5 5.5A3.5 3.5 0 018.5 2H12v7H8.5A3.5 3.5 0 015 5.5zM12 2¯h3.5a3.5 3.5 0 110 7H12V2zM12 12.5a3.5 3.5 0 11-7 0 3.5 3.5 0 017 0zm0 7a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0z",react:"M12 22c5.52 0 10-4.48 10-10S17.52 2 12 2 2 6.48 2 12s4.48 10 10 10zm0-18c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8zm0 2c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6z",google:"M0 0h24v24H0z M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",apple:"M17.05 20.28c-.98.95-2.05.8-3.08.35-1.09-.46-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.35C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.8 1.18-.24 2.31-.93 3.57-.84 1.51.12 2.65.72 3.4 1.8-3.12 1.87-2.38 5.98.48 7.13-.57 1.5-1.31 2.99-2.53 4.09l-.01-.01zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z",microsoft:"M0 0h11.75v11.75H0zM12.25 0h11.75v11.75H12.25zM0 12.25h11.75v11.75H0zM12.25 12.25h11.75v11.75H12.25z"},k=function(t){var a=t.icon,r=t.className,l=void 0===r?"":r,o=t.size,n=void 0===o?"md":o,s=t.variant,c=void 0===s?"outline":s,d=u(t,g),m={xs:"w-3 h-3",sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6",xl:"w-8 h-8","2xl":"w-10 h-10"},b=m[n]||m.md,h=f[a];if("solid"===c&&(h=p[a]||f[a]),!h)return console.warn('Icon "'.concat(a,'" not found in icon library')),null;var x="solid"===c;return e.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:x?"currentColor":"none",stroke:x?"none":"currentColor",strokeWidth:x?0:2,strokeLinecap:"round",strokeLinejoin:"round",className:"inline-block flex-shrink-0 ".concat(b," ").concat(l),"aria-hidden":"true"},d),e.createElement("path",{d:h,fillRule:x?"evenodd":"nonzero"}))};k.propTypes={icon:t.string.isRequired,className:t.string,size:t.oneOf(["xs","sm","md","lg","xl","2xl"]),variant:t.oneOf(["outline","solid"])};var w=Object.keys(f),y=["children","variant","size","color","isLoading","startIcon","endIcon","fullWidth","disabled","className","type"],M=e.forwardRef(function(t,a){var r=t.children,l=t.variant,o=void 0===l?"primary":l,n=t.size,s=void 0===n?"md":n,c=t.color,d=void 0===c?"violet":c,m=t.isLoading,b=void 0!==m&&m,h=t.startIcon,x=t.endIcon,v=t.fullWidth,g=void 0!==v&&v,f=t.disabled,p=void 0!==f&&f,w=t.className,M=void 0===w?"":w,z=t.type,E=void 0===z?"button":z,N=u(t,y),C={violet:{primary:"bg-violet-600 hover:bg-violet-700 text-white shadow-violet-500/20",secondary:"bg-violet-100 hover:bg-violet-200 text-violet-700 dark:bg-violet-500/20 dark:hover:bg-violet-500/30 dark:text-violet-300",outline:"border-violet-200 hover:border-violet-300 text-violet-700 hover:bg-violet-50 dark:border-violet-700 dark:text-violet-300 dark:hover:bg-violet-500/10",ghost:"text-violet-700 hover:bg-violet-50 dark:text-violet-300 dark:hover:bg-violet-500/10",ring:"focus:ring-violet-500"},blue:{primary:"bg-blue-600 hover:bg-blue-700 text-white shadow-blue-500/20",secondary:"bg-blue-100 hover:bg-blue-200 text-blue-700 dark:bg-blue-500/20 dark:hover:bg-blue-500/30 dark:text-blue-300",outline:"border-blue-200 hover:border-blue-300 text-blue-700 hover:bg-blue-50 dark:border-blue-700 dark:text-blue-300 dark:hover:bg-blue-500/10",ghost:"text-blue-700 hover:bg-blue-50 dark:text-blue-300 dark:hover:bg-blue-500/10",ring:"focus:ring-blue-500"},emerald:{primary:"bg-emerald-600 hover:bg-emerald-700 text-white shadow-emerald-500/20",secondary:"bg-emerald-100 hover:bg-emerald-200 text-emerald-700 dark:bg-emerald-500/20 dark:hover:bg-emerald-500/30 dark:text-emerald-300",outline:"border-emerald-200 hover:border-emerald-300 text-emerald-700 hover:bg-emerald-50 dark:border-emerald-700 dark:text-emerald-300 dark:hover:bg-emerald-500/10",ghost:"text-emerald-700 hover:bg-emerald-50 dark:text-emerald-300 dark:hover:bg-emerald-500/10",ring:"focus:ring-emerald-500"},rose:{primary:"bg-rose-600 hover:bg-rose-700 text-white shadow-rose-500/20",secondary:"bg-rose-100 hover:bg-rose-200 text-rose-700 dark:bg-rose-500/20 dark:hover:bg-rose-500/30 dark:text-rose-300",outline:"border-rose-200 hover:border-rose-300 text-rose-700 hover:bg-rose-50 dark:border-rose-700 dark:text-rose-300 dark:hover:bg-rose-500/10",ghost:"text-rose-700 hover:bg-rose-50 dark:text-rose-300 dark:hover:bg-rose-500/10",ring:"focus:ring-rose-500"},amber:{primary:"bg-amber-500 hover:bg-amber-600 text-white shadow-amber-500/20",secondary:"bg-amber-100 hover:bg-amber-200 text-amber-700 dark:bg-amber-500/20 dark:hover:bg-amber-500/30 dark:text-amber-300",outline:"border-amber-200 hover:border-amber-300 text-amber-700 hover:bg-amber-50 dark:border-amber-700 dark:text-amber-300 dark:hover:bg-amber-500/10",ghost:"text-amber-700 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10",ring:"focus:ring-amber-500"},black:{primary:"bg-slate-900 hover:bg-slate-800 text-white shadow-slate-900/20 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-200",secondary:"bg-slate-100 hover:bg-slate-200 text-slate-800 dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-slate-200",outline:"border-slate-200 hover:border-slate-300 text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800",ghost:"text-slate-700 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800",ring:"focus:ring-slate-500"}},V=C[d]||C.violet,H=V[o]||V.primary;"danger"===o&&(H="bg-red-600 hover:bg-red-700 text-white shadow-red-500/20 focus:ring-red-500");var S="outline"===o?"border":"";return e.createElement("button",i({ref:a,type:E,disabled:p||b,className:"\n relative inline-flex items-center justify-center gap-2\n rounded-lg transition-all duration-200\n focus:outline-none focus:ring-2 focus:ring-offset-1 dark:focus:ring-offset-slate-950\n disabled:opacity-60 disabled:cursor-not-allowed\n shadow-sm hover:shadow-md active:scale-[0.98]\n ".concat({sm:"px-3 py-1.5 text-xs font-medium",md:"px-4 py-2 text-sm font-medium",lg:"px-5 py-2.5 text-base font-medium"}[s],"\n ").concat(H,"\n ").concat(V.ring,"\n ").concat(S,"\n ").concat(g?"w-full":"","\n ").concat(M,"\n ")},N),b&&e.createElement("svg",{className:"animate-spin -ml-1 h-4 w-4 text-current",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e.createElement("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),e.createElement("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})),!b&&h&&e.createElement(k,{icon:h,size:"sm"===s?"xs":"sm"}),e.createElement("span",null,r),!b&&x&&e.createElement(k,{icon:x,size:"sm"===s?"xs":"sm"}))});M.displayName="Button",M.propTypes={children:t.node.isRequired,variant:t.oneOf(["primary","secondary","outline","ghost","danger"]),size:t.oneOf(["sm","md","lg"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),isLoading:t.bool,startIcon:t.string,endIcon:t.string,fullWidth:t.bool,disabled:t.bool,className:t.string,type:t.oneOf(["button","submit","reset"])};var z=e.createContext(null),E=function(t){var a=t.children,r=t.value,l=t.defaultValue,o=void 0===l?[]:l,n=t.onChange,s=t.orientation,i=void 0===s?"vertical":s,c=t.label,d=t.description,u=t.error,m=t.className,b=void 0===m?"":m,v=t.size,g=void 0===v?"md":v,f=t.color,p=void 0===f?"violet":f,w=t.variant,y=void 0===w?"simple":w,M=t.disabled,E=void 0!==M&&M,N=void 0!==r,C=h(e.useState(o),2),V=C[0],H=C[1],S=N?r:V;return e.createElement(z.Provider,{value:{values:S,onChange:function(e,t){var a;a=t?[].concat(x(S),[e]):S.filter(function(t){return t!==e}),N||H(a),null==n||n(a)},size:g,color:p,variant:y,disabledGrp:E}},e.createElement("div",{className:"flex flex-col gap-2 ".concat(b)},c&&e.createElement("label",{className:"text-sm font-medium text-slate-700 dark:text-slate-300"},c),d&&e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400 -mt-1 mb-1"},d),e.createElement("div",{className:"\n flex gap-3\n ".concat("vertical"===i?"flex-col":"flex-row flex-wrap","\n ")},a),u&&e.createElement("p",{className:"text-xs text-red-500 mt-1 flex items-center gap-1"},e.createElement(k,{icon:"circle-exclamation",variant:"fas"}),u)))},N={violet:{checked:"bg-violet-500 border-violet-500",ring:"focus:ring-violet-500",text:"text-violet-700 dark:text-violet-300",bg:"bg-violet-50 dark:bg-violet-900/20",border:"border-violet-500/50"},blue:{checked:"bg-blue-500 border-blue-500",ring:"focus:ring-blue-500",text:"text-blue-700 dark:text-blue-300",bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-500/50"},emerald:{checked:"bg-emerald-500 border-emerald-500",ring:"focus:ring-emerald-500",text:"text-emerald-700 dark:text-emerald-300",bg:"bg-emerald-50 dark:bg-emerald-900/20",border:"border-emerald-500/50"},rose:{checked:"bg-rose-500 border-rose-500",ring:"focus:ring-rose-500",text:"text-rose-700 dark:text-rose-300",bg:"bg-rose-50 dark:bg-rose-900/20",border:"border-rose-500/50"},amber:{checked:"bg-amber-500 border-amber-500",ring:"focus:ring-amber-500",text:"text-amber-700 dark:text-amber-300",bg:"bg-amber-50 dark:bg-amber-900/20",border:"border-amber-500/50"},black:{checked:"bg-slate-900 border-slate-900 dark:bg-white dark:border-white",ring:"focus:ring-slate-500",text:"text-slate-900 dark:text-white",bg:"bg-slate-100 dark:bg-slate-800",border:"border-slate-900/50 dark:border-white/50"}},C=function(t){var a=t.value,r=t.label,l=t.description,o=t.icon,n=t.disabled,s=void 0!==n&&n,i=t.className,c=void 0===i?"":i,d=t.style,u=t.checked,m=t.defaultChecked,b=t.onChange,x=t.size,v=t.color,g=t.variant,f=t.indeterminate,p=void 0!==f&&f,w=e.useContext(z),y=null!==w,M=x||(null==w?void 0:w.size)||"md",E=v||(null==w?void 0:w.color)||"violet",C=g||(null==w?void 0:w.variant)||"simple",V=s||(null==w?void 0:w.disabledGrp)||!1,H=h(e.useState(m||!1),2),S=H[0],O=H[1],L=y?w.values.includes(a):void 0!==u?u:S,T=function(e){if(!V){var t=e.target.checked;y?w.onChange(a,t):(void 0===u&&O(t),null==b||b(t,e))}},A=N[E]||N.violet,I={sm:{box:"w-4 h-4 rounded",icon:"text-[10px]",text:"text-xs",p:"p-3"},md:{box:"w-5 h-5 rounded-md",icon:"text-xs",text:"text-sm",p:"p-4"},lg:{box:"w-6 h-6 rounded-md",icon:"text-sm",text:"text-base",p:"p-5"}}[M];return"card"===C?e.createElement("label",{className:"\n relative flex items-start gap-4 cursor-pointer rounded-xl border-2 transition-all duration-200\n ".concat(I.p,"\n ").concat(L?"".concat(A.border," ").concat(A.bg," shadow-sm ring-1 ").concat(A.ring.replace("focus:","")):"border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-800","\n ").concat(V?"opacity-50 cursor-not-allowed grayscale":"","\n ").concat(c,"\n "),style:d},e.createElement("input",{type:"checkbox",checked:L,onChange:T,disabled:V,className:"sr-only"}),e.createElement("div",{className:"\n flex-shrink-0 border-2 flex items-center justify-center transition-all duration-200\n ".concat(I.box,"\n ").concat(L?A.checked:"border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-900","\n ")},L&&e.createElement(k,{icon:"check",variant:"fas",className:"text-white dark:text-slate-900"})),e.createElement("div",{className:"flex-1 min-w-0"},e.createElement("div",{className:"flex items-center gap-2 mb-1"},o&&e.createElement(k,{icon:o,variant:"fas",className:L?A.text:"text-slate-400"}),e.createElement("span",{className:"font-semibold ".concat(I.text," ").concat(L?"text-slate-900 dark:text-white":"text-slate-700 dark:text-slate-300")},r)),l&&e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed"},l))):e.createElement("label",{className:"\n inline-flex items-start gap-3 cursor-pointer group\n ".concat(V?"opacity-50 cursor-not-allowed":"","\n ").concat(c,"\n "),style:d},e.createElement("div",{className:"relative flex items-center mt-0.5"},e.createElement("input",{type:"checkbox",checked:L,onChange:T,disabled:V,className:"peer sr-only"}),e.createElement("div",{className:"\n ".concat(I.box,"\n border-2 transition-all duration-200 flex items-center justify-center\n peer-focus:ring-2 peer-focus:ring-offset-1 peer-focus:ring-offset-white dark:peer-focus:ring-offset-slate-950 ").concat(A.ring,"\n ").concat(L||p?A.checked:"border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-900 group-hover:border-slate-400 dark:group-hover:border-slate-500","\n ")},p?e.createElement(k,{icon:"minus",variant:"fas",className:"text-white dark:text-slate-900 ".concat(I.icon)}):e.createElement(k,{icon:"check",variant:"fas",className:"\n text-white dark:text-slate-900 transition-opacity duration-200\n ".concat(I.icon,"\n ").concat(L?"opacity-100":"opacity-0","\n ")}))),(r||l)&&e.createElement("div",{className:"flex flex-col"},r&&e.createElement("span",{className:"".concat(I.text," font-medium text-slate-700 dark:text-slate-200 group-hover:text-slate-900 dark:group-hover:text-white transition-colors")},r),l&&e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},l)))};E.propTypes={children:t.node,value:t.array,defaultValue:t.array,onChange:t.func,orientation:t.oneOf(["horizontal","vertical"]),label:t.string,description:t.string,error:t.string,className:t.string,size:t.oneOf(["sm","md","lg"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),variant:t.oneOf(["simple","card"]),disabled:t.bool},C.propTypes={value:t.any,label:t.string,description:t.string,icon:t.string,disabled:t.bool,className:t.string,style:t.object,checked:t.bool,defaultChecked:t.bool,onChange:t.func,size:t.oneOf(["sm","md","lg"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),variant:t.oneOf(["simple","card"]),indeterminate:t.bool},C.Group=E;var V=function(e,t){return new Date(e,t+1,0).getDate()},H=function(e,t){if(!e)return"";var a=new Date(e);if(isNaN(a.getTime()))return"";var r,l=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o=a.getDate(),n=a.getMonth(),s=a.getFullYear(),i=a.getHours(),c=a.getMinutes(),d=i>=12?"PM":"AM",u="".concat(i%12||12,":").concat((r=c,r.toString().padStart(2,"0"))," ").concat(d);return"time"===t?u:"date"===t?"".concat(l[n]," ").concat(o,", ").concat(s):"".concat(l[n]," ").concat(o,", ").concat(s," ").concat(u)},S=function(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())},O=function(t){var r=t.value,l=t.onChange,o=t.type,n=void 0===o?"date":o,s=t.label,i=t.helperText,c=t.error,d=t.placeholder,u=void 0===d?"Select date...":d;t.minDate,t.maxDate;var m=t.disabled,b=void 0!==m&&m,x=t.color,v=void 0===x?"violet":x,g=t.size,f=void 0===g?"md":g,p=t.variant,w=void 0===p?"outlined":p,y=t.className,M=void 0===y?"":y,z=t.fullWidth,E=void 0!==z&&z,N=h(e.useState(!1),2),C=N[0],O=N[1],L=e.useRef(null),T=e.useRef(null),A=r?new Date(r):new Date,I=h(e.useState(A),2),j=I[0],D=I[1],P=h(e.useState(r?new Date(r):null),2),F=P[0],q=P[1],W=h(e.useState("days"),2),B=W[0],R=W[1];e.useEffect(function(){if(r){var e=new Date(r);q(e),D(e)}else q(null)},[r]),e.useEffect(function(){var e=function(e){L.current&&!L.current.contains(e.target)&&(O(!1),setTimeout(function(){return R("days")},200))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),e.useEffect(function(){if("years"===B&&T.current){var e=T.current.querySelector('[data-selected-year="true"]');e&&e.scrollIntoView({block:"center",behavior:"auto"})}},[B]);var G={violet:{active:"bg-violet-500 text-white",hover:"hover:bg-violet-50 dark:hover:bg-violet-900/30 text-slate-700 dark:text-slate-300",text:"text-violet-600 dark:text-violet-400",today:"text-violet-600 font-bold",ring:"focus:ring-violet-500/20",border:"focus:border-violet-500",icon:"text-violet-500"},blue:{active:"bg-blue-500 text-white",hover:"hover:bg-blue-50 dark:hover:bg-blue-900/30 text-slate-700 dark:text-slate-300",text:"text-blue-600 dark:text-blue-400",today:"text-blue-600 font-bold",ring:"focus:ring-blue-500/20",border:"focus:border-blue-500",icon:"text-blue-500"},emerald:{active:"bg-emerald-500 text-white",hover:"hover:bg-emerald-50 dark:hover:bg-emerald-900/30 text-slate-700 dark:text-slate-300",text:"text-emerald-600 dark:text-emerald-400",today:"text-emerald-600 font-bold",ring:"focus:ring-emerald-500/20",border:"focus:border-emerald-500",icon:"text-emerald-500"},rose:{active:"bg-rose-500 text-white",hover:"hover:bg-rose-50 dark:hover:bg-rose-900/30 text-slate-700 dark:text-slate-300",text:"text-rose-600 dark:text-rose-400",today:"text-rose-600 font-bold",ring:"focus:ring-rose-500/20",border:"focus:border-rose-500",icon:"text-rose-500"},amber:{active:"bg-amber-500 text-white",hover:"hover:bg-amber-50 dark:hover:bg-amber-900/30 text-slate-700 dark:text-slate-300",text:"text-amber-600 dark:text-amber-400",today:"text-amber-600 font-bold",ring:"focus:ring-amber-500/20",border:"focus:border-amber-500",icon:"text-amber-500"},black:{active:"bg-slate-900 text-white dark:bg-white dark:text-slate-900",hover:"hover:bg-slate-100 dark:hover:bg-slate-800 text-slate-700 dark:text-slate-300",text:"text-slate-900 dark:text-white",today:"text-slate-900 dark:text-white font-bold",ring:"focus:ring-slate-500/20",border:"focus:border-slate-900 dark:focus:border-slate-100",icon:"text-slate-900 dark:text-white"}}[v]||G.violet,K=function(e,t){var a=F?new Date(F):new Date,r=isNaN(t)?0:t;"hour"===e&&a.setHours(r),"minute"===e&&a.setMinutes(r),q(a),null==l||l(a)},Y=function(e){var t=new Date(j.getFullYear(),j.getMonth()+e,1);D(t)},_=function(){for(var e=j.getFullYear(),t=j.getMonth(),a=function(e,t,a){return new Date(e,t,a).getDay()}(e,t,1),r=V(e,t),l=V(e,t-1),o=[],n=0;n<a;n++)o.push({day:l-a+1+n,type:"prev"});for(var s=1;s<=r;s++)o.push({day:s,type:"current"});for(var i=42-o.length,c=1;c<=i;c++)o.push({day:c,type:"next"});return o},J=e.useMemo(function(){return _()},[j]),U=["January","February","March","April","May","June","July","August","September","October","November","December"],$=e.useMemo(function(){for(var e=(new Date).getFullYear(),t=[],a=1900;a<=e+100;a++)t.push(a);return t},[]),Q="\n w-full flex items-center justify-between transition-all duration-200 cursor-pointer\n ".concat("sm"===f?"px-3 py-2 text-sm":"","\n ").concat("md"===f?"px-4 py-2.5 text-sm":"","\n ").concat("lg"===f?"px-5 py-3 text-base":"","\n ").concat("outlined"===w?"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600":"bg-slate-50 dark:bg-slate-800/50 border border-transparent hover:bg-slate-100 dark:hover:bg-slate-800","\n ").concat(c?"border-red-300 focus:border-red-500 focus:ring-red-500/20":"".concat(C?G.border:""," focus:ring-4 ").concat(G.ring),"\n ").concat(b?"opacity-50 cursor-not-allowed bg-slate-50 dark:bg-slate-900":"hover:shadow-sm","\n rounded-xl outline-none\n ");return e.createElement("div",{className:"relative ".concat(E?"w-full":"w-72"," ").concat(M),ref:L},s&&e.createElement("label",{className:"block text-sm font-medium text-slate-700 dark:text-slate-300 mb-1.5 ml-1"},s),e.createElement("div",{className:Q,onClick:function(){return!b&&O(!C)},role:"button",tabIndex:0},e.createElement("div",{className:"flex items-center gap-3 overflow-hidden"},e.createElement(k,{icon:"time"===n?"clock":"calendar-days",variant:"far",className:"".concat(F?G.icon:"text-slate-400"," flex-shrink-0")}),e.createElement("span",{className:"block truncate ".concat(F?"text-slate-900 dark:text-white":"text-slate-400")},F?H(F,n):u)),!b&&e.createElement(k,{icon:"chevron-down",variant:"fas",className:"text-slate-400 text-xs transition-transform duration-200 ".concat(C?"rotate-180":"")})),(c||i)&&e.createElement("div",{className:"mt-1.5 ml-1 text-xs"},c?e.createElement("span",{className:"text-red-500 flex items-center gap-1"},e.createElement(k,{icon:"circle-exclamation",variant:"fas"}),c):e.createElement("span",{className:"text-slate-500 dark:text-slate-400"},i)),e.createElement(a.AnimatePresence,null,C&&e.createElement(a.motion.div,{initial:{opacity:0,y:8,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:8,scale:.95},transition:{duration:.15},className:"absolute top-full left-0 mt-2 z-50 bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 rounded-2xl shadow-xl overflow-hidden min-w-[320px] w-fit"},e.createElement("div",{className:"flex flex-col sm:flex-row"},"time"!==n&&e.createElement("div",{className:"text-sm flex-1 min-w-[320px]"},e.createElement("div",{className:"p-4 border-b border-slate-100 dark:border-slate-800 flex items-center justify-between bg-slate-50/50 dark:bg-slate-800/20"},"days"===B&&e.createElement(e.Fragment,null,e.createElement("button",{onClick:function(){return Y(-1)},className:"p-1.5 rounded-lg hover:bg-slate-200/50 dark:hover:bg-slate-700 text-slate-500 transition-colors"},e.createElement(k,{icon:"chevron-left",variant:"fas",className:"text-xs"})),e.createElement("button",{onClick:function(){return R("years")},className:"font-semibold text-sm ".concat(G.text," hover:opacity-80 transition-opacity")},U[j.getMonth()]," ",j.getFullYear()),e.createElement("button",{onClick:function(){return Y(1)},className:"p-1.5 rounded-lg hover:bg-slate-200/50 dark:hover:bg-slate-700 text-slate-500 transition-colors"},e.createElement(k,{icon:"chevron-right",variant:"fas",className:"text-xs"}))),("months"===B||"years"===B)&&e.createElement("div",{className:"flex items-center justify-center w-full relative"},e.createElement("button",{onClick:function(){return R("years"===B?"days":"years")},className:"absolute left-0 p-1.5 rounded-lg hover:bg-slate-200/50 dark:hover:bg-slate-700 text-slate-500"},e.createElement(k,{icon:"arrow-left",variant:"fas",className:"text-xs"})),e.createElement("span",{className:"font-semibold text-slate-900 dark:text-white"},"years"===B?"Select Year":"Select Month"))),e.createElement("div",{className:"p-4"},"days"===B&&e.createElement(e.Fragment,null,e.createElement("div",{className:"grid grid-cols-7 mb-2"},["Su","Mo","Tu","We","Th","Fr","Sa"].map(function(t){return e.createElement("div",{key:t,className:"text-center text-[11px] font-bold text-slate-400 uppercase tracking-wide py-1"},t)})),e.createElement("div",{className:"grid grid-cols-7 gap-1"},J.map(function(t,a){if("current"!==t.type)return e.createElement("div",{key:a,className:"h-9"});var r=new Date(j.getFullYear(),j.getMonth(),t.day),o=F&&S(F,r),s=S(new Date,r);return e.createElement("button",{key:a,onClick:function(){return function(e){var t=new Date(j.getFullYear(),j.getMonth(),e);if(F&&"date"!==n)t.setHours(F.getHours()),t.setMinutes(F.getMinutes());else if(!F){var a=new Date;t.setHours(a.getHours()),t.setMinutes(a.getMinutes())}q(t),null==l||l(t),"date"===n&&O(!1)}(t.day)},className:"\n h-9 w-9 rounded-lg flex items-center justify-center transition-all duration-200 font-medium\n ".concat(o?G.active:G.hover,"\n ").concat(!o&&s?G.today:"","\n ").concat(o||s?"":"text-slate-600 dark:text-slate-300","\n ")},t.day)}))),"months"===B&&e.createElement("div",{className:"grid grid-cols-3 gap-2"},U.map(function(t,a){return e.createElement("button",{key:t,onClick:function(){return e=a,t=new Date(j.getFullYear(),e,1),D(t),void R("days");var e,t},className:"\n p-2 rounded-lg text-sm transition-all\n ".concat(j.getMonth()===a?G.active:G.hover,"\n ")},t.substring(0,3))})),"years"===B&&e.createElement("div",{className:"h-64 overflow-y-auto custom-scrollbar pr-2",ref:T},e.createElement("div",{className:"grid grid-cols-4 gap-2"},$.map(function(t){return e.createElement("button",{key:t,"data-selected-year":j.getFullYear()===t,onClick:function(){return e=new Date(t,j.getMonth(),1),D(e),void R("months");var e},className:"\n p-2 rounded-lg text-sm transition-all\n ".concat(j.getFullYear()===t?G.active:G.hover,"\n ")},t)}))))),("time"===n||"datetime"===n)&&e.createElement("div",{className:"\n flex flex-col items-center justify-center gap-4 p-6\n ".concat("time"===n?"w-full min-w-[240px]":"border-l border-slate-100 dark:border-slate-800 bg-slate-50/30 dark:bg-slate-800/10 sm:w-auto","\n ")},e.createElement("div",{className:"text-xs font-bold text-slate-400 uppercase tracking-wider"},"Time"),e.createElement("div",{className:"flex items-center justify-center gap-3"},e.createElement("div",{className:"flex flex-col gap-1.5 items-center"},e.createElement("label",{className:"text-[10px] text-slate-400 font-medium uppercase tracking-wide"},"Hour"),e.createElement("input",{type:"number",min:"0",max:"23",className:"\n w-16 h-14 rounded-xl bg-white dark:bg-slate-800 \n border-2 border-slate-200 dark:border-slate-700 \n text-center text-xl font-semibold \n text-slate-900 dark:text-white\n focus:ring-2 ".concat(G.ring," outline-none \n transition-all ").concat(G.border,"\n hover:border-slate-300 dark:hover:border-slate-600\n "),value:F?F.getHours():12,onChange:function(e){return K("hour",parseInt(e.target.value))}})),e.createElement("span",{className:"text-slate-300 dark:text-slate-600 text-2xl font-bold mt-6"},":"),e.createElement("div",{className:"flex flex-col gap-1.5 items-center"},e.createElement("label",{className:"text-[10px] text-slate-400 font-medium uppercase tracking-wide"},"Minute"),e.createElement("input",{type:"number",min:"0",max:"59",className:"\n w-16 h-14 rounded-xl bg-white dark:bg-slate-800 \n border-2 border-slate-200 dark:border-slate-700 \n text-center text-xl font-semibold \n text-slate-900 dark:text-white\n focus:ring-2 ".concat(G.ring," outline-none \n transition-all ").concat(G.border,"\n hover:border-slate-300 dark:hover:border-slate-600\n "),value:F?F.getMinutes():0,onChange:function(e){return K("minute",parseInt(e.target.value))}}))),e.createElement("div",{className:"text-base font-semibold ".concat(G.text)},F?H(F,"time"):"--:-- --"))))))};O.propTypes={value:t.oneOfType([t.string,t.instanceOf(Date)]),onChange:t.func,type:t.oneOf(["date","time","datetime"]),label:t.string,helperText:t.string,error:t.string,placeholder:t.string,minDate:t.oneOfType([t.string,t.instanceOf(Date)]),maxDate:t.oneOfType([t.string,t.instanceOf(Date)]),disabled:t.bool,color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),size:t.oneOf(["sm","md","lg"]),variant:t.oneOf(["outlined","filled"]),className:t.string,fullWidth:t.bool};var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!+e)return"0 Bytes";var a=t<0?0:t,r=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,r)).toFixed(a))," ").concat(["Bytes","KB","MB","GB","TB"][r])},T={violet:{active:"border-violet-500 bg-violet-50 dark:bg-violet-900/10",text:"text-violet-600 dark:text-violet-400",icon:"text-violet-500",ring:"focus:ring-violet-500/20",primary:"bg-violet-600 hover:bg-violet-700 text-white shadow-violet-500/20",secondary:"bg-violet-100 hover:bg-violet-200 text-violet-700 dark:bg-violet-500/20 dark:hover:bg-violet-500/30 dark:text-violet-300",outline:"border border-violet-200 hover:border-violet-300 text-violet-700 hover:bg-violet-50 dark:border-violet-700 dark:text-violet-300 dark:hover:bg-violet-500/10 bg-transparent",ghost:"text-violet-700 hover:bg-violet-50 dark:text-violet-300 dark:hover:bg-violet-500/10 bg-transparent"},blue:{active:"border-blue-500 bg-blue-50 dark:bg-blue-900/10",text:"text-blue-600 dark:text-blue-400",icon:"text-blue-500",ring:"focus:ring-blue-500/20",primary:"bg-blue-600 hover:bg-blue-700 text-white shadow-blue-500/20",secondary:"bg-blue-100 hover:bg-blue-200 text-blue-700 dark:bg-blue-500/20 dark:hover:bg-blue-500/30 dark:text-blue-300",outline:"border border-blue-200 hover:border-blue-300 text-blue-700 hover:bg-blue-50 dark:border-blue-700 dark:text-blue-300 dark:hover:bg-blue-500/10 bg-transparent",ghost:"text-blue-700 hover:bg-blue-50 dark:text-blue-300 dark:hover:bg-blue-500/10 bg-transparent"},emerald:{active:"border-emerald-500 bg-emerald-50 dark:bg-emerald-900/10",text:"text-emerald-600 dark:text-emerald-400",icon:"text-emerald-500",ring:"focus:ring-emerald-500/20",primary:"bg-emerald-600 hover:bg-emerald-700 text-white shadow-emerald-500/20",secondary:"bg-emerald-100 hover:bg-emerald-200 text-emerald-700 dark:bg-emerald-500/20 dark:hover:bg-emerald-500/30 dark:text-emerald-300",outline:"border border-emerald-200 hover:border-emerald-300 text-emerald-700 hover:bg-emerald-50 dark:border-emerald-700 dark:text-emerald-300 dark:hover:bg-emerald-500/10 bg-transparent",ghost:"text-emerald-700 hover:bg-emerald-50 dark:text-emerald-300 dark:hover:bg-emerald-500/10 bg-transparent"},rose:{active:"border-rose-500 bg-rose-50 dark:bg-rose-900/10",text:"text-rose-600 dark:text-rose-400",icon:"text-rose-500",ring:"focus:ring-rose-500/20",primary:"bg-rose-600 hover:bg-rose-700 text-white shadow-rose-500/20",secondary:"bg-rose-100 hover:bg-rose-200 text-rose-700 dark:bg-rose-500/20 dark:hover:bg-rose-500/30 dark:text-rose-300",outline:"border border-rose-200 hover:border-rose-300 text-rose-700 hover:bg-rose-50 dark:border-rose-700 dark:text-rose-300 dark:hover:bg-rose-500/10 bg-transparent",ghost:"text-rose-700 hover:bg-rose-50 dark:text-rose-300 dark:hover:bg-rose-500/10 bg-transparent"},amber:{active:"border-amber-500 bg-amber-50 dark:bg-amber-900/10",text:"text-amber-600 dark:text-amber-400",icon:"text-amber-500",ring:"focus:ring-amber-500/20",primary:"bg-amber-500 hover:bg-amber-600 text-white shadow-amber-500/20",secondary:"bg-amber-100 hover:bg-amber-200 text-amber-700 dark:bg-amber-500/20 dark:hover:bg-amber-500/30 dark:text-amber-300",outline:"border border-amber-200 hover:border-amber-300 text-amber-700 hover:bg-amber-50 dark:border-amber-700 dark:text-amber-300 dark:hover:bg-amber-500/10 bg-transparent",ghost:"text-amber-700 hover:bg-amber-50 dark:text-amber-300 dark:hover:bg-amber-500/10 bg-transparent"},black:{active:"border-slate-800 dark:border-slate-200 bg-slate-50 dark:bg-slate-800",text:"text-slate-800 dark:text-slate-200",icon:"text-slate-800 dark:text-white",ring:"focus:ring-slate-500/20",primary:"bg-slate-900 hover:bg-slate-800 text-white shadow-slate-900/20 dark:bg-white dark:text-slate-900 dark:hover:bg-slate-200",secondary:"bg-slate-100 hover:bg-slate-200 text-slate-800 dark:bg-slate-800 dark:hover:bg-slate-700 dark:text-slate-200",outline:"border border-slate-200 hover:border-slate-300 text-slate-700 hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800 bg-transparent",ghost:"text-slate-700 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-slate-800 bg-transparent"}},A=function(t){var a=t.variant,r=void 0===a?"dropzone":a,l=t.buttonStyle,o=void 0===l?"primary":l,n=t.multiple,s=void 0!==n&&n,i=t.accept,c=t.maxSize,d=t.maxFiles,u=t.label,m=void 0===u?"Click or drag file to upload":u,b=t.description,v=void 0===b?"SVG, PNG, JPG or GIF (max. 5MB)":b,g=t.color,f=void 0===g?"violet":g,p=t.fullWidth,w=void 0===p||p,y=t.className,M=void 0===y?"":y,z=t.onFilesChange,E=t.disabled,N=void 0!==E&&E,C=h(e.useState([]),2),V=C[0],H=C[1],S=h(e.useState(!1),2),O=S[0],A=S[1],I=h(e.useState(null),2),j=I[0],D=I[1],P=e.useRef(null),F=T[f]||T.violet,q=e.useCallback(function(e){e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?N||A(!0):"dragleave"===e.type&&A(!1)},[N]),W=e.useCallback(function(e){if(e.preventDefault(),e.stopPropagation(),A(!1),!N){var t=Array.from(e.dataTransfer.files);R(t)}},[N]),B=function(e){var t=Array.from(e.target.files);R(t)},R=function(e){D(null);var t=[],a=[];if(e.forEach(function(e){var r=function(e){if(c&&e.size>c)return{valid:!1,error:"File ".concat(e.name," exceeds size limit of ").concat(L(c))};if(i){var t=i.split(",").map(function(e){return e.trim()}),a=e.type,r=e.name;if(!t.some(function(e){return e.endsWith("/*")?a.startsWith(e.replace("/*","")):e.startsWith(".")?r.toLowerCase().endsWith(e.toLowerCase()):a===e}))return{valid:!1,error:"File type not accepted: ".concat(e.name)}}return{valid:!0}}(e);r.valid?t.push(e):a.push(r.error)}),a.length>0)D(a[0]);else if(d&&V.length+t.length>d)D("Maximum number of files (".concat(d,") exceeded"));else{var r;r=s?[].concat(x(V),t):[t[0]].filter(Boolean);var l=function(e){return"".concat(e.name,"-").concat(e.size,"-").concat(e.lastModified)},o=new Set(V.map(l));if(s){var n=t.filter(function(e){return!o.has(l(e))});r=[].concat(x(V),x(n))}else r=t.length?[t[0]]:V;H(r),null==z||z(r)}},G=function(e,t){e.stopPropagation();var a=V.filter(function(e,a){return a!==t});H(a),null==z||z(a)},K=function(){var e;N||null===(e=P.current)||void 0===e||e.click()};return"compact"===r?e.createElement("div",{className:"".concat(w?"w-full":"w-auto"," ").concat(M)},e.createElement("input",{ref:P,type:"file",className:"hidden",multiple:s,accept:i,onChange:B,disabled:N}),e.createElement("div",{className:"flex items-center gap-3"},e.createElement("button",{type:"button",onClick:K,disabled:N,className:"\n inline-flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 shadow-sm\n focus:outline-none focus:ring-2 focus:ring-offset-1 dark:focus:ring-offset-slate-950\n ".concat(N?"bg-slate-100 text-slate-400 cursor-not-allowed dark:bg-slate-800":F[o],"\n ").concat(F.ring,"\n ")},e.createElement(k,{icon:"cloud-arrow-up",size:"sm"}),"Choose File"),e.createElement("span",{className:"text-sm text-slate-500 dark:text-slate-400"},V.length>0?"".concat(V.length," file").concat(1!==V.length?"s":""," selected"):"No file chosen")),V.length>0&&e.createElement("div",{className:"mt-3 flex flex-col gap-2"},V.map(function(t,a){return e.createElement("div",{key:a,className:"flex items-center justify-between p-2 bg-slate-50 dark:bg-slate-800 rounded-md border border-slate-100 dark:border-slate-700"},e.createElement("span",{className:"text-xs text-slate-700 dark:text-slate-300 truncate max-w-[200px]"},t.name),e.createElement("button",{onClick:function(e){return G(e,a)},className:"text-slate-400 hover:text-red-500"},e.createElement(k,{icon:"xmark",size:"sm"})))})),j&&e.createElement("p",{className:"mt-2 text-xs text-red-500 font-medium"},j)):e.createElement("div",{className:"".concat(w?"w-full":"w-auto"," ").concat(M)},e.createElement("input",{ref:P,type:"file",className:"hidden",multiple:s,accept:i,onChange:B,disabled:N}),e.createElement("div",{onDragEnter:q,onDragLeave:q,onDragOver:q,onDrop:W,onClick:K,className:"\n relative group cursor-pointer\n flex flex-col items-center justify-center\n w-full rounded-2xl border-2 border-dashed transition-all duration-200\n p-8 text-center\n ".concat(N?"bg-slate-50 border-slate-200 dark:bg-slate-900/50 dark:border-slate-800 cursor-not-allowed":O?"".concat(F.active," scale-[1.01]"):"bg-white border-slate-200 dark:bg-slate-900 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-800/50","\n ").concat(j?"border-red-300 bg-red-50 dark:bg-red-900/10":"","\n ")},e.createElement("div",{className:"\n w-12 h-12 rounded-full mb-4 flex items-center justify-center transition-colors duration-200\n ".concat(N?"bg-slate-100 text-slate-300 dark:bg-slate-800 dark:text-slate-600":O?"bg-white shadow-sm":"bg-slate-100 dark:bg-slate-800","\n ")},e.createElement(k,{icon:"cloud-arrow-up",variant:"fas",className:"text-xl ".concat(N?"":O?F.text:"text-slate-400")})),e.createElement("h4",{className:"text-sm font-semibold mb-1 ".concat(N?"text-slate-400":"text-slate-900 dark:text-white")},O?"Drop files here":m),e.createElement("p",{className:"text-xs ".concat(N?"text-slate-400":"text-slate-500 dark:text-slate-400")},v)),j&&e.createElement("div",{className:"mt-2 text-xs text-red-500 flex items-center gap-1.5"},e.createElement(k,{icon:"circle-info",variant:"fas"}),j),V.length>0&&e.createElement("div",{className:"mt-4 flex flex-col gap-2"},V.map(function(t,a){return e.createElement("div",{key:a,className:" group relative flex items-center p-3 rounded-xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-900 transition-all hover:shadow-sm "},e.createElement("div",{className:"\n w-8 h-8 rounded-lg flex items-center justify-center mr-3\n ".concat(F.active.replace("border-","")," \n ")},e.createElement(k,{icon:t.type.includes("image")?"image":"file-lines",variant:"fas",className:"".concat(F.text," text-sm")})),e.createElement("div",{className:"flex-1 min-w-0 text-left"},e.createElement("p",{className:"text-sm font-medium text-slate-700 dark:text-slate-200 truncate"},t.name),e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400"},L(t.size))),e.createElement("div",{className:"mr-2 ".concat(F.text)},e.createElement(k,{icon:"circle-check",variant:"fas",className:"text-sm"})),e.createElement("button",{onClick:function(e){return G(e,a)},className:" p-1.5 rounded-md text-slate-400 hover:text-red-500 hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors "},e.createElement(k,{icon:"trash",variant:"fas",className:"text-xs"})))})))};A.propTypes={variant:t.oneOf(["dropzone","compact"]),buttonStyle:t.oneOf(["primary","secondary","outline","ghost"]),multiple:t.bool,accept:t.string,maxSize:t.number,maxFiles:t.number,label:t.string,description:t.string,color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),fullWidth:t.bool,className:t.string,onFilesChange:t.func,disabled:t.bool};var I=["type","value","defaultValue","placeholder","name","id","disabled","readOnly","required","autoFocus","autoComplete","theme","color","size","rounded","fullWidth","label","floatingLabel","helperText","errorText","successText","leftIcon","leftIconVariant","rightIcon","rightIconVariant","iconColor","prefix","suffix","clearable","showPasswordToggle","copyable","showCharCount","maxLength","isLoading","animate","focusEffect","onChange","onFocus","onBlur","onClear","onCopy","className","inputClassName","labelClassName","wrapperClassName","style"],j=e.forwardRef(function(t,a){var r=t.type,l=void 0===r?"text":r,n=t.value,s=t.defaultValue,c=t.placeholder,d=void 0===c?"":c,b=t.name,x=t.id,v=t.disabled,g=void 0!==v&&v,f=t.readOnly,p=void 0!==f&&f,w=t.required,y=void 0!==w&&w,M=t.autoFocus,z=void 0!==M&&M,E=t.autoComplete,N=void 0===E?"off":E,C=t.theme,V=void 0===C?"default":C,H=t.color,S=void 0===H?"violet":H,O=t.size,L=void 0===O?"md":O,T=t.rounded,A=void 0===T?"lg":T,j=t.fullWidth,D=void 0!==j&&j,P=t.label,F=t.floatingLabel,q=void 0!==F&&F,W=t.helperText;t.errorText,t.successText;var B=t.leftIcon,R=t.leftIconVariant,G=void 0===R?"fas":R,K=t.rightIcon,Y=t.rightIconVariant,_=void 0===Y?"fas":Y,J=t.iconColor,U=t.prefix,$=t.suffix,Q=t.clearable,X=void 0!==Q&&Q,Z=t.showPasswordToggle,ee=void 0!==Z&&Z,te=t.copyable,ae=void 0!==te&&te,re=t.showCharCount,le=void 0!==re&&re,oe=t.maxLength,ne=t.isLoading,se=void 0!==ne&&ne,ie=t.animate,ce=void 0===ie||ie,de=t.focusEffect,ue=void 0===de?"glow":de,me=t.onChange,be=t.onFocus,he=t.onBlur,xe=t.onClear,ve=t.onCopy,ge=t.className,fe=void 0===ge?"":ge,pe=t.inputClassName,ke=void 0===pe?"":pe,we=t.labelClassName,ye=void 0===we?"":we,Me=t.wrapperClassName,ze=void 0===Me?"":Me,Ee=t.style,Ne=u(t,I),Ce=h(e.useState(s||""),2),Ve=Ce[0],He=Ce[1],Se=h(e.useState(!1),2),Oe=Se[0],Le=Se[1],Te=h(e.useState(!1),2),Ae=Te[0],Ie=Te[1],je=h(e.useState(!1),2),De=je[0],Pe=je[1],Fe=e.useRef(null),qe=void 0!==n?n:Ve,We=a||Fe,Be="password"===l&&Ae?"text":l,Re={violet:{focus:"focus-within:border-violet-500 focus-within:ring-violet-500/20",label:"text-violet-600 dark:text-violet-400",icon:"text-violet-500",selection:"bg-violet-500"},blue:{focus:"focus-within:border-blue-500 focus-within:ring-blue-500/20",label:"text-blue-600 dark:text-blue-400",icon:"text-blue-500",selection:"bg-blue-500"},emerald:{focus:"focus-within:border-emerald-500 focus-within:ring-emerald-500/20",label:"text-emerald-600 dark:text-emerald-400",icon:"text-emerald-500",selection:"bg-emerald-500"},rose:{focus:"focus-within:border-rose-500 focus-within:ring-rose-500/20",label:"text-rose-600 dark:text-rose-400",icon:"text-rose-500",selection:"bg-rose-500"},amber:{focus:"focus-within:border-amber-500 focus-within:ring-amber-500/20",label:"text-amber-600 dark:text-amber-400",icon:"text-amber-500",selection:"bg-amber-500"},black:{focus:"focus-within:border-slate-800 dark:focus-within:border-slate-200 focus-within:ring-slate-500/20",label:"text-slate-800 dark:text-slate-200",icon:"text-slate-800 dark:text-slate-200",selection:"bg-slate-800"}},Ge=Re[S]||Re.violet,Ke={xs:{input:"h-7 text-xs px-2",icon:"text-xs",label:"text-xs",iconPadding:{left:"pl-7",right:"pr-7"}},sm:{input:"h-8 text-xs px-3",icon:"text-xs",label:"text-xs",iconPadding:{left:"pl-8",right:"pr-8"}},md:{input:"h-10 text-sm px-4",icon:"text-sm",label:"text-sm",iconPadding:{left:"pl-10",right:"pr-10"}},lg:{input:"h-12 text-base px-5",icon:"text-base",label:"text-base",iconPadding:{left:"pl-12",right:"pr-12"}},xl:{input:"h-14 text-lg px-6",icon:"text-lg",label:"text-lg",iconPadding:{left:"pl-14",right:"pr-14"}}},Ye={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"},_e={default:{wrapper:"bg-slate-50/50 dark:bg-slate-900/50 border border-slate-200 dark:border-slate-700 shadow-sm",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500 placeholder:text-sm",focus:"focus-within:ring-1 focus-within:bg-white dark:focus-within:bg-slate-950",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed bg-slate-100 dark:bg-slate-900"},glass:{wrapper:"bg-white/60 dark:bg-slate-800/30 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-sm",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-400/50 placeholder:text-sm",focus:"focus-within:ring-1 focus-within:bg-white/80 dark:focus-within:bg-slate-800/40",icon:"text-slate-400 dark:text-slate-400/70",disabled:"opacity-40 cursor-not-allowed"},minimal:{wrapper:"bg-transparent border-b-2 border-slate-200 dark:border-slate-700 rounded-none",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500 placeholder:text-sm",focus:"",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed"},outlined:{wrapper:"bg-transparent border-2 border-slate-300 dark:border-slate-600",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500 placeholder:text-sm",focus:"focus-within:ring-2",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed"},filled:{wrapper:"bg-slate-100 dark:bg-slate-800 border-2 border-transparent",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-500 dark:placeholder:text-slate-400 placeholder:text-sm",focus:"focus-within:bg-white dark:focus-within:bg-slate-700 focus-within:ring-1",icon:"text-slate-500 dark:text-slate-400",disabled:"opacity-50 cursor-not-allowed bg-slate-200 dark:bg-slate-900"},gradient:{wrapper:"bg-gradient-to-r from-slate-100 via-slate-50 to-slate-100 dark:from-slate-800/50 dark:via-slate-700/50 dark:to-slate-800/50 border border-slate-200/50 dark:border-slate-600/30 backdrop-blur-sm",input:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-400 placeholder:text-sm",focus:"focus-within:ring-1",icon:"text-slate-500 dark:text-slate-400",disabled:"opacity-50 cursor-not-allowed"}},Je=function(){var e=o(m().m(function e(){var t;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,navigator.clipboard.writeText(qe);case 1:Pe(!0),null==ve||ve(qe),setTimeout(function(){return Pe(!1)},2e3),e.n=3;break;case 2:e.p=2,t=e.v,console.error("Failed to copy:",t);case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),Ue=B||U||se,$e=K||$||X||ee||ae,Qe=Ke[L]||Ke.md,Xe=_e[V]||_e.default,Ze=Ye[A]||Ye.lg,et={none:"",glow:"transition-shadow duration-300",scale:"transition-transform duration-200 focus-within:scale-[1.02]",lift:"transition-all duration-200 focus-within:-translate-y-0.5 focus-within:shadow-lg"}[ue]||"",tt=[X&&qe,ee&&"password"===l,ae].filter(Boolean).length,at=tt>0?"pr-".concat(8+8*tt):K?Qe.iconPadding.right:"";return e.createElement("div",{className:"".concat(D?"w-full":"inline-flex flex-col"," ").concat(ze)},P&&!q&&e.createElement("label",{htmlFor:x||b,className:"block mb-1.5 font-medium text-slate-700 dark:text-slate-300 ".concat(Qe.label," ").concat(ye)},P,y&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),e.createElement("div",{className:"\n relative flex items-center\n ".concat(Xe.wrapper,"\n ").concat(Ze,"\n ").concat(Xe.focus,"\n ").concat(Ge.focus,"\n ").concat(g?Xe.disabled:"","\n ").concat(ce?et:"","\n ").concat(fe,"\n "),style:Ee},P&&q&&e.createElement("label",{htmlFor:x||b,className:"\n absolute left-4 transition-all duration-200 pointer-events-none\n ".concat(Oe||qe?"-top-2.5 text-xs px-1 bg-white dark:bg-slate-800 ".concat(Ge.label):"top-1/2 -translate-y-1/2 text-slate-400 dark:text-slate-500 ".concat(Qe.label),"\n ").concat(ye,"\n ")},P,y&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),U&&e.createElement("span",{className:"flex-shrink-0 pl-3 text-slate-500 dark:text-slate-400 ".concat(Qe.icon)},U),B&&e.createElement("span",{className:"absolute left-3 flex items-center justify-center ".concat(J||Xe.icon," ").concat(Qe.icon)},"string"==typeof B?e.createElement(k,{icon:B,variant:G}):B),se&&!B&&e.createElement("span",{className:"absolute left-3 flex items-center justify-center ".concat(Xe.icon," ").concat(Qe.icon)},e.createElement(k,{icon:"spinner-third",variant:"fad",className:"animate-spin"})),e.createElement("input",i({ref:We,type:Be,id:x||b,name:b,value:qe,placeholder:q&&!Oe?"":d,disabled:g||se,readOnly:p,required:y,autoFocus:z,autoComplete:N,maxLength:oe,onChange:function(e){var t=e.target.value;void 0===n&&He(t),null==me||me(e)},onFocus:function(e){Le(!0),null==be||be(e)},onBlur:function(e){Le(!1),null==he||he(e)},className:"\n w-full outline-none\n ".concat(Xe.input,"\n ").concat(Qe.input,"\n ").concat(Ue?Qe.iconPadding.left:"","\n ").concat($e?at:"","\n ").concat(U?"pl-1":"","\n ").concat($?"pr-1":"","\n ").concat(ke,"\n ")},Ne)),e.createElement("div",{className:"absolute right-2 flex items-center gap-1"},X&&qe&&!g&&!p&&e.createElement("button",{type:"button",onClick:function(){var e;void 0===n&&He(""),null==xe||xe(),null===(e=We.current)||void 0===e||e.focus()},className:"p-1 rounded-full hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(Xe.icon," ").concat(Qe.icon),tabIndex:-1},e.createElement(k,{icon:"xmark",variant:"fas"})),ee&&"password"===l&&e.createElement("button",{type:"button",onClick:function(){return Ie(!Ae)},className:"p-1 rounded-full hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(Xe.icon," ").concat(Qe.icon),tabIndex:-1},e.createElement(k,{icon:Ae?"eye-slash":"eye",variant:"fas"})),ae&&e.createElement("button",{type:"button",onClick:Je,className:"p-1 rounded-full hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors ".concat(De?"text-emerald-500":Xe.icon," ").concat(Qe.icon),tabIndex:-1},e.createElement(k,{icon:De?"check":"copy",variant:"fas"}))),K&&!X&&!ee&&!ae&&e.createElement("span",{className:"absolute right-3 flex items-center justify-center ".concat(J||Xe.icon," ").concat(Qe.icon)},"string"==typeof K?e.createElement(k,{icon:K,variant:_}):K),$&&e.createElement("span",{className:"flex-shrink-0 pr-3 text-slate-500 dark:text-slate-400 ".concat(Qe.icon)},$)),e.createElement("div",{className:"flex justify-between items-start mt-1.5"},e.createElement("div",{className:"flex-1"},W&&e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400"},W)),le&&oe&&e.createElement("span",{className:"text-xs ".concat(qe.length>=oe?"text-red-500":"text-slate-400 dark:text-slate-500")},qe.length,"/",oe)))});j.displayName="Input",j.propTypes={type:t.oneOf(["text","password","email","number","tel","url","search","date","time","datetime-local"]),value:t.oneOfType([t.string,t.number]),defaultValue:t.oneOfType([t.string,t.number]),placeholder:t.string,name:t.string,id:t.string,disabled:t.bool,readOnly:t.bool,required:t.bool,autoFocus:t.bool,autoComplete:t.string,theme:t.oneOf(["default","glass","minimal","outlined","filled","gradient"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),size:t.oneOf(["xs","sm","md","lg","xl"]),rounded:t.oneOf(["none","sm","md","lg","xl","2xl","full"]),fullWidth:t.bool,label:t.string,floatingLabel:t.bool,helperText:t.string,leftIcon:t.oneOfType([t.string,t.node]),leftIconVariant:t.oneOf(["fas","far","fal","fad"]),rightIcon:t.oneOfType([t.string,t.node]),rightIconVariant:t.oneOf(["fas","far","fal","fad"]),iconColor:t.string,prefix:t.node,suffix:t.node,clearable:t.bool,showPasswordToggle:t.bool,copyable:t.bool,showCharCount:t.bool,maxLength:t.number,isLoading:t.bool,animate:t.bool,focusEffect:t.oneOf(["none","glow","scale","lift"]),onChange:t.func,onFocus:t.func,onBlur:t.func,onClear:t.func,onCopy:t.func,className:t.string,inputClassName:t.string,labelClassName:t.string,wrapperClassName:t.string,style:t.object};var D=["value","defaultValue","placeholder","name","id","disabled","readOnly","required","autoFocus","rows","maxLength","theme","color","size","rounded","fullWidth","label","floatingLabel","helperText","animate","focusEffect","onChange","onFocus","onBlur","className","textareaClassName","labelClassName","wrapperClassName","style"],P=e.forwardRef(function(t,a){var r=t.value,l=t.defaultValue,o=t.placeholder,n=void 0===o?"":o,s=t.name,c=t.id,d=t.disabled,m=void 0!==d&&d,b=t.readOnly,x=void 0!==b&&b,v=t.required,g=void 0!==v&&v,f=t.autoFocus,p=void 0!==f&&f,k=t.rows,w=void 0===k?4:k,y=t.maxLength,M=t.theme,z=void 0===M?"default":M,E=t.color,N=void 0===E?"violet":E,C=t.size,V=void 0===C?"md":C,H=t.rounded,S=void 0===H?"xl":H,O=t.fullWidth,L=void 0===O||O,T=t.label,A=t.floatingLabel,I=void 0!==A&&A,j=t.helperText,P=t.animate,F=void 0===P||P,q=t.focusEffect,W=void 0===q?"glow":q,B=t.onChange,R=t.onFocus,G=t.onBlur,K=t.className,Y=void 0===K?"":K,_=t.textareaClassName,J=void 0===_?"":_,U=t.labelClassName,$=void 0===U?"":U,Q=t.wrapperClassName,X=void 0===Q?"":Q,Z=t.style,ee=u(t,D),te=h(e.useState(l||""),2),ae=te[0],re=te[1],le=h(e.useState(!1),2),oe=le[0],ne=le[1],se=e.useRef(null),ie=void 0!==r?r:ae,ce=a||se,de={violet:{focus:"focus-within:border-violet-500 focus-within:ring-violet-500/20",label:"text-violet-600 dark:text-violet-400"},blue:{focus:"focus-within:border-blue-500 focus-within:ring-blue-500/20",label:"text-blue-600 dark:text-blue-400"},emerald:{focus:"focus-within:border-emerald-500 focus-within:ring-emerald-500/20",label:"text-emerald-600 dark:text-emerald-400"},rose:{focus:"focus-within:border-rose-500 focus-within:ring-rose-500/20",label:"text-rose-600 dark:text-rose-400"},amber:{focus:"focus-within:border-amber-500 focus-within:ring-amber-500/20",label:"text-amber-600 dark:text-amber-400"},black:{focus:"focus-within:border-slate-800 dark:focus-within:border-slate-200 focus-within:ring-slate-500/20",label:"text-slate-800 dark:text-slate-200"}},ue=de[N]||de.violet,me={xs:{textarea:"text-xs px-2 py-1.5",label:"text-xs"},sm:{textarea:"text-xs px-3 py-2",label:"text-xs"},md:{textarea:"text-sm px-4 py-3",label:"text-sm"},lg:{textarea:"text-base px-5 py-4",label:"text-base"},xl:{textarea:"text-lg px-6 py-5",label:"text-lg"}},be={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-3xl"},he={default:{wrapper:"bg-slate-50/50 dark:bg-slate-900/50 border border-slate-200 dark:border-slate-700 shadow-sm",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500",focus:"focus-within:ring-1 focus-within:bg-white dark:focus-within:bg-slate-950",disabled:"opacity-50 cursor-not-allowed bg-slate-100 dark:bg-slate-900"},glass:{wrapper:"bg-white/60 dark:bg-slate-800/30 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-sm",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-400/50",focus:"focus-within:ring-1 focus-within:bg-white/80 dark:focus-within:bg-slate-800/40",disabled:"opacity-40 cursor-not-allowed"},minimal:{wrapper:"bg-transparent border-b-2 border-slate-200 dark:border-slate-700 rounded-none",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500",focus:"",disabled:"opacity-50 cursor-not-allowed"},outlined:{wrapper:"bg-transparent border-2 border-slate-300 dark:border-slate-600",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-500",focus:"focus-within:ring-2",disabled:"opacity-50 cursor-not-allowed"},filled:{wrapper:"bg-slate-100 dark:bg-slate-800 border-2 border-transparent",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-500 dark:placeholder:text-slate-400",focus:"focus-within:bg-white dark:focus-within:bg-slate-700 focus-within:ring-1",disabled:"opacity-50 cursor-not-allowed bg-slate-200 dark:bg-slate-900"},gradient:{wrapper:"bg-gradient-to-r from-slate-100 via-slate-50 to-slate-100 dark:from-slate-800/50 dark:via-slate-700/50 dark:to-slate-800/50 border border-slate-200/50 dark:border-slate-600/30 backdrop-blur-sm",textarea:"bg-transparent text-slate-900 dark:text-white placeholder:text-slate-400 dark:placeholder:text-slate-400",focus:"focus-within:ring-1",disabled:"opacity-50 cursor-not-allowed"}},xe=me[V]||me.md,ve=he[z]||he.default,ge=be[S]||be.xl,fe={none:"",glow:"transition-shadow duration-300",scale:"transition-transform duration-200 focus-within:scale-[1.01]",lift:"transition-all duration-200 focus-within:-translate-y-0.5 focus-within:shadow-lg"}[W]||"";return e.createElement("div",{className:"".concat(L?"w-full":"inline-flex flex-col"," ").concat(X)},T&&!I&&e.createElement("label",{htmlFor:c||s,className:"block mb-1.5 font-medium text-slate-700 dark:text-slate-300 ".concat(xe.label," ").concat($)},T,g&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),e.createElement("div",{className:"\n relative\n ".concat("minimal"===z?"":ge,"\n ").concat(ve.wrapper,"\n ").concat(ve.focus,"\n ").concat(ue.focus,"\n ").concat(m?ve.disabled:"","\n ").concat(F?fe:"","\n ").concat(Y,"\n "),style:Z},T&&I&&e.createElement("label",{htmlFor:c||s,className:"\n absolute left-4 transition-all duration-200 pointer-events-none z-10\n ".concat(oe||ie?"-top-2.5 text-xs px-1 bg-white dark:bg-slate-800 ".concat(ue.label):"top-3 text-slate-400 dark:text-slate-500 ".concat(xe.label),"\n ").concat($,"\n ")},T,g&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),e.createElement("textarea",i({ref:ce,id:c||s,name:s,value:ie,placeholder:I&&!oe?"":n,disabled:m,readOnly:x,required:g,autoFocus:p,maxLength:y,rows:w,onChange:function(e){var t=e.target.value;void 0===r&&re(t),null==B||B(e)},onFocus:function(e){ne(!0),null==R||R(e)},onBlur:function(e){ne(!1),null==G||G(e)},className:"\n w-full outline-none resize-y min-h-[80px]\n ".concat(ve.textarea,"\n ").concat(xe.textarea,"\n ").concat("minimal"===z?"":ge,"\n ").concat(J,"\n ")},ee)),y&&!m&&e.createElement("div",{className:"absolute bottom-2 right-2"},e.createElement("span",{className:"text-xs px-1.5 py-0.5 rounded bg-white/80 dark:bg-slate-900/80 ".concat(ie.length>=y?"text-red-500":"text-slate-400 dark:text-slate-500")},ie.length,"/",y))),j&&e.createElement("div",{className:"flex items-start gap-1.5 mt-1.5 px-1"},e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},j)))});P.displayName="Textarea",P.propTypes={value:t.string,defaultValue:t.string,placeholder:t.string,name:t.string,id:t.string,disabled:t.bool,readOnly:t.bool,required:t.bool,autoFocus:t.bool,rows:t.number,maxLength:t.number,theme:t.oneOf(["default","glass","minimal","outlined","filled","gradient"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),size:t.oneOf(["xs","sm","md","lg","xl"]),rounded:t.oneOf(["none","sm","md","lg","xl","2xl","full"]),fullWidth:t.bool,label:t.string,floatingLabel:t.bool,helperText:t.string,animate:t.bool,focusEffect:t.oneOf(["none","glow","scale","lift"]),onChange:t.func,onFocus:t.func,onBlur:t.func,className:t.string,textareaClassName:t.string,labelClassName:t.string,wrapperClassName:t.string,style:t.object};var F=e.createContext(null),q=function(t){var a=t.children,r=t.value,l=t.defaultValue,o=t.onChange,n=t.name,s=t.orientation,i=void 0===s?"vertical":s,c=t.label,d=t.description,u=t.error,m=t.className,b=void 0===m?"":m,x=t.size,v=void 0===x?"md":x,g=t.color,f=void 0===g?"violet":g,p=t.variant,w=void 0===p?"simple":p,y=t.disabled,M=void 0!==y&&y,z=h(e.useState(l),2),E=z[0],N=z[1],C=void 0!==r,V=C?r:E;return e.createElement(F.Provider,{value:{name:n,value:V,onChange:function(e){C||N(e),null==o||o(e)},size:v,color:f,variant:w,disabledGrp:M}},e.createElement("div",{className:"flex flex-col gap-2 ".concat(b)},c&&e.createElement("label",{className:"text-sm font-medium text-slate-700 dark:text-slate-300"},c),d&&e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400 -mt-1 mb-1"},d),e.createElement("div",{className:"\n flex gap-3\n ".concat("vertical"===i?"flex-col":"flex-row flex-wrap","\n ")},a),u&&e.createElement("p",{className:"text-xs text-red-500 mt-1 flex items-center gap-1"},e.createElement(k,{icon:"circle-exclamation",variant:"fas"}),u)))},W={violet:{checked:"border-violet-500",dot:"bg-violet-500",ring:"focus:ring-violet-500",text:"text-violet-700 dark:text-violet-300",bg:"bg-violet-50 dark:bg-violet-900/20",border:"border-violet-500/50"},blue:{checked:"border-blue-500",dot:"bg-blue-500",ring:"focus:ring-blue-500",text:"text-blue-700 dark:text-blue-300",bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-500/50"},emerald:{checked:"border-emerald-500",dot:"bg-emerald-500",ring:"focus:ring-emerald-500",text:"text-emerald-700 dark:text-emerald-300",bg:"bg-emerald-50 dark:bg-emerald-900/20",border:"border-emerald-500/50"},rose:{checked:"border-rose-500",dot:"bg-rose-500",ring:"focus:ring-rose-500",text:"text-rose-700 dark:text-rose-300",bg:"bg-rose-50 dark:bg-rose-900/20",border:"border-rose-500/50"},amber:{checked:"border-amber-500",dot:"bg-amber-500",ring:"focus:ring-amber-500",text:"text-amber-700 dark:text-amber-300",bg:"bg-amber-50 dark:bg-amber-900/20",border:"border-amber-500/50"},black:{checked:"border-slate-900 dark:border-white",dot:"bg-slate-900 dark:bg-white",ring:"focus:ring-slate-500",text:"text-slate-900 dark:text-white",bg:"bg-slate-100 dark:bg-slate-800",border:"border-slate-900/50 dark:border-white/50"}},B=function(t){var a=t.value,r=t.label,l=t.description,o=t.icon,n=t.disabled,s=void 0!==n&&n,i=t.className,c=void 0===i?"":i,d=t.style,u=t.checked,m=t.onChange,b=t.size,h=t.color,x=t.variant,v=e.useContext(F),g=null!==v,f=g?v.name:void 0,p=b||(null==v?void 0:v.size)||"md",w=h||(null==v?void 0:v.color)||"violet",y=x||(null==v?void 0:v.variant)||"simple",M=s||(null==v?void 0:v.disabledGrp)||!1,z=g?v.value===a:u,E=function(e){M||(g?v.onChange(a):null==m||m(e))},N=W[w]||W.violet,C={sm:{circle:"w-4 h-4",dot:"w-2 h-2",text:"text-xs",p:"p-3"},md:{circle:"w-5 h-5",dot:"w-2.5 h-2.5",text:"text-sm",p:"p-4"},lg:{circle:"w-6 h-6",dot:"w-3 h-3",text:"text-base",p:"p-5"}}[p];return"card"===y?e.createElement("label",{className:"\n relative flex items-start gap-4 cursor-pointer rounded-xl border-2 transition-all duration-200\n ".concat(C.p,"\n ").concat(z?"".concat(N.border," ").concat(N.bg," shadow-sm ring-1 ").concat(N.ring.replace("focus:","")):"border-slate-200 dark:border-slate-700 hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50 dark:hover:bg-slate-800","\n ").concat(M?"opacity-50 cursor-not-allowed grayscale":"","\n ").concat(c,"\n "),style:d},e.createElement("input",{type:"radio",name:f,value:a,checked:z,onChange:E,disabled:M,className:"sr-only"}),e.createElement("div",{className:"\n flex-shrink-0 rounded-full border-2 flex items-center justify-center transition-colors\n ".concat(C.circle,"\n ").concat(z?N.checked:"border-slate-300 dark:border-slate-600","\n ")},e.createElement("div",{className:"\n rounded-full transition-transform duration-200\n ".concat(C.dot,"\n ").concat(N.dot,"\n ").concat(z?"scale-100":"scale-0","\n ")})),e.createElement("div",{className:"flex-1 min-w-0"},e.createElement("div",{className:"flex items-center gap-2 mb-1"},o&&e.createElement(k,{icon:o,variant:"fas",className:z?N.text:"text-slate-400"}),e.createElement("span",{className:"font-semibold ".concat(C.text," ").concat(z?"text-slate-900 dark:text-white":"text-slate-700 dark:text-slate-300")},r)),l&&e.createElement("p",{className:"text-xs text-slate-500 dark:text-slate-400 leading-relaxed"},l))):e.createElement("label",{className:"\n inline-flex items-start gap-3 cursor-pointer group\n ".concat(M?"opacity-50 cursor-not-allowed":"","\n ").concat(c,"\n "),style:d},e.createElement("div",{className:"relative flex items-center mt-0.5"},e.createElement("input",{type:"radio",name:f,value:a,checked:z,onChange:E,disabled:M,className:"peer sr-only"}),e.createElement("div",{className:"\n ".concat(C.circle,"\n rounded-full border-2 bg-white dark:bg-slate-900 transition-all duration-200\n peer-focus:ring-2 peer-focus:ring-offset-1 peer-focus:ring-offset-white dark:peer-focus:ring-offset-slate-950 ").concat(N.ring,"\n ").concat(z?N.checked:"border-slate-300 dark:border-slate-600 group-hover:border-slate-400 dark:group-hover:border-slate-500","\n flex items-center justify-center\n ")},e.createElement("div",{className:"\n ".concat(C.dot,"\n rounded-full transform transition-transform duration-200\n ").concat(N.dot,"\n ").concat(z?"scale-100":"scale-0","\n ")}))),(r||l)&&e.createElement("div",{className:"flex flex-col"},r&&e.createElement("span",{className:"".concat(C.text," font-medium text-slate-700 dark:text-slate-200 group-hover:text-slate-900 dark:group-hover:text-white transition-colors")},r),l&&e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},l)))};q.propTypes={children:t.node,value:t.any,defaultValue:t.any,onChange:t.func,name:t.string,orientation:t.oneOf(["horizontal","vertical"]),label:t.string,description:t.string,error:t.string,className:t.string,size:t.oneOf(["sm","md","lg"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),variant:t.oneOf(["simple","card"]),disabled:t.bool},B.propTypes={value:t.any,label:t.string,description:t.string,icon:t.string,disabled:t.bool,className:t.string,style:t.object,checked:t.bool,onChange:t.func,size:t.oneOf(["sm","md","lg"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),variant:t.oneOf(["simple","card"])},B.Group=q;var R=["options","value","defaultValue","onChange","onSearch","api","apiMethod","apiHeaders","apiDataPath","valueKey","labelKey","searchable","clearable","disabled","required","loading","name","id","placeholder","showSelectOption","selectOptionText","selectOptionValue","theme","color","size","rounded","fullWidth","label","helperText","leftIcon","leftIconVariant","dropdownIcon","clearIcon","animate","focusEffect","className","labelClassName","optionsClassName","renderOption","renderSelectedValue","noOptionsText","optionHeight","maxDropdownHeight","style"],G=e.forwardRef(function(t,a){var r,l=t.options,s=void 0===l?[]:l,c=t.value,b=t.defaultValue,x=void 0===b?"":b,v=t.onChange,g=t.onSearch,f=t.api,p=t.apiMethod,w=void 0===p?"GET":p,y=t.apiHeaders,M=void 0===y?{}:y,z=t.apiDataPath,E=void 0===z?"":z,N=t.valueKey,C=void 0===N?"value":N,V=t.labelKey,H=void 0===V?"label":V,S=t.searchable,O=void 0!==S&&S,L=t.clearable,T=void 0===L||L,A=t.disabled,I=void 0!==A&&A,j=t.required,D=void 0!==j&&j,P=t.loading,F=void 0!==P&&P,q=t.name,W=t.id,B=t.placeholder,G=void 0===B?"Select...":B,K=t.showSelectOption,Y=void 0===K||K,_=t.selectOptionText,J=void 0===_?"Select an option":_,U=t.selectOptionValue,$=void 0===U?"":U,Q=t.theme,X=void 0===Q?"default":Q,Z=t.color,ee=void 0===Z?"violet":Z,te=t.size,ae=void 0===te?"md":te,re=t.rounded,le=void 0===re?"lg":re,oe=t.fullWidth,ne=void 0!==oe&&oe,se=t.label,ie=t.helperText,ce=t.leftIcon,de=t.leftIconVariant,ue=void 0===de?"fas":de,me=t.dropdownIcon,be=void 0===me?"chevron-down":me,he=t.clearIcon,xe=void 0===he?"xmark":he,ve=t.animate,ge=void 0===ve||ve,fe=t.focusEffect,pe=void 0===fe?"glow":fe,ke=t.className,we=void 0===ke?"":ke,ye=t.labelClassName,Me=void 0===ye?"":ye,ze=t.optionsClassName,Ee=void 0===ze?"":ze,Ne=t.renderOption,Ce=t.renderSelectedValue,Ve=t.noOptionsText,He=void 0===Ve?"No options found":Ve,Se=t.optionHeight,Oe=void 0===Se?"auto":Se,Le=t.maxDropdownHeight,Te=void 0===Le?"240px":Le,Ae=t.style,Ie=u(t,R),je=h(e.useState(!1),2),De=je[0],Pe=je[1],Fe=h(e.useState(""),2),qe=Fe[0],We=Fe[1],Be=h(e.useState(x),2),Re=Be[0],Ge=Be[1],Ke=h(e.useState(-1),2),Ye=Ke[0],_e=Ke[1],Je=h(e.useState([]),2),Ue=Je[0],$e=Je[1],Qe=h(e.useState(!1),2),Xe=Qe[0],Ze=Qe[1],et=h(e.useState(null),2);et[0];var tt=et[1],at=e.useRef(null),rt=e.useRef(null),lt=e.useRef(null),ot=a||lt,nt=void 0!==c?c:Re,st=F||Xe,it=f?Ue:s,ct=e.useMemo(function(){return it.map(function(e){return"string"==typeof e||"number"==typeof e?{label:String(e),value:e,_original:e}:{label:void 0!==e[H]?String(e[H]):String(e.label||""),value:void 0!==e[C]?e[C]:e.value,icon:e.icon,iconVariant:e.iconVariant,description:e.description,_original:e}})},[it,C,H]),dt=e.useMemo(function(){return O&&qe?ct.filter(function(e){return String(e.label).toLowerCase().includes(qe.toLowerCase())||e.description&&String(e.description).toLowerCase().includes(qe.toLowerCase())}):ct},[ct,qe,O]),ut=e.useMemo(function(){return ct.find(function(e){return e.value===nt})||null},[ct,nt]);e.useEffect(function(){var e=function(e){at.current&&!at.current.contains(e.target)&&(Pe(!1),We(""),_e(-1))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),e.useEffect(function(){if(f){var e=function(){var e=o(m().m(function e(){var t,a,r,l,o,s,i,c;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return Ze(!0),tt(null),e.p=1,e.n=2,fetch(f,{method:w,headers:d({"Content-Type":"application/json"},M)});case 2:if((t=e.v).ok){e.n=3;break}throw new Error("HTTP error! status: ".concat(t.status));case 3:return e.n=4,t.json();case 4:if(a=e.v,E){r=E.split("."),l=n(r);try{for(l.s();!(o=l.n()).done;)i=o.value,a=null===(s=a)||void 0===s?void 0:s[i]}catch(e){l.e(e)}finally{l.f()}}Array.isArray(a)?$e(a):(console.warn("Select API response is not an array:",a),$e([])),e.n=6;break;case 5:e.p=5,c=e.v,console.error("Select API fetch error:",c),tt(c.message),$e([]);case 6:return e.p=6,Ze(!1),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}));return function(){return e.apply(this,arguments)}}();e()}},[f,w,E]),e.useEffect(function(){De&&O&&rt.current&&setTimeout(function(){var e;return null===(e=rt.current)||void 0===e?void 0:e.focus()},50)},[De,O]),e.useEffect(function(){_e(-1)},[dt]);var mt=function(e,t){t&&t.stopPropagation(),void 0===c&&Ge(e),null==v||v(e,ct.find(function(t){return t.value===e})),Pe(!1),We(""),_e(-1)},bt={violet:{focus:"border-violet-500 ring-violet-500/20",optionSelected:"bg-violet-100 dark:bg-violet-900/30 text-violet-700 dark:text-violet-300",icon:"text-violet-500",iconSelected:"text-violet-500"},blue:{focus:"border-blue-500 ring-blue-500/20",optionSelected:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",icon:"text-blue-500",iconSelected:"text-blue-500"},emerald:{focus:"border-emerald-500 ring-emerald-500/20",optionSelected:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300",icon:"text-emerald-500",iconSelected:"text-emerald-500"},rose:{focus:"border-rose-500 ring-rose-500/20",optionSelected:"bg-rose-100 dark:bg-rose-900/30 text-rose-700 dark:text-rose-300",icon:"text-rose-500",iconSelected:"text-rose-500"},amber:{focus:"border-amber-500 ring-amber-500/20",optionSelected:"bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300",icon:"text-amber-500",iconSelected:"text-amber-500"},black:{focus:"border-slate-800 dark:border-slate-200 ring-slate-500/20",optionSelected:"bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-200",icon:"text-slate-800 dark:text-slate-200",iconSelected:"text-slate-800 dark:text-slate-200"}},ht=bt[ee]||bt.violet,xt={xs:{height:"h-7",text:"text-xs",px:"px-2",icon:"text-xs",label:"text-xs"},sm:{height:"h-8",text:"text-xs",px:"px-3",icon:"text-xs",label:"text-xs"},md:{height:"h-10",text:"text-sm",px:"px-4",icon:"text-sm",label:"text-sm"},lg:{height:"h-12",text:"text-base",px:"px-5",icon:"text-base",label:"text-base"},xl:{height:"h-14",text:"text-lg",px:"px-6",icon:"text-lg",label:"text-lg"}},vt={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"},gt={default:{wrapper:"bg-slate-50/50 dark:bg-slate-900/50 border border-slate-200 dark:border-slate-700 shadow-sm",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"bg-white dark:bg-slate-950 ring-1",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed bg-slate-100 dark:bg-slate-900",dropdown:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 shadow-xl shadow-slate-200/50 dark:shadow-slate-950/50",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-slate-50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700"},glass:{wrapper:"bg-white/60 dark:bg-slate-800/30 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-sm",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-400/50",focus:"bg-white/80 dark:bg-slate-800/40 ring-1",icon:"text-slate-400 dark:text-slate-400/70",disabled:"opacity-40 cursor-not-allowed",dropdown:"bg-white/95 dark:bg-slate-900/95 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-xl",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-800/50",optionHighlighted:"bg-slate-50/50 dark:bg-slate-800/30",searchInput:"bg-white/50 dark:bg-slate-800/30 border-slate-200/50 dark:border-slate-700/30 backdrop-blur-sm"},minimal:{wrapper:"bg-transparent border-b-2 border-slate-200 dark:border-slate-700 rounded-none shadow-none",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed",dropdown:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 shadow-xl mt-2",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-slate-50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700"},outlined:{wrapper:"bg-transparent border-2 border-slate-300 dark:border-slate-600",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"ring-2",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed",dropdown:"bg-white dark:bg-slate-900 border-2 border-slate-300 dark:border-slate-600 shadow-lg",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-transparent border-2 border-slate-300 dark:border-slate-600"},filled:{wrapper:"bg-slate-100 dark:bg-slate-800 border-2 border-transparent",text:"text-slate-900 dark:text-white",placeholder:"text-slate-500 dark:text-slate-400",focus:"bg-white dark:bg-slate-700 ring-1",icon:"text-slate-500 dark:text-slate-400",disabled:"opacity-50 cursor-not-allowed bg-slate-200 dark:bg-slate-900",dropdown:"bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 shadow-xl",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700",optionHighlighted:"bg-slate-100 dark:bg-slate-700/50",searchInput:"bg-slate-50 dark:bg-slate-700/50 border-slate-200 dark:border-slate-600"}},ft=xt[ae]||xt.md,pt=gt[X]||gt.default,kt=vt[le]||vt.lg,wt={none:"",glow:"transition-shadow duration-300",ring:"transition-all duration-200",border:"transition-colors duration-200"}[pe]||"",yt=nt!==$&&""!==nt&&ut;return e.createElement("div",{className:"".concat(ne?"w-full":"inline-block"," relative ").concat(De?"z-[100]":""),ref:at},se&&e.createElement("label",{htmlFor:W||q,className:"block mb-1.5 font-medium text-slate-700 dark:text-slate-300 ".concat(ft.label," ").concat(Me)},se,D&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),e.createElement("input",{type:"hidden",name:q,value:nt,required:D}),e.createElement("div",i({ref:ot,tabIndex:I?-1:0,onClick:function(){I||st||(Pe(!De),De&&(We(""),_e(-1)))},onKeyDown:function(e){if(!I)switch(e.key){case"Enter":e.preventDefault(),De&&Ye>=0&&dt[Ye]?mt(dt[Ye].value):De||Pe(!0);break;case"Escape":Pe(!1),We("");break;case"ArrowDown":e.preventDefault(),De?_e(function(e){return e<dt.length-1?e+1:e}):Pe(!0);break;case"ArrowUp":e.preventDefault(),_e(function(e){return e>0?e-1:0})}},className:"\n relative flex items-center justify-between cursor-pointer\n ".concat(ft.height," ").concat(ft.px,"\n ").concat("minimal"===X?"":kt,"\n ").concat(pt.wrapper,"\n ").concat(De?"".concat(pt.focus," ").concat(ht.focus):"","\n ").concat(I?pt.disabled:"","\n ").concat(ge?wt:"","\n ").concat(we,"\n outline-none\n "),style:Ae,role:"combobox","aria-expanded":De,"aria-haspopup":"listbox","aria-disabled":I},Ie),ce&&e.createElement("span",{className:"flex-shrink-0 mr-2 ".concat(pt.icon," ").concat(ft.icon)},"string"==typeof ce?e.createElement(k,{icon:ce,variant:ue}):ce),e.createElement("div",{className:"flex-1 min-w-0 overflow-hidden"},Ce&&ut?Ce(ut):yt?e.createElement("div",{className:"flex items-center gap-2 truncate"},ut.icon&&e.createElement(k,{icon:ut.icon,variant:ut.iconVariant||"fas",className:pt.icon}),e.createElement("span",{className:"truncate ".concat(pt.text," ").concat(ft.text)},ut.label)):e.createElement("span",{className:"".concat(pt.placeholder," text-sm")},G)),e.createElement("div",{className:"flex items-center gap-1 ml-2 flex-shrink-0"},st&&e.createElement(k,{icon:"spinner-third",variant:"fad",className:"animate-spin text-slate-400 text-sm"}),T&&yt&&!I&&!st&&e.createElement("button",{type:"button",onClick:function(e){e.stopPropagation();var t=$;void 0===c&&Ge(t),null==v||v(t,null),We("")},className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors",tabIndex:-1},e.createElement(k,{icon:xe,size:"sm"})),e.createElement("span",{className:"".concat(pt.icon," transition-transform duration-200 ").concat(De?"rotate-180":"")},e.createElement(k,{icon:be,variant:"fas",className:"text-xs"})))),ie&&e.createElement("p",{className:"mt-1.5 text-xs text-slate-500 dark:text-slate-400"},ie),De&&!I&&e.createElement("div",{className:"\n absolute z-50 w-full mt-1.5 overflow-hidden\n ".concat("minimal"===X?"rounded-lg":kt,"\n ").concat(pt.dropdown,"\n "),style:{maxWidth:null===(r=at.current)||void 0===r?void 0:r.offsetWidth},role:"listbox"},O&&e.createElement("div",{className:"p-2 border-b border-slate-100 dark:border-slate-800"},e.createElement("div",{className:"relative"},e.createElement("input",{ref:rt,type:"text",value:qe,onChange:function(e){We(e.target.value),null==g||g(e.target.value)},placeholder:"Search...",className:"\n w-full text-sm rounded-md pl-8 pr-3 py-2 outline-none\n ".concat(pt.searchInput,"\n ").concat(pt.text,"\n border\n ").concat(ht.focus,"\n placeholder:text-slate-400 dark:placeholder:text-slate-500\n "),onClick:function(e){return e.stopPropagation()}}),e.createElement("span",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400 text-xs"},e.createElement(k,{icon:"search",variant:"fas"})))),e.createElement("div",{className:"overflow-y-auto p-1",style:{maxHeight:Te}},Y&&!qe&&e.createElement("div",{onClick:function(e){return mt($,e)},className:"\n flex items-center px-3 py-2 rounded-md cursor-pointer text-sm transition-colors\n ".concat(nt===$?ht.optionSelected:"","\n ").concat(-1===Ye&&nt!==$?pt.optionHighlighted:"","\n ").concat(nt!==$?pt.option:"","\n ").concat(Ee,"\n "),role:"option","aria-selected":nt===$},e.createElement("span",{className:"text-slate-400 dark:text-slate-500"},J)),dt.length>0?dt.map(function(t,a){var r=nt===t.value,l=Ye===a;return e.createElement("div",{key:t.value,onClick:function(e){return mt(t.value,e)},onMouseEnter:function(){return _e(a)},className:"\n px-3 py-2 rounded-md cursor-pointer transition-colors\n ".concat(r?ht.optionSelected:"","\n ").concat(l&&!r?pt.optionHighlighted:"","\n ").concat(r||l?"":pt.option,"\n ").concat(Ee,"\n "),style:"auto"!==Oe?{height:Oe}:{},role:"option","aria-selected":r},function(t,a){return Ne?Ne(t,a):e.createElement("div",{className:"flex items-center justify-between w-full"},e.createElement("div",{className:"flex items-center gap-3"},t.icon&&e.createElement(k,{icon:t.icon,variant:t.iconVariant||"fas",className:a?ht.iconSelected:"text-slate-400 dark:text-slate-500"}),e.createElement("div",{className:"flex flex-col"},e.createElement("span",{className:"".concat(ft.text," ").concat(a?"font-medium":"")},t.label),t.description&&e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},t.description))),a&&e.createElement(k,{icon:"check",variant:"fas",className:"".concat(ht.iconSelected," text-sm flex-shrink-0")}))}(t,r))}):e.createElement("div",{className:"px-3 py-6 text-center text-sm text-slate-500 dark:text-slate-400"},e.createElement(k,{icon:"inbox",variant:"fas",className:"text-2xl mb-2 opacity-50"}),e.createElement("p",null,He)))))});G.displayName="Select",G.propTypes={options:t.arrayOf(t.oneOfType([t.string,t.number,t.shape({label:t.string.isRequired,value:t.any.isRequired,icon:t.string,iconVariant:t.oneOf(["fas","far","fal","fad"]),description:t.string})])),value:t.any,defaultValue:t.any,onChange:t.func,onSearch:t.func,valueKey:t.string,labelKey:t.string,api:t.string,apiMethod:t.oneOf(["GET","POST","PUT","PATCH"]),apiHeaders:t.object,apiDataPath:t.string,searchable:t.bool,clearable:t.bool,disabled:t.bool,required:t.bool,loading:t.bool,name:t.string,id:t.string,placeholder:t.string,showSelectOption:t.bool,selectOptionText:t.string,selectOptionValue:t.any,theme:t.oneOf(["default","glass","minimal","outlined","filled"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),size:t.oneOf(["xs","sm","md","lg","xl"]),rounded:t.oneOf(["none","sm","md","lg","xl","2xl","full"]),fullWidth:t.bool,label:t.string,helperText:t.string,leftIcon:t.oneOfType([t.string,t.node]),leftIconVariant:t.oneOf(["fas","far","fal","fad"]),dropdownIcon:t.string,clearIcon:t.string,animate:t.bool,focusEffect:t.oneOf(["none","glow","ring","border"]),className:t.string,labelClassName:t.string,optionsClassName:t.string,renderOption:t.func,renderSelectedValue:t.func,noOptionsText:t.string,optionHeight:t.string,maxDropdownHeight:t.string,style:t.object};var K=["options","value","defaultValue","onChange","onSearch","api","apiMethod","apiHeaders","apiDataPath","valueKey","labelKey","searchable","clearable","disabled","required","loading","name","id","maxSelections","placeholder","theme","color","size","rounded","fullWidth","chipDisplay","maxVisibleChips","label","helperText","leftIcon","leftIconVariant","dropdownIcon","clearIcon","animate","focusEffect","className","labelClassName","optionsClassName","chipClassName","renderOption","renderChip","noOptionsText","optionHeight","maxDropdownHeight","style"],Y=e.forwardRef(function(t,a){var r,l=t.options,s=void 0===l?[]:l,c=t.value,b=t.defaultValue,v=void 0===b?[]:b,g=t.onChange,f=t.onSearch,p=t.api,w=t.apiMethod,y=void 0===w?"GET":w,M=t.apiHeaders,z=void 0===M?{}:M,E=t.apiDataPath,N=void 0===E?"":E,C=t.valueKey,V=void 0===C?"value":C,H=t.labelKey,S=void 0===H?"label":H,O=t.searchable,L=void 0!==O&&O,T=t.clearable,A=void 0===T||T,I=t.disabled,j=void 0!==I&&I,D=t.required,P=void 0!==D&&D,F=t.loading,q=void 0!==F&&F,W=t.name,B=t.id,R=t.maxSelections,G=t.placeholder,Y=void 0===G?"Select...":G,_=t.theme,J=void 0===_?"default":_,U=t.color,$=void 0===U?"violet":U,Q=t.size,X=void 0===Q?"md":Q,Z=t.rounded,ee=void 0===Z?"lg":Z,te=t.fullWidth,ae=void 0!==te&&te,re=t.chipDisplay,le=void 0===re?"inline":re,oe=t.maxVisibleChips,ne=void 0===oe?3:oe,se=t.label,ie=t.helperText,ce=t.leftIcon,de=t.leftIconVariant,ue=void 0===de?"fas":de,me=t.dropdownIcon,be=void 0===me?"chevron-down":me,he=t.clearIcon,xe=void 0===he?"xmark":he,ve=t.animate,ge=void 0===ve||ve,fe=t.focusEffect,pe=void 0===fe?"glow":fe,ke=t.className,we=void 0===ke?"":ke,ye=t.labelClassName,Me=void 0===ye?"":ye,ze=t.optionsClassName,Ee=void 0===ze?"":ze,Ne=t.chipClassName,Ce=void 0===Ne?"":Ne,Ve=t.renderOption,He=t.renderChip,Se=t.noOptionsText,Oe=void 0===Se?"No options found":Se,Le=t.optionHeight,Te=void 0===Le?"auto":Le,Ae=t.maxDropdownHeight,Ie=void 0===Ae?"240px":Ae,je=t.style,De=u(t,K),Pe=h(e.useState(!1),2),Fe=Pe[0],qe=Pe[1],We=h(e.useState(""),2),Be=We[0],Re=We[1],Ge=h(e.useState(v),2),Ke=Ge[0],Ye=Ge[1],_e=h(e.useState(-1),2),Je=_e[0],Ue=_e[1],$e=h(e.useState([]),2),Qe=$e[0],Xe=$e[1],Ze=h(e.useState(!1),2),et=Ze[0],tt=Ze[1],at=h(e.useState(null),2);at[0];var rt=at[1],lt=e.useRef(null),ot=e.useRef(null),nt=e.useRef(null),st=a||nt,it=Array.isArray(void 0!==c?c:Ke)?void 0!==c?c:Ke:[],ct=q||et,dt=p?Qe:s,ut=e.useMemo(function(){return dt.map(function(e){return"string"==typeof e||"number"==typeof e?{label:String(e),value:e,_original:e}:{label:void 0!==e[S]?String(e[S]):String(e.label||""),value:void 0!==e[V]?e[V]:e.value,icon:e.icon,iconVariant:e.iconVariant,description:e.description,_original:e}})},[dt,V,S]),mt=e.useMemo(function(){return L&&Be?ut.filter(function(e){return String(e.label).toLowerCase().includes(Be.toLowerCase())||e.description&&String(e.description).toLowerCase().includes(Be.toLowerCase())}):ut},[ut,Be,L]),bt=e.useMemo(function(){return it.map(function(e){return ut.find(function(t){return t.value===e})}).filter(Boolean)},[ut,it]);e.useEffect(function(){var e=function(e){lt.current&&!lt.current.contains(e.target)&&(qe(!1),Re(""),Ue(-1))};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]),e.useEffect(function(){if(p){var e=function(){var e=o(m().m(function e(){var t,a,r,l,o,s,i,c;return m().w(function(e){for(;;)switch(e.p=e.n){case 0:return tt(!0),rt(null),e.p=1,e.n=2,fetch(p,{method:y,headers:d({"Content-Type":"application/json"},z)});case 2:if((t=e.v).ok){e.n=3;break}throw new Error("HTTP error! status: ".concat(t.status));case 3:return e.n=4,t.json();case 4:if(a=e.v,N){r=N.split("."),l=n(r);try{for(l.s();!(o=l.n()).done;)i=o.value,a=null===(s=a)||void 0===s?void 0:s[i]}catch(e){l.e(e)}finally{l.f()}}Array.isArray(a)?Xe(a):(console.warn("MultiSelect API response is not an array:",a),Xe([])),e.n=6;break;case 5:e.p=5,c=e.v,console.error("MultiSelect API fetch error:",c),rt(c.message),Xe([]);case 6:return e.p=6,tt(!1),e.f(6);case 7:return e.a(2)}},e,null,[[1,5,6,7]])}));return function(){return e.apply(this,arguments)}}();e()}},[p,y,N]),e.useEffect(function(){Fe&&L&&ot.current&&setTimeout(function(){var e;return null===(e=ot.current)||void 0===e?void 0:e.focus()},50)},[Fe,L]),e.useEffect(function(){Ue(-1)},[mt]);var ht=function(e,t){var a;if(t&&t.stopPropagation(),it.includes(e))a=it.filter(function(t){return t!==e});else{if(R&&it.length>=R)return;a=[].concat(x(it),[e])}void 0===c&&Ye(a),null==g||g(a,a.map(function(e){return ut.find(function(t){return t.value===e})})),Re("")},xt=function(e,t){t.stopPropagation();var a=it.filter(function(t){return t!==e});void 0===c&&Ye(a),null==g||g(a,a.map(function(e){return ut.find(function(t){return t.value===e})}))},vt=function(e){e.stopPropagation();var t=[];void 0===c&&Ye(t),null==g||g(t,[]),Re("")},gt={violet:{focus:"border-violet-500 ring-violet-500/20",optionSelected:"bg-violet-100 dark:bg-violet-900/30 text-violet-700 dark:text-violet-300",iconSelected:"text-violet-500",chip:"bg-violet-100 dark:bg-violet-900/40 text-violet-700 dark:text-violet-300 border border-violet-200 dark:border-violet-800",checkbox:"bg-violet-500 border-violet-500",clearButton:"text-violet-600 dark:text-violet-400"},blue:{focus:"border-blue-500 ring-blue-500/20",optionSelected:"bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",iconSelected:"text-blue-500",chip:"bg-blue-100 dark:bg-blue-900/40 text-blue-700 dark:text-blue-300 border border-blue-200 dark:border-blue-800",checkbox:"bg-blue-500 border-blue-500",clearButton:"text-blue-600 dark:text-blue-400"},emerald:{focus:"border-emerald-500 ring-emerald-500/20",optionSelected:"bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300",iconSelected:"text-emerald-500",chip:"bg-emerald-100 dark:bg-emerald-900/40 text-emerald-700 dark:text-emerald-300 border border-emerald-200 dark:border-emerald-800",checkbox:"bg-emerald-500 border-emerald-500",clearButton:"text-emerald-600 dark:text-emerald-400"},rose:{focus:"border-rose-500 ring-rose-500/20",optionSelected:"bg-rose-100 dark:bg-rose-900/30 text-rose-700 dark:text-rose-300",iconSelected:"text-rose-500",chip:"bg-rose-100 dark:bg-rose-900/40 text-rose-700 dark:text-rose-300 border border-rose-200 dark:border-rose-800",checkbox:"bg-rose-500 border-rose-500",clearButton:"text-rose-600 dark:text-rose-400"},amber:{focus:"border-amber-500 ring-amber-500/20",optionSelected:"bg-amber-100 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300",iconSelected:"text-amber-500",chip:"bg-amber-100 dark:bg-amber-900/40 text-amber-700 dark:text-amber-300 border border-amber-200 dark:border-amber-800",checkbox:"bg-amber-500 border-amber-500",clearButton:"text-amber-600 dark:text-amber-400"},black:{focus:"border-slate-800 dark:border-slate-200 ring-slate-500/20",optionSelected:"bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-200",iconSelected:"text-slate-800 dark:text-slate-200",chip:"bg-slate-100 dark:bg-slate-800 text-slate-800 dark:text-slate-200 border border-slate-200 dark:border-slate-700",checkbox:"bg-slate-800 dark:bg-slate-200 border-slate-800 dark:border-slate-200",clearButton:"text-slate-800 dark:text-slate-200"}},ft=gt[$]||gt.violet,pt={xs:{minHeight:"min-h-7",text:"text-xs",px:"px-2",icon:"text-xs",label:"text-xs",chip:"text-xs px-1.5 py-0.5"},sm:{minHeight:"min-h-8",text:"text-xs",px:"px-3",icon:"text-xs",label:"text-xs",chip:"text-xs px-2 py-0.5"},md:{minHeight:"min-h-10",text:"text-sm",px:"px-4",icon:"text-sm",label:"text-sm",chip:"text-xs px-2 py-1"},lg:{minHeight:"min-h-12",text:"text-base",px:"px-5",icon:"text-base",label:"text-base",chip:"text-sm px-2.5 py-1"},xl:{minHeight:"min-h-14",text:"text-lg",px:"px-6",icon:"text-lg",label:"text-lg",chip:"text-sm px-3 py-1.5"}},kt={none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl",full:"rounded-full"},wt={default:{wrapper:"bg-slate-50/50 dark:bg-slate-900/50 border border-slate-200 dark:border-slate-700 shadow-sm",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"bg-white dark:bg-slate-950 ring-1",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed bg-slate-100 dark:bg-slate-900",dropdown:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 shadow-xl shadow-slate-200/50 dark:shadow-slate-950/50",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-slate-50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700"},glass:{wrapper:"bg-white/60 dark:bg-slate-800/30 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-sm",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-400/50",focus:"bg-white/80 dark:bg-slate-800/40 ring-1",icon:"text-slate-400 dark:text-slate-400/70",disabled:"opacity-40 cursor-not-allowed",dropdown:"bg-white/95 dark:bg-slate-900/95 backdrop-blur-xl border border-slate-200/60 dark:border-slate-700/30 shadow-xl",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100/50 dark:hover:bg-slate-800/50",optionHighlighted:"bg-slate-50/50 dark:bg-slate-800/30",searchInput:"bg-white/50 dark:bg-slate-800/30 border-slate-200/50 dark:border-slate-700/30 backdrop-blur-sm"},minimal:{wrapper:"bg-transparent border-b-2 border-slate-200 dark:border-slate-700 rounded-none shadow-none",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed",dropdown:"bg-white dark:bg-slate-900 border border-slate-200 dark:border-slate-700 shadow-xl mt-2",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-50 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-slate-50 dark:bg-slate-800/50 border-slate-200 dark:border-slate-700"},outlined:{wrapper:"bg-transparent border-2 border-slate-300 dark:border-slate-600",text:"text-slate-900 dark:text-white",placeholder:"text-slate-400 dark:text-slate-500",focus:"ring-2",icon:"text-slate-400 dark:text-slate-500",disabled:"opacity-50 cursor-not-allowed",dropdown:"bg-white dark:bg-slate-900 border-2 border-slate-300 dark:border-slate-600 shadow-lg",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-800",optionHighlighted:"bg-slate-50 dark:bg-slate-800/50",searchInput:"bg-transparent border-2 border-slate-300 dark:border-slate-600"},filled:{wrapper:"bg-slate-100 dark:bg-slate-800 border-2 border-transparent",text:"text-slate-900 dark:text-white",placeholder:"text-slate-500 dark:text-slate-400",focus:"bg-white dark:bg-slate-700 ring-1",icon:"text-slate-500 dark:text-slate-400",disabled:"opacity-50 cursor-not-allowed bg-slate-200 dark:bg-slate-900",dropdown:"bg-white dark:bg-slate-800 border border-slate-200 dark:border-slate-700 shadow-xl",option:"text-slate-700 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700",optionHighlighted:"bg-slate-100 dark:bg-slate-700/50",searchInput:"bg-slate-50 dark:bg-slate-700/50 border-slate-200 dark:border-slate-600"}},yt=pt[X]||pt.md,Mt=wt[J]||wt.default,zt=kt[ee]||kt.lg,Et={none:"",glow:"transition-shadow duration-300",ring:"transition-all duration-200",border:"transition-colors duration-200"}[pe]||"",Nt=it.length>0;return e.createElement("div",{className:"".concat(ae?"w-full":"inline-block"," relative ").concat(Fe?"z-[100]":""),ref:lt},se&&e.createElement("label",{htmlFor:B||W,className:"block mb-1.5 font-medium text-slate-700 dark:text-slate-300 ".concat(yt.label," ").concat(Me)},se,P&&e.createElement("span",{className:"text-red-500 ml-1"},"*")),it.map(function(t,a){return e.createElement("input",{key:a,type:"hidden",name:W?"".concat(W,"[]"):void 0,value:t})}),e.createElement("div",i({ref:st,tabIndex:j?-1:0,onClick:function(){j||ct||(qe(!Fe),Fe&&(Re(""),Ue(-1)))},onKeyDown:function(e){if(!j)switch(e.key){case"Enter":e.preventDefault(),Fe&&Je>=0&&mt[Je]?ht(mt[Je].value):Fe||qe(!0);break;case"Escape":qe(!1),Re("");break;case"ArrowDown":e.preventDefault(),Fe?Ue(function(e){return e<mt.length-1?e+1:e}):qe(!0);break;case"ArrowUp":e.preventDefault(),Ue(function(e){return e>0?e-1:0})}},className:"\n relative flex items-center justify-between cursor-pointer\n ".concat(yt.minHeight," ").concat(yt.px," py-1\n ").concat("minimal"===J?"":zt,"\n ").concat(Mt.wrapper,"\n ").concat(Fe?"".concat(Mt.focus," ").concat(ft.focus):"","\n ").concat(j?Mt.disabled:"","\n ").concat(ge?Et:"","\n ").concat(we,"\n outline-none\n "),style:je,role:"combobox","aria-expanded":Fe,"aria-haspopup":"listbox","aria-disabled":j},De),ce&&e.createElement("span",{className:"flex-shrink-0 mr-2 ".concat(Mt.icon," ").concat(yt.icon)},"string"==typeof ce?e.createElement(k,{icon:ce,variant:ue}):ce),e.createElement("div",{className:"flex-1 min-w-0 overflow-hidden"},function(){if(!Nt)return e.createElement("span",{className:"".concat(Mt.placeholder," text-sm")},Y);if("count"===le)return e.createElement("span",{className:"".concat(Mt.text," ").concat(yt.text)},it.length," selected");var t="compact"===le?bt.slice(0,ne):bt,a=bt.length-t.length;return e.createElement("div",{className:"flex flex-wrap gap-1.5 py-1"},t.map(function(t){return He?He(t,function(){return xt(t.value,{stopPropagation:function(){}})}):e.createElement("span",{key:t.value,className:"\n inline-flex items-center gap-1 rounded-full\n ".concat(yt.chip,"\n ").concat(ft.chip,"\n ").concat(Ce,"\n ")},t.icon&&e.createElement(k,{icon:t.icon,variant:t.iconVariant||"fas",className:"text-xs"}),e.createElement("span",{className:"truncate max-w-[100px]"},t.label),e.createElement("button",{type:"button",onClick:function(e){return xt(t.value,e)},className:"ml-0.5 hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5 transition-colors",tabIndex:-1},e.createElement(k,{icon:"xmark",size:"sm"})))}),a>0&&e.createElement("span",{className:"".concat(yt.chip," ").concat(ft.chip," rounded-full")},"+",a))}()),e.createElement("div",{className:"flex items-center gap-1 ml-2 flex-shrink-0"},ct&&e.createElement(k,{icon:"spinner-third",variant:"fad",className:"animate-spin text-slate-400 text-sm"}),A&&Nt&&!j&&!ct&&e.createElement("button",{type:"button",onClick:vt,className:"w-6 h-6 flex items-center justify-center rounded-full hover:bg-slate-200 dark:hover:bg-slate-700 text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors",tabIndex:-1},e.createElement(k,{icon:xe,size:"sm"})),e.createElement("span",{className:"".concat(Mt.icon," transition-transform duration-200 ").concat(Fe?"rotate-180":"")},e.createElement(k,{icon:be,variant:"fas",className:"text-xs"})))),ie&&e.createElement("p",{className:"mt-1.5 text-xs text-slate-500 dark:text-slate-400"},ie),Fe&&!j&&e.createElement("div",{className:"\n absolute z-50 w-full mt-1.5 overflow-hidden\n ".concat("minimal"===J?"rounded-lg":zt,"\n ").concat(Mt.dropdown,"\n "),style:{maxWidth:null===(r=lt.current)||void 0===r?void 0:r.offsetWidth},role:"listbox"},L&&e.createElement("div",{className:"p-2 border-b border-slate-100 dark:border-slate-800"},e.createElement("div",{className:"relative"},e.createElement("input",{ref:ot,type:"text",value:Be,onChange:function(e){Re(e.target.value),null==f||f(e.target.value)},placeholder:"Search...",className:"\n w-full text-sm rounded-md pl-8 pr-3 py-2 outline-none\n ".concat(Mt.searchInput,"\n ").concat(Mt.text,"\n border\n ").concat(ft.focus,"\n placeholder:text-slate-400 dark:placeholder:text-slate-500\n "),onClick:function(e){return e.stopPropagation()}}),e.createElement("span",{className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-slate-400 text-xs"},e.createElement(k,{icon:"search",variant:"fas"})))),Nt&&e.createElement("div",{className:"px-3 py-2 border-b border-slate-100 dark:border-slate-800 flex items-center justify-between"},e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},it.length," selected",R&&" (max ".concat(R,")")),e.createElement("button",{type:"button",onClick:vt,className:"text-xs hover:underline ".concat(ft.clearButton)},"Clear all")),e.createElement("div",{className:"overflow-y-auto p-1",style:{maxHeight:Ie}},mt.length>0?mt.map(function(t,a){var r=it.includes(t.value),l=Je===a,o=R&&it.length>=R&&!r;return e.createElement("div",{key:t.value,onClick:function(e){return!o&&ht(t.value,e)},onMouseEnter:function(){return Ue(a)},className:"\n px-3 py-2 rounded-md cursor-pointer transition-colors\n ".concat(r?ft.optionSelected:"","\n ").concat(l&&!r?Mt.optionHighlighted:"","\n ").concat(r||l?"":Mt.option,"\n ").concat(o?"opacity-50 cursor-not-allowed":"","\n ").concat(Ee,"\n "),style:"auto"!==Te?{height:Te}:{},role:"option","aria-selected":r},function(t,a){return Ve?Ve(t,a):e.createElement("div",{className:"flex items-center justify-between w-full"},e.createElement("div",{className:"flex items-center gap-3"},e.createElement("div",{className:"\n w-4 h-4 rounded border-2 flex items-center justify-center transition-colors\n ".concat(a?ft.checkbox:"border-slate-300 dark:border-slate-600","\n ")},a&&e.createElement(k,{icon:"check",variant:"fas",className:"".concat("white"===$?"text-black":"text-white"," text-[10px]")})),t.icon&&e.createElement(k,{icon:t.icon,variant:t.iconVariant||"fas",className:a?ft.iconSelected:"text-slate-400 dark:text-slate-500"}),e.createElement("div",{className:"flex flex-col"},e.createElement("span",{className:"".concat(yt.text," ").concat(a?"font-medium":"")},t.label),t.description&&e.createElement("span",{className:"text-xs text-slate-500 dark:text-slate-400"},t.description))))}(t,r))}):e.createElement("div",{className:"px-3 py-6 text-center text-sm text-slate-500 dark:text-slate-400"},e.createElement(k,{icon:"inbox",variant:"fas",className:"text-2xl mb-2 opacity-50"}),e.createElement("p",null,Oe)))))});Y.displayName="MultiSelect",Y.propTypes={options:t.arrayOf(t.oneOfType([t.string,t.number,t.shape({label:t.string.isRequired,value:t.any.isRequired,icon:t.string,iconVariant:t.oneOf(["fas","far","fal","fad"]),description:t.string})])),value:t.array,defaultValue:t.array,onChange:t.func,onSearch:t.func,valueKey:t.string,labelKey:t.string,api:t.string,apiMethod:t.oneOf(["GET","POST","PUT","PATCH"]),apiHeaders:t.object,apiDataPath:t.string,searchable:t.bool,clearable:t.bool,disabled:t.bool,required:t.bool,loading:t.bool,name:t.string,id:t.string,maxSelections:t.number,placeholder:t.string,theme:t.oneOf(["default","glass","minimal","outlined","filled"]),color:t.oneOf(["violet","blue","emerald","rose","amber","black"]),size:t.oneOf(["xs","sm","md","lg","xl"]),rounded:t.oneOf(["none","sm","md","lg","xl","2xl","full"]),fullWidth:t.bool,chipDisplay:t.oneOf(["inline","count","compact"]),maxVisibleChips:t.number,label:t.string,helperText:t.string,leftIcon:t.oneOfType([t.string,t.node]),leftIconVariant:t.oneOf(["fas","far","fal","fad"]),dropdownIcon:t.string,clearIcon:t.string,animate:t.bool,focusEffect:t.oneOf(["none","glow","ring","border"]),className:t.string,labelClassName:t.string,optionsClassName:t.string,chipClassName:t.string,renderOption:t.func,renderChip:t.func,noOptionsText:t.string,optionHeight:t.string,maxDropdownHeight:t.string,style:t.object},exports.Button=M,exports.Checkbox=C,exports.DateTimePicker=O,exports.FileUpload=A,exports.Icon=k,exports.Input=j,exports.MultiSelect=Y,exports.Radio=B,exports.Select=G,exports.Textarea=P,exports.iconCategories={"Navigation & UI":["chevron-down","chevron-up","chevron-left","chevron-right","arrow-left","arrow-right","arrow-up","arrow-down","menu","x","xmark","plus","minus","check","external-link"],Actions:["search","filter","edit","trash","copy","download","upload","refresh","settings","cog"],"Status & Alerts":["info","circle-info","warning","triangle-exclamation","error","circle-exclamation","success","circle-check","question","circle-question"],"Form Elements":["eye","eye-slash","lock","unlock"],Communication:["envelope","mail","phone","chat","comment","bell"],People:["user","users","user-plus"],Media:["image","camera","video","music","play","pause","stop"],"Files & Documents":["file","file-lines","folder","folder-open","document","clipboard"],"Date & Time":["calendar","calendar-days","clock","time"],"Layout & Design":["grid","list","list-check","table","columns"],Development:["code","terminal","bug","database","server"],Commerce:["cart","shopping-cart","credit-card","tag","tags","gift"],"Shapes & Symbols":["circle","circle-dot","square","square-check","heart","star","bookmark","flag"],"Weather & Nature":["sun","moon","cloud","cloud-arrow-up","cloud-arrow-down","lightning","bolt"],Misc:["desktop","home","globe","location","map-pin","link","paper-plane","rocket","sparkles","wand-magic-sparkles","swatchbook","palette"],Brands:["github","npm","yarn","facebook","instagram","linkedin","youtube","twitch","android","figma","react","telegram","apple"]},exports.iconNames=w;
4
+ //# sourceMappingURL=index.cjs.js.map