componenteszw-package 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/README.md +3 -0
- package/dist/componenteszw-package.mjs +2216 -0
- package/dist/componenteszw-package.umd.js +60 -0
- package/package.json +20 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`)):typeof define==`function`&&define.amd?define([`exports`,`react`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.ComponentesZW={},e.react))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e};t=((e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)))(t);var u=c((e=>{var t=require(`react`),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),d=c((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=require(`react`),n=Symbol.for(`react.element`),r=Symbol.for(`react.portal`),i=Symbol.for(`react.fragment`),a=Symbol.for(`react.strict_mode`),o=Symbol.for(`react.profiler`),s=Symbol.for(`react.provider`),c=Symbol.for(`react.context`),l=Symbol.for(`react.forward_ref`),u=Symbol.for(`react.suspense`),d=Symbol.for(`react.suspense_list`),f=Symbol.for(`react.memo`),p=Symbol.for(`react.lazy`),m=Symbol.for(`react.offscreen`),h=Symbol.iterator,g=`@@iterator`;function _(e){if(typeof e!=`object`||!e)return null;var t=h&&e[h]||e[g];return typeof t==`function`?t:null}var v=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){b(`error`,e,[...arguments].slice(1))}function b(e,t,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();r!==``&&(t+=`%s`,n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift(`Warning: `+t),Function.prototype.apply.call(console[e],console,i)}var ee=!1,te=!1,x=!1,ne=!1,S=!1,C=Symbol.for(`react.module.reference`);function w(e){return!!(typeof e==`string`||typeof e==`function`||e===i||e===o||S||e===a||e===u||e===d||ne||e===m||ee||te||x||typeof e==`object`&&e&&(e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===c||e.$$typeof===l||e.$$typeof===C||e.getModuleId!==void 0))}function T(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||``;return i===``?n:n+`(`+i+`)`}function E(e){return e.displayName||`Context`}function D(e){if(e==null)return null;if(typeof e.tag==`number`&&y(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case i:return`Fragment`;case r:return`Portal`;case o:return`Profiler`;case a:return`StrictMode`;case u:return`Suspense`;case d:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case c:return E(e)+`.Consumer`;case s:return E(e._context)+`.Provider`;case l:return T(e,e.render,`ForwardRef`);case f:var t=e.displayName||null;return t===null?D(e.type)||`Memo`:t;case p:var n=e,m=n._payload,h=n._init;try{return D(h(m))}catch{return null}}return null}var O=Object.assign,k=0,A,j,M,N,P,F,re;function ie(){}ie.__reactDisabledLog=!0;function ae(){if(k===0){A=console.log,j=console.info,M=console.warn,N=console.error,P=console.group,F=console.groupCollapsed,re=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ie,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}k++}function oe(){if(k--,k===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:A}),info:O({},e,{value:j}),warn:O({},e,{value:M}),error:O({},e,{value:N}),group:O({},e,{value:P}),groupCollapsed:O({},e,{value:F}),groupEnd:O({},e,{value:re})})}k<0&&y(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}var I=v.ReactCurrentDispatcher,L;function R(e,t,n){if(L===void 0)try{throw Error()}catch(e){var r=e.stack.trim().match(/\n( *(at )?)/);L=r&&r[1]||``}return`
|
|
2
|
+
`+L+e}var z=!1,se=new(typeof WeakMap==`function`?WeakMap:Map);function ce(e,t){if(!e||z)return``;var n=se.get(e);if(n!==void 0)return n;var r;z=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var a=I.current;I.current=null,ae();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(o,[])}catch(e){r=e}Reflect.construct(e,[],o)}else{try{o.call()}catch(e){r=e}e.call(o.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var s=t.stack.split(`
|
|
3
|
+
`),c=r.stack.split(`
|
|
4
|
+
`),l=s.length-1,u=c.length-1;l>=1&&u>=0&&s[l]!==c[u];)u--;for(;l>=1&&u>=0;l--,u--)if(s[l]!==c[u]){if(l!==1||u!==1)do if(l--,u--,u<0||s[l]!==c[u]){var d=`
|
|
5
|
+
`+s[l].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&se.set(e,d),d}while(l>=1&&u>=0);break}}}finally{z=!1,I.current=a,oe(),Error.prepareStackTrace=i}var f=e?e.displayName||e.name:``,p=f?R(f):``;return typeof e==`function`&&se.set(e,p),p}function le(e,t,n){return ce(e,!1)}function ue(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function B(e,t,n){if(e==null)return``;if(typeof e==`function`)return ce(e,ue(e));if(typeof e==`string`)return R(e);switch(e){case u:return R(`Suspense`);case d:return R(`SuspenseList`)}if(typeof e==`object`)switch(e.$$typeof){case l:return le(e.render);case f:return B(e.type,t,n);case p:var r=e,i=r._payload,a=r._init;try{return B(a(i),t,n)}catch{}}return``}var V=Object.prototype.hasOwnProperty,de={},fe=v.ReactDebugCurrentFrame;function H(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);fe.setExtraStackFrame(n)}else fe.setExtraStackFrame(null)}function pe(e,t,n,r,i){var a=Function.call.bind(V);for(var o in e)if(a(e,o)){var s=void 0;try{if(typeof e[o]!=`function`){var c=Error((r||`React class`)+`: `+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name=`Invariant Violation`,c}s=e[o](t,o,r,n,null,`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`)}catch(e){s=e}s&&!(s instanceof Error)&&(H(i),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||`React class`,n,o,typeof s),H(null)),s instanceof Error&&!(s.message in de)&&(de[s.message]=!0,H(i),y(`Failed %s type: %s`,n,s.message),H(null))}}var me=Array.isArray;function he(e){return me(e)}function ge(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function U(e){try{return W(e),!1}catch{return!0}}function W(e){return``+e}function G(e){if(U(e))return y(`The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.`,ge(e)),W(e)}var K=v.ReactCurrentOwner,q={key:!0,ref:!0,__self:!0,__source:!0},_e,J,Y={};function ve(e){if(V.call(e,`ref`)){var t=Object.getOwnPropertyDescriptor(e,`ref`).get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function ye(e){if(V.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function be(e,t){if(typeof e.ref==`string`&&K.current&&t&&K.current.stateNode!==t){var n=D(K.current.type);Y[n]||(y(`Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref`,D(K.current.type),e.ref),Y[n]=!0)}}function xe(e,t){var n=function(){_e||(_e=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function Se(e,t){var n=function(){J||(J=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,`ref`,{get:n,configurable:!0})}var Ce=function(e,t,r,i,a,o,s){var c={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:o};return c._store={},Object.defineProperty(c._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,`_self`,{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(c,`_source`,{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function X(e,t,n,r,i){var a,o={},s=null,c=null;for(a in n!==void 0&&(G(n),s=``+n),ye(t)&&(G(t.key),s=``+t.key),ve(t)&&(c=t.ref,be(t,i)),t)V.call(t,a)&&!q.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps){var l=e.defaultProps;for(a in l)o[a]===void 0&&(o[a]=l[a])}if(s||c){var u=typeof e==`function`?e.displayName||e.name||`Unknown`:e;s&&xe(o,u),c&&Se(o,u)}return Ce(e,s,c,i,r,K.current,o)}var Z=v.ReactCurrentOwner,we=v.ReactDebugCurrentFrame;function Q(e){if(e){var t=e._owner,n=B(e.type,e._source,t?t.type:null);we.setExtraStackFrame(n)}else we.setExtraStackFrame(null)}var Te=!1;function Ee(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function De(){if(Z.current){var e=D(Z.current.type);if(e)return`
|
|
6
|
+
|
|
7
|
+
Check the render method of \``+e+"`."}return``}function $(e){if(e!==void 0){var t=e.fileName.replace(/^.*[\\\/]/,``),n=e.lineNumber;return`
|
|
8
|
+
|
|
9
|
+
Check your code at `+t+`:`+n+`.`}return``}var Oe={};function ke(e){var t=De();if(!t){var n=typeof e==`string`?e:e.displayName||e.name;n&&(t=`
|
|
10
|
+
|
|
11
|
+
Check the top-level render call using <`+n+`>.`)}return t}function Ae(e,t){if(!(!e._store||e._store.validated||e.key!=null)){e._store.validated=!0;var n=ke(t);if(!Oe[n]){Oe[n]=!0;var r=``;e&&e._owner&&e._owner!==Z.current&&(r=` It was passed a child from `+D(e._owner.type)+`.`),Q(e),y(`Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.`,n,r),Q(null)}}}function je(e,t){if(typeof e==`object`){if(he(e))for(var n=0;n<e.length;n++){var r=e[n];Ee(r)&&Ae(r,t)}else if(Ee(e))e._store&&(e._store.validated=!0);else if(e){var i=_(e);if(typeof i==`function`&&i!==e.entries)for(var a=i.call(e),o;!(o=a.next()).done;)Ee(o.value)&&Ae(o.value,t)}}}function Me(e){var t=e.type;if(!(t==null||typeof t==`string`)){var n;if(typeof t==`function`)n=t.propTypes;else if(typeof t==`object`&&(t.$$typeof===l||t.$$typeof===f))n=t.propTypes;else return;if(n){var r=D(t);pe(n,e.props,`prop`,r,e)}else t.PropTypes!==void 0&&!Te&&(Te=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",D(t)||`Unknown`));typeof t.getDefaultProps==`function`&&!t.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ne(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if(r!==`children`&&r!==`key`){Q(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Q(null);break}}e.ref!==null&&(Q(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Q(null))}var Pe={};function Fe(e,t,r,a,o,s){var c=w(e);if(!c){var l=``;(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(l+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`);var u=$(o);u?l+=u:l+=De();var d;e===null?d=`null`:he(e)?d=`array`:e!==void 0&&e.$$typeof===n?(d=`<`+(D(e.type)||`Unknown`)+` />`,l=` Did you accidentally export a JSX literal instead of a component?`):d=typeof e,y(`React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s`,d,l)}var f=X(e,t,r,o,s);if(f==null)return f;if(c){var p=t.children;if(p!==void 0)if(a)if(he(p)){for(var m=0;m<p.length;m++)je(p[m],e);Object.freeze&&Object.freeze(p)}else y(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else je(p,e)}if(V.call(t,`key`)){var h=D(e),g=Object.keys(t).filter(function(e){return e!==`key`}),_=g.length>0?`{key: someKey, `+g.join(`: ..., `)+`: ...}`:`{key: someKey}`;Pe[h+_]||(y(`A props object containing a "key" prop is being spread into JSX:
|
|
12
|
+
let props = %s;
|
|
13
|
+
<%s {...props} />
|
|
14
|
+
React keys must be passed directly to JSX without using spread:
|
|
15
|
+
let props = %s;
|
|
16
|
+
<%s key={someKey} {...props} />`,_,h,g.length>0?`{`+g.join(`: ..., `)+`: ...}`:`{}`,h),Pe[h+_]=!0)}return e===i?Ne(f):Me(f),f}function Ie(e,t,n){return Fe(e,t,n,!0)}function Le(e,t,n){return Fe(e,t,n,!1)}var Re=Le,ze=Ie;e.Fragment=i,e.jsx=Re,e.jsxs=ze})()})),f=c(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=u():t.exports=d()}))(),p=({active:e,blur:t=8,overlayOpacity:n=.35,children:r})=>e?(0,f.jsxs)(`div`,{className:`fixed inset-0 z-40`,children:[(0,f.jsx)(`div`,{className:`absolute inset-0 backdrop-blur-sm`,style:{backdropFilter:`blur(${t}px)`,backgroundColor:`rgba(255,255,255,${n})`}}),(0,f.jsx)(`div`,{className:`relative z-50 flex items-center justify-center w-full h-full`,children:r})]}):null,m=({text:e,iconLeft:t,iconRight:n,variant:r=`primary`,size:i=`medium`,state:a=`default`,disabled:o=!1,onClick:s,type:c=`button`,className:l=``})=>(0,f.jsxs)(`button`,{type:c,onClick:s,disabled:o,className:`
|
|
17
|
+
|
|
18
|
+
flex items-center justify-center gap-2 rounded-md font-medium
|
|
19
|
+
transition-all duration-200
|
|
20
|
+
focus:outline-none focus:ring-2 focus:ring-offset-2
|
|
21
|
+
active:scale-95
|
|
22
|
+
|
|
23
|
+
${{small:`px-3 py-1.5 text-sm`,medium:`px-4 py-2 text-sm`}[i]}
|
|
24
|
+
${{primary:`bg-green-600 text-white hover:bg-green-700 focus:ring-green-500`,secondary:`bg-gray-200 text-black hover:bg-gray-300 focus:ring-gray-400`,tertiary:`bg-orange-400 text-white hover:bg-orange-500 focus:ring-orange-400`,success:`bg-green-500 text-white hover:bg-green-600 focus:ring-green-400`,warning:`bg-yellow-400 text-black hover:bg-yellow-500 focus:ring-yellow-300`,destructive:`bg-red-500 text-white hover:bg-red-600 focus:ring-red-400`}[r]}
|
|
25
|
+
${{default:``,hover:`brightness-90`,focus:`ring-2 ring-offset-2`,disabled:`opacity-50 cursor-not-allowed`}[a]}
|
|
26
|
+
${o?`opacity-50 cursor-not-allowed`:``}
|
|
27
|
+
${l}
|
|
28
|
+
`,children:[t&&(0,f.jsx)(`span`,{className:`flex items-center`,children:t}),e&&(0,f.jsx)(`span`,{children:e}),n&&(0,f.jsx)(`span`,{className:`flex items-center`,children:n})]}),h=({children:e,onClick:t})=>(0,f.jsx)(`div`,{onClick:t,className:`
|
|
29
|
+
w-full
|
|
30
|
+
bg-white
|
|
31
|
+
rounded-2xl
|
|
32
|
+
border border-gray-200
|
|
33
|
+
shadow-sm
|
|
34
|
+
hover:shadow-md
|
|
35
|
+
transition-all duration-200
|
|
36
|
+
overflow-hidden
|
|
37
|
+
`,children:(0,f.jsx)(`div`,{className:`
|
|
38
|
+
min-h-[72px]
|
|
39
|
+
px-6
|
|
40
|
+
py-4
|
|
41
|
+
flex
|
|
42
|
+
items-center
|
|
43
|
+
justify-between
|
|
44
|
+
`,children:e||(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`flex-1 h-5 rounded-md bg-gray-100`}),(0,f.jsx)(`div`,{className:`w-24 h-5 rounded-md bg-gray-100 ml-6`}),(0,f.jsx)(`div`,{className:`w-24 h-5 rounded-md bg-gray-100 ml-6`}),(0,f.jsx)(`div`,{className:`w-32 h-5 rounded-md bg-gray-100 ml-6`}),(0,f.jsx)(`div`,{className:`w-6 h-6 rounded-md bg-gray-100 ml-6`})]})})}),g=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),_=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),v=e=>{let t=_(e);return t.charAt(0).toUpperCase()+t.slice(1)},y=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),b=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},ee={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},te=(0,t.forwardRef)(({color:e=`currentColor`,size:n=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:s,...c},l)=>(0,t.createElement)(`svg`,{ref:l,...ee,width:n,height:n,stroke:e,strokeWidth:i?Number(r)*24/Number(n):r,className:y(`lucide`,a),...!o&&!b(c)&&{"aria-hidden":`true`},...c},[...s.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(o)?o:[o]])),x=(e,n)=>{let r=(0,t.forwardRef)(({className:r,...i},a)=>(0,t.createElement)(te,{ref:a,iconNode:n,className:y(`lucide-${g(v(e))}`,`lucide-${e}`,r),...i}));return r.displayName=v(e),r},ne=x(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),S=x(`file-text`,[[`path`,{d:`M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z`,key:`1rqfz7`}],[`path`,{d:`M14 2v4a2 2 0 0 0 2 2h4`,key:`tnqrlb`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),C=x(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),w=x(`upload`,[[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`polyline`,{points:`17 8 12 3 7 8`,key:`t8dd8p`}],[`line`,{x1:`12`,x2:`12`,y1:`3`,y2:`15`,key:`widbto`}]]),T=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function E(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=E(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function D(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=E(e))&&(r&&(r+=` `),r+=t);return r}var O=`-`,k=e=>{let t=N(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split(O);return n[0]===``&&n.length!==1&&n.shift(),A(n,t)||M(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}},A=(e,t)=>{if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?A(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(O);return t.validators.find(({validator:e})=>e(a))?.classGroupId},j=/^\[(.+)\]$/,M=e=>{if(j.test(e)){let t=j.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}},N=e=>{let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ie(Object.entries(e.classGroups),n).forEach(([e,n])=>{P(n,r,e,t)}),r},P=(e,t,n,r)=>{e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:F(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(re(e)){P(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{P(i,F(t,e),n,r)})})},F=(e,t)=>{let n=e;return t.split(O).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},re=e=>e.isThemeGetter,ie=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,ae=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}},oe=`!`,I=e=>{let{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],a=t.length,o=e=>{let n=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===i&&(r||e.slice(l,l+a)===t)){n.push(e.slice(s,l)),s=l+a;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=n.length===0?e:e.substring(s),u=l.startsWith(oe);return{modifiers:n,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}};return n?e=>n({className:e,parseClassName:o}):o},L=e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},R=e=>({cache:ae(e.cacheSize),parseClassName:I(e),...k(e)}),z=/\s+/,se=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(z),s=``;for(let e=o.length-1;e>=0;--e){let t=o[e],{modifiers:c,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:d}=n(t),f=!!d,p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?` `+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?` `+s:s);continue}f=!1}let m=L(c).join(`:`),h=l?m+oe:m,g=h+p;if(a.includes(g))continue;a.push(g);let _=i(p,f);for(let e=0;e<_.length;++e){let t=_[e];a.push(h+t)}s=t+(s.length>0?` `+s:s)}return s};function ce(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=le(t))&&(r&&(r+=` `),r+=n);return r}var le=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=le(e[r]))&&(n&&(n+=` `),n+=t);return n};function ue(e,...t){let n,r,i,a=o;function o(o){return n=R(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=se(e,n);return i(e,a),a}return function(){return a(ce.apply(null,arguments))}}var B=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},V=/^\[(?:([a-z-]+):)?(.+)\]$/i,de=/^\d+\/\d+$/,fe=new Set([`px`,`full`,`screen`]),H=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,pe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,me=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,he=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ge=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,U=e=>G(e)||fe.has(e)||de.test(e),W=e=>Z(e,`length`,we),G=e=>!!e&&!Number.isNaN(Number(e)),K=e=>Z(e,`number`,G),q=e=>!!e&&Number.isInteger(Number(e)),_e=e=>e.endsWith(`%`)&&G(e.slice(0,-1)),J=e=>V.test(e),Y=e=>H.test(e),ve=new Set([`length`,`size`,`percentage`]),ye=e=>Z(e,ve,Q),be=e=>Z(e,`position`,Q),xe=new Set([`image`,`url`]),Se=e=>Z(e,xe,Ee),Ce=e=>Z(e,``,Te),X=()=>!0,Z=(e,t,n)=>{let r=V.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1},we=e=>pe.test(e)&&!me.test(e),Q=()=>!1,Te=e=>he.test(e),Ee=e=>ge.test(e),De=ue(()=>{let e=B(`colors`),t=B(`spacing`),n=B(`blur`),r=B(`brightness`),i=B(`borderColor`),a=B(`borderRadius`),o=B(`borderSpacing`),s=B(`borderWidth`),c=B(`contrast`),l=B(`grayscale`),u=B(`hueRotate`),d=B(`invert`),f=B(`gap`),p=B(`gradientColorStops`),m=B(`gradientColorStopPositions`),h=B(`inset`),g=B(`margin`),_=B(`opacity`),v=B(`padding`),y=B(`saturate`),b=B(`scale`),ee=B(`sepia`),te=B(`skew`),x=B(`space`),ne=B(`translate`),S=()=>[`auto`,`contain`,`none`],C=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],w=()=>[`auto`,J,t],T=()=>[J,t],E=()=>[``,U,W],D=()=>[`auto`,G,J],O=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],k=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],A=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],j=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],M=()=>[``,`0`,J],N=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],P=()=>[G,J];return{cacheSize:500,separator:`:`,theme:{colors:[X],spacing:[U,W],blur:[`none`,``,Y,J],brightness:P(),borderColor:[e],borderRadius:[`none`,``,`full`,Y,J],borderSpacing:T(),borderWidth:E(),contrast:P(),grayscale:M(),hueRotate:P(),invert:M(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[_e,W],inset:w(),margin:w(),opacity:P(),padding:T(),saturate:P(),scale:P(),sepia:M(),skew:P(),space:T(),translate:T()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,J]}],container:[`container`],columns:[{columns:[Y]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...O(),J]}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,q,J]}],basis:[{basis:w()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,J]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:[`first`,`last`,`none`,q,J]}],"grid-cols":[{"grid-cols":[X]}],"col-start-end":[{col:[`auto`,{span:[`full`,q,J]},J]}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":[X]}],"row-start-end":[{row:[`auto`,{span:[q,J]},J]}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,J]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,J]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...j()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...j(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...j(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[x]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[x]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,J,t]}],"min-w":[{"min-w":[J,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[J,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[Y]},Y]}],h:[{h:[J,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[J,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[J,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[J,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,Y,W]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,K]}],"font-family":[{font:[X]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,J]}],"line-clamp":[{"line-clamp":[`none`,G,K]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,U,J]}],"list-image":[{"list-image":[`none`,J]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...k(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,U,W]}],"underline-offset":[{"underline-offset":[`auto`,U,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:T()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,J]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...O(),be]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,ye]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Se]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...k(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:k()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...k()]}],"outline-offset":[{"outline-offset":[U,J]}],"outline-w":[{outline:[U,W]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[U,W]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,Y,Ce]}],"shadow-color":[{shadow:[X]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":[...A(),`plus-lighter`,`plus-darker`]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,Y,J]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,J]}],duration:[{duration:P()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,J]}],delay:[{delay:P()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,J]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[q,J]}],"translate-x":[{"translate-x":[ne]}],"translate-y":[{"translate-y":[ne]}],"skew-x":[{"skew-x":[te]}],"skew-y":[{"skew-y":[te]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,J]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,J]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[U,W,K]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-s`,`border-color-e`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}});function $(...e){return De(D(e))}function Oe({label:e,checked:n=!1,indeterminate:r=!1,disabled:i,hintText:a,onChange:o}){let s=t.useId();return(0,f.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,f.jsxs)(`label`,{htmlFor:s,className:$(`flex items-center gap-2 cursor-pointer`,i&&`opacity-50 cursor-not-allowed`),children:[(0,f.jsx)(`input`,{id:s,type:`checkbox`,checked:n,disabled:i,onChange:e=>o?.(e.target.checked),className:`hidden`}),(0,f.jsx)(`div`,{className:$(`w-4 h-4 flex items-center justify-center rounded border transition`,n||r?`bg-primary text-white border-primary`:`bg-white border-gray-300`),children:r?(0,f.jsx)(C,{size:12}):n?(0,f.jsx)(ne,{size:12}):null}),e&&(0,f.jsx)(`span`,{className:`text-sm`,children:e})]}),a&&(0,f.jsx)(`span`,{className:`text-xs text-gray-500`,children:a})]})}function ke({multiple:e,maxSize:n=5,acceptedFormats:r,onChange:i}){let[a,o]=t.useState([]),[s,c]=t.useState(!1),l=t=>{if(!t)return;let s=Array.from(t).filter(e=>{let t=e.size/1024/1024<=n,i=r?r.includes(e.type):!0;return t&&i}),c=e?[...a,...s]:s;o(c),i?.(c)};return(0,f.jsxs)(`div`,{className:`space-y-3`,children:[(0,f.jsxs)(`div`,{onDragOver:e=>{e.preventDefault(),c(!0)},onDragLeave:()=>c(!1),onDrop:e=>{e.preventDefault(),c(!1),l(e.dataTransfer.files)},className:$(`border-2 border-dashed rounded-lg p-6 text-center transition`,s?`border-primary bg-primary/5`:`border-gray-300`),children:[(0,f.jsx)(w,{className:`mx-auto mb-2`}),(0,f.jsx)(`p`,{className:`text-sm font-medium`,children:`Arrastra o selecciona un archivo`}),(0,f.jsxs)(`p`,{className:`text-xs text-gray-500`,children:[`Máx `,n,`MB`]}),(0,f.jsx)(`input`,{type:`file`,multiple:e,onChange:e=>l(e.target.files),className:`hidden`,id:`file-upload`}),(0,f.jsx)(`label`,{htmlFor:`file-upload`,className:`inline-block mt-3 px-4 py-2 border rounded cursor-pointer`,children:`Seleccionar`})]}),(0,f.jsx)(`div`,{className:`space-y-2`,children:a.map((e,t)=>(0,f.jsxs)(`div`,{className:`flex items-center justify-between border p-2 rounded`,children:[(0,f.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,f.jsx)(S,{size:16}),(0,f.jsx)(`span`,{className:`text-sm`,children:e.name})]}),(0,f.jsx)(T,{size:16,className:`cursor-pointer`,onClick:()=>{let e=a.filter((e,n)=>n!==t);o(e),i?.(e)}})]},t))})]})}var Ae=({title:e,subtitle:n,iconFile:r,loading:i=!1,state:a=`default`,dropdownOptions:o=[],onMenuClick:s})=>{let[c,l]=t.default.useState(!1),u=t.default.useRef(null),d=i||a===`loading`;return t.default.useEffect(()=>{function e(e){u.current&&!u.current.contains(e.target)&&l(!1)}return document.addEventListener(`mousedown`,e),()=>{document.removeEventListener(`mousedown`,e)}},[]),(0,f.jsxs)(`div`,{className:`relative w-[380px] rounded-xl border border-orange-500 bg-white px-4 py-4 flex items-start justify-between shadow-sm hover:shadow-md transition-all duration-200`,children:[(0,f.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,f.jsx)(`div`,{className:`shrink-0`,children:r}),(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm font-semibold text-gray-900`,children:e}),(0,f.jsxs)(`div`,{className:`flex items-center gap-2 text-sm text-gray-500 mt-1`,children:[(0,f.jsx)(`span`,{children:n}),d&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`span`,{className:`animate-spin text-orange-500`,children:`✴`}),(0,f.jsx)(`span`,{className:`text-orange-500 font-medium`,children:`Loading...`})]})]})]})]}),(0,f.jsxs)(`div`,{className:`relative`,ref:u,children:[(0,f.jsx)(`button`,{onClick:()=>{l(!c),s?.()},className:`flex items-center justify-center w-9 h-9 rounded-lg hover:bg-orange-50 text-orange-500 transition-colors duration-200`,children:(0,f.jsx)(`span`,{className:`text-xl leading-none`,children:`⋯`})}),c&&o.length>0&&(0,f.jsx)(`div`,{className:`absolute right-0 mt-2 w-44 rounded-2xl border border-gray-200 bg-white shadow-xl z-20 overflow-hidden animate-in fade-in zoom-in-95 duration-150`,children:(0,f.jsx)(`div`,{className:`py-2`,children:o.map((e,t)=>(0,f.jsxs)(`button`,{onClick:()=>{e.onClick?.(),l(!1)},className:`w-full flex items-center gap-3 px-4 py-3 text-sm transition-colors duration-150
|
|
45
|
+
${e.danger?`text-red-500 hover:bg-red-50`:`text-gray-700 hover:bg-orange-50 hover:text-orange-600`}`,children:[(0,f.jsx)(`span`,{className:`shrink-0`,children:e.icon}),(0,f.jsx)(`span`,{className:`font-medium`,children:e.label})]},t))})})]})]})},je=({label:e,placeholder:t,value:n,hintText:r,required:i,state:a=`default`,size:o=`medium`,type:s=`text`,iconRight:c,disabled:l,onChange:u,className:d=``})=>(0,f.jsxs)(`div`,{className:`flex flex-col gap-1 w-full`,children:[e&&(0,f.jsxs)(`label`,{className:`text-sm font-medium`,children:[e,` `,i&&(0,f.jsx)(`span`,{className:`text-red-500`,children:`*`})]}),(0,f.jsxs)(`div`,{className:`relative`,children:[(0,f.jsx)(`input`,{type:s,value:n,placeholder:t,disabled:l,onChange:e=>u?.(e.target.value),className:`w-full rounded-md border ${{small:`px-2 py-1 text-sm`,medium:`px-3 py-2 text-sm`,large:`px-4 py-3 text-base`}[o]} ${{default:`border-gray-300 focus:border-green-500`,error:`border-red-500`,disabled:`bg-gray-100 cursor-not-allowed`}[a]} outline-none ${d}`}),c&&(0,f.jsx)(`div`,{className:`absolute right-3 top-1/2 -translate-y-1/2`,children:c})]}),r&&(0,f.jsx)(`span`,{className:`text-xs ${a===`error`?`text-red-500`:`text-gray-500`}`,children:r})]}),Me=({open:e,onClose:t,variant:n=`content`,title:r,description:i,children:a,primaryAction:o,secondaryAction:s,size:c=`medium`})=>{if(!e)return null;let l={small:`w-[360px]`,medium:`w-[480px]`,large:`w-[640px]`},u={success:{icon:`✓`,bg:`bg-green-100`,text:`text-green-600`},error:{icon:`✕`,bg:`bg-red-100`,text:`text-red-600`},question:{icon:`?`,bg:`bg-orange-100`,text:`text-orange-500`},content:{icon:`•`,bg:`bg-gray-100`,text:`text-gray-500`}}[n];return(0,f.jsxs)(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[(0,f.jsx)(`div`,{className:`absolute inset-0 backdrop-blur-sm bg-black/20`,onClick:t}),(0,f.jsxs)(`div`,{className:`
|
|
46
|
+
relative z-10
|
|
47
|
+
${l[c]}
|
|
48
|
+
bg-white
|
|
49
|
+
rounded-2xl
|
|
50
|
+
shadow-2xl
|
|
51
|
+
border border-gray-200
|
|
52
|
+
overflow-hidden
|
|
53
|
+
animate-in fade-in zoom-in-95 duration-200
|
|
54
|
+
`,children:[(0,f.jsxs)(`div`,{className:`px-6 pt-6 pb-4 text-center`,children:[(0,f.jsx)(`div`,{className:`
|
|
55
|
+
w-14 h-14 mx-auto mb-4 rounded-full
|
|
56
|
+
flex items-center justify-center
|
|
57
|
+
text-2xl font-bold
|
|
58
|
+
${u.bg}
|
|
59
|
+
${u.text}
|
|
60
|
+
`,children:u.icon}),(0,f.jsx)(`h2`,{className:`text-lg font-semibold text-gray-900`,children:r}),i&&(0,f.jsx)(`p`,{className:`mt-2 text-sm text-gray-500`,children:i})]}),a&&(0,f.jsx)(`div`,{className:`px-6 pb-6`,children:a}),(o||s)&&(0,f.jsxs)(`div`,{className:`flex justify-end gap-3 px-6 py-4 bg-gray-50 border-t border-gray-100`,children:[s&&(0,f.jsx)(m,{text:s.text,variant:`secondary`,size:`medium`,state:`default`,onClick:s.onClick}),o&&(0,f.jsx)(m,{text:o.text,variant:`primary`,size:`medium`,state:`default`,onClick:o.onClick})]})]})]})};function Ne({label:e,placeholder:n,value:r=``,hintText:i,required:a,state:o=`default`,maxLength:s,showCounter:c,disabled:l,onChange:u,className:d}){let[p,m]=t.useState(r),h=r??p;return(0,f.jsxs)(`div`,{className:$(`flex flex-col gap-1`,d),children:[e&&(0,f.jsxs)(`label`,{className:`text-sm font-medium`,children:[e,` `,a&&(0,f.jsx)(`span`,{className:`text-red-500`,children:`*`})]}),(0,f.jsx)(`textarea`,{value:h,placeholder:n,onChange:e=>{let t=e.target.value;s&&t.length>s||(m(t),u?.(t))},disabled:l||o===`disabled`,className:$(`w-full min-h-[100px] rounded-md border px-3 py-2 text-sm outline-none resize-none transition`,`focus:ring-2 focus:ring-primary`,o===`error`&&`border-red-500 focus:ring-red-500`,o===`default`&&`border-gray-300`,(l||o===`disabled`)&&`bg-gray-100 cursor-not-allowed opacity-70`)}),(0,f.jsxs)(`div`,{className:`flex justify-between items-center text-xs`,children:[i&&(0,f.jsx)(`span`,{className:$(o===`error`?`text-red-500`:`text-gray-500`),children:i}),c&&s&&(0,f.jsxs)(`span`,{className:`text-gray-400`,children:[h.length,`/`,s]})]})]})}e.BackgroundBlur=p,e.Button=m,e.CardRow=h,e.Checkbox=Oe,e.FileItem=Ae,e.FileUpload=ke,e.Input=je,e.Modal=Me,e.TextArea=Ne});
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "componenteszw-package",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/componenteszw-package.js",
|
|
5
|
+
"module": "dist/componenteszw-package.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": ["dist"],
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "vite build"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"react": "^18.0.0",
|
|
13
|
+
"react-dom": "^18.0.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"clsx": "^2.1.1",
|
|
17
|
+
"tailwind-merge": "^2.2.1",
|
|
18
|
+
"lucide-react": "^0.500.0"
|
|
19
|
+
}
|
|
20
|
+
}
|