Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@elegantui/forms

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elegantui/forms - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

4

dist/esm/index.js

@@ -1,2 +0,2 @@

import*as z from"react";function N(){return N=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},N.apply(this,arguments)}function gr(r,e){if(!!r){if(typeof r=="string")return K(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 K(r,e)}}function K(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 Q(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=gr(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 Y(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 er(r){var e=vr(r);function t(a){var n=a.split(_);return n[0]===""&&n.length!==1&&n.shift(),tr(n,e)||mr(a)}function o(a){return r.conflictingClassGroups[a]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function tr(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],a=e.nextPart.get(o),n=a?tr(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 D=/^\[(.+)\]$/;function mr(r){if(D.test(r)){var e=D.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function vr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},a=hr(Object.entries(r.classGroups),t);return a.forEach(function(n){var i=n[0],s=n[1];$(s,o,i,e)}),o}function $(r,e,t,o){r.forEach(function(a){if(typeof a=="string"){var n=a===""?e:rr(e,a);n.classGroupId=t;return}if(typeof a=="function"){if(yr(a)){$(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];$(c,rr(e,s),t,o)})})}function rr(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 yr(r){return r.isThemeGetter}function hr(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 or(r){return N({cache:Y(r.cacheSize)},er(r))}var xr=/\s+/,nr="!";function ar(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,a=new Set;return r.trim().split(xr).map(function(n){var i=wr(n),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:n};var b=Cr(s).join(""),m=c?b+nr: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 wr(r){for(var e=[],t=0,o=0,a=Q(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(nr),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function Cr(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 ir(){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(T,y){return y(T)},p());return o=or(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=ar(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=/^\[(.+)\]$/,kr=/^\d+\/\d+$/,Ir=new Set(["px","full","screen"]),Ar=/^(\d+)?(xs|sm|md|lg|xl)$/,Mr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,zr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||Ir.has(r)||kr.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||Mr.test(t):!1}function sr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function lr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function cr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function dr(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 Ar.test(r)}function ur(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?zr.test(t):!1}function pr(){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"),T=l("gradientColorStops"),y=l("inset"),k=l("margin"),x=l("opacity"),I=l("padding"),P=l("saturate"),j=l("scale"),H=l("sepia"),F=l("skew"),U=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"]},L=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"]},R=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:R(),hueRotate:[f],invert:R(),gap:[e],gradientColorStops:[r],inset:W(),margin:W(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:R(),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:R()}],shrink:[{shrink:R()}],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:[I]}],px:[{px:[I]}],py:[{py:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"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",dr]}],"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(L(),["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(),[lr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},cr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],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(L(),["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:L()}],"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(L(),["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,ur]}],"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:[H]}],"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":[H]}],"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 M=ir(pr);function fr({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:M("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),z.createElement("input",{className:M("rounded-md border-[1.5px] border-gray-400 bg-gray-50 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}))}fr.displayName="Input";var Gr=fr;import*as G from"react";function br({name:r,checkboxText:e,onChange:t,disabled:o,variant:a,value:n,className:i}){let s=G.useMemo(()=>{switch(a){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[a]);return G.createElement("label",{htmlFor:r,className:"inline-flex items-center"},G.createElement("input",{className:M("rounded border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:n,type:"checkbox",onChange:t,disabled:o}),G.createElement("span",{className:"ml-2 text-sm"},e))}br.displayName="Checkbox";var Tr=br;export{Tr as Checkbox,Gr as Input};
import*as R from"react";function j(){return j=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},j.apply(this,arguments)}function vr(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=vr(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=hr(r);function t(n){var a=n.split($);return a[0]===""&&a.length!==1&&a.shift(),or(a,e)||yr(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 yr(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 hr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},n=wr(Object.entries(r.classGroups),t);return n.forEach(function(a){var i=a[0],s=a[1];P(s,o,i,e)}),o}function P(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(xr(n)){P(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];P(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 xr(r){return r.isThemeGetter}function wr(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],u=s[1];return[e+c,u]})):i});return[o,a]}):r}function nr(r){return j({cache:D(r.cacheSize)},tr(r))}var Cr=/\s+/,ar="!";function ir(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,n=new Set;return r.trim().split(Cr).map(function(a){var i=Ir(a),s=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,p=t(u);if(!p)return{isTailwindClass:!1,originalClassName:a};var g=kr(s).join(""),m=c?g+ar:g;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(u){return n.add(i+u)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Ir(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),u=c.startsWith(ar),p=u?c.substring(1):c;return{modifiers:e,hasImportantModifier:u,baseClassName:p}}function kr(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(u){var p=e[0],g=e.slice(1),m=g.reduce(function(G,y){return y(G)},p());return o=nr(m),n=o.cache.get,a=o.cache.set,i=c,c(u)}function c(u){var p=n(u);if(p)return p;var g=ir(u,o);return a(u,g),g}return function(){for(var p="",g,m=0;m<arguments.length;m+=1)(g=arguments[m])&&(p&&(p+=" "),p+=g);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,Ar=/^\d+\/\d+$/,Mr=new Set(["px","full","screen"]),Rr=/^(\d+)?(xs|sm|md|lg|xl)$/,zr=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,Tr=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function b(r){return!Number.isNaN(Number(r))||Mr.has(r)||Ar.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||zr.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 ur(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function dr(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 d(r){return w.test(r)}function M(){return!0}function h(r){return Rr.test(r)}function pr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?Tr.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"),u=l("grayscale"),p=l("hueRotate"),g=l("invert"),m=l("gap"),G=l("gradientColorStops"),y=l("inset"),k=l("margin"),x=l("opacity"),A=l("padding"),_=l("saturate"),E=l("scale"),B=l("sepia"),F=l("skew"),U=l("space"),Z=l("translate"),V=function(){return["auto","contain","none"]},W=function(){return["auto","hidden","clip","visible","scroll"]},O=function(){return["auto",e]},q=function(){return["",b]},L=function(){return["auto",f]},X=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},N=function(){return["solid","dashed","dotted","double","none"]},J=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly"]},S=function(){return["","0",d]},K=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[M],spacing:[b],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:q(),contrast:[f],grayscale:S(),hueRotate:[f],invert:S(),gap:[e],gradientColorStops:[r],inset:O(),margin:O(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:S(),skew:[f,d],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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(X(),[d])}],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",d]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:H()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:H()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[U]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[U]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",b]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:O()}],"min-h":[{"min-h":["min","max","fit",b]}],"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",dr]}],"font-family":[{font:[M]}],"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",b]}],"list-style-type":[{list:["none","disc","decimal",d]}],"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(N(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",b]}],"underline-offset":[{"underline-offset":["auto",b]}],"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",d]}],"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(X(),[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"]},ur]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[G]}],"gradient-via":[{via:[G]}],"gradient-to":[{to:[G]}],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(N(),["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:N()}],"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(N(),["hidden"])}],"outline-offset":[{"outline-offset":[b]}],"outline-w":[{outline:[b]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[b]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,pr]}],"shadow-color":[{shadow:[M]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":J()}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",h,d]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[_]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"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",d]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[f,d]}],"translate-x":[{"translate-x":[Z]}],"translate-y":[{"translate-y":[Z]}],"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",d]}],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",d]}],"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",d]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[b]}],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 I=sr(fr);function gr({name:r,label:e,hideLabel:t=!1,variant:o="primary",type:n="text",...a}){let{disabled:i,className:s,...c}=a,u=R.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 R.createElement("div",{className:"flex flex-col space-y-2"},R.createElement("label",{htmlFor:r,className:I("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),R.createElement("input",{className:I("rounded-md border-[1.5px] border-gray-400 bg-gray-50 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",u,s),id:r,name:r,disabled:i,type:n,autoComplete:n,...c}))}gr.displayName="Input";var Gr=gr;import*as z from"react";function br({name:r,checkboxText:e,onChange:t,disabled:o,variant:n="primary",value:a,className:i}){let s=z.useMemo(()=>{switch(n){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[n]);return z.createElement("label",{htmlFor:r,className:"inline-flex items-center"},z.createElement("input",{className:I("rounded border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:a,type:"checkbox",onChange:t,disabled:o}),z.createElement("span",{className:"ml-2 text-sm"},e))}br.displayName="Checkbox";var Sr=br;import*as T from"react";function mr({name:r,radioButtonText:e,onChange:t,disabled:o,variant:n="primary",value:a,className:i}){let s=T.useMemo(()=>{switch(n){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[n]);return T.createElement("label",{htmlFor:r,className:"inline-flex items-center"},T.createElement("input",{className:I("rounded-full border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:a,type:"radio",onChange:t,disabled:o}),T.createElement("span",{className:"ml-2 text-sm"},e))}mr.displayName="RadioButton";var Lr=mr;export{Sr as Checkbox,Gr as Input,Lr as RadioButton};

@@ -18,3 +18,3 @@ import { InputHTMLAttributes } from 'react';

value: string;
onChange: InputHTMLAttributes<HTMLInputElement>['onChange'];
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
disabled?: boolean;

@@ -29,2 +29,16 @@ variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';

export { Checkbox, Input };
declare type RadioButtonProps = {
name: string;
radioButtonText: string;
value: string;
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
disabled?: boolean;
variant?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
className?: string;
};
declare function RadioButton({ name, radioButtonText, onChange, disabled, variant, value, className: classes }: RadioButtonProps): JSX.Element;
declare namespace RadioButton {
var displayName: string;
}
export { Checkbox, Input, RadioButton };

@@ -1,2 +0,2 @@

"use strict";var xr=Object.create;var N=Object.defineProperty;var wr=Object.getOwnPropertyDescriptor;var Cr=Object.getOwnPropertyNames;var kr=Object.getPrototypeOf,Ir=Object.prototype.hasOwnProperty;var Ar=(r,e)=>{for(var t in e)N(r,t,{get:e[t],enumerable:!0})},Q=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Cr(e))!Ir.call(r,n)&&n!==t&&N(r,n,{get:()=>e[n],enumerable:!(o=wr(e,n))||o.enumerable});return r};var Y=(r,e,t)=>(t=r!=null?xr(kr(r)):{},Q(e||!r||!r.__esModule?N(t,"default",{value:r,enumerable:!0}):t,r)),Mr=r=>Q(N({},"__esModule",{value:!0}),r);var _r={};Ar(_r,{Checkbox:()=>hr,Input:()=>vr});module.exports=Mr(_r);var z=Y(require("react"));function j(){return j=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},j.apply(this,arguments)}function zr(r,e){if(!!r){if(typeof r=="string")return D(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 D(r,e)}}function D(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 rr(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=zr(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 er(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 P="-";function nr(r){var e=Tr(r);function t(n){var a=n.split(P);return a[0]===""&&a.length!==1&&a.shift(),ar(a,e)||Gr(n)}function o(n){return r.conflictingClassGroups[n]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function ar(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],n=e.nextPart.get(o),a=n?ar(r.slice(1),n):void 0;if(a)return a;if(e.validators.length!==0){var i=r.join(P);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var tr=/^\[(.+)\]$/;function Gr(r){if(tr.test(r)){var e=tr.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function Tr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},n=Sr(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:or(e,n);a.classGroupId=t;return}if(typeof n=="function"){if(Rr(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,or(e,s),t,o)})})}function or(r,e){var t=r;return e.split(P).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Rr(r){return r.isThemeGetter}function Sr(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 ir(r){return j({cache:er(r.cacheSize)},nr(r))}var Lr=/\s+/,sr="!";function lr(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,n=new Set;return r.trim().split(Lr).map(function(a){var i=Nr(a),s=i.modifiers,c=i.hasImportantModifier,d=i.baseClassName,p=t(d);if(!p)return{isTailwindClass:!1,originalClassName:a};var b=jr(s).join(""),m=c?b+sr: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 Nr(r){for(var e=[],t=0,o=0,n=rr(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(sr),p=d?c.substring(1):c;return{modifiers:e,hasImportantModifier:d,baseClassName:p}}function jr(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 cr(){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(T,y){return y(T)},p());return o=ir(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=lr(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=/^\[(.+)\]$/,Er=/^\d+\/\d+$/,Vr=new Set(["px","full","screen"]),Wr=/^(\d+)?(xs|sm|md|lg|xl)$/,Or=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,$r=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function g(r){return!Number.isNaN(Number(r))||Vr.has(r)||Er.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||Or.test(t):!1}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function ur(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function pr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function fr(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 Wr.test(r)}function br(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?$r.test(t):!1}function gr(){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"),T=l("gradientColorStops"),y=l("inset"),k=l("margin"),x=l("opacity"),I=l("padding"),H=l("saturate"),E=l("scale"),F=l("sepia"),U=l("skew"),B=l("space"),Z=l("translate"),V=function(){return["auto","contain","none"]},W=function(){return["auto","hidden","clip","visible","scroll"]},O=function(){return["auto",e]},q=function(){return["",g]},S=function(){return["auto",f]},X=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},L=function(){return["solid","dashed","dotted","double","none"]},J=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},$=function(){return["start","end","center","between","around","evenly"]},R=function(){return["","0",u]},K=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:q(),contrast:[f],grayscale:R(),hueRotate:[f],invert:R(),gap:[e],gradientColorStops:[r],inset:O(),margin:O(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:R(),skew:[f,u],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",u]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":K()}],"break-before":[{"break-before":K()}],"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(X(),[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:R()}],shrink:[{shrink:R()}],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:$()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:$()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat($(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[I]}],px:[{px:[I]}],py:[{py:[I]}],pt:[{pt:[I]}],pr:[{pr:[I]}],pb:[{pb:[I]}],pl:[{pl:[I]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[B]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[B]}],"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:O()}],"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",fr]}],"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(L(),["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(X(),[ur])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[T]}],"gradient-via":[{via:[T]}],"gradient-to":[{to:[T]}],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(L(),["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:L()}],"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(L(),["hidden"])}],"outline-offset":[{"outline-offset":[g]}],"outline-w":[{outline:[g]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:q()}],"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,br]}],"shadow-color":[{shadow:[A]}],opacity:[{opacity:[x]}],"mix-blend":[{"mix-blend":J()}],"bg-blend":[{"bg-blend":J()}],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:[H]}],sepia:[{sepia:[F]}],"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":[H]}],"backdrop-sepia":[{"backdrop-sepia":[F]}],"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":[Z]}],"translate-y":[{"translate-y":[Z]}],"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 M=cr(gr);function mr({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:M("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),z.createElement("input",{className:M("rounded-md border-[1.5px] border-gray-400 bg-gray-50 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}))}mr.displayName="Input";var vr=mr;var G=Y(require("react"));function yr({name:r,checkboxText:e,onChange:t,disabled:o,variant:n,value:a,className:i}){let s=G.useMemo(()=>{switch(n){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[n]);return G.createElement("label",{htmlFor:r,className:"inline-flex items-center"},G.createElement("input",{className:M("rounded border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:a,type:"checkbox",onChange:t,disabled:o}),G.createElement("span",{className:"ml-2 text-sm"},e))}yr.displayName="Checkbox";var hr=yr;0&&(module.exports={Checkbox,Input});
"use strict";var Ir=Object.create;var j=Object.defineProperty;var kr=Object.getOwnPropertyDescriptor;var Ar=Object.getOwnPropertyNames;var Mr=Object.getPrototypeOf,Rr=Object.prototype.hasOwnProperty;var zr=(r,e)=>{for(var t in e)j(r,t,{get:e[t],enumerable:!0})},D=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Ar(e))!Rr.call(r,n)&&n!==t&&j(r,n,{get:()=>e[n],enumerable:!(o=kr(e,n))||o.enumerable});return r};var $=(r,e,t)=>(t=r!=null?Ir(Mr(r)):{},D(e||!r||!r.__esModule?j(t,"default",{value:r,enumerable:!0}):t,r)),Tr=r=>D(j({},"__esModule",{value:!0}),r);var Br={};zr(Br,{Checkbox:()=>xr,Input:()=>yr,RadioButton:()=>Cr});module.exports=Tr(Br);var R=$(require("react"));function E(){return E=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},E.apply(this,arguments)}function Gr(r,e){if(!!r){if(typeof r=="string")return rr(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 rr(r,e)}}function rr(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 er(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=Gr(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 tr(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 B="-";function ar(r){var e=Lr(r);function t(n){var a=n.split(B);return a[0]===""&&a.length!==1&&a.shift(),ir(a,e)||Sr(n)}function o(n){return r.conflictingClassGroups[n]||[]}return{getClassGroupId:t,getConflictingClassGroupIds:o}}function ir(r,e){var t;if(r.length===0)return e.classGroupId;var o=r[0],n=e.nextPart.get(o),a=n?ir(r.slice(1),n):void 0;if(a)return a;if(e.validators.length!==0){var i=r.join(B);return(t=e.validators.find(function(s){var c=s.validator;return c(i)}))==null?void 0:t.classGroupId}}var or=/^\[(.+)\]$/;function Sr(r){if(or.test(r)){var e=or.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function Lr(r){var e=r.theme,t=r.prefix,o={nextPart:new Map,validators:[]},n=jr(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:nr(e,n);a.classGroupId=t;return}if(typeof n=="function"){if(Nr(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,nr(e,s),t,o)})})}function nr(r,e){var t=r;return e.split(B).forEach(function(o){t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t}function Nr(r){return r.isThemeGetter}function jr(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],u=s[1];return[e+c,u]})):i});return[o,a]}):r}function sr(r){return E({cache:tr(r.cacheSize)},ar(r))}var Er=/\s+/,lr="!";function cr(r,e){var t=e.getClassGroupId,o=e.getConflictingClassGroupIds,n=new Set;return r.trim().split(Er).map(function(a){var i=Vr(a),s=i.modifiers,c=i.hasImportantModifier,u=i.baseClassName,p=t(u);if(!p)return{isTailwindClass:!1,originalClassName:a};var g=Wr(s).join(""),m=c?g+lr:g;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(u){return n.add(i+u)}),!0)}).reverse().map(function(a){return a.originalClassName}).join(" ")}function Vr(r){for(var e=[],t=0,o=0,n=er(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),u=c.startsWith(lr),p=u?c.substring(1):c;return{modifiers:e,hasImportantModifier:u,baseClassName:p}}function Wr(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 ur(){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(u){var p=e[0],g=e.slice(1),m=g.reduce(function(G,y){return y(G)},p());return o=sr(m),n=o.cache.get,a=o.cache.set,i=c,c(u)}function c(u){var p=n(u);if(p)return p;var g=cr(u,o);return a(u,g),g}return function(){for(var p="",g,m=0;m<arguments.length;m+=1)(g=arguments[m])&&(p&&(p+=" "),p+=g);return i(p)}}function l(r){var e=function(o){return o[r]||[]};return e.isThemeGetter=!0,e}var w=/^\[(.+)\]$/,Or=/^\d+\/\d+$/,Hr=new Set(["px","full","screen"]),Pr=/^(\d+)?(xs|sm|md|lg|xl)$/,$r=/\d+(%|px|em|rem|vh|vw|pt|pc|in|cm|mm|cap|ch|ex|lh|rlh|vi|vb|vmin|vmax)/,_r=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function b(r){return!Number.isNaN(Number(r))||Hr.has(r)||Or.test(r)||C(r)}function C(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("length:")||$r.test(t):!1}function dr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("size:"):!1}function pr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("position:"):!1}function fr(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?t.startsWith("url(")||t.startsWith("url:"):!1}function gr(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 d(r){return w.test(r)}function M(){return!0}function h(r){return Pr.test(r)}function br(r){var e,t=(e=w.exec(r))==null?void 0:e[1];return t?_r.test(t):!1}function mr(){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"),u=l("grayscale"),p=l("hueRotate"),g=l("invert"),m=l("gap"),G=l("gradientColorStops"),y=l("inset"),k=l("margin"),x=l("opacity"),A=l("padding"),F=l("saturate"),V=l("scale"),U=l("sepia"),Z=l("skew"),q=l("space"),X=l("translate"),W=function(){return["auto","contain","none"]},O=function(){return["auto","hidden","clip","visible","scroll"]},H=function(){return["auto",e]},J=function(){return["",b]},L=function(){return["auto",f]},K=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},N=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"]},P=function(){return["start","end","center","between","around","evenly"]},S=function(){return["","0",d]},Y=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]};return{cacheSize:500,theme:{colors:[M],spacing:[b],blur:["none","",h,C],brightness:[f],borderColor:[r],borderRadius:["none","","full",h,C],borderSpacing:[e],borderWidth:J(),contrast:[f],grayscale:S(),hueRotate:[f],invert:S(),gap:[e],gradientColorStops:[r],inset:H(),margin:H(),opacity:[f],padding:[e],saturate:[f],scale:[f],sepia:S(),skew:[f,d],space:[e],translate:[e]},classGroups:{aspect:[{aspect:["auto","square","video",d]}],container:["container"],columns:[{columns:[h]}],"break-after":[{"break-after":Y()}],"break-before":[{"break-before":Y()}],"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(K(),[d])}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],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",d]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",f]}],"grid-cols":[{"grid-cols":[M]}],"col-start-end":[{col:["auto",{span:[f]}]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[M]}],"row-start-end":[{row:["auto",{span:[f]}]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",d]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",d]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:P()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:P()}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(P(),["stretch"])}],"place-items":[{"place-items":["start","end","center","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[k]}],mx:[{mx:[k]}],my:[{my:[k]}],mt:[{mt:[k]}],mr:[{mr:[k]}],mb:[{mb:[k]}],ml:[{ml:[k]}],"space-x":[{"space-x":[q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",e]}],"min-w":[{"min-w":["min","max","fit",b]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[h]},h,C]}],h:[{h:H()}],"min-h":[{"min-h":["min","max","fit",b]}],"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",gr]}],"font-family":[{font:[M]}],"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",b]}],"list-style-type":[{list:["none","disc","decimal",d]}],"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(N(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",b]}],"underline-offset":[{"underline-offset":["auto",b]}],"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",d]}],"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(K(),[pr])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dr]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},fr]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[G]}],"gradient-via":[{via:[G]}],"gradient-to":[{to:[G]}],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(N(),["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:N()}],"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(N(),["hidden"])}],"outline-offset":[{"outline-offset":[b]}],"outline-w":[{outline:[b]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[x]}],"ring-offset-w":[{"ring-offset":[b]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",h,br]}],"shadow-color":[{shadow:[M]}],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,d]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[F]}],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":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[x]}],"backdrop-saturate":[{"backdrop-saturate":[F]}],"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",d]}],duration:[{duration:[f]}],ease:[{ease:["linear","in","out","in-out",d]}],delay:[{delay:[f]}],animate:[{animate:["none","spin","ping","pulse","bounce",d]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[V]}],"scale-x":[{"scale-x":[V]}],"scale-y":[{"scale-y":[V]}],rotate:[{rotate:[f,d]}],"translate-x":[{"translate-x":[X]}],"translate-y":[{"translate-y":[X]}],"skew-x":[{"skew-x":[Z]}],"skew-y":[{"skew-y":[Z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",d]}],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",d]}],"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",d]}],fill:[{fill:[r]}],"stroke-w":[{stroke:[b]}],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 I=ur(mr);function vr({name:r,label:e,hideLabel:t=!1,variant:o="primary",type:n="text",...a}){let{disabled:i,className:s,...c}=a,u=R.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 R.createElement("div",{className:"flex flex-col space-y-2"},R.createElement("label",{htmlFor:r,className:I("text-sm font-medium capitalize text-gray-700",t&&"sr-only")},e),R.createElement("input",{className:I("rounded-md border-[1.5px] border-gray-400 bg-gray-50 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",u,s),id:r,name:r,disabled:i,type:n,autoComplete:n,...c}))}vr.displayName="Input";var yr=vr;var z=$(require("react"));function hr({name:r,checkboxText:e,onChange:t,disabled:o,variant:n="primary",value:a,className:i}){let s=z.useMemo(()=>{switch(n){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[n]);return z.createElement("label",{htmlFor:r,className:"inline-flex items-center"},z.createElement("input",{className:I("rounded border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:a,type:"checkbox",onChange:t,disabled:o}),z.createElement("span",{className:"ml-2 text-sm"},e))}hr.displayName="Checkbox";var xr=hr;var T=$(require("react"));function wr({name:r,radioButtonText:e,onChange:t,disabled:o,variant:n="primary",value:a,className:i}){let s=T.useMemo(()=>{switch(n){case"primary":return"text-primary focus:border-primary focus:ring-primary";case"secondary":return"text-secondary focus:border-secondary focus:ring-secondary";case"success":return"text-success focus:border-success focus:ring-success";case"error":return"text-error focus:border-error focus:ring-error";case"warning":return"text-warning focus:border-warning focus:ring-warning";default:return"text-gray-600 focus:border-gray-600 focus:ring-gray-600"}},[n]);return T.createElement("label",{htmlFor:r,className:"inline-flex items-center"},T.createElement("input",{className:I("rounded-full border-gray-400 bg-gray-50 shadow-sm transition-colors focus:outline-none focus:ring-1 focus:ring-offset-2",o&&"cursor-not-allowed bg-gray-300 opacity-50",s,i),id:r,name:r,value:a,type:"radio",onChange:t,disabled:o}),T.createElement("span",{className:"ml-2 text-sm"},e))}wr.displayName="RadioButton";var Cr=wr;0&&(module.exports={Checkbox,Input,RadioButton});
{
"name": "@elegantui/forms",
"version": "0.1.1",
"version": "0.2.0",
"description": "ElegantUI form components",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc