@processhub-lib/react 1.0.6 → 1.0.8

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.
@@ -0,0 +1,59 @@
1
+ "use strict";const P=require("react"),G=require("./classnames-BqI3URgS.cjs");function Or(s){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const b in s)if(b!=="default"){const h=Object.getOwnPropertyDescriptor(s,b);Object.defineProperty(c,b,h.get?h:{enumerable:!0,get:()=>s[b]})}}return c.default=s,Object.freeze(c)}const a=Or(P);var gr={exports:{}},Pe={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var yr;function Ar(){if(yr)return Pe;yr=1;var s=P,c=Symbol.for("react.element"),b=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,S=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function C(w,f,x){var d,y={},E=null,L=null;x!==void 0&&(E=""+x),f.key!==void 0&&(E=""+f.key),f.ref!==void 0&&(L=f.ref);for(d in f)h.call(f,d)&&!A.hasOwnProperty(d)&&(y[d]=f[d]);if(w&&w.defaultProps)for(d in f=w.defaultProps,f)y[d]===void 0&&(y[d]=f[d]);return{$$typeof:c,type:w,key:E,ref:L,props:y,_owner:S.current}}return Pe.Fragment=b,Pe.jsx=C,Pe.jsxs=C,Pe}var Te={};/**
10
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var hr;function Cr(){return hr||(hr=1,process.env.NODE_ENV!=="production"&&function(){var s=P,c=Symbol.for("react.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),w=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),F=Symbol.iterator,Y="@@iterator";function W(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[Y];return typeof r=="function"?r:null}var M=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];H("error",e,t)}}function H(e,r,t){{var n=M.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(l){return String(l)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var R=!1,X=!1,se=!1,k=!1,U=!1,ie;ie=Symbol.for("react.module.reference");function De(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===A||U||e===S||e===x||e===d||k||e===L||R||X||se||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===f||e.$$typeof===ie||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 h:return"Fragment";case b:return"Portal";case A:return"Profiler";case S:return"StrictMode";case x:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return ce(r)+".Consumer";case C:var t=e;return ce(t._context)+".Provider";case f:return $e(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case E:{var i=e,u=i._payload,l=i._init;try{return T(l(u))}catch{return null}}}return null}var N=Object.assign,I=0,ue,fe,de,pe,me,ge,ve;function be(){}be.__reactDisabledLog=!0;function Ie(){{if(I===0){ue=console.log,fe=console.info,de=console.warn,pe=console.error,me=console.group,ge=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function Ve(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ue}),info:N({},e,{value:fe}),warn:N({},e,{value:de}),error:N({},e,{value:pe}),group:N({},e,{value:me}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:ve})})}I<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=M.ReactCurrentDispatcher,ee;function z(e,r,t){{if(ee===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ee=n&&n[1]||""}return`
18
+ `+ee+e}}var re=!1,B;{var We=typeof WeakMap=="function"?WeakMap:Map;B=new We}function ye(e,r){if(!e||re)return"";{var t=B.get(e);if(t!==void 0)return t}var n;re=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=Q.current,Q.current=null,Ie();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(j){n=j}Reflect.construct(e,[],l)}else{try{l.call()}catch(j){n=j}e.call(l.prototype)}}else{try{throw Error()}catch(j){n=j}e()}}catch(j){if(j&&n&&typeof j.stack=="string"){for(var o=j.stack.split(`
19
+ `),_=n.stack.split(`
20
+ `),m=o.length-1,v=_.length-1;m>=1&&v>=0&&o[m]!==_[v];)v--;for(;m>=1&&v>=0;m--,v--)if(o[m]!==_[v]){if(m!==1||v!==1)do if(m--,v--,v<0||o[m]!==_[v]){var O=`
21
+ `+o[m].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,O),O}while(m>=1&&v>=0);break}}}finally{re=!1,Q.current=u,Ve(),Error.prepareStackTrace=i}var $=e?e.displayName||e.name:"",Z=$?z($):"";return typeof e=="function"&&B.set(e,Z),Z}function He(e,r,t){return ye(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ye(e));if(typeof e=="string")return z(e);switch(e){case x:return z("Suspense");case d:return z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return He(e.render);case y:return q(e.type,r,t);case E:{var n=e,i=n._payload,u=n._init;try{return q(u(i),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,he={},xe=M.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.setExtraStackFrame(null)}function Ue(e,r,t,n,i){{var u=Function.call.bind(V);for(var l in e)if(u(e,l)){var o=void 0;try{if(typeof e[l]!="function"){var _=Error((n||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}o=e[l](r,l,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){o=m}o&&!(o instanceof Error)&&(J(i),g("%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).",n||"React class",t,l,typeof o),J(null)),o instanceof Error&&!(o.message in he)&&(he[o.message]=!0,J(i),g("Failed %s type: %s",t,o.message),J(null))}}}var ze=Array.isArray;function te(e){return ze(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function qe(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function we(e){if(qe(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),Ee(e)}var _e=M.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},je,Re;function Ke(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){typeof e.ref=="string"&&_e.current}function Qe(e,r){{var t=function(){je||(je=!0,g("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){Re||(Re=!0,g("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,n,i,u,l){var o={$$typeof:c,type:e,key:r,ref:t,props:l,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function tr(e,r,t,n,i){{var u,l={},o=null,_=null;t!==void 0&&(we(t),o=""+t),Ge(r)&&(we(r.key),o=""+r.key),Ke(r)&&(_=r.ref,Xe(r,i));for(u in r)V.call(r,u)&&!Je.hasOwnProperty(u)&&(l[u]=r[u]);if(e&&e.defaultProps){var m=e.defaultProps;for(u in m)l[u]===void 0&&(l[u]=m[u])}if(o||_){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&Qe(l,v),_&&er(l,v)}return rr(e,o,_,i,n,_e.current,l)}}var ae=M.ReactCurrentOwner,Se=M.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var ne;ne=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function Oe(){{if(ae.current){var e=T(ae.current.type);if(e)return`
22
+
23
+ Check the render method of \``+e+"`."}return""}}function ar(e){return""}var Ae={};function nr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
24
+
25
+ Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),D(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function ke(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&Ce(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var i=W(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),l;!(l=u.next()).done;)oe(l.value)&&Ce(l.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=T(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ne){ne=!0;var i=T(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var Le={};function Me(e,r,t,n,i,u){{var l=De(e);if(!l){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 _=ar();_?o+=_:o+=Oe();var m;e===null?m="null":te(e)?m="array":e!==void 0&&e.$$typeof===c?(m="<"+(T(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,o)}var v=tr(e,r,t,i,u);if(v==null)return v;if(l){var O=r.children;if(O!==void 0)if(n)if(te(O)){for(var $=0;$<O.length;$++)ke(O[$],e);Object.freeze&&Object.freeze(O)}else g("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 ke(O,e)}if(V.call(r,"key")){var Z=T(e),j=Object.keys(r).filter(function(dr){return dr!=="key"}),le=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!Le[Z+le]){var fr=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
26
+ let props = %s;
27
+ <%s {...props} />
28
+ React keys must be passed directly to JSX without using spread:
29
+ let props = %s;
30
+ <%s key={someKey} {...props} />`,le,Z,fr,Z),Le[Z+le]=!0}}return e===h?lr(v):or(v),v}}function sr(e,r,t){return Me(e,r,t,!0)}function ir(e,r,t){return Me(e,r,t,!1)}var cr=ir,ur=sr;Te.Fragment=h,Te.jsx=cr,Te.jsxs=ur}()),Te}process.env.NODE_ENV==="production"?gr.exports=Ar():gr.exports=Cr();var p=gr.exports;const pr={green:{solid:{bg:"bg-green-500",hover:"hover:bg-green-600",text:"text-white",border:"border-green-500"},outline:{bg:"bg-transparent",hover:"hover:bg-green-500 hover:text-white",text:"text-green-600",border:"border-green-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-green-100",text:"text-green-600",border:"border-transparent"}},blue:{solid:{bg:"bg-blue-500",hover:"hover:bg-blue-600",text:"text-white",border:"border-blue-500"},outline:{bg:"bg-transparent",hover:"hover:bg-blue-500 hover:text-white",text:"text-blue-600",border:"border-blue-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-blue-100",text:"text-blue-600",border:"border-transparent"}},red:{solid:{bg:"bg-red-500",hover:"hover:bg-red-600",text:"text-white",border:"border-red-500"},outline:{bg:"bg-transparent",hover:"hover:bg-red-500 hover:text-white",text:"text-red-600",border:"border-red-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-red-100",text:"text-red-600",border:"border-transparent"}},yellow:{solid:{bg:"bg-yellow-500",hover:"hover:bg-yellow-600",text:"text-black",border:"border-yellow-500"},outline:{bg:"bg-transparent",hover:"hover:bg-yellow-500 hover:text-black",text:"text-yellow-600",border:"border-yellow-500"},ghost:{bg:"bg-transparent",hover:"hover:bg-yellow-100",text:"text-yellow-600",border:"border-transparent"}},primary:{solid:{bg:"bg-primary",hover:"hover:bg-primary/90",text:"text-primary-foreground",border:"border-primary"},outline:{bg:"bg-transparent",hover:"hover:bg-primary hover:text-primary-foreground",text:"text-primary",border:"border-primary"},ghost:{bg:"bg-transparent",hover:"hover:bg-primary/10",text:"text-primary",border:"border-transparent"}},secondary:{solid:{bg:"bg-secondary",hover:"hover:bg-secondary/80",text:"text-secondary-foreground",border:"border-secondary"},outline:{bg:"bg-transparent",hover:"hover:bg-secondary hover:text-secondary-foreground",text:"text-secondary",border:"border-secondary"},ghost:{bg:"bg-transparent",hover:"hover:bg-secondary/10",text:"text-secondary",border:"border-transparent"}},destructive:{solid:{bg:"bg-destructive",hover:"hover:bg-destructive/90",text:"text-destructive-foreground",border:"border-destructive"},outline:{bg:"bg-transparent",hover:"hover:bg-destructive hover:text-destructive-foreground",text:"text-destructive",border:"border-destructive"},ghost:{bg:"bg-transparent",hover:"hover:bg-destructive/10",text:"text-destructive",border:"border-transparent"}},card:{solid:{bg:"bg-card",hover:"hover:bg-accent",text:"text-card-foreground",border:"border-border"},outline:{bg:"bg-transparent",hover:"hover:bg-accent",text:"text-card-foreground",border:"border-border"},ghost:{bg:"bg-transparent",hover:"hover:bg-accent/50",text:"text-card-foreground",border:"border-transparent"}}};function wr({title:s,icon:c,positionIcon:b,color:h="green",variant:S="solid",disable:A=!1,className:C,type:w="button",onClick:f=()=>{}}){const x=h in pr?pr[h]:pr.green,d=x[S]||x.solid,y=G.classnames("cursor-pointer flex items-center justify-center gap-2 px-4 py-2 rounded-lg transition-colors shadow-sm font-medium text-sm border",d.bg,d.hover,d.text,d.border,{"opacity-50 cursor-not-allowed":A},C);return p.jsxs("button",{type:w,onClick:E=>!A&&(f==null?void 0:f(E)),disabled:A,className:y,children:[b==="left"&&c,s&&p.jsx("span",{className:"first-letter:uppercase",children:s}),b==="right"&&c]})}function _r({field:s,title:c,id:b,type:h,placeholder:S,className:A,value:C,iconPosition:w,icon:f,error:x,...d}){return p.jsxs("div",{className:"flex flex-col gap-2",children:[c&&p.jsxs("label",{htmlFor:b,className:G.classnames("block text-md font-medium text-foreground",{"text-red-700":x}),children:[d.required&&p.jsx("span",{className:"text-red-500",children:"* "}),c,":"]}),p.jsxs("div",{className:G.classnames("flex items-center justify-between border border-border text-foreground text-sm rounded-lg w-full",{"text-red-500 placeholder-red-500 border-red-500 focus:ring-red-500 focus:border-red-500":x,"p-2.5":f,"bg-input cursor-pointer":!d.disabled,"bg-gray-400/40 cursor-not-allowed":d.disabled}),children:[w==="left"&&f,p.jsx("input",{type:h,id:b,name:String(s),value:C,placeholder:S,className:G.classnames("bg-transparent border-none text-foreground text-sm focus:outline-none w-full",{"ml-3":w==="left","p-2.5":!f,"cursor-pointer":!d.disabled,"cursor-not-allowed":d.disabled,className:A}),onChange:d.onChange,...d}),w==="right"&&f]}),x&&p.jsx("div",{className:"mt-2",children:p.jsx("p",{className:"text-sm text-red-600 dark:text-red-500",children:x})})]})}const kr=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"}),a.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"}))]]),Lr=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M208,96l-80,80L48,96Z",opacity:"0.2"}),a.createElement("path",{d:"M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z"}))]]),Mr=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),a.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Pr=P.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Ze=a.forwardRef((s,c)=>{const{alt:b,color:h,size:S,weight:A,mirrored:C,children:w,weights:f,...x}=s,{color:d="currentColor",size:y,weight:E="regular",mirrored:L=!1,...F}=a.useContext(Pr);return a.createElement("svg",{ref:c,xmlns:"http://www.w3.org/2000/svg",width:S??y,height:S??y,fill:h??d,viewBox:"0 0 256 256",transform:C||L?"scale(-1, 1)":void 0,...F,...x},!!b&&a.createElement("title",null,b),w,f.get(A??E))});Ze.displayName="IconBase";const jr=a.forwardRef((s,c)=>a.createElement(Ze,{ref:c,...s,weights:kr}));jr.displayName="BroomIcon";const Rr=a.forwardRef((s,c)=>a.createElement(Ze,{ref:c,...s,weights:Lr}));Rr.displayName="CaretDownIcon";const Tr=Rr,vr=a.forwardRef((s,c)=>a.createElement(Ze,{ref:c,...s,weights:Mr}));vr.displayName="MagnifyingGlassIcon";const Fr=vr;function mr(s,c){return c.split(".").reduce((b,h)=>b?b[h]:void 0,s)}function Nr({field:s,title:c,id:b,placeholder:h,value:S,options:A,icon:C,iconPosition:w="right",optionPosition:f="left",error:x,required:d,onChange:y,selected:E,isClearable:L,searchable:F=!1}){const[Y,W]=P.useState(""),[M,g]=P.useState(!1),H=P.useRef(null),[R,X]=P.useState("");P.useEffect(()=>{function k(U){H.current&&!H.current.contains(U.target)&&g(!1)}return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[]);const se=k=>{y==null||y(k),g(!1)};return P.useEffect(()=>{X(S)},[S]),p.jsxs("div",{className:"flex flex-col gap-2 w-full relative",ref:H,children:[c&&p.jsxs("label",{htmlFor:b,className:G.classnames("block text-md font-medium text-foreground",{"text-red-700":x}),children:[d&&p.jsx("span",{className:"text-red-500",children:"*"})," ",c?`${c}:`:""]}),p.jsxs("div",{className:G.classnames("cursor-pointer flex items-center justify-between bg-input border border-border text-foreground text-sm rounded-lg w-full p-2.5 pr-8",{"border-red-500":x}),onClick:()=>g(!M),children:[w==="left"&&C,p.jsx("span",{className:`flex-1 ${w==="left"&&"ml-3"}`,children:R||h||"Selecione..."}),w==="right"&&C]}),M&&p.jsxs("ul",{className:G.classnames("absolute top-full w-auto max-h-72 overflow-y-auto border border-border rounded-lg bg-card z-50 shadow-lg mt-1",{"left-0":f==="left","right-0":f==="right"}),children:[p.jsx("li",{className:"p-3 cursor-pointer text-foreground",onClick:()=>L&&se({}),children:h||"Selecione..."},"select-placeholder"),F&&p.jsxs("li",{className:"px-2 cursor-pointer text-foreground flex gap-2 items-center justify-start",children:[p.jsx("div",{className:"flex-1",children:p.jsx(_r,{field:"",title:"",id:"search-select",name:"search-select",placeholder:"Buscar",icon:p.jsx(vr,{}),iconPosition:"left",onChange:k=>W(k.target.value),value:Y})}),p.jsx(wr,{color:"blue",title:"",icon:p.jsx(jr,{}),positionIcon:"left",onClick:k=>{k==null||k.stopPropagation(),y==null||y({}),W("")},className:"m-0"})]}),A.filter(k=>{const U=mr(k,s);return String(U).toLowerCase().includes(Y.toLowerCase())}).map((k,U)=>p.jsx("li",{className:G.classnames("p-2 hover:bg-primary cursor-pointer text-foreground",{"bg-primary":mr(k,s)===S||(E==null?void 0:E[s])===k[s]}),onClick:()=>se(k),children:mr(k,s)},`select-option-${U}`))]}),x&&p.jsx("p",{className:"text-sm text-red-600 mt-1",children:x})]})}const Zr={}.hasOwnProperty;function K(...s){let c="";for(let b=0;b<s.length;b++){const h=s[b];h&&(c=Sr(c,Dr(h)))}return c}function Dr(s){if(typeof s=="string")return s;if(typeof s!="object"||s===null)return"";if(Array.isArray(s))return K(...s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();let c="";for(const b in s)Zr.call(s,b)&&s[b]&&(c=Sr(c,b));return c}function Sr(s,c){return c?s?`${s} ${c}`:c:s}var Fe={};/**
31
+ * @license React
32
+ * react-jsx-runtime.production.min.js
33
+ *
34
+ * Copyright (c) Facebook, Inc. and its affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
38
+ */var xr;function $r(){if(xr)return Fe;xr=1;var s=P,c=Symbol.for("react.element"),b=Symbol.for("react.fragment"),h=Object.prototype.hasOwnProperty,S=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function C(w,f,x){var d,y={},E=null,L=null;x!==void 0&&(E=""+x),f.key!==void 0&&(E=""+f.key),f.ref!==void 0&&(L=f.ref);for(d in f)h.call(f,d)&&!A.hasOwnProperty(d)&&(y[d]=f[d]);if(w&&w.defaultProps)for(d in f=w.defaultProps,f)y[d]===void 0&&(y[d]=f[d]);return{$$typeof:c,type:w,key:E,ref:L,props:y,_owner:S.current}}return Fe.Fragment=b,Fe.jsx=C,Fe.jsxs=C,Fe}var Ne={};/**
39
+ * @license React
40
+ * react-jsx-runtime.development.js
41
+ *
42
+ * Copyright (c) Facebook, Inc. and its affiliates.
43
+ *
44
+ * This source code is licensed under the MIT license found in the
45
+ * LICENSE file in the root directory of this source tree.
46
+ */var Er;function Ir(){return Er||(Er=1,process.env.NODE_ENV!=="production"&&function(){var s=P,c=Symbol.for("react.element"),b=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),w=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),F=Symbol.iterator,Y="@@iterator";function W(e){if(e===null||typeof e!="object")return null;var r=F&&e[F]||e[Y];return typeof r=="function"?r:null}var M=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];H("error",e,t)}}function H(e,r,t){{var n=M.ReactDebugCurrentFrame,i=n.getStackAddendum();i!==""&&(r+="%s",t=t.concat([i]));var u=t.map(function(l){return String(l)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var R=!1,X=!1,se=!1,k=!1,U=!1,ie;ie=Symbol.for("react.module.reference");function De(e){return!!(typeof e=="string"||typeof e=="function"||e===h||e===A||U||e===S||e===x||e===d||k||e===L||R||X||se||typeof e=="object"&&e!==null&&(e.$$typeof===E||e.$$typeof===y||e.$$typeof===C||e.$$typeof===w||e.$$typeof===f||e.$$typeof===ie||e.getModuleId!==void 0))}function $e(e,r,t){var n=e.displayName;if(n)return n;var i=r.displayName||r.name||"";return i!==""?t+"("+i+")":t}function ce(e){return e.displayName||"Context"}function T(e){if(e==null)return null;if(typeof e.tag=="number"&&g("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 h:return"Fragment";case b:return"Portal";case A:return"Profiler";case S:return"StrictMode";case x:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w:var r=e;return ce(r)+".Consumer";case C:var t=e;return ce(t._context)+".Provider";case f:return $e(e,e.render,"ForwardRef");case y:var n=e.displayName||null;return n!==null?n:T(e.type)||"Memo";case E:{var i=e,u=i._payload,l=i._init;try{return T(l(u))}catch{return null}}}return null}var N=Object.assign,I=0,ue,fe,de,pe,me,ge,ve;function be(){}be.__reactDisabledLog=!0;function Ie(){{if(I===0){ue=console.log,fe=console.info,de=console.warn,pe=console.error,me=console.group,ge=console.groupCollapsed,ve=console.groupEnd;var e={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function Ve(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:ue}),info:N({},e,{value:fe}),warn:N({},e,{value:de}),error:N({},e,{value:pe}),group:N({},e,{value:me}),groupCollapsed:N({},e,{value:ge}),groupEnd:N({},e,{value:ve})})}I<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=M.ReactCurrentDispatcher,ee;function z(e,r,t){{if(ee===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);ee=n&&n[1]||""}return`
47
+ `+ee+e}}var re=!1,B;{var We=typeof WeakMap=="function"?WeakMap:Map;B=new We}function ye(e,r){if(!e||re)return"";{var t=B.get(e);if(t!==void 0)return t}var n;re=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=Q.current,Q.current=null,Ie();try{if(r){var l=function(){throw Error()};if(Object.defineProperty(l.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(l,[])}catch(j){n=j}Reflect.construct(e,[],l)}else{try{l.call()}catch(j){n=j}e.call(l.prototype)}}else{try{throw Error()}catch(j){n=j}e()}}catch(j){if(j&&n&&typeof j.stack=="string"){for(var o=j.stack.split(`
48
+ `),_=n.stack.split(`
49
+ `),m=o.length-1,v=_.length-1;m>=1&&v>=0&&o[m]!==_[v];)v--;for(;m>=1&&v>=0;m--,v--)if(o[m]!==_[v]){if(m!==1||v!==1)do if(m--,v--,v<0||o[m]!==_[v]){var O=`
50
+ `+o[m].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e=="function"&&B.set(e,O),O}while(m>=1&&v>=0);break}}}finally{re=!1,Q.current=u,Ve(),Error.prepareStackTrace=i}var $=e?e.displayName||e.name:"",Z=$?z($):"";return typeof e=="function"&&B.set(e,Z),Z}function He(e,r,t){return ye(e,!1)}function Ye(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function q(e,r,t){if(e==null)return"";if(typeof e=="function")return ye(e,Ye(e));if(typeof e=="string")return z(e);switch(e){case x:return z("Suspense");case d:return z("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return He(e.render);case y:return q(e.type,r,t);case E:{var n=e,i=n._payload,u=n._init;try{return q(u(i),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,he={},xe=M.ReactDebugCurrentFrame;function J(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);xe.setExtraStackFrame(t)}else xe.setExtraStackFrame(null)}function Ue(e,r,t,n,i){{var u=Function.call.bind(V);for(var l in e)if(u(e,l)){var o=void 0;try{if(typeof e[l]!="function"){var _=Error((n||"React class")+": "+t+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}o=e[l](r,l,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){o=m}o&&!(o instanceof Error)&&(J(i),g("%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).",n||"React class",t,l,typeof o),J(null)),o instanceof Error&&!(o.message in he)&&(he[o.message]=!0,J(i),g("Failed %s type: %s",t,o.message),J(null))}}}var ze=Array.isArray;function te(e){return ze(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function qe(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function we(e){if(qe(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),Ee(e)}var _e=M.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},je,Re;function Ke(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ge(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){typeof e.ref=="string"&&_e.current}function Qe(e,r){{var t=function(){je||(je=!0,g("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function er(e,r){{var t=function(){Re||(Re=!0,g("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var rr=function(e,r,t,n,i,u,l){var o={$$typeof:c,type:e,key:r,ref:t,props:l,_owner:u};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function tr(e,r,t,n,i){{var u,l={},o=null,_=null;t!==void 0&&(we(t),o=""+t),Ge(r)&&(we(r.key),o=""+r.key),Ke(r)&&(_=r.ref,Xe(r));for(u in r)V.call(r,u)&&!Je.hasOwnProperty(u)&&(l[u]=r[u]);if(e&&e.defaultProps){var m=e.defaultProps;for(u in m)l[u]===void 0&&(l[u]=m[u])}if(o||_){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&Qe(l,v),_&&er(l,v)}return rr(e,o,_,i,n,_e.current,l)}}var ae=M.ReactCurrentOwner,Se=M.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=q(e.type,e._source,r?r.type:null);Se.setExtraStackFrame(t)}else Se.setExtraStackFrame(null)}var ne;ne=!1;function oe(e){return typeof e=="object"&&e!==null&&e.$$typeof===c}function Oe(){{if(ae.current){var e=T(ae.current.type);if(e)return`
51
+
52
+ Check the render method of \``+e+"`."}return""}}function ar(e){return""}var Ae={};function nr(e){{var r=Oe();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
53
+
54
+ Check the top-level render call using <`+t+">.")}return r}}function Ce(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=nr(r);if(Ae[t])return;Ae[t]=!0;var n="";e&&e._owner&&e._owner!==ae.current&&(n=" It was passed a child from "+T(e._owner.type)+"."),D(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function ke(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];oe(n)&&Ce(n,r)}else if(oe(e))e._store&&(e._store.validated=!0);else if(e){var i=W(e);if(typeof i=="function"&&i!==e.entries)for(var u=i.call(e),l;!(l=u.next()).done;)oe(l.value)&&Ce(l.value,r)}}}function or(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===y))t=r.propTypes;else return;if(t){var n=T(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!ne){ne=!0;var i=T(r);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",i||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var Le={};function Me(e,r,t,n,i,u){{var l=De(e);if(!l){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" 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 _=ar();_?o+=_:o+=Oe();var m;e===null?m="null":te(e)?m="array":e!==void 0&&e.$$typeof===c?(m="<"+(T(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,o)}var v=tr(e,r,t,i,u);if(v==null)return v;if(l){var O=r.children;if(O!==void 0)if(n)if(te(O)){for(var $=0;$<O.length;$++)ke(O[$],e);Object.freeze&&Object.freeze(O)}else g("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 ke(O,e)}if(V.call(r,"key")){var Z=T(e),j=Object.keys(r).filter(function(dr){return dr!=="key"}),le=j.length>0?"{key: someKey, "+j.join(": ..., ")+": ...}":"{key: someKey}";if(!Le[Z+le]){var fr=j.length>0?"{"+j.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
55
+ let props = %s;
56
+ <%s {...props} />
57
+ React keys must be passed directly to JSX without using spread:
58
+ let props = %s;
59
+ <%s key={someKey} {...props} />`,le,Z,fr,Z),Le[Z+le]=!0}}return e===h?lr(v):or(v),v}}function sr(e,r,t){return Me(e,r,t,!0)}function ir(e,r,t){return Me(e,r,t,!1)}var cr=ir,ur=sr;Ne.Fragment=h,Ne.jsx=cr,Ne.jsxs=ur}()),Ne}process.env.NODE_ENV==="production"?$r():Ir();const Vr=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M237.24,213.21C216.12,203,204,180.64,204,152V134.73a19.94,19.94,0,0,0-12.62-18.59l-24.86-9.81a4,4,0,0,1-2.26-5.14l21.33-53A32,32,0,0,0,167.17,6,32.13,32.13,0,0,0,126.25,24.2l-.07.18-21,53.09a3.94,3.94,0,0,1-2.14,2.2,3.89,3.89,0,0,1-3,.06L74.6,69.43A19.89,19.89,0,0,0,52.87,74C31.06,96.43,20,122.68,20,152a115.46,115.46,0,0,0,32.29,80.3A12,12,0,0,0,61,236H232a12,12,0,0,0,5.24-22.79ZM68.19,92.73,91.06,102A28,28,0,0,0,127.5,86.31l20.95-53a8.32,8.32,0,0,1,10.33-4.81,8,8,0,0,1,4.61,10.57,1.17,1.17,0,0,0,0,.11L142,92.29a28.05,28.05,0,0,0,15.68,36.33L180,137.45V152c0,1,0,2.07.05,3.1l-122.44-49A101.91,101.91,0,0,1,68.19,92.73ZM116.74,212a83.73,83.73,0,0,1-22.09-39,12,12,0,0,0-23.25,6,110.27,110.27,0,0,0,14.49,33H66.25A91.53,91.53,0,0,1,44,152a84,84,0,0,1,3.41-24.11l136.67,54.66A86.58,86.58,0,0,0,198.66,212Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M192.8,165.12,43.93,105.57A110.88,110.88,0,0,1,61.47,82.38a8,8,0,0,1,8.67-1.81L95.52,90.85a16,16,0,0,0,20.82-9l21-53.1c4.15-10,15.47-15.33,25.63-11.53a20,20,0,0,1,11.51,26.39L153.13,96.71a16,16,0,0,0,8.93,20.75L187,127.3a8,8,0,0,1,5,7.43V152A104.58,104.58,0,0,0,192.8,165.12Z",opacity:"0.2"}),a.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M235.29,216.7C212.86,205.69,200,182.12,200,152V134.69a15.94,15.94,0,0,0-10.09-14.87l-28.65-11.46A8,8,0,0,1,156.79,98l22.32-56.67C184,28.79,178,14.21,165.34,9.51a24,24,0,0,0-30.7,13.71L112.25,80.08a8,8,0,0,1-10.41,4.5L73.11,73.08a15.91,15.91,0,0,0-17.38,3.66C34.68,98.4,24,123.71,24,152a111.53,111.53,0,0,0,31.15,77.53A8.06,8.06,0,0,0,61,232H232a8,8,0,0,0,8-7.51A8.21,8.21,0,0,0,235.29,216.7ZM115.11,216a87.52,87.52,0,0,1-24.26-41.71,8.21,8.21,0,0,0-9.25-6.18A8,8,0,0,0,75.28,178a105.33,105.33,0,0,0,18.36,38H64.44A95.62,95.62,0,0,1,40,152a85.92,85.92,0,0,1,7.73-36.3l137.8,55.13c3,18.06,10.55,33.5,21.89,45.19Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M234.62,218.6C211.35,207.29,198,183,198,152V134.7a14,14,0,0,0-8.82-13l-24.89-9.83a10,10,0,0,1-5.59-13L180,45.9a26,26,0,0,0-15-34.33c-12.95-4.83-27.88,1.84-33.31,15l-21,53.11a10,10,0,0,1-13,5.61L72.37,75a13.9,13.9,0,0,0-15.2,3.19C36.49,99.42,26,124.26,26,152a109.53,109.53,0,0,0,30.62,76.16A6,6,0,0,0,61,230H232a6,6,0,0,0,2.62-11.4ZM65.77,86.52a2,2,0,0,1,2.12-.43l25.4,10.29a22,22,0,0,0,28.63-12.32l21-53c3-7.13,11-10.81,18-8.21a14,14,0,0,1,8,18.54l-21.36,53.1A22.05,22.05,0,0,0,159.86,123l24.88,9.83A2,2,0,0,1,186,134.7V152c0,1.34,0,2.65.08,4L52.74,102.61A110.07,110.07,0,0,1,65.77,86.52ZM114.33,218a89.6,89.6,0,0,1-25.5-43.5,6,6,0,1,0-11.62,3A102.87,102.87,0,0,0,97.81,218H63.56A97.56,97.56,0,0,1,38,152a87.42,87.42,0,0,1,8.71-38.86L187.35,169.4c3.15,19.92,11.77,36.66,25,48.6Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M235.5,216.81c-22.56-11-35.5-34.58-35.5-64.8V134.73a15.94,15.94,0,0,0-10.09-14.87L165,110a8,8,0,0,1-4.48-10.34l21.32-53a28,28,0,0,0-16.1-37,28.14,28.14,0,0,0-35.82,16,.61.61,0,0,0,0,.12L108.9,79a8,8,0,0,1-10.37,4.49L73.11,73.14A15.89,15.89,0,0,0,55.74,76.8C34.68,98.45,24,123.75,24,152a111.45,111.45,0,0,0,31.18,77.53A8,8,0,0,0,61,232H232a8,8,0,0,0,3.5-15.19ZM67.14,88l25.41,10.3a24,24,0,0,0,31.23-13.45l21-53c2.56-6.11,9.47-9.27,15.43-7a12,12,0,0,1,6.88,15.92L145.69,93.76a24,24,0,0,0,13.43,31.14L184,134.73V152c0,.33,0,.66,0,1L55.77,101.71A108.84,108.84,0,0,1,67.14,88Zm48,128a87.53,87.53,0,0,1-24.34-42,8,8,0,0,0-15.49,4,105.16,105.16,0,0,0,18.36,38H64.44A95.54,95.54,0,0,1,40,152a85.9,85.9,0,0,1,7.73-36.29l137.8,55.12c3,18,10.56,33.48,21.89,45.16Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M233.75,220.4C209.76,208.75,196,183.82,196,152V134.72a12,12,0,0,0-7.56-11.15l-24.89-9.83a12,12,0,0,1-6.71-15.55l21.33-53a23.88,23.88,0,0,0-31.93-31A24.72,24.72,0,0,0,133.62,27.3l-21,53.1A12,12,0,0,1,97,87.13L71.63,76.84a12,12,0,0,0-13,2.73C38.3,100.45,28,124.82,28,152a107.5,107.5,0,0,0,30.07,74.77A4,4,0,0,0,61,228H232a4,4,0,0,0,1.75-7.6ZM64.34,85.15a3.94,3.94,0,0,1,4.3-.89L94,94.55a20,20,0,0,0,26-11.2l21-53C144.39,22.19,153.61,18,161.58,21a16,16,0,0,1,9.19,21.16L149.41,95.22a20,20,0,0,0,11.18,26l24.9,9.83a4,4,0,0,1,2.51,3.72V152c0,2.36.08,4.69.22,7l-138.5-55.4A110.84,110.84,0,0,1,64.34,85.15ZM113.56,220A91.35,91.35,0,0,1,86.9,175a4,4,0,0,0-7.75,2,100.21,100.21,0,0,0,23.09,43H62.68A99.5,99.5,0,0,1,36,152a89.37,89.37,0,0,1,9.73-41.4L189.13,168c3.22,22,13.23,40.09,28.8,52Z"}))]]),Wr=new Map([["bold",a.createElement(a.Fragment,null,a.createElement("path",{d:"M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z"}))],["duotone",a.createElement(a.Fragment,null,a.createElement("path",{d:"M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z",opacity:"0.2"}),a.createElement("path",{d:"M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["fill",a.createElement(a.Fragment,null,a.createElement("path",{d:"M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z"}))],["light",a.createElement(a.Fragment,null,a.createElement("path",{d:"M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z"}))],["regular",a.createElement(a.Fragment,null,a.createElement("path",{d:"M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"}))],["thin",a.createElement(a.Fragment,null,a.createElement("path",{d:"M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z"}))]]),Hr=P.createContext({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),br=a.forwardRef((s,c)=>{const{alt:b,color:h,size:S,weight:A,mirrored:C,children:w,weights:f,...x}=s,{color:d="currentColor",size:y,weight:E="regular",mirrored:L=!1,...F}=a.useContext(Hr);return a.createElement("svg",{ref:c,xmlns:"http://www.w3.org/2000/svg",width:S??y,height:S??y,fill:h??d,viewBox:"0 0 256 256",transform:C||L?"scale(-1, 1)":void 0,...F,...x},!!b&&a.createElement("title",null,b),w,f.get(A??E))});br.displayName="IconBase";const Yr=a.forwardRef((s,c)=>a.createElement(br,{ref:c,...s,weights:Vr}));Yr.displayName="BroomIcon";const Ur=a.forwardRef((s,c)=>a.createElement(br,{ref:c,...s,weights:Wr}));Ur.displayName="MagnifyingGlassIcon";function zr({options:s,value:c,onChange:b,label:h,className:S,triggerClassName:A,menuClassName:C,renderTrigger:w,align:f="right",searchable:x=!1,searchPlaceholder:d="Buscar...",iconPosition:y="left"}){const[E,L]=P.useState(!1),[F,Y]=P.useState(""),W=P.useRef(null),M=P.useRef(null),g=s.find(R=>R.value===c)??s[0],H=P.useMemo(()=>!x||!F?s:s.filter(R=>R.label.toLowerCase().includes(F.toLowerCase())),[s,x,F]);return P.useEffect(()=>{const R=X=>{W.current&&!W.current.contains(X.target)&&L(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]),P.useEffect(()=>{E&&x&&M.current&&M.current.focus(),E||Y("")},[E,x]),p.jsxs("div",{className:K("relative",S),ref:W,children:[w?p.jsx("div",{onClick:()=>L(!E),className:"cursor-pointer",children:w(g,E)}):p.jsxs("button",{onClick:()=>L(!E),"aria-label":h||"Selecionar opção",className:K("flex items-center gap-2 px-3 py-1.5 rounded-lg text-xs font-inter font-medium text-muted-foreground hover:bg-accent/60 hover:text-foreground transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50",A),children:[g.icon&&y==="left"&&p.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded bg-primary/10 text-primary",children:g.icon}),p.jsx("span",{className:"truncate",children:g.label}),g.icon&&y==="right"&&p.jsx("span",{className:"flex items-center justify-center w-5 h-5 rounded bg-primary/10 text-primary",children:g.icon}),p.jsx(Tr,{size:12,className:K("transition-transform",{"rotate-180":E})})]}),E&&p.jsxs("div",{className:K("absolute mt-2 w-56 bg-card border border-border rounded-xl shadow-xl py-1.5 z-50 animate-in fade-in zoom-in-95 duration-100 origin-top",{"left-0":f==="left","right-0":f==="right"},C),children:[x&&p.jsx("div",{className:"px-2 pb-1.5 mb-1.5 border-b border-border",children:p.jsxs("div",{className:"relative",children:[p.jsx(Fr,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),p.jsx("input",{ref:M,type:"text",placeholder:d,value:F,onChange:R=>Y(R.target.value),className:"w-full pl-8 pr-3 py-1.5 bg-input border border-border rounded-lg text-[11px] font-inter focus:outline-none focus:ring-2 focus:ring-primary/30"})]})}),p.jsx("div",{className:"max-h-60 overflow-y-auto custom-scrollbar",children:H.length>0?H.map(R=>p.jsxs("button",{onClick:()=>{b(R.value),L(!1)},className:K("w-full flex items-center gap-3 px-3 py-2 text-xs font-inter transition-colors text-left",c===R.value?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-accent/60 hover:text-foreground"),children:[R.icon&&y==="left"&&p.jsx("span",{className:K("flex items-center justify-center w-5 h-5 rounded shrink-0",c===R.value?"bg-primary/20":"bg-muted/30"),children:R.icon}),p.jsxs("div",{className:"flex-1 overflow-hidden",children:[p.jsx("p",{className:"truncate",children:R.label}),R.description&&p.jsx("p",{className:"text-[10px] opacity-70 truncate font-normal",children:R.description})]}),R.icon&&y==="right"&&p.jsx("span",{className:K("flex items-center justify-center w-5 h-5 rounded shrink-0",c===R.value?"bg-primary/20":"bg-muted/30"),children:R.icon})]},String(R.value))):p.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:"Nenhum resultado encontrado"})})]})]})}exports.Button=wr;exports.Dropdown=zr;exports.Input=_r;exports.Select=Nr;
package/dist/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-B1vZ8U-f.cjs"),s=require("./classnames-BqI3URgS.cjs"),t=require("./utils.cjs.js");exports.Button=e.Button;exports.Input=e.Input;exports.Select=e.Select;exports.classnames=s.classnames;exports.applyMask=t.applyMask;exports.formatar=t.formatar;exports.isDocumento=t.isDocumento;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CEKPVAKC.cjs"),o=require("./classnames-BqI3URgS.cjs"),t=require("./utils.cjs.js");exports.Button=e.Button;exports.Dropdown=e.Dropdown;exports.Input=e.Input;exports.Select=e.Select;exports.classnames=o.classnames;exports.applyMask=t.applyMask;exports.formatar=t.formatar;exports.isDocumento=t.isDocumento;
package/dist/index.es.js CHANGED
@@ -1,12 +1,13 @@
1
- import { B as s, I as t, S as r } from "./index-hkfwDYXz.js";
1
+ import { B as s, D as r, I as t, S as e } from "./index-0K9N2TPQ.js";
2
2
  import { c as m } from "./classnames-2Mts7qXW.js";
3
- import { applyMask as c, formatar as f, isDocumento as n } from "./utils.es.js";
3
+ import { applyMask as c, formatar as f, isDocumento as l } from "./utils.es.js";
4
4
  export {
5
5
  s as Button,
6
+ r as Dropdown,
6
7
  t as Input,
7
- r as Select,
8
+ e as Select,
8
9
  c as applyMask,
9
10
  m as classnames,
10
11
  f as formatar,
11
- n as isDocumento
12
+ l as isDocumento
12
13
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-400:oklch(70.7% .022 261.325);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-medium:500;--font-weight-bold:700;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.m-0{margin:calc(var(--spacing)*0)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.ml-3{margin-left:calc(var(--spacing)*3)}.block{display:block}.flex{display:flex}.inline{display:inline}.max-h-72{max-height:calc(var(--spacing)*72)}.w-auto{width:auto}.w-full{width:100%}.flex-1{flex:1}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.overflow-y-auto{overflow-y:auto}.rounded-lg{border-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-500{border-color:var(--color-blue-500)}.border-green-500{border-color:var(--color-green-500)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-400\/40{background-color:#99a1af66}@supports (color:color-mix(in lab,red,red)){.bg-gray-400\/40{background-color:color-mix(in oklab,var(--color-gray-400)40%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-green-600{color:var(--color-green-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.placeholder-red-500::placeholder{color:var(--color-red-500)}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150{--tw-duration:.15s;transition-duration:.15s}.first-letter\:uppercase:first-letter{text-transform:uppercase}@media (hover:hover){.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\:bg-yellow-500:hover{background-color:var(--color-yellow-500)}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-white:hover{color:var(--color-white)}}.focus\:border-red-500:focus{border-color:var(--color-red-500)}.focus\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (prefers-color-scheme:dark){.dark\:text-red-500{color:var(--color-red-500)}}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}
1
+ /*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-100:oklch(96.2% .044 156.743);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-gray-400:oklch(70.7% .022 261.325);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-lg:.5rem;--radius-xl:.75rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-1\/2{top:50%}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-2\.5{left:calc(var(--spacing)*2.5)}.z-50{z-index:50}.m-0{margin:calc(var(--spacing)*0)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.ml-3{margin-left:calc(var(--spacing)*3)}.block{display:block}.flex{display:flex}.inline{display:inline}.h-5{height:calc(var(--spacing)*5)}.max-h-60{max-height:calc(var(--spacing)*60)}.max-h-72{max-height:calc(var(--spacing)*72)}.w-5{width:calc(var(--spacing)*5)}.w-56{width:calc(var(--spacing)*56)}.w-auto{width:auto}.w-full{width:100%}.flex-1{flex:1}.shrink-0{flex-shrink:0}.origin-top{transform-origin:top}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-180{rotate:180deg}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-start{justify-content:flex-start}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-blue-500{border-color:var(--color-blue-500)}.border-green-500{border-color:var(--color-green-500)}.border-red-500{border-color:var(--color-red-500)}.border-transparent{border-color:#0000}.border-yellow-500{border-color:var(--color-yellow-500)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-400\/40{background-color:#99a1af66}@supports (color:color-mix(in lab,red,red)){.bg-gray-400\/40{background-color:color-mix(in oklab,var(--color-gray-400)40%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-yellow-500{background-color:var(--color-yellow-500)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-4{padding-block:calc(var(--spacing)*4)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-1\.5{padding-bottom:calc(var(--spacing)*1.5)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-green-600{color:var(--color-green-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.placeholder-red-500::placeholder{color:var(--color-red-500)}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.first-letter\:uppercase:first-letter{text-transform:uppercase}@media (hover:hover){.hover\:bg-blue-100:hover{background-color:var(--color-blue-100)}.hover\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-green-100:hover{background-color:var(--color-green-100)}.hover\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-red-100:hover{background-color:var(--color-red-100)}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-600:hover{background-color:var(--color-red-600)}.hover\:bg-yellow-100:hover{background-color:var(--color-yellow-100)}.hover\:bg-yellow-500:hover{background-color:var(--color-yellow-500)}.hover\:bg-yellow-600:hover{background-color:var(--color-yellow-600)}.hover\:text-black:hover{color:var(--color-black)}.hover\:text-white:hover{color:var(--color-white)}}.focus\:border-red-500:focus{border-color:var(--color-red-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-red-500:focus{--tw-ring-color:var(--color-red-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}@media (prefers-color-scheme:dark){.dark\:text-red-500{color:var(--color-red-500)}}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}
@@ -0,0 +1,23 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface DropdownOption<T> {
4
+ value: T;
5
+ label: string;
6
+ icon?: ReactNode;
7
+ description?: string;
8
+ }
9
+ export interface DropdownProps<T> {
10
+ options: DropdownOption<T>[];
11
+ value: T;
12
+ onChange: (value: T) => void;
13
+ label?: string;
14
+ className?: string;
15
+ triggerClassName?: string;
16
+ menuClassName?: string;
17
+ renderTrigger?: (selectedOption: DropdownOption<T>, isOpen: boolean) => ReactNode;
18
+ align?: "left" | "right";
19
+ searchable?: boolean;
20
+ searchPlaceholder?: string;
21
+ iconPosition?: "left" | "right";
22
+ }
23
+ export declare function Dropdown<T>({ options, value, onChange, label, className, triggerClassName, menuClassName, renderTrigger, align, searchable, searchPlaceholder, iconPosition, }: DropdownProps<T>): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
1
  export * from './Button';
2
2
  export * from './Input';
3
3
  export * from './Select';
4
+ export * from './Dropdown';
package/dist/ui.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-B1vZ8U-f.cjs");exports.Button=t.Button;exports.Input=t.Input;exports.Select=t.Select;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-CEKPVAKC.cjs");exports.Button=t.Button;exports.Dropdown=t.Dropdown;exports.Input=t.Input;exports.Select=t.Select;
package/dist/ui.es.js CHANGED
@@ -1,6 +1,7 @@
1
- import { B as e, I as o, S as s } from "./index-hkfwDYXz.js";
1
+ import { B as a, D as s, I as e, S as n } from "./index-0K9N2TPQ.js";
2
2
  export {
3
- e as Button,
4
- o as Input,
5
- s as Select
3
+ a as Button,
4
+ s as Dropdown,
5
+ e as Input,
6
+ n as Select
6
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processhub-lib/react",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "gen:endpoints": "tsx src/scripts/generate-endpoints.ts",