@elegantui/forms
Advanced tools
Comparing version 0.0.0-beta.1 to 0.0.0
import*as z from"react";function T(){return T=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},T.apply(this,arguments)}function fr(r,e){if(!!r){if(typeof r=="string")return J(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return J(r,e)}}function J(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=r[t];return o}function K(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=fr(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(r){if(r<1)return{get:function(){},set:function(){}};var e=0,t=new Map,o=new Map;function a(n,i){t.set(n,i),e++,e>r&&(e=0,o=t,t=new Map)}return{get:function(i){var s=t.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return a(i,s),s},set:function(i,s){t.has(i)?t.set(i,s):a(i,s)}}}var O="-";function rr(r){var e=gr(r);function t(a){var n=a.split(O);return n[0]===""&&n.length!==1&&n.shift(),er(n,e)||br(a)}function o(a){return r.conflictingClassGroups[a]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function er(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],a=e.nextPart.get(o),n=a?er(r.slice(1),a):void 0;if(n)return n;if(e.validators.length!==0){var i=r.join(O);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var Y=/^\[(.+)\]$/;function br(r){if(Y.test(r)){var e=Y.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function gr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},a=vr(Object.entries(r.classGroups),t);return a.forEach(function(n){var i=n[0],s=n[1];N(s,o,i,e)}),o}function N(r,e,t,o){r.forEach(function(a){if(typeof a=="string"){var n=a===""?e:D(e,a);n.classGroupId=t;return}if(typeof a=="function"){if(mr(a)){N(a(o),e,t,o);return}e.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(function(i){var s=i[0],c=i[1];N(c,D(e,s),t,o)})})}function D(r,e){var t=r;return e.split(O).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function mr(r){return r.isThemeGetter}function vr(r,e){return e?r.map(function(t){var o=t[0],a=t[1],n=a.map(function(i){return typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var c=s[0],d=s[1];return[e+c,d]})):i});return[o,n]}):r}function tr(r){return T({cache:Q(r.cacheSize)},rr(r))}var yr=/\s+/,or="!";function nr(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,a=new Set;return r.trim().split(yr).map(function(n){var i=hr(n),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:n};var b=xr(s).join(""),m=c?b+or:b;return{isTailwindClass:!0,modifierId:m,classGroupId:p,originalClassName:n}}).reverse().filter(function(n){if(!n.isTailwindClass)return!0;var i=n.modifierId,s=n.classGroupId,c=i+s;return a.has(c)?!1:(a.add(c),o(s).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(n){return n.originalClassName}).join(" ")}function hr(r){for(var e=[],t=0,o=0,a=K(r.matchAll(/[:[\]]/g)),n;!(n=a()).done;){var i=n.value;if(i[0]===":"){if(t===0){var s=i.index+1;e.push(r.substring(o,s)),o=s}}else i[0]==="["?t++:i[0]==="]"&&t--}var c=e.length===0?r:r.substring(o),d=c.startsWith(or),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function xr(r){if(r.length<=1)return r;var e=[],t=[];return r.forEach(function(o){var a=o[0]==="[";a?(e.push.apply(e,t.sort().concat([o])),t=[]):t.push(o)}),e.push.apply(e,t.sort()),e}function ar(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var o,a,n,i=s;function s(d){var p=e[0],b=e.slice(1),m=b.reduce(function(M,y){return y(M)},p());return o=tr(m),a=o.cache.get,n=o.cache.set,i=c,c(d)}function c(d){var p=a(d);if(p)return p;var b=nr(d,o);return n(d,b),b}return function(){for(var p="",b,m=0;m<arguments.length;m+=1)(b=arguments[m])&&(p&&(p+=" "),p+=b);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,wr=/^\d+\/\d+$/,Cr=new Set(["px","full","screen"]),Ir=/^(\d+)?(xs|sm|md|lg|xl)$/,kr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,Ar=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||Cr.has(r)||wr.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||kr.test(t):!1}function ir(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function sr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function lr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function cr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?!Number.isNaN(Number(t))||t.startsWith("number:"):!1}function f(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Number.isInteger(Number(t)):Number.isInteger(Number(r))}function u(r){return w.test(r)}function A(){return!0}function h(r){return Ir.test(r)}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Ar.test(t):!1}function ur(){var r=l("colors"),e=l("spacing"),t=l("blur"),o=l("brightness"),a=l("borderColor"),n=l("borderRadius"),i=l("borderSpacing"),s=l("borderWidth"),c=l("contrast"),d=l("grayscale"),p=l("hueRotate"),b=l("invert"),m=l("gap"),M=l("gradientColorStops"),y=l("inset"),I=l("margin"),x=l("opacity"),k=l("padding"),_=l("saturate"),L=l("scale"),P=l("sepia"),U=l("skew"),F=l("space"),H=l("translate"),j=function(){return["auto","contain","none"]},E=function(){return["auto","hidden","clip","visible","scroll"]},V=function(){return["auto",e]},B=function(){return["",g]},S=function(){return["auto",f]},Z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly"]},G=function(){return["","0",u]},X=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[A],spacing:[g],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:B(),contrast:[f],grayscale:G(),hueRotate:[f],invert:G(),gap:[e],gradientColorStops:[r],inset:V(),margin:V(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:G(),skew:[f,u],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Z(),[u])}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible"],z:[{z:[f]}],basis:[{basis:[e]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[A]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[A]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:W()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:W()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:V()}],"min-h":[{"min-h":["min","max","fit",g]}],"max-h":[{"max-h":[e,"min","max","fit"]}],"font-size":[{text:["base",h,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cr]}],"font-family":[{font:[A]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",g]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Z(),[sr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[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":[x]}],"border-style":[{border:[].concat(R(),["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":[x]}],"divide-style":[{divide:R()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(R(),["hidden"])}],"outline-offset":[{"outline-offset":[g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,dr]}],"shadow-color":[{shadow:[A]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",h,u]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[_]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[L]}],"scale-x":[{"scale-x":[L]}],"scale-y":[{"scale-y":[L]}],rotate:[{rotate:[f,u]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[e]}],"scroll-mx":[{"scroll-mx":[e]}],"scroll-my":[{"scroll-my":[e]}],"scroll-mt":[{"scroll-mt":[e]}],"scroll-mr":[{"scroll-mr":[e]}],"scroll-mb":[{"scroll-mb":[e]}],"scroll-ml":[{"scroll-ml":[e]}],"scroll-p":[{"scroll-p":[e]}],"scroll-px":[{"scroll-px":[e]}],"scroll-py":[{"scroll-py":[e]}],"scroll-pt":[{"scroll-pt":[e]}],"scroll-pr":[{"scroll-pr":[e]}],"scroll-pb":[{"scroll-pb":[e]}],"scroll-pl":[{"scroll-pl":[e]}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[g]}],stroke:[{stroke:[r]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var $=ar(ur);function pr({name:r,label:e,variant:t="primary",type:o="text",...a}){let{disabled:n,className:i,...s}=a,c=z.useMemo(()=>{switch(t){case"primary":return"focus:border-primary focus:ring-primary";case"secondary":return"focus:border-secondary focus:ring-secondary";case"success":return"focus:border-success focus:ring-success";case"error":return"focus:border-error focus:ring-error";case"warning":return"focus:border-warning focus:ring-warning";default:return"focus:border-gray-600 focus:ring-gray-600"}},[t]);return z.createElement("div",{className:"flex flex-col space-y-2"},z.createElement("label",{htmlFor:r,className:"text-sm font-medium capitalize text-gray-700"},e),z.createElement("input",{className:$("rounded-md border-[1.5px] border-gray-400 bg-default py-[0.375rem] px-3 text-gray-600 shadow-sm transition-colors focus:outline-none focus:ring-1 sm:text-sm",n&&"cursor-not-allowed opacity-50",c,i),id:r,name:r,disabled:n,type:o,autoComplete:o,...s}))}pr.displayName="Input";var zr=pr;export{zr as Input}; | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(r){if(r<1)return{get:function(){},set:function(){}};var e=0,t=new Map,o=new Map;function a(n,i){t.set(n,i),e++,e>r&&(e=0,o=t,t=new Map)}return{get:function(i){var s=t.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return a(i,s),s},set:function(i,s){t.has(i)?t.set(i,s):a(i,s)}}}var $="-";function rr(r){var e=gr(r);function t(a){var n=a.split($);return n[0]===""&&n.length!==1&&n.shift(),er(n,e)||br(a)}function o(a){return r.conflictingClassGroups[a]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function er(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],a=e.nextPart.get(o),n=a?er(r.slice(1),a):void 0;if(n)return n;if(e.validators.length!==0){var i=r.join($);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var Y=/^\[(.+)\]$/;function br(r){if(Y.test(r)){var e=Y.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function gr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},a=vr(Object.entries(r.classGroups),t);return a.forEach(function(n){var i=n[0],s=n[1];O(s,o,i,e)}),o}function O(r,e,t,o){r.forEach(function(a){if(typeof a=="string"){var n=a===""?e:D(e,a);n.classGroupId=t;return}if(typeof a=="function"){if(mr(a)){O(a(o),e,t,o);return}e.validators.push({validator:a,classGroupId:t});return}Object.entries(a).forEach(function(i){var s=i[0],c=i[1];O(c,D(e,s),t,o)})})}function D(r,e){var t=r;return e.split($).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function mr(r){return r.isThemeGetter}function vr(r,e){return e?r.map(function(t){var o=t[0],a=t[1],n=a.map(function(i){return typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var c=s[0],d=s[1];return[e+c,d]})):i});return[o,n]}):r}function tr(r){return T({cache:Q(r.cacheSize)},rr(r))}var yr=/\s+/,or="!";function nr(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,a=new Set;return r.trim().split(yr).map(function(n){var i=hr(n),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:n};var b=xr(s).join(""),m=c?b+or:b;return{isTailwindClass:!0,modifierId:m,classGroupId:p,originalClassName:n}}).reverse().filter(function(n){if(!n.isTailwindClass)return!0;var i=n.modifierId,s=n.classGroupId,c=i+s;return a.has(c)?!1:(a.add(c),o(s).forEach(function(d){return a.add(i+d)}),!0)}).reverse().map(function(n){return n.originalClassName}).join(" ")}function hr(r){for(var e=[],t=0,o=0,a=K(r.matchAll(/[:[\]]/g)),n;!(n=a()).done;){var i=n.value;if(i[0]===":"){if(t===0){var s=i.index+1;e.push(r.substring(o,s)),o=s}}else i[0]==="["?t++:i[0]==="]"&&t--}var c=e.length===0?r:r.substring(o),d=c.startsWith(or),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function xr(r){if(r.length<=1)return r;var e=[],t=[];return r.forEach(function(o){var a=o[0]==="[";a?(e.push.apply(e,t.sort().concat([o])),t=[]):t.push(o)}),e.push.apply(e,t.sort()),e}function ar(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var o,a,n,i=s;function s(d){var p=e[0],b=e.slice(1),m=b.reduce(function(M,y){return y(M)},p());return o=tr(m),a=o.cache.get,n=o.cache.set,i=c,c(d)}function c(d){var p=a(d);if(p)return p;var b=nr(d,o);return n(d,b),b}return function(){for(var p="",b,m=0;m<arguments.length;m+=1)(b=arguments[m])&&(p&&(p+=" "),p+=b);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,wr=/^\d+\/\d+$/,Cr=new Set(["px","full","screen"]),Ir=/^(\d+)?(xs|sm|md|lg|xl)$/,kr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,Ar=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||Cr.has(r)||wr.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||kr.test(t):!1}function ir(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function sr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function lr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function cr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?!Number.isNaN(Number(t))||t.startsWith("number:"):!1}function f(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Number.isInteger(Number(t)):Number.isInteger(Number(r))}function u(r){return w.test(r)}function A(){return!0}function h(r){return Ir.test(r)}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Ar.test(t):!1}function ur(){var r=l("colors"),e=l("spacing"),t=l("blur"),o=l("brightness"),a=l("borderColor"),n=l("borderRadius"),i=l("borderSpacing"),s=l("borderWidth"),c=l("contrast"),d=l("grayscale"),p=l("hueRotate"),b=l("invert"),m=l("gap"),M=l("gradientColorStops"),y=l("inset"),I=l("margin"),x=l("opacity"),k=l("padding"),_=l("saturate"),j=l("scale"),P=l("sepia"),U=l("skew"),F=l("space"),H=l("translate"),E=function(){return["auto","contain","none"]},V=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",e]},B=function(){return["",g]},S=function(){return["auto",f]},Z=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},q=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},N=function(){return["start","end","center","between","around","evenly"]},G=function(){return["","0",u]},X=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[A],spacing:[g],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:B(),contrast:[f],grayscale:G(),hueRotate:[f],invert:G(),gap:[e],gradientColorStops:[r],inset:W(),margin:W(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:G(),skew:[f,u],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(Z(),[u])}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible"],z:[{z:[f]}],basis:[{basis:[e]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[A]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[A]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:N()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:N()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(N(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:W()}],"min-h":[{"min-h":["min","max","fit",g]}],"max-h":[{"max-h":[e,"min","max","fit"]}],"font-size":[{text:["base",h,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",cr]}],"font-family":[{font:[A]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",g]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(Z(),[sr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},lr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[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":[x]}],"border-style":[{border:[].concat(R(),["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":[x]}],"divide-style":[{divide:R()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:[""].concat(R(),["hidden"])}],"outline-offset":[{"outline-offset":[g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,dr]}],"shadow-color":[{shadow:[A]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":q()}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",h,u]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[_]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[f,u]}],"translate-x":[{"translate-x":[H]}],"translate-y":[{"translate-y":[H]}],"skew-x":[{"skew-x":[U]}],"skew-y":[{"skew-y":[U]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[e]}],"scroll-mx":[{"scroll-mx":[e]}],"scroll-my":[{"scroll-my":[e]}],"scroll-mt":[{"scroll-mt":[e]}],"scroll-mr":[{"scroll-mr":[e]}],"scroll-mb":[{"scroll-mb":[e]}],"scroll-ml":[{"scroll-ml":[e]}],"scroll-p":[{"scroll-p":[e]}],"scroll-px":[{"scroll-px":[e]}],"scroll-py":[{"scroll-py":[e]}],"scroll-pt":[{"scroll-pt":[e]}],"scroll-pr":[{"scroll-pr":[e]}],"scroll-pb":[{"scroll-pb":[e]}],"scroll-pl":[{"scroll-pl":[e]}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[g]}],stroke:[{stroke:[r]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var L=ar(ur);function pr({name:r,label:e,hideLabel:t=!1,variant:o="primary",type:a="text",...n}){let{disabled:i,className:s,...c}=n,d=z.useMemo(()=>{switch(o){case"primary":return"focus:border-primary focus:ring-primary";case"secondary":return"focus:border-secondary focus:ring-secondary";case"success":return"focus:border-success focus:ring-success";case"error":return"focus:border-error focus:ring-error";case"warning":return"focus:border-warning focus:ring-warning";default:return"focus:border-gray-600 focus:ring-gray-600"}},[o]);return z.createElement("div",{className:"flex flex-col space-y-2"},z.createElement("label",{htmlFor:r,className:L("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),z.createElement("input",{className:L("rounded-md border-[1.5px] border-gray-400 bg-gray-100 py-[0.375rem] px-3 text-gray-600 shadow-sm transition-colors focus:outline-none focus:ring-1 sm:text-sm",i&&"cursor-not-allowed opacity-50",d,s),id:r,name:r,disabled:i,type:a,autoComplete:a,...c}))}pr.displayName="Input";var zr=pr;export{zr as Input}; |
@@ -6,5 +6,6 @@ import { InputHTMLAttributes } from 'react'; | ||
label: string; | ||
hideLabel?: boolean; | ||
variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error'; | ||
} & InputHTMLAttributes<HTMLInputElement>; | ||
declare function Input({ name, label, variant, type, ...props }: InputProps): JSX.Element; | ||
declare function Input({ name, label, hideLabel, variant, type, ...props }: InputProps): JSX.Element; | ||
declare namespace Input { | ||
@@ -11,0 +12,0 @@ var displayName: string; |
"use strict";var mr=Object.create;var T=Object.defineProperty;var vr=Object.getOwnPropertyDescriptor;var yr=Object.getOwnPropertyNames;var hr=Object.getPrototypeOf,xr=Object.prototype.hasOwnProperty;var wr=(r,e)=>{for(var t in e)T(r,t,{get:e[t],enumerable:!0})},K=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of yr(e))!xr.call(r,n)&&n!==t&&T(r,n,{get:()=>e[n],enumerable:!(o=vr(e,n))||o.enumerable});return r};var Cr=(r,e,t)=>(t=r!=null?mr(hr(r)):{},K(e||!r||!r.__esModule?T(t,"default",{value:r,enumerable:!0}):t,r)),Ir=r=>K(T({},"__esModule",{value:!0}),r);var Nr={};wr(Nr,{Input:()=>gr});module.exports=Ir(Nr);var z=Cr(require("react"));function L(){return L=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},L.apply(this,arguments)}function kr(r,e){if(!!r){if(typeof r=="string")return Q(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Q(r,e)}}function Q(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=r[t];return o}function Y(r,e){var t=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=kr(r))||e&&r&&typeof r.length=="number"){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(r){if(r<1)return{get:function(){},set:function(){}};var e=0,t=new Map,o=new Map;function n(a,i){t.set(a,i),e++,e>r&&(e=0,o=t,t=new Map)}return{get:function(i){var s=t.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return n(i,s),s},set:function(i,s){t.has(i)?t.set(i,s):n(i,s)}}}var $="-";function tr(r){var e=zr(r);function t(n){var a=n.split($);return a[0]===""&&a.length!==1&&a.shift(),or(a,e)||Ar(n)}function o(n){return r.conflictingClassGroups[n]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function or(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],n=e.nextPart.get(o),a=n?or(r.slice(1),n):void 0;if(a)return a;if(e.validators.length!==0){var i=r.join($);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var rr=/^\[(.+)\]$/;function Ar(r){if(rr.test(r)){var e=rr.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function zr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},n=Gr(Object.entries(r.classGroups),t);return n.forEach(function(a){var i=a[0],s=a[1];O(s,o,i,e)}),o}function O(r,e,t,o){r.forEach(function(n){if(typeof n=="string"){var a=n===""?e:er(e,n);a.classGroupId=t;return}if(typeof n=="function"){if(Mr(n)){O(n(o),e,t,o);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(i){var s=i[0],c=i[1];O(c,er(e,s),t,o)})})}function er(r,e){var t=r;return e.split($).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Mr(r){return r.isThemeGetter}function Gr(r,e){return e?r.map(function(t){var o=t[0],n=t[1],a=n.map(function(i){return typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var c=s[0],d=s[1];return[e+c,d]})):i});return[o,a]}):r}function nr(r){return L({cache:D(r.cacheSize)},tr(r))}var Sr=/\s+/,ar="!";function ir(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,n=new Set;return r.trim().split(Sr).map(function(a){var i=Rr(a),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:a};var b=Tr(s).join(""),m=c?b+ar:b;return{isTailwindClass:!0,modifierId:m,classGroupId:p,originalClassName:a}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var i=a.modifierId,s=a.classGroupId,c=i+s;return n.has(c)?!1:(n.add(c),o(s).forEach(function(d){return n.add(i+d)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Rr(r){for(var e=[],t=0,o=0,n=Y(r.matchAll(/[:[\]]/g)),a;!(a=n()).done;){var i=a.value;if(i[0]===":"){if(t===0){var s=i.index+1;e.push(r.substring(o,s)),o=s}}else i[0]==="["?t++:i[0]==="]"&&t--}var c=e.length===0?r:r.substring(o),d=c.startsWith(ar),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function Tr(r){if(r.length<=1)return r;var e=[],t=[];return r.forEach(function(o){var n=o[0]==="[";n?(e.push.apply(e,t.sort().concat([o])),t=[]):t.push(o)}),e.push.apply(e,t.sort()),e}function sr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var o,n,a,i=s;function s(d){var p=e[0],b=e.slice(1),m=b.reduce(function(M,y){return y(M)},p());return o=nr(m),n=o.cache.get,a=o.cache.set,i=c,c(d)}function c(d){var p=n(d);if(p)return p;var b=ir(d,o);return a(d,b),b}return function(){for(var p="",b,m=0;m<arguments.length;m+=1)(b=arguments[m])&&(p&&(p+=" "),p+=b);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,Lr=/^\d+\/\d+$/,jr=new Set(["px","full","screen"]),Er=/^(\d+)?(xs|sm|md|lg|xl)$/,Vr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||jr.has(r)||Lr.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||Vr.test(t):!1}function lr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function cr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function ur(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?!Number.isNaN(Number(t))||t.startsWith("number:"):!1}function f(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Number.isInteger(Number(t)):Number.isInteger(Number(r))}function u(r){return w.test(r)}function A(){return!0}function h(r){return Er.test(r)}function pr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Wr.test(t):!1}function fr(){var r=l("colors"),e=l("spacing"),t=l("blur"),o=l("brightness"),n=l("borderColor"),a=l("borderRadius"),i=l("borderSpacing"),s=l("borderWidth"),c=l("contrast"),d=l("grayscale"),p=l("hueRotate"),b=l("invert"),m=l("gap"),M=l("gradientColorStops"),y=l("inset"),I=l("margin"),x=l("opacity"),k=l("padding"),P=l("saturate"),j=l("scale"),U=l("sepia"),F=l("skew"),H=l("space"),B=l("translate"),E=function(){return["auto","contain","none"]},V=function(){return["auto","hidden","clip","visible","scroll"]},W=function(){return["auto",e]},Z=function(){return["",g]},S=function(){return["auto",f]},q=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},X=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},N=function(){return["start","end","center","between","around","evenly"]},G=function(){return["","0",u]},J=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[A],spacing:[g],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:Z(),contrast:[f],grayscale:G(),hueRotate:[f],invert:G(),gap:[e],gradientColorStops:[r],inset:W(),margin:W(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:G(),skew:[f,u],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(q(),[u])}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible"],z:[{z:[f]}],basis:[{basis:[e]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[A]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[A]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:N()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:N()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(N(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:W()}],"min-h":[{"min-h":["min","max","fit",g]}],"max-h":[{"max-h":[e,"min","max","fit"]}],"font-size":[{text:["base",h,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ur]}],"font-family":[{font:[A]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",g]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(q(),[cr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[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-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":[x]}],"border-style":[{border:[].concat(R(),["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":[x]}],"divide-style":[{divide:R()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(R(),["hidden"])}],"outline-offset":[{"outline-offset":[g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,pr]}],"shadow-color":[{shadow:[A]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",h,u]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[P]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[j]}],"scale-x":[{"scale-x":[j]}],"scale-y":[{"scale-y":[j]}],rotate:[{rotate:[f,u]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[e]}],"scroll-mx":[{"scroll-mx":[e]}],"scroll-my":[{"scroll-my":[e]}],"scroll-mt":[{"scroll-mt":[e]}],"scroll-mr":[{"scroll-mr":[e]}],"scroll-mb":[{"scroll-mb":[e]}],"scroll-ml":[{"scroll-ml":[e]}],"scroll-p":[{"scroll-p":[e]}],"scroll-px":[{"scroll-px":[e]}],"scroll-py":[{"scroll-py":[e]}],"scroll-pt":[{"scroll-pt":[e]}],"scroll-pr":[{"scroll-pr":[e]}],"scroll-pb":[{"scroll-pb":[e]}],"scroll-pl":[{"scroll-pl":[e]}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[g]}],stroke:[{stroke:[r]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var _=sr(fr);function br({name:r,label:e,variant:t="primary",type:o="text",...n}){let{disabled:a,className:i,...s}=n,c=z.useMemo(()=>{switch(t){case"primary":return"focus:border-primary focus:ring-primary";case"secondary":return"focus:border-secondary focus:ring-secondary";case"success":return"focus:border-success focus:ring-success";case"error":return"focus:border-error focus:ring-error";case"warning":return"focus:border-warning focus:ring-warning";default:return"focus:border-gray-600 focus:ring-gray-600"}},[t]);return z.createElement("div",{className:"flex flex-col space-y-2"},z.createElement("label",{htmlFor:r,className:"text-sm font-medium capitalize text-gray-700"},e),z.createElement("input",{className:_("rounded-md border-[1.5px] border-gray-400 bg-default py-[0.375rem] px-3 text-gray-600 shadow-sm transition-colors focus:outline-none focus:ring-1 sm:text-sm",a&&"cursor-not-allowed opacity-50",c,i),id:r,name:r,disabled:a,type:o,autoComplete:o,...s}))}br.displayName="Input";var gr=br;0&&(module.exports={Input}); | ||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(r){if(r<1)return{get:function(){},set:function(){}};var e=0,t=new Map,o=new Map;function n(a,i){t.set(a,i),e++,e>r&&(e=0,o=t,t=new Map)}return{get:function(i){var s=t.get(i);if(s!==void 0)return s;if((s=o.get(i))!==void 0)return n(i,s),s},set:function(i,s){t.has(i)?t.set(i,s):n(i,s)}}}var _="-";function tr(r){var e=zr(r);function t(n){var a=n.split(_);return a[0]===""&&a.length!==1&&a.shift(),or(a,e)||Ar(n)}function o(n){return r.conflictingClassGroups[n]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function or(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],n=e.nextPart.get(o),a=n?or(r.slice(1),n):void 0;if(a)return a;if(e.validators.length!==0){var i=r.join(_);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var rr=/^\[(.+)\]$/;function Ar(r){if(rr.test(r)){var e=rr.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function zr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},n=Gr(Object.entries(r.classGroups),t);return n.forEach(function(a){var i=a[0],s=a[1];$(s,o,i,e)}),o}function $(r,e,t,o){r.forEach(function(n){if(typeof n=="string"){var a=n===""?e:er(e,n);a.classGroupId=t;return}if(typeof n=="function"){if(Mr(n)){$(n(o),e,t,o);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(function(i){var s=i[0],c=i[1];$(c,er(e,s),t,o)})})}function er(r,e){var t=r;return e.split(_).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Mr(r){return r.isThemeGetter}function Gr(r,e){return e?r.map(function(t){var o=t[0],n=t[1],a=n.map(function(i){return typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(function(s){var c=s[0],d=s[1];return[e+c,d]})):i});return[o,a]}):r}function nr(r){return L({cache:D(r.cacheSize)},tr(r))}var Sr=/\s+/,ar="!";function ir(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,n=new Set;return r.trim().split(Sr).map(function(a){var i=Rr(a),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:a};var b=Tr(s).join(""),m=c?b+ar:b;return{isTailwindClass:!0,modifierId:m,classGroupId:p,originalClassName:a}}).reverse().filter(function(a){if(!a.isTailwindClass)return!0;var i=a.modifierId,s=a.classGroupId,c=i+s;return n.has(c)?!1:(n.add(c),o(s).forEach(function(d){return n.add(i+d)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Rr(r){for(var e=[],t=0,o=0,n=Y(r.matchAll(/[:[\]]/g)),a;!(a=n()).done;){var i=a.value;if(i[0]===":"){if(t===0){var s=i.index+1;e.push(r.substring(o,s)),o=s}}else i[0]==="["?t++:i[0]==="]"&&t--}var c=e.length===0?r:r.substring(o),d=c.startsWith(ar),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function Tr(r){if(r.length<=1)return r;var e=[],t=[];return r.forEach(function(o){var n=o[0]==="[";n?(e.push.apply(e,t.sort().concat([o])),t=[]):t.push(o)}),e.push.apply(e,t.sort()),e}function sr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var o,n,a,i=s;function s(d){var p=e[0],b=e.slice(1),m=b.reduce(function(M,y){return y(M)},p());return o=nr(m),n=o.cache.get,a=o.cache.set,i=c,c(d)}function c(d){var p=n(d);if(p)return p;var b=ir(d,o);return a(d,b),b}return function(){for(var p="",b,m=0;m<arguments.length;m+=1)(b=arguments[m])&&(p&&(p+=" "),p+=b);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,Lr=/^\d+\/\d+$/,jr=new Set(["px","full","screen"]),Er=/^(\d+)?(xs|sm|md|lg|xl)$/,Vr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,Wr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||jr.has(r)||Lr.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||Vr.test(t):!1}function lr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function cr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function ur(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?!Number.isNaN(Number(t))||t.startsWith("number:"):!1}function f(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Number.isInteger(Number(t)):Number.isInteger(Number(r))}function u(r){return w.test(r)}function A(){return!0}function h(r){return Er.test(r)}function pr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Wr.test(t):!1}function fr(){var r=l("colors"),e=l("spacing"),t=l("blur"),o=l("brightness"),n=l("borderColor"),a=l("borderRadius"),i=l("borderSpacing"),s=l("borderWidth"),c=l("contrast"),d=l("grayscale"),p=l("hueRotate"),b=l("invert"),m=l("gap"),M=l("gradientColorStops"),y=l("inset"),I=l("margin"),x=l("opacity"),k=l("padding"),P=l("saturate"),E=l("scale"),U=l("sepia"),F=l("skew"),H=l("space"),B=l("translate"),V=function(){return["auto","contain","none"]},W=function(){return["auto","hidden","clip","visible","scroll"]},N=function(){return["auto",e]},Z=function(){return["",g]},S=function(){return["auto",f]},q=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},X=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},O=function(){return["start","end","center","between","around","evenly"]},G=function(){return["","0",u]},J=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[A],spacing:[g],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:Z(),contrast:[f],grayscale:G(),hueRotate:[f],invert:G(),gap:[e],gradientColorStops:[r],inset:N(),margin:N(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:G(),skew:[f,u],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"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"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(q(),[u])}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible"],z:[{z:[f]}],basis:[{basis:[e]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",u]}],grow:[{grow:G()}],shrink:[{shrink:G()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[A]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[A]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",u]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",u]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:O()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:O()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(O(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[I]}],mx:[{mx:[I]}],my:[{my:[I]}],mt:[{mt:[I]}],mr:[{mr:[I]}],mb:[{mb:[I]}],ml:[{ml:[I]}],"space-x":[{"space-x":[H]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[H]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",g]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:N()}],"min-h":[{"min-h":["min","max","fit",g]}],"max-h":[{"max-h":[e,"min","max","fit"]}],"font-size":[{text:["base",h,C]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ur]}],"font-family":[{font:[A]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g]}],"list-style-type":[{list:["none","disc","decimal",u]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[x]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[x]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",g]}],"underline-offset":[{"underline-offset":["auto",g]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[e]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all"]}],content:[{content:["none",u]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[x]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(q(),[cr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",lr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},dr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[M]}],"gradient-via":[{via:[M]}],"gradient-to":[{to:[M]}],rounded:[{rounded:[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[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-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":[x]}],"border-style":[{border:[].concat(R(),["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":[x]}],"divide-style":[{divide:R()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:[""].concat(R(),["hidden"])}],"outline-offset":[{"outline-offset":[g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[g]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,pr]}],"shadow-color":[{shadow:[A]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":X()}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",h,u]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[b]}],saturate:[{saturate:[P]}],sepia:[{sepia:[U]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[b]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",u]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",u]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",u]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[f,u]}],"translate-x":[{"translate-x":[B]}],"translate-y":[{"translate-y":[B]}],"skew-x":[{"skew-x":[F]}],"skew-y":[{"skew-y":[F]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",u]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],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",u]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[e]}],"scroll-mx":[{"scroll-mx":[e]}],"scroll-my":[{"scroll-my":[e]}],"scroll-mt":[{"scroll-mt":[e]}],"scroll-mr":[{"scroll-mr":[e]}],"scroll-mb":[{"scroll-mb":[e]}],"scroll-ml":[{"scroll-ml":[e]}],"scroll-p":[{"scroll-p":[e]}],"scroll-px":[{"scroll-px":[e]}],"scroll-py":[{"scroll-py":[e]}],"scroll-pt":[{"scroll-pt":[e]}],"scroll-pr":[{"scroll-pr":[e]}],"scroll-pb":[{"scroll-pb":[e]}],"scroll-pl":[{"scroll-pl":[e]}],"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","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[g]}],stroke:[{stroke:[r]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],"col-start-end":["col-start","col-end"],"row-start-end":["row-start","row-end"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"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"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"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-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-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-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-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var j=sr(fr);function br({name:r,label:e,hideLabel:t=!1,variant:o="primary",type:n="text",...a}){let{disabled:i,className:s,...c}=a,d=z.useMemo(()=>{switch(o){case"primary":return"focus:border-primary focus:ring-primary";case"secondary":return"focus:border-secondary focus:ring-secondary";case"success":return"focus:border-success focus:ring-success";case"error":return"focus:border-error focus:ring-error";case"warning":return"focus:border-warning focus:ring-warning";default:return"focus:border-gray-600 focus:ring-gray-600"}},[o]);return z.createElement("div",{className:"flex flex-col space-y-2"},z.createElement("label",{htmlFor:r,className:j("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),z.createElement("input",{className:j("rounded-md border-[1.5px] border-gray-400 bg-gray-100 py-[0.375rem] px-3 text-gray-600 shadow-sm transition-colors focus:outline-none focus:ring-1 sm:text-sm",i&&"cursor-not-allowed opacity-50",d,s),id:r,name:r,disabled:i,type:n,autoComplete:n,...c}))}br.displayName="Input";var gr=br;0&&(module.exports={Input}); |
{ | ||
"name": "@elegantui/forms", | ||
"version": "0.0.0-beta.1", | ||
"version": "0.0.0", | ||
"description": "ElegantUI form components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54017
175
1