@sector.siit/mlz-components 1.0.1 → 1.0.3

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/index.js CHANGED
@@ -6,7 +6,7 @@ function styleInject(css, ref) {
6
6
  if ( ref === void 0 ) ref = {};
7
7
  var insertAt = ref.insertAt;
8
8
 
9
- if (typeof document === 'undefined') { return; }
9
+ if (!css || typeof document === 'undefined') { return; }
10
10
 
11
11
  var head = document.head || document.getElementsByTagName('head')[0];
12
12
  var style = document.createElement('style');
@@ -29,33 +29,11 @@ function styleInject(css, ref) {
29
29
  }
30
30
  }
31
31
 
32
- var css_248z = "*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:\"\"}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}.mlz-btn-primary{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(37 99 235/var(--tw-bg-opacity,1));color:rgb(255 255 255/var(--tw-text-opacity,1))}.mlz-btn-primary:hover{--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity,1))}.mlz-btn-primary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.mlz-btn-primary{background-color:var(--mlz-primary-600,#2563eb)}.mlz-btn-primary:hover{background-color:var(--mlz-primary-700,#1d4ed8)}.mlz-btn-secondary{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity,1));color:rgb(255 255 255/var(--tw-text-opacity,1))}.mlz-btn-secondary:hover{--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity,1))}.mlz-btn-secondary:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity,1))}.mlz-btn-secondary{background-color:var(--mlz-secondary-600,#475569)}.mlz-btn-secondary:hover{background-color:var(--mlz-secondary-700,#334155)}.mb-1\\.5{margin-bottom:.375rem}.mb-4{margin-bottom:1rem}.mt-1\\.5{margin-top:.375rem}.flex{display:flex}.inline-flex{display:inline-flex}.h-10{height:2.5rem}.h-12{height:3rem}.h-8{height:2rem}.h-\\[var\\(--mlz-input-height-lg\\2c 3rem\\)\\]{height:var(--mlz-input-height-lg,3rem)}.h-\\[var\\(--mlz-input-height-md\\2c 2\\.5rem\\)\\]{height:var(--mlz-input-height-md,2.5rem)}.h-\\[var\\(--mlz-input-height-sm\\2c 2rem\\)\\]{height:var(--mlz-input-height-sm,2rem)}.w-80{width:20rem}.w-auto{width:auto}.w-full{width:100%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-\\[var\\(--mlz-error-500\\2c rgb\\(239\\2c 68\\2c 68\\)\\)\\]{border-color:var(--mlz-error-500,#ef4444)}.border-\\[var\\(--mlz-input-border-color\\2c rgb\\(209\\2c 213\\2c 219\\)\\)\\]{border-color:var(--mlz-input-border-color,#d1d5db)}.border-\\[var\\(--mlz-success-500\\2c rgb\\(34\\2c 197\\2c 94\\)\\)\\]{border-color:var(--mlz-success-500,#22c55e)}.border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity,1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity,1))}.border-green-500{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-4{padding:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[var\\(--mlz-input-padding-x-lg\\2c 1\\.25rem\\)\\]{padding-left:var(--mlz-input-padding-x-lg,1.25rem);padding-right:var(--mlz-input-padding-x-lg,1.25rem)}.px-\\[var\\(--mlz-input-padding-x-md\\2c 1rem\\)\\]{padding-left:var(--mlz-input-padding-x-md,1rem);padding-right:var(--mlz-input-padding-x-md,1rem)}.px-\\[var\\(--mlz-input-padding-x-sm\\2c 0\\.75rem\\)\\]{padding-left:var(--mlz-input-padding-x-sm,.75rem);padding-right:var(--mlz-input-padding-x-sm,.75rem)}.py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-\\[var\\(--mlz-input-padding-y-lg\\2c 0\\.75rem\\)\\]{padding-bottom:var(--mlz-input-padding-y-lg,.75rem);padding-top:var(--mlz-input-padding-y-lg,.75rem)}.py-\\[var\\(--mlz-input-padding-y-md\\2c 0\\.5rem\\)\\]{padding-bottom:var(--mlz-input-padding-y-md,.5rem);padding-top:var(--mlz-input-padding-y-md,.5rem)}.py-\\[var\\(--mlz-input-padding-y-sm\\2c 0\\.375rem\\)\\]{padding-bottom:var(--mlz-input-padding-y-sm,.375rem);padding-top:var(--mlz-input-padding-y-sm,.375rem)}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.text-\\[var\\(--mlz-error-600\\2c rgb\\(220\\2c 38\\2c 38\\)\\)\\]{color:var(--mlz-error-600,#dc2626)}.text-\\[var\\(--mlz-input-font-size-lg\\2c 1\\.125rem\\)\\]{color:var(--mlz-input-font-size-lg,1.125rem)}.text-\\[var\\(--mlz-input-font-size-md\\2c 1rem\\)\\]{color:var(--mlz-input-font-size-md,1rem)}.text-\\[var\\(--mlz-input-font-size-sm\\2c 0\\.875rem\\)\\]{color:var(--mlz-input-font-size-sm,.875rem)}.text-\\[var\\(--mlz-input-helper-color\\2c rgb\\(107\\2c 114\\2c 128\\)\\)\\]{color:var(--mlz-input-helper-color,#6b7280)}.text-\\[var\\(--mlz-input-label-color\\2c rgb\\(55\\2c 65\\2c 81\\)\\)\\]{color:var(--mlz-input-label-color,#374151)}.text-\\[var\\(--mlz-success-600\\2c rgb\\(22\\2c 163\\2c 74\\)\\)\\]{color:var(--mlz-success-600,#16a34a)}.text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity,1))}.text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity:1;color:rgb(107 114 128/var(--tw-placeholder-opacity,1))}.outline{outline-style:solid}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}:root{--mlz-primary-50:#eff6ff;--mlz-primary-100:#dbeafe;--mlz-primary-200:#bfdbfe;--mlz-primary-300:#93c5fd;--mlz-primary-400:#60a5fa;--mlz-primary-500:#3b82f6;--mlz-primary-600:#2563eb;--mlz-primary-700:#1d4ed8;--mlz-primary-800:#1e40af;--mlz-primary-900:#1e3a8a;--mlz-primary-950:#172554;--mlz-secondary-50:#f8fafc;--mlz-secondary-100:#f1f5f9;--mlz-secondary-200:#e2e8f0;--mlz-secondary-300:#cbd5e1;--mlz-secondary-400:#94a3b8;--mlz-secondary-500:#64748b;--mlz-secondary-600:#475569;--mlz-secondary-700:#334155;--mlz-secondary-800:#1e293b;--mlz-secondary-900:#0f172a;--mlz-secondary-950:#020617;--mlz-spacing-xs:0.25rem;--mlz-spacing-sm:0.5rem;--mlz-spacing-md:1rem;--mlz-spacing-lg:1.5rem;--mlz-spacing-xl:2rem;--mlz-spacing-2xl:3rem;--mlz-border-radius-sm:0.25rem;--mlz-border-radius-md:0.375rem;--mlz-border-radius-lg:0.5rem;--mlz-border-radius-xl:0.75rem;--mlz-font-size-xs:0.75rem;--mlz-font-size-sm:0.875rem;--mlz-font-size-base:1rem;--mlz-font-size-lg:1.125rem;--mlz-font-size-xl:1.25rem;--mlz-input-border-color:#d1d5db;--mlz-input-label-color:#374151;--mlz-input-helper-color:#6b7280;--mlz-input-height-sm:2rem;--mlz-input-height-md:2.5rem;--mlz-input-height-lg:3rem;--mlz-input-padding-x-sm:0.75rem;--mlz-input-padding-y-sm:0.375rem;--mlz-input-padding-x-md:1rem;--mlz-input-padding-y-md:0.5rem;--mlz-input-padding-x-lg:1.25rem;--mlz-input-padding-y-lg:0.75rem;--mlz-input-font-size-sm:0.875rem;--mlz-input-font-size-md:1rem;--mlz-input-font-size-lg:1.125rem;--mlz-error-500:#ef4444;--mlz-error-600:#dc2626;--mlz-success-500:#22c55e;--mlz-success-600:#16a34a}.hover\\:bg-blue-50:hover{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity,1))}.focus\\:border-\\[var\\(--mlz-error-500\\2c rgb\\(239\\2c 68\\2c 68\\)\\)\\]:focus{border-color:var(--mlz-error-500,#ef4444)}.focus\\:border-\\[var\\(--mlz-primary-500\\2c rgb\\(59\\2c 130\\2c 246\\)\\)\\]:focus{border-color:var(--mlz-primary-500,#3b82f6)}.focus\\:border-\\[var\\(--mlz-success-500\\2c rgb\\(34\\2c 197\\2c 94\\)\\)\\]:focus{border-color:var(--mlz-success-500,#22c55e)}.focus\\:border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity,1))}.focus\\:border-green-500:focus{--tw-border-opacity:1;border-color:rgb(34 197 94/var(--tw-border-opacity,1))}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-\\[var\\(--mlz-error-500\\2c rgb\\(239\\2c 68\\2c 68\\)\\)\\]:focus{--tw-ring-color:var(--mlz-error-500,#ef4444)}.focus\\:ring-\\[var\\(--mlz-primary-500\\2c rgb\\(59\\2c 130\\2c 246\\)\\)\\]:focus{--tw-ring-color:var(--mlz-primary-500,#3b82f6)}.focus\\:ring-\\[var\\(--mlz-success-500\\2c rgb\\(34\\2c 197\\2c 94\\)\\)\\]:focus{--tw-ring-color:var(--mlz-success-500,#22c55e)}.focus\\:ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity,1))}.focus\\:ring-blue-500\\/20:focus{--tw-ring-color:rgba(59,130,246,.2)}.focus\\:ring-green-500\\/20:focus{--tw-ring-color:rgba(34,197,94,.2)}.focus\\:ring-red-500\\/20:focus{--tw-ring-color:rgba(239,68,68,.2)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (prefers-color-scheme:dark){.dark\\:border-gray-600{--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity,1))}.dark\\:border-green-400{--tw-border-opacity:1;border-color:rgb(74 222 128/var(--tw-border-opacity,1))}.dark\\:border-red-400{--tw-border-opacity:1;border-color:rgb(248 113 113/var(--tw-border-opacity,1))}.dark\\:bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity,1))}.dark\\:text-gray-100{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity,1))}.dark\\:text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity,1))}.dark\\:text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.dark\\:text-green-400{--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.dark\\:text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\\:placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}.dark\\:placeholder-gray-400::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity,1))}}";
32
+ var css_248z = "/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",\"Segoe UI Symbol\",\"Noto Color Emoji\";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--color-blue-50:oklch(97% 0.014 254.604);--color-blue-500:oklch(62.3% 0.214 259.815);--color-blue-600:oklch(54.6% 0.245 262.881);--color-blue-700:oklch(48.8% 0.243 264.376);--color-gray-200:oklch(92.8% 0.006 264.531);--color-gray-500:oklch(55.1% 0.027 264.364);--color-gray-600:oklch(44.6% 0.03 256.802);--color-gray-700:oklch(37.3% 0.034 259.733);--color-white:#fff;--spacing:0.25rem;--text-sm:0.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-lg:1.125rem;--text-lg--line-height:1.55556;--font-weight-medium:500;--font-weight-bold:700;--radius-md:0.375rem;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-primary-100:var(--mlz-primary-100,#dbeafe);--color-primary-300:var(--mlz-primary-300,#93c5fd);--color-primary-400:var(--mlz-primary-400,#5ba8d5);--color-primary-600:var(--mlz-primary-600,#236999);--color-semantic-error-600:var(--mlz-semantic-error-600,#ef284c);--font-geometria:\"Geometria\",sans-serif}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;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-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}: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)){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,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.absolute{position:absolute}.relative{position:relative}.top-1\\/2{top:50%}.right-4{right:calc(var(--spacing)*4)}.container{width:100%;@media (width >= 40rem){max-width:40rem}@media (width >= 48rem){max-width:48rem}@media (width >= 64rem){max-width:64rem}@media (width >= 80rem){max-width:80rem}@media (width >= 96rem){max-width:96rem}}.mt-1{margin-top:calc(var(--spacing)*1)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.block{display:block}.contents{display:contents}.flex{display:flex}.inline{display:inline}.inline-flex{display:inline-flex}.w-80{width:calc(var(--spacing)*80)}.w-\\[250px\\]{width:250px}.w-full{width:100%}.-translate-y-1\\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.rounded{border-radius:.25rem}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-\\(--mlz-newcomponent-border\\,\\#e5e7eb\\){border-color:var(--mlz-newcomponent-border,#e5e7eb)}.border-blue-600{border-color:var(--color-blue-600)}.border-gray-200{border-color:var(--color-gray-200)}.border-primary-400{border-color:var(--color-primary-400)}.border-semantic-error-600{border-color:var(--color-semantic-error-600)}.mlz-btn-primary{background-color:var(--color-blue-600);background-color:var(--mlz-primary-600,#2563eb);color:var(--color-white);&:hover{@media (hover:hover){background-color:var(--color-blue-700)}}&:focus{--tw-ring-color:var(--color-blue-500)}&:hover{background-color:var(--mlz-primary-700,#1d4ed8)}}.mlz-btn-secondary{background-color:var(--color-gray-600);background-color:var(--mlz-secondary-600,#475569);color:var(--color-white);&:hover{@media (hover:hover){background-color:var(--color-gray-700)}}&:focus{--tw-ring-color:var(--color-gray-500)}&:hover{background-color:var(--mlz-secondary-700,#334155)}}.bg-\\(--mlz-newcomponent-bg\\,\\#ffffff\\){background-color:var(--mlz-newcomponent-bg,#fff)}.bg-transparent{background-color:transparent}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.font-geometria{font-family:var(--font-geometria)}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--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))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-\\(--mlz-newcomponent-text\\,\\#374151\\){color:var(--mlz-newcomponent-text,#374151)}.text-blue-600{color:var(--color-blue-600)}.text-gray-700{color:var(--color-gray-700)}.text-primary-600{color:var(--color-primary-600)}.text-semantic-error-600{color:var(--color-semantic-error-600)}.opacity-50{opacity:50%}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));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))}.outline-solid{--tw-outline-style:solid;outline-style:solid}.placeholder\\:text-base{&::placeholder{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}}.placeholder\\:text-primary-400{&::placeholder{color:var(--color-primary-400)}}.placeholder\\:text-semantic-error-600{&::placeholder{color:var(--color-semantic-error-600)}}.hover\\:bg-blue-50{&:hover{@media (hover:hover){background-color:var(--color-blue-50)}}}.focus\\:border-primary-600{&:focus{border-color:var(--color-primary-600)}}.focus\\:border-semantic-error-600{&:focus{border-color:var(--color-semantic-error-600)}}.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-blue-500{&:focus{--tw-ring-color:var(--color-blue-500)}}.focus\\:ring-primary-600{&:focus{--tw-ring-color:var(--color-primary-600)}}.focus\\:ring-semantic-error-600{&:focus{--tw-ring-color:var(--color-semantic-error-600)}}.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-hidden{&:focus{--tw-outline-style:none;outline-style:none;@media (forced-colors:active){outline:2px solid transparent;outline-offset:2px}}}.focus\\:outline-none{&:focus{--tw-outline-style:none;outline-style:none}}.active\\:border-primary-600{&:active{border-color:var(--color-primary-600)}}.active\\:border-semantic-error-600{&:active{border-color:var(--color-semantic-error-600)}}.active\\:ring-2{&:active{--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)}}.disabled\\:cursor-not-allowed{&:disabled{cursor:not-allowed}}.disabled\\:bg-primary-100{&:disabled{background-color:var(--color-primary-100)}}.disabled\\:text-primary-300{&:disabled{color:var(--color-primary-300)}}.disabled\\:opacity-50{&:disabled{opacity:50%}}}@font-face{font-family:Geometria;font-style:normal;font-weight:300;src:url(fonts/Geometria-Light.woff2) format(\"woff2\")}@font-face{font-family:Geometria;font-style:normal;font-weight:400;src:url(fonts/Geometria-Regular.woff2) format(\"woff2\")}@font-face{font-family:Geometria;font-style:bold;font-weight:700;src:url(fonts/Geometria-Bold.woff2) format(\"woff2\")}body{font-family:Geometria,sans-serif}@layer base{*,::backdrop,::file-selector-button,:after,:before{border-color:var(--color-gray-200,currentcolor)}}@layer utilities{:root{--mlz-primary-50:#eff6ff;--mlz-primary-100:#e5f0f9;--mlz-primary-200:#bfdbfe;--mlz-primary-300:#94c6e5;--mlz-primary-400:#5ba8d5;--mlz-primary-500:#3b82f6;--mlz-primary-600:#236999;--mlz-primary-700:#1d4ed8;--mlz-primary-800:#1e40af;--mlz-primary-900:#1e3a8a;--mlz-primary-950:#172554;--mlz-semantic-info:#006eff;--mlz-semantic-error-600:#ef284c;--mlz-secondary-50:#f8fafc;--mlz-secondary-100:#f1f5f9;--mlz-secondary-200:#e2e8f0;--mlz-secondary-300:#cbd5e1;--mlz-secondary-400:#94a3b8;--mlz-secondary-500:#64748b;--mlz-secondary-600:#475569;--mlz-secondary-700:#334155;--mlz-secondary-800:#1e293b;--mlz-secondary-900:#0f172a;--mlz-secondary-950:#020617;--mlz-spacing-xs:0.25rem;--mlz-spacing-sm:0.5rem;--mlz-spacing-md:1rem;--mlz-spacing-lg:1.5rem;--mlz-spacing-xl:2rem;--mlz-spacing-2xl:3rem;--mlz-border-radius-sm:0.25rem;--mlz-border-radius-md:0.375rem;--mlz-border-radius-lg:0.5rem;--mlz-border-radius-xl:0.75rem;--mlz-font-size-xs:0.75rem;--mlz-font-size-sm:0.875rem;--mlz-font-size-base:1rem;--mlz-font-size-lg:1.125rem;--mlz-font-size-xl:1.25rem;--mlz-input-border-color:#d1d5db;--mlz-input-label-color:#374151;--mlz-input-helper-color:#6b7280;--mlz-input-height-sm:2rem;--mlz-input-height-md:2.5rem;--mlz-input-height-lg:3rem;--mlz-input-padding-x-sm:0.75rem;--mlz-input-padding-y-sm:0.375rem;--mlz-input-padding-x-md:1rem;--mlz-input-padding-y-md:0.5rem;--mlz-input-padding-x-lg:1.25rem;--mlz-input-padding-y-lg:0.75rem;--mlz-input-font-size-sm:0.875rem;--mlz-input-font-size-md:1rem;--mlz-input-font-size-lg:1.125rem;--mlz-error-500:#ef4444;--mlz-error-600:#dc2626;--mlz-success-500:#22c55e;--mlz-success-600:#16a34a}}@property --tw-translate-x{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-y{syntax:\"*\";inherits:false;initial-value:0}@property --tw-translate-z{syntax:\"*\";inherits:false;initial-value:0}@property --tw-border-style{syntax:\"*\";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:\"*\";inherits:false}@property --tw-outline-style{syntax:\"*\";inherits:false;initial-value:solid}@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}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-outline-style:solid;--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}}}";
33
33
  styleInject(css_248z,{"insertAt":"top"});
34
34
 
35
35
  var jsxRuntime = {exports: {}};
36
36
 
37
- var reactJsxRuntime_production_min = {};
38
-
39
- /**
40
- * @license React
41
- * react-jsx-runtime.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
-
49
- var hasRequiredReactJsxRuntime_production_min;
50
-
51
- function requireReactJsxRuntime_production_min () {
52
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
53
- hasRequiredReactJsxRuntime_production_min = 1;
54
- var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
55
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
56
- return reactJsxRuntime_production_min;
57
- }
58
-
59
37
  var reactJsxRuntime_development = {};
60
38
 
61
39
  /**
@@ -782,6 +760,11 @@ function requireReactJsxRuntime_development () {
782
760
  };
783
761
  var specialPropKeyWarningShown;
784
762
  var specialPropRefWarningShown;
763
+ var didWarnAboutStringRefs;
764
+
765
+ {
766
+ didWarnAboutStringRefs = {};
767
+ }
785
768
 
786
769
  function hasValidRef(config) {
787
770
  {
@@ -813,7 +796,15 @@ function requireReactJsxRuntime_development () {
813
796
 
814
797
  function warnIfStringRefCannotBeAutoConverted(config, self) {
815
798
  {
816
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
799
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
800
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
801
+
802
+ if (!didWarnAboutStringRefs[componentName]) {
803
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
804
+
805
+ didWarnAboutStringRefs[componentName] = true;
806
+ }
807
+ }
817
808
  }
818
809
  }
819
810
 
@@ -1053,6 +1044,11 @@ function requireReactJsxRuntime_development () {
1053
1044
 
1054
1045
  function getSourceInfoErrorAddendum(source) {
1055
1046
  {
1047
+ if (source !== undefined) {
1048
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1049
+ var lineNumber = source.lineNumber;
1050
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1051
+ }
1056
1052
 
1057
1053
  return '';
1058
1054
  }
@@ -1266,7 +1262,7 @@ function requireReactJsxRuntime_development () {
1266
1262
  info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1267
1263
  }
1268
1264
 
1269
- var sourceInfo = getSourceInfoErrorAddendum();
1265
+ var sourceInfo = getSourceInfoErrorAddendum(source);
1270
1266
 
1271
1267
  if (sourceInfo) {
1272
1268
  info += sourceInfo;
@@ -1379,6 +1375,28 @@ function requireReactJsxRuntime_development () {
1379
1375
  return reactJsxRuntime_development;
1380
1376
  }
1381
1377
 
1378
+ var reactJsxRuntime_production_min = {};
1379
+
1380
+ /**
1381
+ * @license React
1382
+ * react-jsx-runtime.production.min.js
1383
+ *
1384
+ * Copyright (c) Facebook, Inc. and its affiliates.
1385
+ *
1386
+ * This source code is licensed under the MIT license found in the
1387
+ * LICENSE file in the root directory of this source tree.
1388
+ */
1389
+
1390
+ var hasRequiredReactJsxRuntime_production_min;
1391
+
1392
+ function requireReactJsxRuntime_production_min () {
1393
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1394
+ hasRequiredReactJsxRuntime_production_min = 1;
1395
+ var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
1396
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1397
+ return reactJsxRuntime_production_min;
1398
+ }
1399
+
1382
1400
  if (process.env.NODE_ENV === 'production') {
1383
1401
  jsxRuntime.exports = requireReactJsxRuntime_production_min();
1384
1402
  } else {
@@ -1399,99 +1417,38 @@ const buttonSizes = {
1399
1417
  lg: 'px-6 py-3 text-lg'
1400
1418
  };
1401
1419
  const Button = ({ children, variant = 'primary', size = 'md', disabled = false, onClick, type = 'button', className = '', ...props }) => {
1402
- const baseClasses = 'inline-flex items-center justify-center font-medium rounded-md transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed';
1420
+ const baseClasses = 'inline-flex items-center justify-center font-medium rounded-md transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2 disabled:opacity-50 disabled:cursor-not-allowed';
1403
1421
  const variantClasses = buttonVariants[variant];
1404
1422
  const sizeClasses = buttonSizes[size];
1405
1423
  const classes = `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`.trim();
1406
1424
  return (jsxRuntimeExports.jsx("button", { type: type, className: classes, disabled: disabled, onClick: onClick, ...props, children: children }));
1407
1425
  };
1408
1426
 
1409
- /**
1410
- * Componente Input básico con diferentes variantes y tamaños
1411
- */
1412
- const Input = ({ variant = 'default', size = 'md', label, helperText, errorText, fullWidth = false, className = '', ...props }) => {
1413
- // Clases base del input
1414
- const baseClasses = [
1415
- 'border rounded-md transition-colors duration-200 focus:outline-none focus:ring-2',
1416
- 'bg-white dark:bg-gray-800',
1417
- 'text-gray-900 dark:text-gray-100',
1418
- 'placeholder-gray-500 dark:placeholder-gray-400'
1419
- ];
1420
- // Clases de tamaño
1421
- const sizeClasses = {
1422
- sm: [
1423
- 'px-3 py-1.5 text-sm',
1424
- 'h-8',
1425
- // CSS Variables con fallbacks
1426
- `h-[var(--mlz-input-height-sm,2rem)]`,
1427
- `px-[var(--mlz-input-padding-x-sm,0.75rem)]`,
1428
- `py-[var(--mlz-input-padding-y-sm,0.375rem)]`,
1429
- `text-[var(--mlz-input-font-size-sm,0.875rem)]`
1430
- ],
1431
- md: [
1432
- 'px-4 py-2 text-base',
1433
- 'h-10',
1434
- // CSS Variables con fallbacks
1435
- `h-[var(--mlz-input-height-md,2.5rem)]`,
1436
- `px-[var(--mlz-input-padding-x-md,1rem)]`,
1437
- `py-[var(--mlz-input-padding-y-md,0.5rem)]`,
1438
- `text-[var(--mlz-input-font-size-md,1rem)]`
1439
- ],
1440
- lg: [
1441
- 'px-5 py-3 text-lg',
1442
- 'h-12',
1443
- // CSS Variables con fallbacks
1444
- `h-[var(--mlz-input-height-lg,3rem)]`,
1445
- `px-[var(--mlz-input-padding-x-lg,1.25rem)]`,
1446
- `py-[var(--mlz-input-padding-y-lg,0.75rem)]`,
1447
- `text-[var(--mlz-input-font-size-lg,1.125rem)]`
1448
- ]
1449
- };
1450
- // Clases de variante
1451
- const variantClasses = {
1452
- default: [
1453
- 'border-gray-300 dark:border-gray-600',
1454
- 'focus:border-blue-500 focus:ring-blue-500/20',
1455
- // CSS Variables con fallbacks
1456
- `border-[var(--mlz-input-border-color,rgb(209,213,219))]`,
1457
- `focus:border-[var(--mlz-primary-500,rgb(59,130,246))]`,
1458
- `focus:ring-[var(--mlz-primary-500,rgb(59,130,246))]`
1459
- ],
1460
- error: [
1461
- 'border-red-500 dark:border-red-400',
1462
- 'focus:border-red-500 focus:ring-red-500/20',
1463
- // CSS Variables con fallbacks
1464
- `border-[var(--mlz-error-500,rgb(239,68,68))]`,
1465
- `focus:border-[var(--mlz-error-500,rgb(239,68,68))]`,
1466
- `focus:ring-[var(--mlz-error-500,rgb(239,68,68))]`
1467
- ],
1468
- success: [
1469
- 'border-green-500 dark:border-green-400',
1470
- 'focus:border-green-500 focus:ring-green-500/20',
1471
- // CSS Variables con fallbacks
1472
- `border-[var(--mlz-success-500,rgb(34,197,94))]`,
1473
- `focus:border-[var(--mlz-success-500,rgb(34,197,94))]`,
1474
- `focus:ring-[var(--mlz-success-500,rgb(34,197,94))]`
1475
- ]
1427
+ const CheckIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntimeExports.jsx("path", { d: "M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z", fill: "#2ABB5B" }) }));
1428
+
1429
+ const inputClasses = (hasError, fullWidth) => {
1430
+ const colorClass = hasError ? "semantic-error-600" : "primary-600";
1431
+ const borderColorClass = hasError ? "semantic-error-600" : "primary-400";
1432
+ return {
1433
+ containerStyle: "flex flex-col relative font-geometria" + (fullWidth ? " w-full" : ""),
1434
+ labelStyle: `block text-base font-bold text-${colorClass}`,
1435
+ inputStyle: [
1436
+ "disabled:bg-primary-100 disabled:cursor-not-allowed disabled:text-primary-300",
1437
+ "block w-full rounded border px-4 py-2",
1438
+ "placeholder:text-base",
1439
+ "focus:outline-none focus:ring-2",
1440
+ "active:ring-2",
1441
+ `border-${borderColorClass}`,
1442
+ `placeholder:text-${borderColorClass}`,
1443
+ `focus:border-${colorClass} focus:ring-${colorClass}`,
1444
+ `active:border-${colorClass}`,
1445
+ ].join(" "),
1446
+ helperTextStyle: `mt-1 text-base text-${colorClass}`,
1476
1447
  };
1477
- // Clases de ancho
1478
- const widthClasses = fullWidth ? 'w-full' : 'w-auto';
1479
- // Combinar todas las clases
1480
- const inputClasses = [
1481
- ...baseClasses,
1482
- ...sizeClasses[size],
1483
- ...variantClasses[variant],
1484
- widthClasses,
1485
- className
1486
- ].join(' ');
1487
- // Determinar el texto de ayuda efectivo
1488
- const effectiveHelperText = errorText || helperText;
1489
- const effectiveVariant = errorText ? 'error' : variant;
1490
- return (jsxRuntimeExports.jsxs("div", { className: `flex flex-col ${fullWidth ? 'w-full' : 'w-auto'}`, children: [label && (jsxRuntimeExports.jsx("label", { htmlFor: props.id, className: `mb-1.5 text-sm font-medium text-gray-700 dark:text-gray-300 text-[var(--mlz-input-label-color,rgb(55,65,81))]`, children: label })), jsxRuntimeExports.jsx("input", { ...props, className: inputClasses }), effectiveHelperText && (jsxRuntimeExports.jsx("p", { className: `mt-1.5 text-sm ${effectiveVariant === 'error'
1491
- ? 'text-red-600 dark:text-red-400 text-[var(--mlz-error-600,rgb(220,38,38))]'
1492
- : effectiveVariant === 'success'
1493
- ? 'text-green-600 dark:text-green-400 text-[var(--mlz-success-600,rgb(22,163,74))]'
1494
- : 'text-gray-500 dark:text-gray-400 text-[var(--mlz-input-helper-color,rgb(107,114,128))]'}`, children: effectiveHelperText }))] }));
1448
+ };
1449
+ const Input = ({ labelProps, helperTextProps, containerProps, errorText, helperText, hasError = false, disabled, label, placeholder, fullWidth, checkedIcon, ...props }) => {
1450
+ const classes = inputClasses(hasError, fullWidth);
1451
+ return (jsxRuntimeExports.jsxs("div", { className: classes.containerStyle, children: [jsxRuntimeExports.jsx("label", { ...labelProps, className: classes.labelStyle, children: label }), jsxRuntimeExports.jsx("input", { ...props, disabled: disabled, placeholder: placeholder, className: classes.inputStyle }), checkedIcon && (jsxRuntimeExports.jsx("div", { className: "absolute right-4 top-1/2 -translate-y-1/2", children: jsxRuntimeExports.jsx(CheckIcon, {}) })), jsxRuntimeExports.jsx("p", { ...helperTextProps, className: classes.helperTextStyle, children: errorText ? errorText : helperText })] }));
1495
1452
  };
1496
1453
 
1497
1454
  function UserCard({ name, email, changeUser, editUser }) {