@mvr-ui/components 1.0.67 → 1.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mvr-ui.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-400:oklch(70.8% 0 0);--color-stone-400:oklch(70.9% .01 56.259);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-tight:1.25;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.contents{display:contents}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-auto{height:auto}.h-screen{height:100vh}.max-h-60{max-height:calc(var(--spacing)*60)}.min-h-\[40px\]{min-height:40px}.w-0{width:calc(var(--spacing)*0)}.w-4{width:calc(var(--spacing)*4)}.w-12{width:calc(var(--spacing)*12)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-full{min-width:100%}.animate-\[bounce_1s_infinite\]{animation:1s infinite bounce}.animate-\[fadeIn_0\.5s_ease-in-out\]{animation:.5s ease-in-out fadeIn}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-\[\#DD052B\]{border-color:#dd052b}.border-destructive{border-color:var(--destructive)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-800{border-color:var(--color-gray-800)}.border-input{border-color:var(--input)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-red-500{border-color:var(--color-red-500)}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-card{background-color:var(--card)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-600{background-color:var(--color-green-600)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[14px\]{font-size:14px}.leading-\[21px\]{--tw-leading:21px;line-height:21px}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--card-foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-stone-400{color:var(--color-stone-400)}.text-white{color:var(--color-white)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-input{--tw-shadow-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.shadow-input{--tw-shadow-color:color-mix(in oklab,var(--input)var(--tw-shadow-alpha),transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.running{animation-play-state:running}.peer-checked\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-gray-500::placeholder{color:var(--color-gray-500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:bottom-0\.5:before{content:var(--tw-content);bottom:calc(var(--spacing)*.5)}.before\:left-0\.5:before{content:var(--tw-content);left:calc(var(--spacing)*.5)}.before\:h-5:before{content:var(--tw-content);height:calc(var(--spacing)*5)}.before\:w-5:before{content:var(--tw-content);width:calc(var(--spacing)*5)}.before\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\:bg-white:before{content:var(--tw-content);background-color:var(--color-white)}.before\:transition:before{content:var(--tw-content);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:duration-300:before{content:var(--tw-content);--tw-duration:.3s;transition-duration:.3s}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.peer-checked\:before\:translate-x-6:is(:where(.peer):checked~*):before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*6);translate:var(--tw-translate-x)var(--tw-translate-y)}.focus-within\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-blue-500:focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-gray-900:hover{background-color:var(--color-gray-900)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:from-blue-700:hover{--tw-gradient-from:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-purple-700:hover{--tw-gradient-to:var(--color-purple-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-amber-500:focus-visible{--tw-ring-color:var(--color-amber-500)}.focus-visible\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\:ring-cyan-500:focus-visible{--tw-ring-color:var(--color-cyan-500)}.focus-visible\:ring-destructive:focus-visible{--tw-ring-color:var(--destructive)}.focus-visible\:ring-gray-400:focus-visible{--tw-ring-color:var(--color-gray-400)}.focus-visible\:ring-gray-500:focus-visible{--tw-ring-color:var(--color-gray-500)}.focus-visible\:ring-gray-700:focus-visible{--tw-ring-color:var(--color-gray-700)}.focus-visible\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-color:var(--color-purple-500)}.focus-visible\:ring-red-500:focus-visible{--tw-ring-color:var(--color-red-500)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-violet-500:focus-visible{--tw-ring-color:var(--color-violet-500)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:translate-y-1:active{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:is(.dark *){border-color:var(--color-gray-700)}.dark\:bg-blue-800:is(.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900:is(.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-red-900\/10:is(.dark *){background-color:#82181a1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/10:is(.dark *){background-color:color-mix(in oklab,var(--color-red-900)10%,transparent)}}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-gray-100:is(.dark *){color:var(--color-gray-100)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-red-200:is(.dark *){color:var(--color-red-200)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:placeholder\:text-gray-400:is(.dark *)::placeholder{color:var(--color-gray-400)}@media (hover:hover){.dark\:hover\:bg-blue-800:is(.dark *):hover{background-color:var(--color-blue-800)}.dark\:hover\:bg-gray-700:is(.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@keyframes wave{0%,to{height:40%}50%{height:80%}}@keyframes clock{0%{transform:translateY(-50%)rotate(0)}to{transform:translateY(-50%)rotate(360deg)}}@keyframes orbit{0%{transform:translate(-50%)rotate(0)translateY(-100%)rotate(0)}to{transform:translate(-50%)rotate(360deg)translateY(-100%)rotate(-360deg)}}@keyframes rotateCube{0%{transform:rotateX(0)rotateY(0)}to{transform:rotateX(360deg)rotateY(360deg)}}@keyframes circleDots{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadePulse{0%,to{opacity:.2}50%{opacity:1}}@keyframes infinity1{0%,to{r:4}50%{r:12}}@keyframes infinity2{0%,to{r:12}50%{r:4}}@keyframes infinity3{0%,to{r:4}50%{r:12}}.animate-wave{animation:1.2s ease-in-out infinite wave}.animate-clock{animation:4s linear infinite clock}.animate-orbit{animation:1.5s linear infinite orbit}.animate-rotateCube{animation:2s linear infinite rotateCube}.animate-circleDots{animation:1.2s linear infinite circleDots}.animate-fadePulse{animation:1.2s ease-in-out infinite fadePulse}.animate-infinity1{animation:1.5s ease-in-out infinite infinity1}.animate-infinity2{animation:1.5s ease-in-out .5s infinite infinity2}.animate-infinity3{animation:1.5s ease-in-out 1s infinite infinity3}.animate-pulseSlow{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-pulseFast{animation:.5s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-bounceSlow{animation:2s infinite bounce}.animate-bounceFast{animation:.5s infinite bounce}.transform-style-3d{transform-style:preserve-3d}.transform-rotateY\(90deg\){transform:rotateY(90deg)}.transform-rotateX\(90deg\){transform:rotateX(90deg)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-content:"";--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-50:oklch(97.1% .013 17.38);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-neutral-400:oklch(70.8% 0 0);--color-stone-400:oklch(70.9% .01 56.259);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height:calc(2.25/1.875);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--leading-tight:1.25;--blur-md:12px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-0{top:calc(var(--spacing)*0)}.top-2{top:calc(var(--spacing)*2)}.right-0{right:calc(var(--spacing)*0)}.right-2{right:calc(var(--spacing)*2)}.right-8{right:calc(var(--spacing)*8)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.z-50{z-index:50}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-6{margin-top:calc(var(--spacing)*6)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.contents{display:contents}.flex{display:flex}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.h-0{height:calc(var(--spacing)*0)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-11{height:calc(var(--spacing)*11)}.h-12{height:calc(var(--spacing)*12)}.h-auto{height:auto}.h-screen{height:100vh}.max-h-60{max-height:calc(var(--spacing)*60)}.min-h-\[40px\]{min-height:40px}.w-0{width:calc(var(--spacing)*0)}.w-4{width:calc(var(--spacing)*4)}.w-12{width:calc(var(--spacing)*12)}.w-fit{width:fit-content}.w-full{width:100%}.max-w-md{max-width:var(--container-md)}.min-w-full{min-width:100%}.animate-\[bounce_1s_infinite\]{animation:1s infinite bounce}.animate-\[fadeIn_0\.5s_ease-in-out\]{animation:.5s ease-in-out fadeIn}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*2)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-x-reverse)))}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-l-lg{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius)}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-r-lg{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius)}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-l-0{border-left-style:var(--tw-border-style);border-left-width:0}.border-\[\#DD052B\]{border-color:#dd052b}.border-destructive{border-color:var(--destructive)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-800{border-color:var(--color-gray-800)}.border-input{border-color:var(--input)}.border-neutral-400{border-color:var(--color-neutral-400)}.border-red-500{border-color:var(--color-red-500)}.border-white\/20{border-color:#fff3}@supports (color:color-mix(in lab, red, red)){.border-white\/20{border-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-100{background-color:var(--color-blue-100)}.bg-blue-600{background-color:var(--color-blue-600)}.bg-card{background-color:var(--card)}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-green-600{background-color:var(--color-green-600)}.bg-purple-600{background-color:var(--color-purple-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-600{background-color:var(--color-red-600)}.bg-transparent{background-color:#0000}.bg-violet-600{background-color:var(--color-violet-600)}.bg-white{background-color:var(--color-white)}.bg-white\/10{background-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.bg-white\/10{background-color:color-mix(in oklab,var(--color-white)10%,transparent)}}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.p-0{padding:calc(var(--spacing)*0)}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-8{padding:calc(var(--spacing)*8)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.px-8{padding-inline:calc(var(--spacing)*8)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-0{padding-top:calc(var(--spacing)*0)}.pr-3{padding-right:calc(var(--spacing)*3)}.pr-10{padding-right:calc(var(--spacing)*10)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.text-left{text-align:left}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[14px\]{font-size:14px}.leading-\[21px\]{--tw-leading:21px;line-height:21px}.leading-none{--tw-leading:1;line-height:1}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-black{color:var(--color-black)}.text-blue-600{color:var(--color-blue-600)}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-blue-900{color:var(--color-blue-900)}.text-card-foreground{color:var(--card-foreground)}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-muted-foreground{color:var(--muted-foreground)}.text-primary{color:var(--primary)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-red-800{color:var(--color-red-800)}.text-stone-400{color:var(--color-stone-400)}.text-white{color:var(--color-white)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-input{--tw-shadow-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.shadow-input{--tw-shadow-color:color-mix(in oklab,var(--input)var(--tw-shadow-alpha),transparent)}}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.backdrop-blur-md{--tw-backdrop-blur:blur(var(--blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.running{animation-play-state:running}.peer-checked\:bg-blue-600:is(:where(.peer):checked~*){background-color:var(--color-blue-600)}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-70:is(:where(.peer):disabled~*){opacity:.7}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.placeholder\:text-gray-500::placeholder{color:var(--color-gray-500)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:bottom-0\.5:before{content:var(--tw-content);bottom:calc(var(--spacing)*.5)}.before\:left-0\.5:before{content:var(--tw-content);left:calc(var(--spacing)*.5)}.before\:h-5:before{content:var(--tw-content);height:calc(var(--spacing)*5)}.before\:w-5:before{content:var(--tw-content);width:calc(var(--spacing)*5)}.before\:rounded-full:before{content:var(--tw-content);border-radius:3.40282e38px}.before\:bg-white:before{content:var(--tw-content);background-color:var(--color-white)}.before\:transition:before{content:var(--tw-content);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.before\:duration-300:before{content:var(--tw-content);--tw-duration:.3s;transition-duration:.3s}.before\:content-\[\'\'\]:before{--tw-content:"";content:var(--tw-content)}.peer-checked\:before\:translate-x-6:is(:where(.peer):checked~*):before{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*6);translate:var(--tw-translate-x)var(--tw-translate-y)}.focus-within\:border-blue-500:focus-within{border-color:var(--color-blue-500)}.focus-within\:ring-2:focus-within{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\:ring-blue-500:focus-within{--tw-ring-color:var(--color-blue-500)}@media (hover:hover){.hover\:bg-amber-600:hover{background-color:var(--color-amber-600)}.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-gray-700:hover{background-color:var(--color-gray-700)}.hover\:bg-gray-800:hover{background-color:var(--color-gray-800)}.hover\:bg-gray-900:hover{background-color:var(--color-gray-900)}.hover\:bg-green-700:hover{background-color:var(--color-green-700)}.hover\:bg-purple-700:hover{background-color:var(--color-purple-700)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}.hover\:bg-violet-700:hover{background-color:var(--color-violet-700)}.hover\:bg-white\/20:hover{background-color:#fff3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-white\/20:hover{background-color:color-mix(in oklab,var(--color-white)20%,transparent)}}.hover\:from-blue-700:hover{--tw-gradient-from:var(--color-blue-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:to-purple-700:hover{--tw-gradient-to:var(--color-purple-700);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.hover\:text-gray-700:hover{color:var(--color-gray-700)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-amber-500:focus-visible{--tw-ring-color:var(--color-amber-500)}.focus-visible\:ring-blue-500:focus-visible{--tw-ring-color:var(--color-blue-500)}.focus-visible\:ring-cyan-500:focus-visible{--tw-ring-color:var(--color-cyan-500)}.focus-visible\:ring-destructive:focus-visible{--tw-ring-color:var(--destructive)}.focus-visible\:ring-gray-400:focus-visible{--tw-ring-color:var(--color-gray-400)}.focus-visible\:ring-gray-500:focus-visible{--tw-ring-color:var(--color-gray-500)}.focus-visible\:ring-gray-700:focus-visible{--tw-ring-color:var(--color-gray-700)}.focus-visible\:ring-green-500:focus-visible{--tw-ring-color:var(--color-green-500)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-color:var(--color-purple-500)}.focus-visible\:ring-red-500:focus-visible{--tw-ring-color:var(--color-red-500)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color:var(--ring)}.focus-visible\:ring-violet-500:focus-visible{--tw-ring-color:var(--color-violet-500)}.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:#ffffff80}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-white\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--color-white)50%,transparent)}}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-none:focus-visible{--tw-outline-style:none;outline-style:none}.active\:translate-y-1:active{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.dark\:border-gray-600:is(.dark *){border-color:var(--color-gray-600)}.dark\:border-gray-700:is(.dark *){border-color:var(--color-gray-700)}.dark\:bg-blue-800:is(.dark *){background-color:var(--color-blue-800)}.dark\:bg-blue-900:is(.dark *){background-color:var(--color-blue-900)}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1c398e33}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-900\/20:is(.dark *){background-color:color-mix(in oklab,var(--color-blue-900)20%,transparent)}}.dark\:bg-gray-800:is(.dark *){background-color:var(--color-gray-800)}.dark\:bg-red-900\/10:is(.dark *){background-color:#82181a1a}@supports (color:color-mix(in lab, red, red)){.dark\:bg-red-900\/10:is(.dark *){background-color:color-mix(in oklab,var(--color-red-900)10%,transparent)}}.dark\:text-blue-200:is(.dark *){color:var(--color-blue-200)}.dark\:text-blue-300:is(.dark *){color:var(--color-blue-300)}.dark\:text-gray-100:is(.dark *){color:var(--color-gray-100)}.dark\:text-gray-400:is(.dark *){color:var(--color-gray-400)}.dark\:text-red-200:is(.dark *){color:var(--color-red-200)}.dark\:text-red-300:is(.dark *){color:var(--color-red-300)}.dark\:text-red-400:is(.dark *){color:var(--color-red-400)}.dark\:text-white:is(.dark *){color:var(--color-white)}.dark\:placeholder\:text-gray-400:is(.dark *)::placeholder{color:var(--color-gray-400)}@media (hover:hover){.dark\:hover\:bg-blue-800:is(.dark *):hover{background-color:var(--color-blue-800)}.dark\:hover\:bg-gray-700:is(.dark *):hover{background-color:var(--color-gray-700)}.dark\:hover\:text-gray-200:is(.dark *):hover{color:var(--color-gray-200)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(14.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(14.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(98.5% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(39.6% .141 25.723);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(26.9% 0 0);--input:oklch(26.9% 0 0);--ring:oklch(43.9% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(26.9% 0 0);--sidebar-ring:oklch(43.9% 0 0)}@keyframes wave{0%,to{height:40%}50%{height:80%}}@keyframes clock{0%{transform:translateY(-50%)rotate(0)}to{transform:translateY(-50%)rotate(360deg)}}@keyframes orbit{0%{transform:translate(-50%)rotate(0)translateY(-100%)rotate(0)}to{transform:translate(-50%)rotate(360deg)translateY(-100%)rotate(-360deg)}}@keyframes rotateCube{0%{transform:rotateX(0)rotateY(0)}to{transform:rotateX(360deg)rotateY(360deg)}}@keyframes circleDots{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadePulse{0%,to{opacity:.2}50%{opacity:1}}@keyframes infinity1{0%,to{r:4}50%{r:12}}@keyframes infinity2{0%,to{r:12}50%{r:4}}@keyframes infinity3{0%,to{r:4}50%{r:12}}.animate-wave{animation:1.2s ease-in-out infinite wave}.animate-clock{animation:4s linear infinite clock}.animate-orbit{animation:1.5s linear infinite orbit}.animate-rotateCube{animation:2s linear infinite rotateCube}.animate-circleDots{animation:1.2s linear infinite circleDots}.animate-fadePulse{animation:1.2s ease-in-out infinite fadePulse}.animate-infinity1{animation:1.5s ease-in-out infinite infinity1}.animate-infinity2{animation:1.5s ease-in-out .5s infinite infinity2}.animate-infinity3{animation:1.5s ease-in-out 1s infinite infinity3}.animate-pulseSlow{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-pulseFast{animation:.5s cubic-bezier(.4,0,.6,1) infinite pulse}.animate-bounceSlow{animation:2s infinite bounce}.animate-bounceFast{animation:.5s infinite bounce}.transform-style-3d{transform-style:preserve-3d}.transform-rotateY\(90deg\){transform:rotateY(90deg)}.transform-rotateX\(90deg\){transform:rotateX(90deg)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}
package/dist/page.d.mts CHANGED
@@ -61,6 +61,92 @@ interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
61
61
  }
62
62
  declare const CheckBoxPrimitive: (props: CheckBoxProps & React$1.RefAttributes<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
63
63
 
64
+ type Alignment = 'horizontal' | 'vertical';
65
+
66
+ type ChangeEvent$2<V> = {
67
+ target: {
68
+ name?: string;
69
+ value: V;
70
+ type: "checkboxgroup";
71
+ checked: boolean;
72
+ };
73
+ };
74
+ type CommonBaseProps$1<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange" | "checked"> & {
75
+ label?: string;
76
+ required?: boolean;
77
+ labelKey: keyof T;
78
+ valueKey: keyof T;
79
+ options: T[];
80
+ alignment?: Alignment;
81
+ className?: string;
82
+ overrideClassName?: boolean;
83
+ helperText?: string;
84
+ error?: string;
85
+ name?: string;
86
+ };
87
+ type CheckboxGroupProps<T, V> = CommonBaseProps$1<T> & {
88
+ typeSet: "field" | "object";
89
+ multiCheck?: boolean;
90
+ value?: V;
91
+ onChange?: (e: ChangeEvent$2<V>) => void;
92
+ };
93
+ interface CheckBoxGroupGenericComponent {
94
+ <T, V>(props: CheckboxGroupProps<T, V> & {
95
+ ref?: React__default.Ref<HTMLInputElement>;
96
+ }): JSX.Element;
97
+ displayName?: string;
98
+ }
99
+ declare const CheckBoxGroup: CheckBoxGroupGenericComponent;
100
+ declare const CheckBoxGroupPrimitive: typeof CheckBoxGroup;
101
+
102
+ type Mode = 'multiple' | 'single';
103
+
104
+ type TypeSet = 'object' | 'field';
105
+
106
+ type AllowedComboValue<T> = string | number | string[] | number[] | T | T[] | undefined;
107
+ type ChangeEvent$1<V> = {
108
+ target: {
109
+ name?: string;
110
+ value: V;
111
+ type: "combobox";
112
+ };
113
+ };
114
+ type CommonProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
115
+ label?: string;
116
+ required?: boolean;
117
+ name: string;
118
+ placeholder?: string;
119
+ labelKey: keyof T;
120
+ valueKey: keyof T;
121
+ options: T[];
122
+ typeSet?: TypeSet;
123
+ mode?: Mode;
124
+ disabled?: boolean;
125
+ ClearEnabled?: boolean;
126
+ helperText?: string;
127
+ error?: boolean;
128
+ className?: string;
129
+ };
130
+ type ComboBoxProps<T, V extends AllowedComboValue<T>> = CommonProps<T> & {
131
+ value?: V;
132
+ onChange?: (e: ChangeEvent$1<V>) => void;
133
+ };
134
+ interface ComboBoxGenericComponent {
135
+ <T, V extends AllowedComboValue<T>>(props: ComboBoxProps<T, V> & {
136
+ ref?: React__default.Ref<HTMLInputElement>;
137
+ }): JSX.Element;
138
+ displayName?: string;
139
+ }
140
+ declare const ComboBox: ComboBoxGenericComponent;
141
+ declare const ComboBoxPrimitive: typeof ComboBox;
142
+
143
+ interface HelperFieldProps {
144
+ children: string;
145
+ className?: string;
146
+ overrideClassName?: boolean;
147
+ }
148
+ declare const HelperFieldPrimitive: (props: HelperFieldProps) => react_jsx_runtime.JSX.Element;
149
+
64
150
  type InputFormatTypeAttribute = "money" | "cpf" | "cnpj" | "cpfCnpj" | "cep" | "mobile" | "phone" | "percentage" | "rg";
65
151
 
66
152
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix"> {
@@ -100,65 +186,59 @@ interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
100
186
  }
101
187
  declare const RadioPrimitive: (props: RadioProps & React$1.RefAttributes<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
102
188
 
103
- interface SelectProps<T extends object> extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
104
- label?: string;
105
- required?: boolean;
106
- options: T[];
107
- labelKey: keyof T;
108
- valueKey: keyof T;
109
- placeholder?: string;
110
- error?: string;
111
- helperText?: string;
112
- }
113
- interface SelectGenericComponent {
114
- <T extends object>(props: SelectProps<T> & {
115
- ref?: React__default.ForwardedRef<HTMLSelectElement>;
116
- }): JSX.Element;
117
- displayName?: string;
118
- }
119
- declare const Select: SelectGenericComponent;
120
- declare const SelectPrimitive: typeof Select;
121
-
122
- type Mode = 'multiple' | 'single';
123
-
124
- type TypeSet = 'object' | 'field';
125
-
126
- type AllowedComboValue<T> = string | number | string[] | number[] | T | T[] | undefined;
127
189
  type ChangeEvent<V> = {
128
190
  target: {
129
191
  name?: string;
130
192
  value: V;
131
- type: "combobox";
193
+ type: "radiogroup";
194
+ checked: boolean;
132
195
  };
133
196
  };
134
- type CommonProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
197
+ type CommonBaseProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
135
198
  label?: string;
136
199
  required?: boolean;
137
- name: string;
138
- placeholder?: string;
139
200
  labelKey: keyof T;
140
201
  valueKey: keyof T;
141
202
  options: T[];
142
- typeSet?: TypeSet;
143
- mode?: Mode;
144
- disabled?: boolean;
145
- ClearEnabled?: boolean;
146
- helperText?: string;
147
- error?: boolean;
203
+ alignment?: Alignment;
148
204
  className?: string;
205
+ overrideClassName?: boolean;
206
+ helperText?: string;
207
+ error?: string;
208
+ name?: string;
149
209
  };
150
- type ComboBoxProps<T, V extends AllowedComboValue<T>> = CommonProps<T> & {
210
+ type RadioGroupProps<T, V> = CommonBaseProps<T> & {
211
+ typeSet: "field" | "object";
151
212
  value?: V;
152
213
  onChange?: (e: ChangeEvent<V>) => void;
153
214
  };
154
- interface ComboBoxGenericComponent {
155
- <T, V extends AllowedComboValue<T>>(props: ComboBoxProps<T, V> & {
215
+ interface RadioGroupGenericComponent {
216
+ <T, V>(props: RadioGroupProps<T, V> & {
156
217
  ref?: React__default.Ref<HTMLInputElement>;
157
218
  }): JSX.Element;
158
219
  displayName?: string;
159
220
  }
160
- declare const ComboBox: ComboBoxGenericComponent;
161
- declare const ComboBoxPrimitive: typeof ComboBox;
221
+ declare const RadioGroup: RadioGroupGenericComponent;
222
+ declare const RadioGroupPrimitive: typeof RadioGroup;
223
+
224
+ interface SelectProps<T extends object> extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
225
+ label?: string;
226
+ required?: boolean;
227
+ options: T[];
228
+ labelKey: keyof T;
229
+ valueKey: keyof T;
230
+ placeholder?: string;
231
+ error?: string;
232
+ helperText?: string;
233
+ }
234
+ interface SelectGenericComponent {
235
+ <T extends object>(props: SelectProps<T> & {
236
+ ref?: React__default.ForwardedRef<HTMLSelectElement>;
237
+ }): JSX.Element;
238
+ displayName?: string;
239
+ }
240
+ declare const Select: SelectGenericComponent;
241
+ declare const SelectPrimitive: typeof Select;
162
242
 
163
243
  interface SwitchHTMLCustomAttributes {
164
244
  label?: string;
@@ -187,11 +267,4 @@ interface ValidateFieldProps {
187
267
  }
188
268
  declare const ValidateFieldPrimitive: (props: ValidateFieldProps) => react_jsx_runtime.JSX.Element;
189
269
 
190
- interface HelperFieldProps {
191
- children: string;
192
- className?: string;
193
- overrideClassName?: boolean;
194
- }
195
- declare const HelperFieldPrimitive: (props: HelperFieldProps) => react_jsx_runtime.JSX.Element;
196
-
197
- export { ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxPrimitive, CheckBoxProps, ComboBoxPrimitive, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, ValidateFieldPrimitive, ValidateFieldProps };
270
+ export { ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ComboBoxPrimitive, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, ValidateFieldPrimitive, ValidateFieldProps };
package/dist/page.d.ts CHANGED
@@ -61,6 +61,92 @@ interface CheckBoxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>
61
61
  }
62
62
  declare const CheckBoxPrimitive: (props: CheckBoxProps & React$1.RefAttributes<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
63
63
 
64
+ type Alignment = 'horizontal' | 'vertical';
65
+
66
+ type ChangeEvent$2<V> = {
67
+ target: {
68
+ name?: string;
69
+ value: V;
70
+ type: "checkboxgroup";
71
+ checked: boolean;
72
+ };
73
+ };
74
+ type CommonBaseProps$1<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange" | "checked"> & {
75
+ label?: string;
76
+ required?: boolean;
77
+ labelKey: keyof T;
78
+ valueKey: keyof T;
79
+ options: T[];
80
+ alignment?: Alignment;
81
+ className?: string;
82
+ overrideClassName?: boolean;
83
+ helperText?: string;
84
+ error?: string;
85
+ name?: string;
86
+ };
87
+ type CheckboxGroupProps<T, V> = CommonBaseProps$1<T> & {
88
+ typeSet: "field" | "object";
89
+ multiCheck?: boolean;
90
+ value?: V;
91
+ onChange?: (e: ChangeEvent$2<V>) => void;
92
+ };
93
+ interface CheckBoxGroupGenericComponent {
94
+ <T, V>(props: CheckboxGroupProps<T, V> & {
95
+ ref?: React__default.Ref<HTMLInputElement>;
96
+ }): JSX.Element;
97
+ displayName?: string;
98
+ }
99
+ declare const CheckBoxGroup: CheckBoxGroupGenericComponent;
100
+ declare const CheckBoxGroupPrimitive: typeof CheckBoxGroup;
101
+
102
+ type Mode = 'multiple' | 'single';
103
+
104
+ type TypeSet = 'object' | 'field';
105
+
106
+ type AllowedComboValue<T> = string | number | string[] | number[] | T | T[] | undefined;
107
+ type ChangeEvent$1<V> = {
108
+ target: {
109
+ name?: string;
110
+ value: V;
111
+ type: "combobox";
112
+ };
113
+ };
114
+ type CommonProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
115
+ label?: string;
116
+ required?: boolean;
117
+ name: string;
118
+ placeholder?: string;
119
+ labelKey: keyof T;
120
+ valueKey: keyof T;
121
+ options: T[];
122
+ typeSet?: TypeSet;
123
+ mode?: Mode;
124
+ disabled?: boolean;
125
+ ClearEnabled?: boolean;
126
+ helperText?: string;
127
+ error?: boolean;
128
+ className?: string;
129
+ };
130
+ type ComboBoxProps<T, V extends AllowedComboValue<T>> = CommonProps<T> & {
131
+ value?: V;
132
+ onChange?: (e: ChangeEvent$1<V>) => void;
133
+ };
134
+ interface ComboBoxGenericComponent {
135
+ <T, V extends AllowedComboValue<T>>(props: ComboBoxProps<T, V> & {
136
+ ref?: React__default.Ref<HTMLInputElement>;
137
+ }): JSX.Element;
138
+ displayName?: string;
139
+ }
140
+ declare const ComboBox: ComboBoxGenericComponent;
141
+ declare const ComboBoxPrimitive: typeof ComboBox;
142
+
143
+ interface HelperFieldProps {
144
+ children: string;
145
+ className?: string;
146
+ overrideClassName?: boolean;
147
+ }
148
+ declare const HelperFieldPrimitive: (props: HelperFieldProps) => react_jsx_runtime.JSX.Element;
149
+
64
150
  type InputFormatTypeAttribute = "money" | "cpf" | "cnpj" | "cpfCnpj" | "cep" | "mobile" | "phone" | "percentage" | "rg";
65
151
 
66
152
  interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "prefix"> {
@@ -100,65 +186,59 @@ interface RadioProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
100
186
  }
101
187
  declare const RadioPrimitive: (props: RadioProps & React$1.RefAttributes<HTMLInputElement>) => react_jsx_runtime.JSX.Element;
102
188
 
103
- interface SelectProps<T extends object> extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
104
- label?: string;
105
- required?: boolean;
106
- options: T[];
107
- labelKey: keyof T;
108
- valueKey: keyof T;
109
- placeholder?: string;
110
- error?: string;
111
- helperText?: string;
112
- }
113
- interface SelectGenericComponent {
114
- <T extends object>(props: SelectProps<T> & {
115
- ref?: React__default.ForwardedRef<HTMLSelectElement>;
116
- }): JSX.Element;
117
- displayName?: string;
118
- }
119
- declare const Select: SelectGenericComponent;
120
- declare const SelectPrimitive: typeof Select;
121
-
122
- type Mode = 'multiple' | 'single';
123
-
124
- type TypeSet = 'object' | 'field';
125
-
126
- type AllowedComboValue<T> = string | number | string[] | number[] | T | T[] | undefined;
127
189
  type ChangeEvent<V> = {
128
190
  target: {
129
191
  name?: string;
130
192
  value: V;
131
- type: "combobox";
193
+ type: "radiogroup";
194
+ checked: boolean;
132
195
  };
133
196
  };
134
- type CommonProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
197
+ type CommonBaseProps<T> = Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "onChange"> & {
135
198
  label?: string;
136
199
  required?: boolean;
137
- name: string;
138
- placeholder?: string;
139
200
  labelKey: keyof T;
140
201
  valueKey: keyof T;
141
202
  options: T[];
142
- typeSet?: TypeSet;
143
- mode?: Mode;
144
- disabled?: boolean;
145
- ClearEnabled?: boolean;
146
- helperText?: string;
147
- error?: boolean;
203
+ alignment?: Alignment;
148
204
  className?: string;
205
+ overrideClassName?: boolean;
206
+ helperText?: string;
207
+ error?: string;
208
+ name?: string;
149
209
  };
150
- type ComboBoxProps<T, V extends AllowedComboValue<T>> = CommonProps<T> & {
210
+ type RadioGroupProps<T, V> = CommonBaseProps<T> & {
211
+ typeSet: "field" | "object";
151
212
  value?: V;
152
213
  onChange?: (e: ChangeEvent<V>) => void;
153
214
  };
154
- interface ComboBoxGenericComponent {
155
- <T, V extends AllowedComboValue<T>>(props: ComboBoxProps<T, V> & {
215
+ interface RadioGroupGenericComponent {
216
+ <T, V>(props: RadioGroupProps<T, V> & {
156
217
  ref?: React__default.Ref<HTMLInputElement>;
157
218
  }): JSX.Element;
158
219
  displayName?: string;
159
220
  }
160
- declare const ComboBox: ComboBoxGenericComponent;
161
- declare const ComboBoxPrimitive: typeof ComboBox;
221
+ declare const RadioGroup: RadioGroupGenericComponent;
222
+ declare const RadioGroupPrimitive: typeof RadioGroup;
223
+
224
+ interface SelectProps<T extends object> extends Omit<React__default.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
225
+ label?: string;
226
+ required?: boolean;
227
+ options: T[];
228
+ labelKey: keyof T;
229
+ valueKey: keyof T;
230
+ placeholder?: string;
231
+ error?: string;
232
+ helperText?: string;
233
+ }
234
+ interface SelectGenericComponent {
235
+ <T extends object>(props: SelectProps<T> & {
236
+ ref?: React__default.ForwardedRef<HTMLSelectElement>;
237
+ }): JSX.Element;
238
+ displayName?: string;
239
+ }
240
+ declare const Select: SelectGenericComponent;
241
+ declare const SelectPrimitive: typeof Select;
162
242
 
163
243
  interface SwitchHTMLCustomAttributes {
164
244
  label?: string;
@@ -187,11 +267,4 @@ interface ValidateFieldProps {
187
267
  }
188
268
  declare const ValidateFieldPrimitive: (props: ValidateFieldProps) => react_jsx_runtime.JSX.Element;
189
269
 
190
- interface HelperFieldProps {
191
- children: string;
192
- className?: string;
193
- overrideClassName?: boolean;
194
- }
195
- declare const HelperFieldPrimitive: (props: HelperFieldProps) => react_jsx_runtime.JSX.Element;
196
-
197
- export { ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxPrimitive, CheckBoxProps, ComboBoxPrimitive, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, ValidateFieldPrimitive, ValidateFieldProps };
270
+ export { ButtonPrimitive, ButtonProps, CardContentPrimitive, CardContentProps, CardDescriptionPrimitive, CardDescriptionProps, CardFooterPrimitive, CardFooterProps, CardHeaderPrimitive, CardHeaderProps, CardPrimitive, CardProps, CardTitlePrimitive, CardTitleProps, CheckBoxGroupPrimitive, CheckBoxPrimitive, CheckBoxProps, ComboBoxPrimitive, HelperFieldPrimitive, HelperFieldProps, InputPrimitive, InputProps, LabelPrimitive, LabelProps, LicenseProvider, RadioGroupPrimitive, RadioPrimitive, RadioProps, SelectPrimitive, SelectProps, SwitchPrimitive, SwitchProps, TextAreaPrimitive, TextAreaProps, ValidateFieldPrimitive, ValidateFieldProps };
package/dist/page.js CHANGED
@@ -1,32 +1,34 @@
1
1
  'use strict';
2
2
 
3
- var bt = require('react');
3
+ var Ct = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
- var Lt = require('clsx');
5
+ var zt = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
7
7
 
8
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
9
 
10
- var bt__default = /*#__PURE__*/_interopDefault(bt);
11
- var Lt__default = /*#__PURE__*/_interopDefault(Lt);
10
+ var Ct__default = /*#__PURE__*/_interopDefault(Ct);
11
+ var zt__default = /*#__PURE__*/_interopDefault(zt);
12
12
 
13
- var fe=bt.createContext(void 0),ct=({message:e})=>jsxRuntime.jsx("div",{className:"flex justify-center items-center h-screen min-w-full bg-red-50 dark:bg-red-900/10 text-red-800 dark:text-red-200 text-xl text-center p-8 transition-colors duration-300",children:jsxRuntime.jsxs("div",{className:"max-w-md animate-[fadeIn_0.5s_ease-in-out]",children:[jsxRuntime.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("span",{className:"animate-[bounce_1s_infinite]",children:"\u26A0\uFE0F"}),"Erro de Licen\xE7a"]}),jsxRuntime.jsx("p",{className:"mb-4 text-red-600 dark:text-red-300",children:e}),jsxRuntime.jsx("p",{className:"text-lg text-red-600 dark:text-red-400",children:"Por favor, entre em contato com o suporte."}),jsxRuntime.jsx("button",{onClick:()=>window.location.reload(),className:"mt-6 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Tentar novamente"})]})}),mt=({children:e,licenseKey:t})=>{let[r,o]=bt.useState(!1),[a,i]=bt.useState(null),[n,l]=bt.useState(!0),s=c=>{if(i(null),!c)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let p="chave-secreta-123";if(c!==p)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");o(!0);};return bt.useEffect(()=>{if(t){l(!0);try{s(t);}catch(c){i(c instanceof Error?c.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),n?null:jsxRuntime.jsx(fe.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:a},children:r?e:jsxRuntime.jsx(ct,{message:a||"Licen\xE7a inv\xE1lida"})})},be=()=>{let e=bt.useContext(fe);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var ve=({message:e="Component locked - Please validate your license"})=>jsxRuntime.jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsxRuntime.jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsxRuntime.jsx("span",{children:e})]});var m=e=>t=>{let{isLicenseValid:r}=be();return r?jsxRuntime.jsx(e,{...t}):jsxRuntime.jsx(ve,{})};function f(...e){return tailwindMerge.twMerge(Lt.clsx(e))}var Te=bt__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:o="md",href:a,children:i,loading:n=!1,loadingContent:l,...s},c)=>{let p="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",b={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},h={xs:"h-7 px-2 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-6 text-lg",xl:"h-12 px-8 text-xl"},d=t?e:f(p,b[r],h[o],e);return a?jsxRuntime.jsx("a",{href:a,className:d,ref:c,children:n&&l?l:i}):jsxRuntime.jsx("button",{className:d,ref:c,...s,children:n&&l?l:i})});Te.displayName="Button";var Pr=m(Te);var ye=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:t?e:f("rounded-lg border bg-card text-card-foreground shadow-sm",e),...o,children:r}));ye.displayName="Card";var Ce=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:t?e:f("flex flex-col space-y-1.5 p-6",e),...o,children:r}));Ce.displayName="CardHeader";var Pe=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("h3",{ref:a,className:t?e:f("text-2xl font-semibold leading-none tracking-tight",e),...o,children:r}));Pe.displayName="CardTitle";var we=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("p",{ref:a,className:t?e:f("text-sm text-muted-foreground",e),...o,children:r}));we.displayName="CardDescription";var Le=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:t?e:f("p-6 pt-0",e),...o,children:r}));Le.displayName="CardContent";var Re=bt.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsxRuntime.jsx("div",{ref:a,className:t?e:f("flex items-center p-6 pt-0",e),...o,children:r}));Re.displayName="CardFooter";var Hr=m(ye),Mr=m(Ce),Fr=m(Pe),Sr=m(we),Vr=m(Le),Ir=m(Re);var gt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx("p",{className:r?t:f("text-sm text-muted-foreground",t),children:e})},E=m(gt);var xt=({children:e,required:t,className:r,overrideClassName:o=!1,...a})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("label",{...a,className:o?r:f("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsxRuntime.jsx("span",{className:"text-red-600",children:"*"})]}),v=m(xt);var Tt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx("p",{className:r?t:f("text-sm text-red-600 dark:text-red-400",t),children:e})},x=m(Tt);var Ne=bt.forwardRef(({label:e,required:t,option:r,orientation:o="left",className:a,overrideClassName:i=!1,helperText:n,error:l,...s},c)=>{let p=bt.useId(),b=f("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l&&"border-destructive",a);return jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(v,{required:t,children:e}),jsxRuntime.jsxs("div",{className:`flex ${o=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsxRuntime.jsx("input",{id:p,type:"checkbox",className:i?a:b,ref:c,...s}),r&&jsxRuntime.jsx(v,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),l&&jsxRuntime.jsx(x,{children:l}),!l&&n&&jsxRuntime.jsx(E,{children:n})]})});Ne.displayName="CheckBox";var ro=m(Ne);var wt=({...e})=>jsxRuntime.jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),U=wt;var Rt=({children:e,before:t,after:r,className:o})=>{let i=Lt__default.default("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},o);return jsxRuntime.jsx("div",{className:i,children:jsxRuntime.jsx("span",{children:e})})},te=Rt;var Et=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),Se=Et;var kt=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),Ie=kt;function Ae(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function $e(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),o=t.slice(-2),n=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${o}`;return e.currentTarget.value=n,e}function De(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Be(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Ke(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function qe(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function Oe(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function _e(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var Nt=({e,mask:t})=>{switch(t){case"money":return $e(e);case"mobile":return Be(e);case"phone":return Ke(e);case"cpfCnpj":return qe(e);case"cpf":return De(e);case"rg":return Oe(e);case"cnpj":return _e(e);case"cep":return Ae(e);default:return e}},Ge=Nt;var Ft=({mask:e,initialValue:t=""})=>{let[r,o]=bt.useState(t);bt.useEffect(()=>{t!==r&&o(t);},[t]);let a=bt.useCallback(n=>{let s=Ge({e:n,mask:e})?.currentTarget?.value??n.currentTarget.value;o(s);},[e]),i=bt.useCallback(()=>o(""),[]);return {value:r,setValue:o,handleChange:a,handleClear:i}},Ue=Ft;var Je=bt.forwardRef(({label:e,required:t=!1,mask:r,name:o,prefix:a,suffix:i,addonBefore:n,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:c,ClearEnabled:p=!0,className:b,overrideClassName:h=!1,error:d,helperText:T,value:L=void 0,onChange:u,...g},y)=>{let C=bt.useId(),{handleChange:M,handleClear:N,setValue:I}=Ue({mask:r,initialValue:L}),A=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!a&&!i&&"px-3",a&&!i&&"pl-10 pr-3",i&&!a&&"pl-3 pr-10",a&&i&&"pl-10 pr-10",n&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",b),X=F=>{M(F),u?.(F);},G=()=>{N(),I(""),u?.({target:{name:o||"",value:""}});};return jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:C,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative flex",children:[n&&jsxRuntime.jsx(te,{before:!0,className:l,children:n}),jsxRuntime.jsxs("div",{className:"relative flex items-center w-full",children:[a&&jsxRuntime.jsx(Se,{children:a}),jsxRuntime.jsx("input",{id:C,ref:y,name:o,onChange:X,className:h?b:A,...g}),p&&L&&jsxRuntime.jsx(U,{onClick:G,width:12,height:12,className:f("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsxRuntime.jsx(Ie,{children:i})]}),s&&jsxRuntime.jsx(te,{after:!0,className:c,children:s})]}),d&&jsxRuntime.jsx(x,{children:d}),!d&&T&&jsxRuntime.jsx(E,{children:T})]})});Je.displayName="Input";var Fo=m(Je);var ze=bt.forwardRef(({label:e,required:t,option:r,className:o,overrideClassName:a,helperText:i,error:n,...l},s)=>{let c=bt.useId(),p=f("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n&&"border-destructive",o);return jsxRuntime.jsxs("div",{className:"space-y-3",children:[e&&jsxRuntime.jsx(v,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{id:c,type:"radio",className:a?o:p,ref:s,...l}),r&&jsxRuntime.jsx(v,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),n&&jsxRuntime.jsx(x,{children:n}),!n&&i&&jsxRuntime.jsx(E,{children:i})]})});ze.displayName="Radio";var qo=m(ze);function Bt({label:e,required:t=!1,options:r,labelKey:o,valueKey:a,placeholder:i,error:n,helperText:l,className:s,...c},p){let b=bt.useId(),h=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n&&"border-red-500 focus-visible:ring-red-500",s);return jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:b,required:t,children:e}),jsxRuntime.jsxs("select",{id:b,ref:p,className:h,...c,children:[i&&jsxRuntime.jsx("option",{value:"",disabled:!0,children:i}),r.map((d,T)=>jsxRuntime.jsx("option",{value:String(d[a]),children:String(d[o])},T))]}),n&&jsxRuntime.jsx(x,{children:n}),!n&&l&&jsxRuntime.jsx(E,{children:l})]})}function Kt(){let e=bt.forwardRef(Bt);return e.displayName="Select",e}var qt=Kt(),Zo=m(qt);var _t=(e,t)=>{bt.useEffect(()=>{let r=o=>{e.current&&!e.current.contains(o.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Qe=_t;function oe({options:e,labelKey:t,valueKey:r,multiple:o,onChange:a,setSearchTerm:i,typeSet:n,name:l}){let[s,c]=bt.useState([]),p=bt.useMemo(()=>new Map(e.map(u=>[String(u[r]),u])),[e,r]),b=bt.useCallback(()=>s.map(u=>p.get(u)).filter(u=>!!u),[s,p]),h=bt.useCallback(u=>{if(!a)return;let g;if(n==="field"?o?g=u:g=u[0]??void 0:o?g=u.map(C=>p.get(C)).filter(C=>C!==void 0):g=p.get(u[0]??"")??void 0,i&&!o){let y=p.get(u[0]??"");y&&i(String(y[t]));}a({target:{name:l,value:g,type:"combobox"}});},[o,a,p,l,n,i,t]),d=bt.useCallback(u=>{let g=String(u[r]),y=o?s.includes(g)?s.filter(C=>C!==g):[...s,g]:[g];c(y),h(y);},[o,s,h,r]),T=bt.useCallback(u=>{let g=s.filter(y=>y!==u);c(g),h(g);},[s,h]),L=bt.useCallback(()=>{c([]),i?.("");let u;n==="field"?u=o?[]:"":u=o?[]:void 0,a?.({target:{name:l,value:u,type:"combobox"}});},[o,a,l,i,n]);return {selectedValues:s,handleSelect:d,handleRemove:T,handleClear:L,getSelectedOptions:b}}function ae(e,t,r){return bt.useMemo(()=>r?e.filter(a=>String(a[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var je=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:o,setSearchTerm:a,selectedValues:i,filteredOptions:n,highlightedIndex:l,setHighlightedIndex:s,handleSelect:c,handleRemove:p})=>{let b=bt.useCallback(d=>{if(n.length===0){s(-1);return}s(T=>T<0?d>0?0:n.length-1:(T+d+n.length)%n.length);},[n,s]);return bt.useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),s(0),d.preventDefault();return}r&&d.key==="Backspace"&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),b(1);break;case"ArrowUp":d.preventDefault(),b(-1);break;case"Enter":d.preventDefault();let T=l>=0?l:0,L=n[T];L&&c(L),r&&a&&a(""),r||(t(!1),s(-1));break;case"Escape":d.preventDefault(),t(!1),s(-1),r||a("");break;case"Tab":t(!1),s(-1);break;case"Home":d.preventDefault(),n.length>0&&s(0);break;case"End":d.preventDefault(),n.length>0&&s(n.length-1);break;case"Backspace":r&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));break}},[e,r,o,i,n,l,t,a,s,c,p,b])};function et({option:e,labelKey:t,valueKey:r,onRemove:o}){let a=String(e[t]),i=String(e[r]);return jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[a,jsxRuntime.jsx("button",{type:"button",onMouseDown:n=>n.preventDefault(),onClick:()=>o(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${a}`,children:"\u2715"})]},i)}function Zt(e,t){let{label:r,required:o=!1,name:a,placeholder:i="Buscar...",labelKey:n,valueKey:l,options:s,value:c,onChange:p,mode:b="single",typeSet:h="field",disabled:d=!1,ClearEnabled:T=!0,helperText:L,error:u=!1,className:g="",...y}=e,C=b==="multiple",[M,N]=bt.useState(!1),[I,A]=bt.useState(""),X=bt.useRef(null),G=bt.useRef(null),F=bt.useRef(null);bt.useImperativeHandle(t,()=>F.current),Qe(G,()=>N(!1));let z=ae(s,n,I),[W,Y]=bt.useState(-1),{selectedValues:Q,handleSelect:ce,handleRemove:me,handleClear:rt,getSelectedOptions:pe}=oe({options:s,labelKey:n,valueKey:l,value:c,multiple:C,onChange:p,typeSet:h,name:a,setSearchTerm:A}),ot=je({isOpen:M,setIsOpen:N,multiple:C,searchTerm:I,setSearchTerm:A,selectedValues:Q,filteredOptions:z,highlightedIndex:W,setHighlightedIndex:Y,handleSelect:ce,handleRemove:me}),$=bt.useId(),at="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",nt=f("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",u?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxRuntime.jsxs("div",{className:`space-y-2 ${g}`,children:[r&&jsxRuntime.jsx(v,{htmlFor:$,required:o,children:r}),jsxRuntime.jsxs("div",{ref:X,className:"relative",children:[jsxRuntime.jsxs("div",{className:nt,children:[C&&pe().length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:pe().map((P,R)=>jsxRuntime.jsx(et,{option:P,labelKey:n,valueKey:l,onRemove:me},String(P[l]??R)))}),jsxRuntime.jsx("input",{ref:F,...y,name:a,type:"text",placeholder:i,value:I,onChange:P=>{let R=P.target.value;A(R),!M&&R.trim()!==""&&N(!0);},onKeyDown:ot,onMouseDown:P=>{document.activeElement===F.current&&(P.preventDefault(),N(R=>{let D=!R;return D&&Y(0),D}));},onFocus:()=>{N(!0),Y(0);},disabled:d,className:at,role:"combobox","aria-expanded":M,"aria-controls":$,"aria-activedescendant":W>=0?`${$}-opt-${W}`:void 0}),T&&!!Q.length&&jsxRuntime.jsx("button",{type:"button",onMouseDown:P=>P.preventDefault(),onClick:rt,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsxRuntime.jsx(U,{width:12,height:12})})]}),M&&jsxRuntime.jsx("div",{ref:G,id:$,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":C||void 0,children:z.length===0?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):z.map((P,R)=>{let D=String(P[l]),Z=Q.includes(D),j=R===W;return jsxRuntime.jsx("button",{id:`${$}-opt-${R}`,"data-index":R,role:"option","aria-selected":Z,type:"button",onMouseDown:it=>it.preventDefault(),onClick:()=>ce(P),className:f("w-full px-3 py-2 text-left text-sm transition-colors",j&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!j&&Z&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!Z&&!j&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsxRuntime.jsx("span",{children:String(P[n])})},D)})})]}),u&&jsxRuntime.jsx(x,{children:u}),!u&&L&&jsxRuntime.jsx(E,{children:L})]})}function jt(){let e=bt.forwardRef(Zt);return e.displayName="ComboBox",e}var er=jt(),La=m(er);var rr=(e,t)=>bt.useMemo(()=>{let r=e?`${e}-group`:void 0,o=e&&t?`${e}-error`:void 0;return {groupId:r,errorId:o,ariaProps:{"aria-labelledby":r,"aria-invalid":t?"true":void 0,"aria-errormessage":t?o:void 0}}},[e,t]),tt=rr;var or=({name:e,label:t,required:r,errors:o,className:a,option:i,...n})=>{let{groupId:l,errorId:s,ariaProps:c}=tt(e,o);return jsxRuntime.jsxs("div",{className:`switch-group ${a}`,children:[t&&jsxRuntime.jsx(v,{htmlFor:e,id:l,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:r,children:t}),jsxRuntime.jsx("div",{...c,children:jsxRuntime.jsxs(v,{htmlFor:e,className:"flex items-center gap-2 cursor-pointer",children:[jsxRuntime.jsxs("div",{className:"relative inline-block w-12 h-6",children:[jsxRuntime.jsx("input",{id:e,name:e,type:"checkbox",className:"opacity-0 w-0 h-0 peer","data-testid":"INPUT_SWITCH"+e,"aria-describedby":s,...n}),jsxRuntime.jsx("span",{className:"absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-300 rounded-full transition duration-300 before:absolute before:content-[''] before:h-5 before:w-5 before:left-0.5 before:bottom-0.5 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:bg-blue-600 peer-checked:before:translate-x-6"})]}),i]})}),o&&jsxRuntime.jsx(x,{children:o})]})},Va=m(or);var ir=({label:e,required:t=!1,errors:r,name:o,maxLength:a,className:i,...n})=>{let[l,s]=bt.useState(0),c=Lt__default.default("px-2 py-3 w-full text-stone-400 text-sm font-normal leading-tight border-2 border-opacity-0 shadow-input rounded-lg focus:outline-none focus:border-blue-500 border-neutral-400",{"border-[#DD052B] border-opacity-80 shadow-inputError":!!r},i??"");return jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:o,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex flex-col justify-center items-end w-full gap-1",children:[jsxRuntime.jsx("textarea",{...n,"data-testid":"TEXT_AREA"+o,name:o,maxLength:a,className:c,onInput:p=>s(p.currentTarget.textLength)}),a&&jsxRuntime.jsx("div",{children:jsxRuntime.jsxs("p",{children:[l," / ",a]})})]}),r&&jsxRuntime.jsx(x,{children:r})]})},_a=m(ir);
13
+ var be=Ct.createContext(void 0),bt=({message:e})=>jsxRuntime.jsx("div",{className:"flex justify-center items-center h-screen min-w-full bg-red-50 dark:bg-red-900/10 text-red-800 dark:text-red-200 text-xl text-center p-8 transition-colors duration-300",children:jsxRuntime.jsxs("div",{className:"max-w-md animate-[fadeIn_0.5s_ease-in-out]",children:[jsxRuntime.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center justify-center gap-2",children:[jsxRuntime.jsx("span",{className:"animate-[bounce_1s_infinite]",children:"\u26A0\uFE0F"}),"Erro de Licen\xE7a"]}),jsxRuntime.jsx("p",{className:"mb-4 text-red-600 dark:text-red-300",children:e}),jsxRuntime.jsx("p",{className:"text-lg text-red-600 dark:text-red-400",children:"Por favor, entre em contato com o suporte."}),jsxRuntime.jsx("button",{onClick:()=>window.location.reload(),className:"mt-6 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Tentar novamente"})]})}),vt=({children:e,licenseKey:t})=>{let[r,o]=Ct.useState(!1),[n,i]=Ct.useState(null),[a,s]=Ct.useState(!0),l=c=>{if(i(null),!c)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let p="chave-secreta-123";if(c!==p)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");o(!0);};return Ct.useEffect(()=>{if(t){s(!0);try{l(t);}catch(c){i(c instanceof Error?c.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{s(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),s(!1);},[t]),a?null:jsxRuntime.jsx(be.Provider,{value:{isLicenseValid:r,validateLicense:l,licenseError:n},children:r?e:jsxRuntime.jsx(bt,{message:n||"Licen\xE7a inv\xE1lida"})})},ve=()=>{let e=Ct.useContext(be);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var he=({message:e="Component locked - Please validate your license"})=>jsxRuntime.jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsxRuntime.jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsxRuntime.jsx("span",{children:e})]});var u=e=>t=>{let{isLicenseValid:r}=ve();return r?jsxRuntime.jsx(e,{...t}):jsxRuntime.jsx(he,{})};function f(...e){return tailwindMerge.twMerge(zt.clsx(e))}var ye=Ct__default.default.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:o="md",href:n,children:i,loading:a=!1,loadingContent:s,...l},c)=>{let p="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",x={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},h={xs:"h-7 px-2 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-6 text-lg",xl:"h-12 px-8 text-xl"},d=t?e:f(p,x[r],h[o],e);return n?jsxRuntime.jsx("a",{href:n,className:d,ref:c,children:a&&s?s:i}):jsxRuntime.jsx("button",{className:d,ref:c,...l,children:a&&s?s:i})});ye.displayName="Button";var Br=u(ye);var Pe=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("div",{ref:n,className:t?e:f("rounded-lg border bg-card text-card-foreground shadow-sm",e),...o,children:r}));Pe.displayName="Card";var we=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("div",{ref:n,className:t?e:f("flex flex-col space-y-1.5 p-6",e),...o,children:r}));we.displayName="CardHeader";var Le=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("h3",{ref:n,className:t?e:f("text-2xl font-semibold leading-none tracking-tight",e),...o,children:r}));Le.displayName="CardTitle";var Re=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("p",{ref:n,className:t?e:f("text-sm text-muted-foreground",e),...o,children:r}));Re.displayName="CardDescription";var ke=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("div",{ref:n,className:t?e:f("p-6 pt-0",e),...o,children:r}));ke.displayName="CardContent";var Ne=Ct.forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsxRuntime.jsx("div",{ref:n,className:t?e:f("flex items-center p-6 pt-0",e),...o,children:r}));Ne.displayName="CardFooter";var Wr=u(Pe),Xr=u(we),Ur=u(Le),zr=u(Re),Yr=u(ke),Zr=u(Ne);var yt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx("p",{className:r?t:f("text-sm text-muted-foreground",t),children:e})},V=u(yt);var wt=({children:e,required:t,className:r,overrideClassName:o=!1,...n})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-1",children:[jsxRuntime.jsx("label",{...n,className:o?r:f("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsxRuntime.jsx("span",{className:"text-red-600",children:"*"})]}),v=u(wt);var Rt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsxRuntime.jsx("p",{className:r?t:f("text-sm text-red-600 dark:text-red-400",t),children:e})},L=u(Rt);var Fe=Ct.forwardRef(({label:e,required:t,option:r,orientation:o="left",className:n,overrideClassName:i=!1,helperText:a,error:s,...l},c)=>{let p=Ct.useId(),x=f("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",n);return jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(v,{required:t,children:e}),jsxRuntime.jsxs("div",{className:`flex ${o=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsxRuntime.jsx("input",{id:p,type:"checkbox",className:i?n:x,ref:c,...l}),r&&jsxRuntime.jsx(v,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),s&&jsxRuntime.jsx(L,{children:s}),!s&&a&&jsxRuntime.jsx(V,{children:a})]})});Fe.displayName="CheckBox";var ho=u(Fe);function It(e,t){let{typeSet:r="field",multiCheck:o=!1,value:n,onChange:i,labelKey:a,valueKey:s,options:l,alignment:c="vertical",className:p,overrideClassName:x=!1,helperText:h,error:d,label:T,name:R,required:g,...C}=e,P=Ct.useId(),y=Ct.useMemo(()=>new Map(l.map(m=>[String(m[s]),m])),[l,s]),E=Ct.useMemo(()=>n==null?[]:r==="field"?o?n.map(m=>String(m)):[String(n)]:o?n.map(m=>String(m[s])):[String(n[s])],[n,r,o,s]),M=(m,b)=>{if(!i)return;let k;if(r==="field")if(o)k=m.map(N=>{let B=y.get(N);return B?B[s]:N});else {let F=m[0];if(!F)k=void 0;else {let N=y.get(F);k=N?N[s]:F;}}else o?k=m.map(N=>y.get(N)).filter(N=>N!==void 0):k=y.get(m[0]??"")??void 0;i({target:{name:R,value:k,type:"checkboxgroup",checked:b}});},$=m=>{let b;o?b=E.includes(m)?E.filter(k=>k!==m):[...E,m]:b=E[0]===m?[]:[m],M(b,b.includes(m));},w=c==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",I=f("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",d&&"border-destructive");return jsxRuntime.jsxs("div",{className:f("flex flex-col gap-3",p),children:[T&&jsxRuntime.jsx(v,{required:g,children:T}),jsxRuntime.jsx("div",{className:w,children:l.map((m,b)=>{let k=String(m[s]),F=E.includes(k),N=`${P}-${k}-${b}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...C,id:N,ref:t,type:"checkbox",name:R,checked:F,onChange:()=>$(k),className:x?p:I}),jsxRuntime.jsx(v,{htmlFor:N,children:String(m[a])})]},N)})}),!!d&&jsxRuntime.jsx(L,{children:String(d)}),!d&&h&&jsxRuntime.jsx(V,{children:h})]})}function St(){let e=Ct.forwardRef(It);return e.displayName="CheckBoxGroup",e}var Ht=St(),Vo=u(Ht);var Mt=({...e})=>jsxRuntime.jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsxRuntime.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Q=Mt;var $t=(e,t)=>{Ct.useEffect(()=>{let r=o=>{e.current&&!e.current.contains(o.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Me=$t;function oe({options:e,labelKey:t,valueKey:r,multiple:o,onChange:n,setSearchTerm:i,typeSet:a,name:s}){let[l,c]=Ct.useState([]),p=Ct.useMemo(()=>new Map(e.map(g=>[String(g[r]),g])),[e,r]),x=Ct.useCallback(()=>l.map(g=>p.get(g)).filter(g=>!!g),[l,p]),h=Ct.useCallback(g=>{if(!n)return;let C;if(a==="field"?o?C=g:C=g[0]??void 0:o?C=g.map(y=>p.get(y)).filter(y=>y!==void 0):C=p.get(g[0]??"")??void 0,i&&!o){let P=p.get(g[0]??"");P&&i(String(P[t]));}n({target:{name:s,value:C,type:"combobox"}});},[o,n,p,s,a,i,t]),d=Ct.useCallback(g=>{let C=String(g[r]),P=o?l.includes(C)?l.filter(y=>y!==C):[...l,C]:[C];c(P),h(P);},[o,l,h,r]),T=Ct.useCallback(g=>{let C=l.filter(P=>P!==g);c(C),h(C);},[l,h]),R=Ct.useCallback(()=>{c([]),i?.("");let g;a==="field"?g=o?[]:"":g=o?[]:void 0,n?.({target:{name:s,value:g,type:"combobox"}});},[o,n,s,i,a]);return {selectedValues:l,handleSelect:d,handleRemove:T,handleClear:R,getSelectedOptions:x}}function ne(e,t,r){return Ct.useMemo(()=>r?e.filter(n=>String(n[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var $e=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:o,setSearchTerm:n,selectedValues:i,filteredOptions:a,highlightedIndex:s,setHighlightedIndex:l,handleSelect:c,handleRemove:p})=>{let x=Ct.useCallback(d=>{if(a.length===0){l(-1);return}l(T=>T<0?d>0?0:a.length-1:(T+d+a.length)%a.length);},[a,l]);return Ct.useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),l(0),d.preventDefault();return}r&&d.key==="Backspace"&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),x(1);break;case"ArrowUp":d.preventDefault(),x(-1);break;case"Enter":d.preventDefault();let T=s>=0?s:0,R=a[T];R&&c(R),r&&n&&n(""),r||(t(!1),l(-1));break;case"Escape":d.preventDefault(),t(!1),l(-1),r||n("");break;case"Tab":t(!1),l(-1);break;case"Home":d.preventDefault(),a.length>0&&l(0);break;case"End":d.preventDefault(),a.length>0&&l(a.length-1);break;case"Backspace":r&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));break}},[e,r,o,i,a,s,t,n,l,c,p,x])};function De({option:e,labelKey:t,valueKey:r,onRemove:o}){let n=String(e[t]),i=String(e[r]);return jsxRuntime.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[n,jsxRuntime.jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>o(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${n}`,children:"\u2715"})]},i)}function Wt(e,t){let{label:r,required:o=!1,name:n,placeholder:i="Buscar...",labelKey:a,valueKey:s,options:l,value:c,onChange:p,mode:x="single",typeSet:h="field",disabled:d=!1,ClearEnabled:T=!0,helperText:R,error:g=!1,className:C="",...P}=e,y=x==="multiple",[E,M]=Ct.useState(!1),[$,w]=Ct.useState(""),I=Ct.useRef(null),m=Ct.useRef(null),b=Ct.useRef(null);Ct.useImperativeHandle(t,()=>b.current),Me(m,()=>M(!1));let k=ne(l,a,$),[F,N]=Ct.useState(-1),{selectedValues:B,handleSelect:pe,handleRemove:ue,handleClear:lt,getSelectedOptions:fe}=oe({options:l,labelKey:a,valueKey:s,value:c,multiple:y,onChange:p,typeSet:h,name:n,setSearchTerm:w}),dt=$e({isOpen:E,setIsOpen:M,multiple:y,searchTerm:$,setSearchTerm:w,selectedValues:B,filteredOptions:k,highlightedIndex:F,setHighlightedIndex:N,handleSelect:pe,handleRemove:ue}),J=Ct.useId(),ct="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",mt=f("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",g?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxRuntime.jsxs("div",{className:`space-y-2 ${C}`,children:[r&&jsxRuntime.jsx(v,{htmlFor:J,required:o,children:r}),jsxRuntime.jsxs("div",{ref:I,className:"relative",children:[jsxRuntime.jsxs("div",{className:mt,children:[y&&fe().length>0&&jsxRuntime.jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:fe().map((S,A)=>jsxRuntime.jsx(De,{option:S,labelKey:a,valueKey:s,onRemove:ue},String(S[s]??A)))}),jsxRuntime.jsx("input",{ref:b,...P,name:n,type:"text",placeholder:i,value:$,onChange:S=>{let A=S.target.value;w(A),!E&&A.trim()!==""&&M(!0);},onKeyDown:dt,onMouseDown:S=>{document.activeElement===b.current&&(S.preventDefault(),M(A=>{let W=!A;return W&&N(0),W}));},onFocus:()=>{M(!0),N(0);},disabled:d,className:ct,role:"combobox","aria-expanded":E,"aria-controls":J,"aria-activedescendant":F>=0?`${J}-opt-${F}`:void 0}),T&&!!B.length&&jsxRuntime.jsx("button",{type:"button",onMouseDown:S=>S.preventDefault(),onClick:lt,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsxRuntime.jsx(Q,{width:12,height:12})})]}),E&&jsxRuntime.jsx("div",{ref:m,id:J,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":y||void 0,children:k.length===0?jsxRuntime.jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):k.map((S,A)=>{let W=String(S[s]),ee=B.includes(W),te=A===F;return jsxRuntime.jsx("button",{id:`${J}-opt-${A}`,"data-index":A,role:"option","aria-selected":ee,type:"button",onMouseDown:pt=>pt.preventDefault(),onClick:()=>pe(S),className:f("w-full px-3 py-2 text-left text-sm transition-colors",te&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!te&&ee&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!ee&&!te&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsxRuntime.jsx("span",{children:String(S[a])})},W)})})]}),g&&jsxRuntime.jsx(L,{children:g}),!g&&R&&jsxRuntime.jsx(V,{children:R})]})}function Xt(){let e=Ct.forwardRef(Wt);return e.displayName="ComboBox",e}var Ut=Xt(),an=u(Ut);var Yt=({children:e,before:t,after:r,className:o})=>{let i=zt__default.default("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},o);return jsxRuntime.jsx("div",{className:i,children:jsxRuntime.jsx("span",{children:e})})},le=Yt;var Zt=({children:e})=>jsxRuntime.jsx("div",{className:"absolute px-2",children:jsxRuntime.jsx("span",{children:e})}),Ke=Zt;var Qt=({children:e})=>jsxRuntime.jsx("div",{className:"absolute right-0 px-2",children:jsxRuntime.jsx("span",{children:e})}),qe=Qt;function _e(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Je(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),o=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${o}`;return e.currentTarget.value=a,e}function We(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Xe(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Ue(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function ze(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function Ye(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function Ze(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var jt=({e,mask:t})=>{switch(t){case"money":return Je(e);case"mobile":return Xe(e);case"phone":return Ue(e);case"cpfCnpj":return ze(e);case"cpf":return We(e);case"rg":return Ye(e);case"cnpj":return Ze(e);case"cep":return _e(e);default:return e}},Qe=jt;var rr=({mask:e,initialValue:t=""})=>{let[r,o]=Ct.useState(t);Ct.useEffect(()=>{t!==r&&o(t);},[t]);let n=Ct.useCallback(a=>{let l=Qe({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;o(l);},[e]),i=Ct.useCallback(()=>o(""),[]);return {value:r,setValue:o,handleChange:n,handleClear:i}},et=rr;var tt=Ct.forwardRef(({label:e,required:t=!1,mask:r,name:o,prefix:n,suffix:i,addonBefore:a,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:c,ClearEnabled:p=!0,className:x,overrideClassName:h=!1,error:d,helperText:T,value:R=void 0,onChange:g,...C},P)=>{let y=Ct.useId(),{handleChange:E,handleClear:M,setValue:$}=et({mask:r,initialValue:R}),w=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!n&&!i&&"px-3",n&&!i&&"pl-10 pr-3",i&&!n&&"pl-3 pr-10",n&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",l&&"rounded-r-none border-r-0",x),I=b=>{E(b),g?.(b);},m=()=>{M(),$(""),g?.({target:{name:o||"",value:""}});};return jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:y,required:t,children:e}),jsxRuntime.jsxs("div",{className:"relative flex",children:[a&&jsxRuntime.jsx(le,{before:!0,className:s,children:a}),jsxRuntime.jsxs("div",{className:"relative flex items-center w-full",children:[n&&jsxRuntime.jsx(Ke,{children:n}),jsxRuntime.jsx("input",{id:y,ref:P,name:o,onChange:I,className:h?x:w,...C}),p&&R&&jsxRuntime.jsx(Q,{onClick:m,width:12,height:12,className:f("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsxRuntime.jsx(qe,{children:i})]}),l&&jsxRuntime.jsx(le,{after:!0,className:c,children:l})]}),d&&jsxRuntime.jsx(L,{children:d}),!d&&T&&jsxRuntime.jsx(V,{children:T})]})});tt.displayName="Input";var Sn=u(tt);var ot=Ct.forwardRef(({label:e,required:t,option:r,className:o,overrideClassName:n,helperText:i,error:a,...s},l)=>{let c=Ct.useId(),p=f("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-destructive",o);return jsxRuntime.jsxs("div",{className:"space-y-3",children:[e&&jsxRuntime.jsx(v,{required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex items-center space-x-2",children:[jsxRuntime.jsx("input",{id:c,type:"radio",className:n?o:p,ref:l,...s}),r&&jsxRuntime.jsx(v,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),a&&jsxRuntime.jsx(L,{children:a}),!a&&i&&jsxRuntime.jsx(V,{children:i})]})});ot.displayName="Radio";var On=u(ot);function dr(e,t){let{label:r,required:o,name:n,labelKey:i,valueKey:a,options:s,alignment:l="vertical",className:c,overrideClassName:p=!1,helperText:x,error:h,typeSet:d="field",value:T,onChange:R,...g}=e,C=Ct.useId(),P=Ct.useMemo(()=>new Map(s.map(w=>[String(w[a]),w])),[s,a]),y=Ct.useMemo(()=>T==null?"":String(d==="field"?T:T[a]),[T,d,a]),E=w=>{if(!R)return;let I;if(d==="field"){let m=P.get(w);if(m)I=m[a];else {let b=Number(w);I=Number.isNaN(b)?w:b;}}else I=P.get(w)??void 0;R({target:{name:n,value:I,type:"radiogroup",checked:!0}});},M=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=f("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",h&&"border-destructive");return jsxRuntime.jsxs("div",{className:f("flex flex-col gap-3",c),children:[r&&jsxRuntime.jsx(v,{required:o,children:r}),jsxRuntime.jsx("div",{className:M,children:s.map((w,I)=>{let m=String(w[a]),b=`${C}-${m}-${I}`;return jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("input",{...g,id:b,ref:t,name:n,type:"radio",checked:y===m,onChange:()=>E(m),className:p?c:$}),jsxRuntime.jsx(v,{htmlFor:b,children:String(w[i])})]},b)})}),h&&jsxRuntime.jsx(L,{children:String(h)}),!h&&x&&jsxRuntime.jsx(V,{children:x})]})}function cr(){let e=Ct.forwardRef(dr);return e.displayName="RadioGroup",e}var mr=cr(),jn=u(mr);function fr({label:e,required:t=!1,options:r,labelKey:o,valueKey:n,placeholder:i,error:a,helperText:s,className:l,...c},p){let x=Ct.useId(),h=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",l);return jsxRuntime.jsxs("div",{className:"space-y-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:x,required:t,children:e}),jsxRuntime.jsxs("select",{id:x,ref:p,className:h,...c,children:[i&&jsxRuntime.jsx("option",{value:"",disabled:!0,children:i}),r.map((d,T)=>jsxRuntime.jsx("option",{value:String(d[n]),children:String(d[o])},T))]}),a&&jsxRuntime.jsx(L,{children:a}),!a&&s&&jsxRuntime.jsx(V,{children:s})]})}function gr(){let e=Ct.forwardRef(fr);return e.displayName="Select",e}var br=gr(),ca=u(br);var xr=(e,t)=>Ct.useMemo(()=>{let r=e?`${e}-group`:void 0,o=e&&t?`${e}-error`:void 0;return {groupId:r,errorId:o,ariaProps:{"aria-labelledby":r,"aria-invalid":t?"true":void 0,"aria-errormessage":t?o:void 0}}},[e,t]),st=xr;var hr=({name:e,label:t,required:r,errors:o,className:n,option:i,...a})=>{let{groupId:s,errorId:l,ariaProps:c}=st(e,o);return jsxRuntime.jsxs("div",{className:`switch-group ${n}`,children:[t&&jsxRuntime.jsx(v,{htmlFor:e,id:s,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:r,children:t}),jsxRuntime.jsx("div",{...c,children:jsxRuntime.jsxs(v,{htmlFor:e,className:"flex items-center gap-2 cursor-pointer",children:[jsxRuntime.jsxs("div",{className:"relative inline-block w-12 h-6",children:[jsxRuntime.jsx("input",{id:e,name:e,type:"checkbox",className:"opacity-0 w-0 h-0 peer","data-testid":"INPUT_SWITCH"+e,"aria-describedby":l,...a}),jsxRuntime.jsx("span",{className:"absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-300 rounded-full transition duration-300 before:absolute before:content-[''] before:h-5 before:w-5 before:left-0.5 before:bottom-0.5 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:bg-blue-600 peer-checked:before:translate-x-6"})]}),i]})}),o&&jsxRuntime.jsx(L,{children:o})]})},ha=u(hr);var yr=({label:e,required:t=!1,errors:r,name:o,maxLength:n,className:i,...a})=>{let[s,l]=Ct.useState(0),c=zt__default.default("px-2 py-3 w-full text-stone-400 text-sm font-normal leading-tight border-2 border-opacity-0 shadow-input rounded-lg focus:outline-none focus:border-blue-500 border-neutral-400",{"border-[#DD052B] border-opacity-80 shadow-inputError":!!r},i??"");return jsxRuntime.jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsxRuntime.jsx(v,{htmlFor:o,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:t,children:e}),jsxRuntime.jsxs("div",{className:"flex flex-col justify-center items-end w-full gap-1",children:[jsxRuntime.jsx("textarea",{...a,"data-testid":"TEXT_AREA"+o,name:o,maxLength:n,className:c,onInput:p=>l(p.currentTarget.textLength)}),n&&jsxRuntime.jsx("div",{children:jsxRuntime.jsxs("p",{children:[s," / ",n]})})]}),r&&jsxRuntime.jsx(L,{children:r})]})},Na=u(yr);
14
14
 
15
- exports.ButtonPrimitive = Pr;
16
- exports.CardContentPrimitive = Vr;
17
- exports.CardDescriptionPrimitive = Sr;
18
- exports.CardFooterPrimitive = Ir;
19
- exports.CardHeaderPrimitive = Mr;
20
- exports.CardPrimitive = Hr;
21
- exports.CardTitlePrimitive = Fr;
22
- exports.CheckBoxPrimitive = ro;
23
- exports.ComboBoxPrimitive = La;
24
- exports.HelperFieldPrimitive = E;
25
- exports.InputPrimitive = Fo;
15
+ exports.ButtonPrimitive = Br;
16
+ exports.CardContentPrimitive = Yr;
17
+ exports.CardDescriptionPrimitive = zr;
18
+ exports.CardFooterPrimitive = Zr;
19
+ exports.CardHeaderPrimitive = Xr;
20
+ exports.CardPrimitive = Wr;
21
+ exports.CardTitlePrimitive = Ur;
22
+ exports.CheckBoxGroupPrimitive = Vo;
23
+ exports.CheckBoxPrimitive = ho;
24
+ exports.ComboBoxPrimitive = an;
25
+ exports.HelperFieldPrimitive = V;
26
+ exports.InputPrimitive = Sn;
26
27
  exports.LabelPrimitive = v;
27
- exports.LicenseProvider = mt;
28
- exports.RadioPrimitive = qo;
29
- exports.SelectPrimitive = Zo;
30
- exports.SwitchPrimitive = Va;
31
- exports.TextAreaPrimitive = _a;
32
- exports.ValidateFieldPrimitive = x;
28
+ exports.LicenseProvider = vt;
29
+ exports.RadioGroupPrimitive = jn;
30
+ exports.RadioPrimitive = On;
31
+ exports.SelectPrimitive = ca;
32
+ exports.SwitchPrimitive = ha;
33
+ exports.TextAreaPrimitive = Na;
34
+ exports.ValidateFieldPrimitive = L;
package/dist/page.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import bt, { createContext, forwardRef, useId, useState, useEffect, useCallback, useRef, useImperativeHandle, useContext, useMemo } from 'react';
1
+ import Ct, { createContext, forwardRef, useId, useState, useEffect, useMemo, useRef, useImperativeHandle, useCallback, useContext } from 'react';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import Lt, { clsx } from 'clsx';
3
+ import zt, { clsx } from 'clsx';
4
4
  import { twMerge } from 'tailwind-merge';
5
5
 
6
- var fe=createContext(void 0),ct=({message:e})=>jsx("div",{className:"flex justify-center items-center h-screen min-w-full bg-red-50 dark:bg-red-900/10 text-red-800 dark:text-red-200 text-xl text-center p-8 transition-colors duration-300",children:jsxs("div",{className:"max-w-md animate-[fadeIn_0.5s_ease-in-out]",children:[jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center justify-center gap-2",children:[jsx("span",{className:"animate-[bounce_1s_infinite]",children:"\u26A0\uFE0F"}),"Erro de Licen\xE7a"]}),jsx("p",{className:"mb-4 text-red-600 dark:text-red-300",children:e}),jsx("p",{className:"text-lg text-red-600 dark:text-red-400",children:"Por favor, entre em contato com o suporte."}),jsx("button",{onClick:()=>window.location.reload(),className:"mt-6 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Tentar novamente"})]})}),mt=({children:e,licenseKey:t})=>{let[r,o]=useState(!1),[a,i]=useState(null),[n,l]=useState(!0),s=c=>{if(i(null),!c)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let p="chave-secreta-123";if(c!==p)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");o(!0);};return useEffect(()=>{if(t){l(!0);try{s(t);}catch(c){i(c instanceof Error?c.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{l(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),l(!1);},[t]),n?null:jsx(fe.Provider,{value:{isLicenseValid:r,validateLicense:s,licenseError:a},children:r?e:jsx(ct,{message:a||"Licen\xE7a inv\xE1lida"})})},be=()=>{let e=useContext(fe);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var ve=({message:e="Component locked - Please validate your license"})=>jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsx("span",{children:e})]});var m=e=>t=>{let{isLicenseValid:r}=be();return r?jsx(e,{...t}):jsx(ve,{})};function f(...e){return twMerge(clsx(e))}var Te=bt.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:o="md",href:a,children:i,loading:n=!1,loadingContent:l,...s},c)=>{let p="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",b={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},h={xs:"h-7 px-2 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-6 text-lg",xl:"h-12 px-8 text-xl"},d=t?e:f(p,b[r],h[o],e);return a?jsx("a",{href:a,className:d,ref:c,children:n&&l?l:i}):jsx("button",{className:d,ref:c,...s,children:n&&l?l:i})});Te.displayName="Button";var Pr=m(Te);var ye=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("div",{ref:a,className:t?e:f("rounded-lg border bg-card text-card-foreground shadow-sm",e),...o,children:r}));ye.displayName="Card";var Ce=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("div",{ref:a,className:t?e:f("flex flex-col space-y-1.5 p-6",e),...o,children:r}));Ce.displayName="CardHeader";var Pe=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("h3",{ref:a,className:t?e:f("text-2xl font-semibold leading-none tracking-tight",e),...o,children:r}));Pe.displayName="CardTitle";var we=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("p",{ref:a,className:t?e:f("text-sm text-muted-foreground",e),...o,children:r}));we.displayName="CardDescription";var Le=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("div",{ref:a,className:t?e:f("p-6 pt-0",e),...o,children:r}));Le.displayName="CardContent";var Re=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},a)=>jsx("div",{ref:a,className:t?e:f("flex items-center p-6 pt-0",e),...o,children:r}));Re.displayName="CardFooter";var Hr=m(ye),Mr=m(Ce),Fr=m(Pe),Sr=m(we),Vr=m(Le),Ir=m(Re);var gt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx("p",{className:r?t:f("text-sm text-muted-foreground",t),children:e})},E=m(gt);var xt=({children:e,required:t,className:r,overrideClassName:o=!1,...a})=>jsxs("div",{className:"flex items-center gap-1",children:[jsx("label",{...a,className:o?r:f("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsx("span",{className:"text-red-600",children:"*"})]}),v=m(xt);var Tt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx("p",{className:r?t:f("text-sm text-red-600 dark:text-red-400",t),children:e})},x=m(Tt);var Ne=forwardRef(({label:e,required:t,option:r,orientation:o="left",className:a,overrideClassName:i=!1,helperText:n,error:l,...s},c)=>{let p=useId(),b=f("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",l&&"border-destructive",a);return jsxs("div",{className:"space-y-2",children:[e&&jsx(v,{required:t,children:e}),jsxs("div",{className:`flex ${o=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsx("input",{id:p,type:"checkbox",className:i?a:b,ref:c,...s}),r&&jsx(v,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),l&&jsx(x,{children:l}),!l&&n&&jsx(E,{children:n})]})});Ne.displayName="CheckBox";var ro=m(Ne);var wt=({...e})=>jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),U=wt;var Rt=({children:e,before:t,after:r,className:o})=>{let i=Lt("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},o);return jsx("div",{className:i,children:jsx("span",{children:e})})},te=Rt;var Et=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),Se=Et;var kt=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),Ie=kt;function Ae(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function $e(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),o=t.slice(-2),n=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${o}`;return e.currentTarget.value=n,e}function De(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Be(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Ke(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function qe(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function Oe(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function _e(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var Nt=({e,mask:t})=>{switch(t){case"money":return $e(e);case"mobile":return Be(e);case"phone":return Ke(e);case"cpfCnpj":return qe(e);case"cpf":return De(e);case"rg":return Oe(e);case"cnpj":return _e(e);case"cep":return Ae(e);default:return e}},Ge=Nt;var Ft=({mask:e,initialValue:t=""})=>{let[r,o]=useState(t);useEffect(()=>{t!==r&&o(t);},[t]);let a=useCallback(n=>{let s=Ge({e:n,mask:e})?.currentTarget?.value??n.currentTarget.value;o(s);},[e]),i=useCallback(()=>o(""),[]);return {value:r,setValue:o,handleChange:a,handleClear:i}},Ue=Ft;var Je=forwardRef(({label:e,required:t=!1,mask:r,name:o,prefix:a,suffix:i,addonBefore:n,addonBeforeClassName:l,addonAfter:s,addonAfterClassName:c,ClearEnabled:p=!0,className:b,overrideClassName:h=!1,error:d,helperText:T,value:L=void 0,onChange:u,...g},y)=>{let C=useId(),{handleChange:M,handleClear:N,setValue:I}=Ue({mask:r,initialValue:L}),A=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!a&&!i&&"px-3",a&&!i&&"pl-10 pr-3",i&&!a&&"pl-3 pr-10",a&&i&&"pl-10 pr-10",n&&"rounded-l-none border-l-0",s&&"rounded-r-none border-r-0",b),X=F=>{M(F),u?.(F);},G=()=>{N(),I(""),u?.({target:{name:o||"",value:""}});};return jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(v,{htmlFor:C,required:t,children:e}),jsxs("div",{className:"relative flex",children:[n&&jsx(te,{before:!0,className:l,children:n}),jsxs("div",{className:"relative flex items-center w-full",children:[a&&jsx(Se,{children:a}),jsx("input",{id:C,ref:y,name:o,onChange:X,className:h?b:A,...g}),p&&L&&jsx(U,{onClick:G,width:12,height:12,className:f("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsx(Ie,{children:i})]}),s&&jsx(te,{after:!0,className:c,children:s})]}),d&&jsx(x,{children:d}),!d&&T&&jsx(E,{children:T})]})});Je.displayName="Input";var Fo=m(Je);var ze=forwardRef(({label:e,required:t,option:r,className:o,overrideClassName:a,helperText:i,error:n,...l},s)=>{let c=useId(),p=f("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n&&"border-destructive",o);return jsxs("div",{className:"space-y-3",children:[e&&jsx(v,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{id:c,type:"radio",className:a?o:p,ref:s,...l}),r&&jsx(v,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),n&&jsx(x,{children:n}),!n&&i&&jsx(E,{children:i})]})});ze.displayName="Radio";var qo=m(ze);function Bt({label:e,required:t=!1,options:r,labelKey:o,valueKey:a,placeholder:i,error:n,helperText:l,className:s,...c},p){let b=useId(),h=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",n&&"border-red-500 focus-visible:ring-red-500",s);return jsxs("div",{className:"space-y-2",children:[e&&jsx(v,{htmlFor:b,required:t,children:e}),jsxs("select",{id:b,ref:p,className:h,...c,children:[i&&jsx("option",{value:"",disabled:!0,children:i}),r.map((d,T)=>jsx("option",{value:String(d[a]),children:String(d[o])},T))]}),n&&jsx(x,{children:n}),!n&&l&&jsx(E,{children:l})]})}function Kt(){let e=forwardRef(Bt);return e.displayName="Select",e}var qt=Kt(),Zo=m(qt);var _t=(e,t)=>{useEffect(()=>{let r=o=>{e.current&&!e.current.contains(o.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Qe=_t;function oe({options:e,labelKey:t,valueKey:r,multiple:o,onChange:a,setSearchTerm:i,typeSet:n,name:l}){let[s,c]=useState([]),p=useMemo(()=>new Map(e.map(u=>[String(u[r]),u])),[e,r]),b=useCallback(()=>s.map(u=>p.get(u)).filter(u=>!!u),[s,p]),h=useCallback(u=>{if(!a)return;let g;if(n==="field"?o?g=u:g=u[0]??void 0:o?g=u.map(C=>p.get(C)).filter(C=>C!==void 0):g=p.get(u[0]??"")??void 0,i&&!o){let y=p.get(u[0]??"");y&&i(String(y[t]));}a({target:{name:l,value:g,type:"combobox"}});},[o,a,p,l,n,i,t]),d=useCallback(u=>{let g=String(u[r]),y=o?s.includes(g)?s.filter(C=>C!==g):[...s,g]:[g];c(y),h(y);},[o,s,h,r]),T=useCallback(u=>{let g=s.filter(y=>y!==u);c(g),h(g);},[s,h]),L=useCallback(()=>{c([]),i?.("");let u;n==="field"?u=o?[]:"":u=o?[]:void 0,a?.({target:{name:l,value:u,type:"combobox"}});},[o,a,l,i,n]);return {selectedValues:s,handleSelect:d,handleRemove:T,handleClear:L,getSelectedOptions:b}}function ae(e,t,r){return useMemo(()=>r?e.filter(a=>String(a[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var je=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:o,setSearchTerm:a,selectedValues:i,filteredOptions:n,highlightedIndex:l,setHighlightedIndex:s,handleSelect:c,handleRemove:p})=>{let b=useCallback(d=>{if(n.length===0){s(-1);return}s(T=>T<0?d>0?0:n.length-1:(T+d+n.length)%n.length);},[n,s]);return useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),s(0),d.preventDefault();return}r&&d.key==="Backspace"&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),b(1);break;case"ArrowUp":d.preventDefault(),b(-1);break;case"Enter":d.preventDefault();let T=l>=0?l:0,L=n[T];L&&c(L),r&&a&&a(""),r||(t(!1),s(-1));break;case"Escape":d.preventDefault(),t(!1),s(-1),r||a("");break;case"Tab":t(!1),s(-1);break;case"Home":d.preventDefault(),n.length>0&&s(0);break;case"End":d.preventDefault(),n.length>0&&s(n.length-1);break;case"Backspace":r&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));break}},[e,r,o,i,n,l,t,a,s,c,p,b])};function et({option:e,labelKey:t,valueKey:r,onRemove:o}){let a=String(e[t]),i=String(e[r]);return jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[a,jsx("button",{type:"button",onMouseDown:n=>n.preventDefault(),onClick:()=>o(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${a}`,children:"\u2715"})]},i)}function Zt(e,t){let{label:r,required:o=!1,name:a,placeholder:i="Buscar...",labelKey:n,valueKey:l,options:s,value:c,onChange:p,mode:b="single",typeSet:h="field",disabled:d=!1,ClearEnabled:T=!0,helperText:L,error:u=!1,className:g="",...y}=e,C=b==="multiple",[M,N]=useState(!1),[I,A]=useState(""),X=useRef(null),G=useRef(null),F=useRef(null);useImperativeHandle(t,()=>F.current),Qe(G,()=>N(!1));let z=ae(s,n,I),[W,Y]=useState(-1),{selectedValues:Q,handleSelect:ce,handleRemove:me,handleClear:rt,getSelectedOptions:pe}=oe({options:s,labelKey:n,valueKey:l,value:c,multiple:C,onChange:p,typeSet:h,name:a,setSearchTerm:A}),ot=je({isOpen:M,setIsOpen:N,multiple:C,searchTerm:I,setSearchTerm:A,selectedValues:Q,filteredOptions:z,highlightedIndex:W,setHighlightedIndex:Y,handleSelect:ce,handleRemove:me}),$=useId(),at="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",nt=f("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",u?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxs("div",{className:`space-y-2 ${g}`,children:[r&&jsx(v,{htmlFor:$,required:o,children:r}),jsxs("div",{ref:X,className:"relative",children:[jsxs("div",{className:nt,children:[C&&pe().length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:pe().map((P,R)=>jsx(et,{option:P,labelKey:n,valueKey:l,onRemove:me},String(P[l]??R)))}),jsx("input",{ref:F,...y,name:a,type:"text",placeholder:i,value:I,onChange:P=>{let R=P.target.value;A(R),!M&&R.trim()!==""&&N(!0);},onKeyDown:ot,onMouseDown:P=>{document.activeElement===F.current&&(P.preventDefault(),N(R=>{let D=!R;return D&&Y(0),D}));},onFocus:()=>{N(!0),Y(0);},disabled:d,className:at,role:"combobox","aria-expanded":M,"aria-controls":$,"aria-activedescendant":W>=0?`${$}-opt-${W}`:void 0}),T&&!!Q.length&&jsx("button",{type:"button",onMouseDown:P=>P.preventDefault(),onClick:rt,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsx(U,{width:12,height:12})})]}),M&&jsx("div",{ref:G,id:$,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":C||void 0,children:z.length===0?jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):z.map((P,R)=>{let D=String(P[l]),Z=Q.includes(D),j=R===W;return jsx("button",{id:`${$}-opt-${R}`,"data-index":R,role:"option","aria-selected":Z,type:"button",onMouseDown:it=>it.preventDefault(),onClick:()=>ce(P),className:f("w-full px-3 py-2 text-left text-sm transition-colors",j&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!j&&Z&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!Z&&!j&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsx("span",{children:String(P[n])})},D)})})]}),u&&jsx(x,{children:u}),!u&&L&&jsx(E,{children:L})]})}function jt(){let e=forwardRef(Zt);return e.displayName="ComboBox",e}var er=jt(),La=m(er);var rr=(e,t)=>useMemo(()=>{let r=e?`${e}-group`:void 0,o=e&&t?`${e}-error`:void 0;return {groupId:r,errorId:o,ariaProps:{"aria-labelledby":r,"aria-invalid":t?"true":void 0,"aria-errormessage":t?o:void 0}}},[e,t]),tt=rr;var or=({name:e,label:t,required:r,errors:o,className:a,option:i,...n})=>{let{groupId:l,errorId:s,ariaProps:c}=tt(e,o);return jsxs("div",{className:`switch-group ${a}`,children:[t&&jsx(v,{htmlFor:e,id:l,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:r,children:t}),jsx("div",{...c,children:jsxs(v,{htmlFor:e,className:"flex items-center gap-2 cursor-pointer",children:[jsxs("div",{className:"relative inline-block w-12 h-6",children:[jsx("input",{id:e,name:e,type:"checkbox",className:"opacity-0 w-0 h-0 peer","data-testid":"INPUT_SWITCH"+e,"aria-describedby":s,...n}),jsx("span",{className:"absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-300 rounded-full transition duration-300 before:absolute before:content-[''] before:h-5 before:w-5 before:left-0.5 before:bottom-0.5 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:bg-blue-600 peer-checked:before:translate-x-6"})]}),i]})}),o&&jsx(x,{children:o})]})},Va=m(or);var ir=({label:e,required:t=!1,errors:r,name:o,maxLength:a,className:i,...n})=>{let[l,s]=useState(0),c=Lt("px-2 py-3 w-full text-stone-400 text-sm font-normal leading-tight border-2 border-opacity-0 shadow-input rounded-lg focus:outline-none focus:border-blue-500 border-neutral-400",{"border-[#DD052B] border-opacity-80 shadow-inputError":!!r},i??"");return jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(v,{htmlFor:o,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:t,children:e}),jsxs("div",{className:"flex flex-col justify-center items-end w-full gap-1",children:[jsx("textarea",{...n,"data-testid":"TEXT_AREA"+o,name:o,maxLength:a,className:c,onInput:p=>s(p.currentTarget.textLength)}),a&&jsx("div",{children:jsxs("p",{children:[l," / ",a]})})]}),r&&jsx(x,{children:r})]})},_a=m(ir);
6
+ var be=createContext(void 0),bt=({message:e})=>jsx("div",{className:"flex justify-center items-center h-screen min-w-full bg-red-50 dark:bg-red-900/10 text-red-800 dark:text-red-200 text-xl text-center p-8 transition-colors duration-300",children:jsxs("div",{className:"max-w-md animate-[fadeIn_0.5s_ease-in-out]",children:[jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center justify-center gap-2",children:[jsx("span",{className:"animate-[bounce_1s_infinite]",children:"\u26A0\uFE0F"}),"Erro de Licen\xE7a"]}),jsx("p",{className:"mb-4 text-red-600 dark:text-red-300",children:e}),jsx("p",{className:"text-lg text-red-600 dark:text-red-400",children:"Por favor, entre em contato com o suporte."}),jsx("button",{onClick:()=>window.location.reload(),className:"mt-6 px-4 py-2 bg-red-600 text-white rounded-md hover:bg-red-700 transition-colors",children:"Tentar novamente"})]})}),vt=({children:e,licenseKey:t})=>{let[r,o]=useState(!1),[n,i]=useState(null),[a,s]=useState(!0),l=c=>{if(i(null),!c)throw new Error("\u{1F512} Chave de licen\xE7a \xE9 obrigat\xF3ria");let p="chave-secreta-123";if(c!==p)throw new Error("\u274C Chave de licen\xE7a inv\xE1lida");o(!0);};return useEffect(()=>{if(t){s(!0);try{l(t);}catch(c){i(c instanceof Error?c.message:"Erro desconhecido na valida\xE7\xE3o da licen\xE7a");}finally{s(!1);}}else i("\u{1F512} Licen\xE7a n\xE3o informada"),s(!1);},[t]),a?null:jsx(be.Provider,{value:{isLicenseValid:r,validateLicense:l,licenseError:n},children:r?e:jsx(bt,{message:n||"Licen\xE7a inv\xE1lida"})})},ve=()=>{let e=useContext(be);if(!e)throw new Error("useLicense deve ser usado dentro de um LicenseProvider");return e};var he=({message:e="Component locked - Please validate your license"})=>jsxs("div",{className:"flex items-start p-4 bg-red-50 border border-red-500 text-red-700 rounded-md gap-2",children:[jsx("span",{children:" \u274C Component locked - Please validate your license"}),jsx("span",{children:e})]});var u=e=>t=>{let{isLicenseValid:r}=ve();return r?jsx(e,{...t}):jsx(he,{})};function f(...e){return twMerge(clsx(e))}var ye=Ct.forwardRef(({className:e,overrideClassName:t,variant:r="primary",size:o="md",href:n,children:i,loading:a=!1,loadingContent:s,...l},c)=>{let p="inline-flex items-center justify-center rounded-lg font-medium cursor-pointer active:translate-y-1 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",x={primary:"bg-blue-600 text-white hover:bg-blue-700 shadow-md focus-visible:ring-blue-500",secondary:"bg-gray-600 text-white hover:bg-gray-700 shadow-sm focus-visible:ring-gray-500",tertiary:"bg-purple-600 text-white hover:bg-purple-700 shadow-sm focus-visible:ring-purple-500",destructive:"bg-red-600 text-white hover:bg-red-700 shadow-sm focus-visible:ring-red-500",success:"bg-green-600 text-white hover:bg-green-700 shadow-sm focus-visible:ring-green-500",warning:"bg-amber-500 text-white hover:bg-amber-600 shadow-sm focus-visible:ring-amber-500",info:"bg-cyan-600 text-white hover:bg-cyan-700 shadow-sm focus-visible:ring-cyan-500",accent:"bg-violet-600 text-white hover:bg-violet-700 shadow-sm focus-visible:ring-violet-500",outline:"border border-gray-300 bg-transparent text-gray-700 hover:bg-gray-50 shadow-sm focus-visible:ring-gray-500",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:ring-gray-500",link:"text-blue-600 underline-offset-4 hover:underline bg-transparent p-0 h-auto shadow-none",gradient:"bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700 shadow-md focus-visible:ring-blue-500",glass:"bg-white/10 backdrop-blur-md border border-white/20 text-black hover:bg-white/20 shadow-sm focus-visible:ring-white/50",soft:"bg-blue-100 text-blue-700 hover:bg-blue-200 shadow-sm focus-visible:ring-blue-500",dark:"bg-gray-900 text-white hover:bg-gray-800 shadow-md focus-visible:ring-gray-500",light:"bg-gray-100 text-gray-900 hover:bg-gray-200 shadow-sm focus-visible:ring-gray-500",obsidian:"bg-black text-white hover:bg-gray-900 shadow-md border border-gray-800 focus-visible:ring-gray-700",polar:"bg-white text-gray-900 hover:bg-gray-50 shadow-md border border-gray-300 focus-visible:ring-gray-400"},h={xs:"h-7 px-2 text-xs",sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2",lg:"h-11 px-6 text-lg",xl:"h-12 px-8 text-xl"},d=t?e:f(p,x[r],h[o],e);return n?jsx("a",{href:n,className:d,ref:c,children:a&&s?s:i}):jsx("button",{className:d,ref:c,...l,children:a&&s?s:i})});ye.displayName="Button";var Br=u(ye);var Pe=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("div",{ref:n,className:t?e:f("rounded-lg border bg-card text-card-foreground shadow-sm",e),...o,children:r}));Pe.displayName="Card";var we=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("div",{ref:n,className:t?e:f("flex flex-col space-y-1.5 p-6",e),...o,children:r}));we.displayName="CardHeader";var Le=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("h3",{ref:n,className:t?e:f("text-2xl font-semibold leading-none tracking-tight",e),...o,children:r}));Le.displayName="CardTitle";var Re=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("p",{ref:n,className:t?e:f("text-sm text-muted-foreground",e),...o,children:r}));Re.displayName="CardDescription";var ke=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("div",{ref:n,className:t?e:f("p-6 pt-0",e),...o,children:r}));ke.displayName="CardContent";var Ne=forwardRef(({className:e,overrideClassName:t=!1,children:r,...o},n)=>jsx("div",{ref:n,className:t?e:f("flex items-center p-6 pt-0",e),...o,children:r}));Ne.displayName="CardFooter";var Wr=u(Pe),Xr=u(we),Ur=u(Le),zr=u(Re),Yr=u(ke),Zr=u(Ne);var yt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx("p",{className:r?t:f("text-sm text-muted-foreground",t),children:e})},V=u(yt);var wt=({children:e,required:t,className:r,overrideClassName:o=!1,...n})=>jsxs("div",{className:"flex items-center gap-1",children:[jsx("label",{...n,className:o?r:f("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",r),children:e}),t&&jsx("span",{className:"text-red-600",children:"*"})]}),v=u(wt);var Rt=({children:e,className:t,overrideClassName:r})=>{if(e)return jsx("p",{className:r?t:f("text-sm text-red-600 dark:text-red-400",t),children:e})},L=u(Rt);var Fe=forwardRef(({label:e,required:t,option:r,orientation:o="left",className:n,overrideClassName:i=!1,helperText:a,error:s,...l},c)=>{let p=useId(),x=f("h-4 w-4 rounded border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",s&&"border-destructive",n);return jsxs("div",{className:"space-y-2",children:[e&&jsx(v,{required:t,children:e}),jsxs("div",{className:`flex ${o=="left"?"flex-row":"flex-row-reverse"} w-fit gap-2`,children:[jsx("input",{id:p,type:"checkbox",className:i?n:x,ref:c,...l}),r&&jsx(v,{htmlFor:p,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),s&&jsx(L,{children:s}),!s&&a&&jsx(V,{children:a})]})});Fe.displayName="CheckBox";var ho=u(Fe);function It(e,t){let{typeSet:r="field",multiCheck:o=!1,value:n,onChange:i,labelKey:a,valueKey:s,options:l,alignment:c="vertical",className:p,overrideClassName:x=!1,helperText:h,error:d,label:T,name:R,required:g,...C}=e,P=useId(),y=useMemo(()=>new Map(l.map(m=>[String(m[s]),m])),[l,s]),E=useMemo(()=>n==null?[]:r==="field"?o?n.map(m=>String(m)):[String(n)]:o?n.map(m=>String(m[s])):[String(n[s])],[n,r,o,s]),M=(m,b)=>{if(!i)return;let k;if(r==="field")if(o)k=m.map(N=>{let B=y.get(N);return B?B[s]:N});else {let F=m[0];if(!F)k=void 0;else {let N=y.get(F);k=N?N[s]:F;}}else o?k=m.map(N=>y.get(N)).filter(N=>N!==void 0):k=y.get(m[0]??"")??void 0;i({target:{name:R,value:k,type:"checkboxgroup",checked:b}});},$=m=>{let b;o?b=E.includes(m)?E.filter(k=>k!==m):[...E,m]:b=E[0]===m?[]:[m],M(b,b.includes(m));},w=c==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",I=f("h-4 w-4 rounded border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",d&&"border-destructive");return jsxs("div",{className:f("flex flex-col gap-3",p),children:[T&&jsx(v,{required:g,children:T}),jsx("div",{className:w,children:l.map((m,b)=>{let k=String(m[s]),F=E.includes(k),N=`${P}-${k}-${b}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...C,id:N,ref:t,type:"checkbox",name:R,checked:F,onChange:()=>$(k),className:x?p:I}),jsx(v,{htmlFor:N,children:String(m[a])})]},N)})}),!!d&&jsx(L,{children:String(d)}),!d&&h&&jsx(V,{children:h})]})}function St(){let e=forwardRef(It);return e.displayName="CheckBoxGroup",e}var Ht=St(),Vo=u(Ht);var Mt=({...e})=>jsx("svg",{...e,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})}),Q=Mt;var $t=(e,t)=>{useEffect(()=>{let r=o=>{e.current&&!e.current.contains(o.target)&&t(!1);};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r);}},[e,t]);},Me=$t;function oe({options:e,labelKey:t,valueKey:r,multiple:o,onChange:n,setSearchTerm:i,typeSet:a,name:s}){let[l,c]=useState([]),p=useMemo(()=>new Map(e.map(g=>[String(g[r]),g])),[e,r]),x=useCallback(()=>l.map(g=>p.get(g)).filter(g=>!!g),[l,p]),h=useCallback(g=>{if(!n)return;let C;if(a==="field"?o?C=g:C=g[0]??void 0:o?C=g.map(y=>p.get(y)).filter(y=>y!==void 0):C=p.get(g[0]??"")??void 0,i&&!o){let P=p.get(g[0]??"");P&&i(String(P[t]));}n({target:{name:s,value:C,type:"combobox"}});},[o,n,p,s,a,i,t]),d=useCallback(g=>{let C=String(g[r]),P=o?l.includes(C)?l.filter(y=>y!==C):[...l,C]:[C];c(P),h(P);},[o,l,h,r]),T=useCallback(g=>{let C=l.filter(P=>P!==g);c(C),h(C);},[l,h]),R=useCallback(()=>{c([]),i?.("");let g;a==="field"?g=o?[]:"":g=o?[]:void 0,n?.({target:{name:s,value:g,type:"combobox"}});},[o,n,s,i,a]);return {selectedValues:l,handleSelect:d,handleRemove:T,handleClear:R,getSelectedOptions:x}}function ne(e,t,r){return useMemo(()=>r?e.filter(n=>String(n[t]).toLowerCase().includes(r.toLowerCase())):e,[e,r,t])}var $e=({isOpen:e,setIsOpen:t,multiple:r,searchTerm:o,setSearchTerm:n,selectedValues:i,filteredOptions:a,highlightedIndex:s,setHighlightedIndex:l,handleSelect:c,handleRemove:p})=>{let x=useCallback(d=>{if(a.length===0){l(-1);return}l(T=>T<0?d>0?0:a.length-1:(T+d+a.length)%a.length);},[a,l]);return useCallback(d=>{if(!e){if(d.key==="Enter"||d.key==="ArrowDown"){t(!0),l(0),d.preventDefault();return}r&&d.key==="Backspace"&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));return}switch(d.key){case"ArrowDown":d.preventDefault(),x(1);break;case"ArrowUp":d.preventDefault(),x(-1);break;case"Enter":d.preventDefault();let T=s>=0?s:0,R=a[T];R&&c(R),r&&n&&n(""),r||(t(!1),l(-1));break;case"Escape":d.preventDefault(),t(!1),l(-1),r||n("");break;case"Tab":t(!1),l(-1);break;case"Home":d.preventDefault(),a.length>0&&l(0);break;case"End":d.preventDefault(),a.length>0&&l(a.length-1);break;case"Backspace":r&&o===""&&i.length>0&&(d.preventDefault(),p(i[i.length-1]));break}},[e,r,o,i,a,s,t,n,l,c,p,x])};function De({option:e,labelKey:t,valueKey:r,onRemove:o}){let n=String(e[t]),i=String(e[r]);return jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 text-xs bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded",children:[n,jsx("button",{type:"button",onMouseDown:a=>a.preventDefault(),onClick:()=>o(i),className:"hover:bg-blue-200 dark:hover:bg-blue-800 rounded-full p-0.5 transition-colors","aria-label":`Remover ${n}`,children:"\u2715"})]},i)}function Wt(e,t){let{label:r,required:o=!1,name:n,placeholder:i="Buscar...",labelKey:a,valueKey:s,options:l,value:c,onChange:p,mode:x="single",typeSet:h="field",disabled:d=!1,ClearEnabled:T=!0,helperText:R,error:g=!1,className:C="",...P}=e,y=x==="multiple",[E,M]=useState(!1),[$,w]=useState(""),I=useRef(null),m=useRef(null),b=useRef(null);useImperativeHandle(t,()=>b.current),Me(m,()=>M(!1));let k=ne(l,a,$),[F,N]=useState(-1),{selectedValues:B,handleSelect:pe,handleRemove:ue,handleClear:lt,getSelectedOptions:fe}=oe({options:l,labelKey:a,valueKey:s,value:c,multiple:y,onChange:p,typeSet:h,name:n,setSearchTerm:w}),dt=$e({isOpen:E,setIsOpen:M,multiple:y,searchTerm:$,setSearchTerm:w,selectedValues:B,filteredOptions:k,highlightedIndex:F,setHighlightedIndex:N,handleSelect:pe,handleRemove:ue}),J=useId(),ct="w-full bg-transparent outline-none placeholder:text-gray-500 dark:placeholder:text-gray-400 text-gray-900 dark:text-gray-100",mt=f("relative w-full min-h-[40px] px-3 py-2 border rounded-md bg-white dark:bg-gray-800",g?"border-red-500":"border-gray-300 dark:border-gray-600",d?"opacity-50 cursor-not-allowed":"cursor-text","focus-within:ring-2 focus-within:ring-blue-500 focus-within:border-blue-500");return jsxs("div",{className:`space-y-2 ${C}`,children:[r&&jsx(v,{htmlFor:J,required:o,children:r}),jsxs("div",{ref:I,className:"relative",children:[jsxs("div",{className:mt,children:[y&&fe().length>0&&jsx("div",{className:"flex flex-wrap gap-1 mb-2",children:fe().map((S,A)=>jsx(De,{option:S,labelKey:a,valueKey:s,onRemove:ue},String(S[s]??A)))}),jsx("input",{ref:b,...P,name:n,type:"text",placeholder:i,value:$,onChange:S=>{let A=S.target.value;w(A),!E&&A.trim()!==""&&M(!0);},onKeyDown:dt,onMouseDown:S=>{document.activeElement===b.current&&(S.preventDefault(),M(A=>{let W=!A;return W&&N(0),W}));},onFocus:()=>{M(!0),N(0);},disabled:d,className:ct,role:"combobox","aria-expanded":E,"aria-controls":J,"aria-activedescendant":F>=0?`${J}-opt-${F}`:void 0}),T&&!!B.length&&jsx("button",{type:"button",onMouseDown:S=>S.preventDefault(),onClick:lt,className:"absolute right-2 top-2 text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-700",title:"Limpar sele\xE7\xE3o",children:jsx(Q,{width:12,height:12})})]}),E&&jsx("div",{ref:m,id:J,className:"absolute z-50 w-full mt-1 bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-md shadow-lg max-h-60 overflow-auto",role:"listbox","aria-multiselectable":y||void 0,children:k.length===0?jsx("div",{className:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400",children:"Nenhum resultado encontrado"}):k.map((S,A)=>{let W=String(S[s]),ee=B.includes(W),te=A===F;return jsx("button",{id:`${J}-opt-${A}`,"data-index":A,role:"option","aria-selected":ee,type:"button",onMouseDown:pt=>pt.preventDefault(),onClick:()=>pe(S),className:f("w-full px-3 py-2 text-left text-sm transition-colors",te&&"bg-blue-100 dark:bg-blue-800 text-blue-900 dark:text-white",!te&&ee&&"bg-blue-50 dark:bg-blue-900/20 text-blue-700 dark:text-blue-300",!ee&&!te&&"text-gray-900 dark:text-gray-100","hover:bg-gray-100 dark:hover:bg-gray-700"),children:jsx("span",{children:String(S[a])})},W)})})]}),g&&jsx(L,{children:g}),!g&&R&&jsx(V,{children:R})]})}function Xt(){let e=forwardRef(Wt);return e.displayName="ComboBox",e}var Ut=Xt(),an=u(Ut);var Yt=({children:e,before:t,after:r,className:o})=>{let i=zt("flex justify-center items-center",{"rounded-l-lg":t,"rounded-r-lg":r},o);return jsx("div",{className:i,children:jsx("span",{children:e})})},le=Yt;var Zt=({children:e})=>jsx("div",{className:"absolute px-2",children:jsx("span",{children:e})}),Ke=Zt;var Qt=({children:e})=>jsx("div",{className:"absolute right-0 px-2",children:jsx("span",{children:e})}),qe=Qt;function _e(e){e.currentTarget.maxLength=9;let t=e.currentTarget.value;return t=t.replace(/\D/g,""),t=t.replace(/^(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Je(e){let t=e.currentTarget.value;t=t.replace(/\D/g,""),t=t.padStart(3,"0");let r=t.slice(0,-2),o=t.slice(-2),a=`${(r.replace(/^0+/,"")||"0").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")},${o}`;return e.currentTarget.value=a,e}function We(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value;return t.match(/^(\d{3}).(\d{3}).(\d{3})-(\d{2})$/)||(t=t.replace(/\D/g,""),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2"),e.currentTarget.value=t),e}function Xe(e){e.currentTarget.maxLength=15;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{5})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function Ue(e){e.currentTarget.maxLength=14;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"($1) $2"),t=t.replace(/(\d{4})(\d)/,"$1-$2"),e.currentTarget.value=t,e}function ze(e){let t=e.currentTarget.value.replace(/\D/g,"");return t.length<=11?(e.currentTarget.maxLength=14,t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{2})$/,"$1-$2")):(e.currentTarget.maxLength=18,t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2")),e.currentTarget.value=t,e}function Ye(e){e.currentTarget.maxLength=12;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d{1})$/,"$1-$2"),e.currentTarget.value=t,e}function Ze(e){e.currentTarget.maxLength=18;let t=e.currentTarget.value.replace(/\D/g,"");return t=t.replace(/(\d{2})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1.$2"),t=t.replace(/(\d{3})(\d)/,"$1/$2"),t=t.replace(/(\d{4})(\d{2})$/,"$1-$2"),e.currentTarget.value=t,e}var jt=({e,mask:t})=>{switch(t){case"money":return Je(e);case"mobile":return Xe(e);case"phone":return Ue(e);case"cpfCnpj":return ze(e);case"cpf":return We(e);case"rg":return Ye(e);case"cnpj":return Ze(e);case"cep":return _e(e);default:return e}},Qe=jt;var rr=({mask:e,initialValue:t=""})=>{let[r,o]=useState(t);useEffect(()=>{t!==r&&o(t);},[t]);let n=useCallback(a=>{let l=Qe({e:a,mask:e})?.currentTarget?.value??a.currentTarget.value;o(l);},[e]),i=useCallback(()=>o(""),[]);return {value:r,setValue:o,handleChange:n,handleClear:i}},et=rr;var tt=forwardRef(({label:e,required:t=!1,mask:r,name:o,prefix:n,suffix:i,addonBefore:a,addonBeforeClassName:s,addonAfter:l,addonAfterClassName:c,ClearEnabled:p=!0,className:x,overrideClassName:h=!1,error:d,helperText:T,value:R=void 0,onChange:g,...C},P)=>{let y=useId(),{handleChange:E,handleClear:M,setValue:$}=et({mask:r,initialValue:R}),w=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",d&&"border-destructive focus-visible:ring-destructive",!n&&!i&&"px-3",n&&!i&&"pl-10 pr-3",i&&!n&&"pl-3 pr-10",n&&i&&"pl-10 pr-10",a&&"rounded-l-none border-l-0",l&&"rounded-r-none border-r-0",x),I=b=>{E(b),g?.(b);},m=()=>{M(),$(""),g?.({target:{name:o||"",value:""}});};return jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(v,{htmlFor:y,required:t,children:e}),jsxs("div",{className:"relative flex",children:[a&&jsx(le,{before:!0,className:s,children:a}),jsxs("div",{className:"relative flex items-center w-full",children:[n&&jsx(Ke,{children:n}),jsx("input",{id:y,ref:P,name:o,onChange:I,className:h?x:w,...C}),p&&R&&jsx(Q,{onClick:m,width:12,height:12,className:f("absolute right-2 cursor-pointer",i&&"right-8")}),i&&jsx(qe,{children:i})]}),l&&jsx(le,{after:!0,className:c,children:l})]}),d&&jsx(L,{children:d}),!d&&T&&jsx(V,{children:T})]})});tt.displayName="Input";var Sn=u(tt);var ot=forwardRef(({label:e,required:t,option:r,className:o,overrideClassName:n,helperText:i,error:a,...s},l)=>{let c=useId(),p=f("h-4 w-4 border border-input bg-background text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a&&"border-destructive",o);return jsxs("div",{className:"space-y-3",children:[e&&jsx(v,{required:t,children:e}),jsxs("div",{className:"flex items-center space-x-2",children:[jsx("input",{id:c,type:"radio",className:n?o:p,ref:l,...s}),r&&jsx(v,{htmlFor:c,className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",overrideClassName:!0,children:r})]}),a&&jsx(L,{children:a}),!a&&i&&jsx(V,{children:i})]})});ot.displayName="Radio";var On=u(ot);function dr(e,t){let{label:r,required:o,name:n,labelKey:i,valueKey:a,options:s,alignment:l="vertical",className:c,overrideClassName:p=!1,helperText:x,error:h,typeSet:d="field",value:T,onChange:R,...g}=e,C=useId(),P=useMemo(()=>new Map(s.map(w=>[String(w[a]),w])),[s,a]),y=useMemo(()=>T==null?"":String(d==="field"?T:T[a]),[T,d,a]),E=w=>{if(!R)return;let I;if(d==="field"){let m=P.get(w);if(m)I=m[a];else {let b=Number(w);I=Number.isNaN(b)?w:b;}}else I=P.get(w)??void 0;R({target:{name:n,value:I,type:"radiogroup",checked:!0}});},M=l==="horizontal"?"flex flex-wrap items-center gap-3":"flex flex-col gap-3",$=f("h-4 w-4 rounded-full border border-input bg-background text-primary","focus:ring-2 focus:ring-ring focus:ring-offset-2",h&&"border-destructive");return jsxs("div",{className:f("flex flex-col gap-3",c),children:[r&&jsx(v,{required:o,children:r}),jsx("div",{className:M,children:s.map((w,I)=>{let m=String(w[a]),b=`${C}-${m}-${I}`;return jsxs("div",{className:"flex items-center gap-2",children:[jsx("input",{...g,id:b,ref:t,name:n,type:"radio",checked:y===m,onChange:()=>E(m),className:p?c:$}),jsx(v,{htmlFor:b,children:String(w[i])})]},b)})}),h&&jsx(L,{children:String(h)}),!h&&x&&jsx(V,{children:x})]})}function cr(){let e=forwardRef(dr);return e.displayName="RadioGroup",e}var mr=cr(),jn=u(mr);function fr({label:e,required:t=!1,options:r,labelKey:o,valueKey:n,placeholder:i,error:a,helperText:s,className:l,...c},p){let x=useId(),h=f("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50",a&&"border-red-500 focus-visible:ring-red-500",l);return jsxs("div",{className:"space-y-2",children:[e&&jsx(v,{htmlFor:x,required:t,children:e}),jsxs("select",{id:x,ref:p,className:h,...c,children:[i&&jsx("option",{value:"",disabled:!0,children:i}),r.map((d,T)=>jsx("option",{value:String(d[n]),children:String(d[o])},T))]}),a&&jsx(L,{children:a}),!a&&s&&jsx(V,{children:s})]})}function gr(){let e=forwardRef(fr);return e.displayName="Select",e}var br=gr(),ca=u(br);var xr=(e,t)=>useMemo(()=>{let r=e?`${e}-group`:void 0,o=e&&t?`${e}-error`:void 0;return {groupId:r,errorId:o,ariaProps:{"aria-labelledby":r,"aria-invalid":t?"true":void 0,"aria-errormessage":t?o:void 0}}},[e,t]),st=xr;var hr=({name:e,label:t,required:r,errors:o,className:n,option:i,...a})=>{let{groupId:s,errorId:l,ariaProps:c}=st(e,o);return jsxs("div",{className:`switch-group ${n}`,children:[t&&jsx(v,{htmlFor:e,id:s,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:r,children:t}),jsx("div",{...c,children:jsxs(v,{htmlFor:e,className:"flex items-center gap-2 cursor-pointer",children:[jsxs("div",{className:"relative inline-block w-12 h-6",children:[jsx("input",{id:e,name:e,type:"checkbox",className:"opacity-0 w-0 h-0 peer","data-testid":"INPUT_SWITCH"+e,"aria-describedby":l,...a}),jsx("span",{className:"absolute cursor-pointer top-0 left-0 right-0 bottom-0 bg-gray-300 rounded-full transition duration-300 before:absolute before:content-[''] before:h-5 before:w-5 before:left-0.5 before:bottom-0.5 before:bg-white before:rounded-full before:transition before:duration-300 peer-checked:bg-blue-600 peer-checked:before:translate-x-6"})]}),i]})}),o&&jsx(L,{children:o})]})},ha=u(hr);var yr=({label:e,required:t=!1,errors:r,name:o,maxLength:n,className:i,...a})=>{let[s,l]=useState(0),c=zt("px-2 py-3 w-full text-stone-400 text-sm font-normal leading-tight border-2 border-opacity-0 shadow-input rounded-lg focus:outline-none focus:border-blue-500 border-neutral-400",{"border-[#DD052B] border-opacity-80 shadow-inputError":!!r},i??"");return jsxs("div",{className:"flex flex-col w-full gap-2",children:[e&&jsx(v,{htmlFor:o,className:"font-poppins text-[14px] font-medium leading-[21px] text-colorLight dark:text-colorDark",required:t,children:e}),jsxs("div",{className:"flex flex-col justify-center items-end w-full gap-1",children:[jsx("textarea",{...a,"data-testid":"TEXT_AREA"+o,name:o,maxLength:n,className:c,onInput:p=>l(p.currentTarget.textLength)}),n&&jsx("div",{children:jsxs("p",{children:[s," / ",n]})})]}),r&&jsx(L,{children:r})]})},Na=u(yr);
7
7
 
8
- export { Pr as ButtonPrimitive, Vr as CardContentPrimitive, Sr as CardDescriptionPrimitive, Ir as CardFooterPrimitive, Mr as CardHeaderPrimitive, Hr as CardPrimitive, Fr as CardTitlePrimitive, ro as CheckBoxPrimitive, La as ComboBoxPrimitive, E as HelperFieldPrimitive, Fo as InputPrimitive, v as LabelPrimitive, mt as LicenseProvider, qo as RadioPrimitive, Zo as SelectPrimitive, Va as SwitchPrimitive, _a as TextAreaPrimitive, x as ValidateFieldPrimitive };
8
+ export { Br as ButtonPrimitive, Yr as CardContentPrimitive, zr as CardDescriptionPrimitive, Zr as CardFooterPrimitive, Xr as CardHeaderPrimitive, Wr as CardPrimitive, Ur as CardTitlePrimitive, Vo as CheckBoxGroupPrimitive, ho as CheckBoxPrimitive, an as ComboBoxPrimitive, V as HelperFieldPrimitive, Sn as InputPrimitive, v as LabelPrimitive, vt as LicenseProvider, jn as RadioGroupPrimitive, On as RadioPrimitive, ca as SelectPrimitive, ha as SwitchPrimitive, Na as TextAreaPrimitive, L as ValidateFieldPrimitive };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mvr-ui/components",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "sideEffects": false,
5
5
  "main": "dist/page.cjs",
6
6
  "module": "dist/page.js",