tailwind-ux-kit 1.0.112 → 1.0.114

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.
@@ -1,18 +1,18 @@
1
- (function(C,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],a):(C=typeof globalThis<"u"?globalThis:C||self,a(C.TailwindUiKit={},C.jsxRuntime,C.React,C.ReactDOM))})(this,(function(C,a,t,fe){"use strict";"use client";var V=document.createElement("style");V.textContent=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-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}}}.btn-primary{background-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-white,#fff)}@media(hover:hover){.btn-primary:hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.btn-outline-primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.btn-outline-primary:hover{background-color:var(--color-blue-50,oklch(97% .014 254.604))}}.btn-soft-primary{background-color:var(--color-blue-100,oklch(93.2% .032 255.585));color:var(--color-blue-700,oklch(48.8% .243 264.376))}@media(hover:hover){.btn-soft-primary:hover{background-color:var(--color-blue-200,oklch(88.2% .059 254.128))}}.btn-secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-white,#fff)}@media(hover:hover){.btn-secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.btn-outline-secondary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.btn-outline-secondary:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.btn-soft-secondary{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.btn-soft-secondary:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.btn-success{background-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-white,#fff)}@media(hover:hover){.btn-success:hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.btn-outline-success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.btn-outline-success:hover{background-color:var(--color-green-50,oklch(98.2% .018 155.826))}}.btn-soft-success{background-color:var(--color-green-100,oklch(96.2% .044 156.743));color:var(--color-green-700,oklch(52.7% .154 150.069))}@media(hover:hover){.btn-soft-success:hover{background-color:var(--color-green-200,oklch(92.5% .084 155.995))}}.btn-danger{background-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-white,#fff)}@media(hover:hover){.btn-danger:hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.btn-outline-danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.btn-outline-danger:hover{background-color:var(--color-red-50,oklch(97.1% .013 17.38))}}.btn-soft-danger{background-color:var(--color-red-100,oklch(93.6% .032 17.717));color:var(--color-red-700,oklch(50.5% .213 27.518))}@media(hover:hover){.btn-soft-danger:hover{background-color:var(--color-red-200,oklch(88.5% .062 18.334))}}.btn-warning{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047));color:var(--color-white,#fff)}@media(hover:hover){.btn-warning:hover{background-color:var(--color-yellow-600,oklch(68.1% .162 75.834))}}.btn-outline-warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-500,oklch(79.5% .184 86.047));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.btn-outline-warning:hover{background-color:var(--color-yellow-50,oklch(98.7% .026 102.212))}}.btn-soft-warning{background-color:var(--color-yellow-100,oklch(97.3% .071 103.193));color:var(--color-yellow-700,oklch(55.4% .135 66.442))}@media(hover:hover){.btn-soft-warning:hover{background-color:var(--color-yellow-200,oklch(94.5% .129 101.54))}}.btn-info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-white,#fff)}@media(hover:hover){.btn-info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.btn-outline-info{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.btn-outline-info:hover{background-color:var(--color-cyan-50,oklch(98.4% .019 200.873))}}.btn-soft-info{background-color:var(--color-cyan-100,oklch(95.6% .045 203.388));color:var(--color-cyan-700,oklch(52% .105 223.128))}@media(hover:hover){.btn-soft-info:hover{background-color:var(--color-cyan-200,oklch(91.7% .08 205.041))}}.btn-dark{background-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-white,#fff)}@media(hover:hover){.btn-dark:hover{background-color:var(--color-black,#000)}}.btn-outline-dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.btn-outline-dark:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.btn-soft-dark{background-color:var(--color-gray-200,oklch(92.8% .006 264.531));color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.btn-soft-dark:hover{background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}}.btn-light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@media(hover:hover){.btn-light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.btn-outline-light{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.btn-outline-light:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.btn-soft-light{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.btn-soft-light:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.btn-link{padding:calc(var(--spacing,.25rem)*0);color:var(--color-blue-600,oklch(54.6% .245 262.881));--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);background-color:#0000}@media(hover:hover){.btn-link:hover{text-decoration-line:underline}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-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}}}.primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-white,#fff)}.primary:is(:where(.peer):checked~*){border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-white,#fff)}@media(hover:hover){.primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}.primary:is(:where(.peer):checked~*):hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.outline-primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-white,#fff)}.outline-primary:is(:where(.peer):checked~*){color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.outline-primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}}.soft-primary{border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-blue-200,oklch(88.2% .059 254.128));color:var(--color-blue-600,oklch(54.6% .245 262.881))}.soft-primary:is(:where(.peer):checked~*){border-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.soft-primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}}.secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-white,#fff)}@media(hover:hover){.secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.outline-secondary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.outline-secondary:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.soft-secondary{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.soft-secondary:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-white,#fff)}.success:is(:where(.peer):checked~*){border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-white,#fff)}@media(hover:hover){.success:hover{background-color:var(--color-green-300,oklch(87.1% .15 154.449))}.success:is(:where(.peer):checked~*):hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.outline-success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-white,#fff)}.outline-success:is(:where(.peer):checked~*){color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.outline-success:hover{background-color:var(--color-green-300,oklch(87.1% .15 154.449))}}.soft-success{border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-green-200,oklch(92.5% .084 155.995));color:var(--color-green-600,oklch(62.7% .194 149.214))}.soft-success:is(:where(.peer):checked~*){border-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.soft-success:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-white,#fff)}.danger:is(:where(.peer):checked~*){border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-white,#fff)}@media(hover:hover){.danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}.danger:is(:where(.peer):checked~*):hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.outline-danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-white,#fff)}.outline-danger:is(:where(.peer):checked~*){color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.outline-danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.soft-danger{border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-red-200,oklch(88.5% .062 18.334));color:var(--color-red-600,oklch(57.7% .245 27.325))}.soft-danger:is(:where(.peer):checked~*){border-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.soft-danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-white,#fff)}.warning:is(:where(.peer):checked~*){border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-yellow-600,oklch(68.1% .162 75.834));color:var(--color-white,#fff)}@media(hover:hover){.warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}.warning:is(:where(.peer):checked~*):hover{background-color:var(--color-yellow-700,oklch(55.4% .135 66.442))}}.outline-warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-white,#fff)}.outline-warning:is(:where(.peer):checked~*){color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.outline-warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}}.soft-warning{border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-yellow-200,oklch(94.5% .129 101.54));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}.soft-warning:is(:where(.peer):checked~*){border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.soft-warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}}.info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-white,#fff)}@media(hover:hover){.info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.outline-info{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.outline-info:hover{background-color:var(--color-cyan-50,oklch(98.4% .019 200.873))}}.soft-info{background-color:var(--color-cyan-100,oklch(95.6% .045 203.388));color:var(--color-cyan-700,oklch(52% .105 223.128))}@media(hover:hover){.soft-info:hover{background-color:var(--color-cyan-200,oklch(91.7% .08 205.041))}}.dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-700,oklch(37.3% .034 259.733));background-color:var(--color-white,#fff)}.dark:is(:where(.peer):checked~*){border-color:var(--color-black,#000);background-color:var(--color-black,#000);color:var(--color-white,#fff)}@media(hover:hover){.dark:hover{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.dark:hover{background-color:color-mix(in oklab,var(--color-black,#000)50%,transparent)}}}.outline-dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-900,oklch(21% .034 264.665));background-color:var(--color-white,#fff)}.outline-dark:is(:where(.peer):checked~*){color:var(--color-black,#000)}@media(hover:hover){.outline-dark:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.soft-dark{border-color:var(--color-gray-600,oklch(44.6% .03 256.802));background-color:var(--color-gray-500,oklch(55.1% .027 264.364));color:var(--color-black,#000)}.soft-dark:is(:where(.peer):checked~*){border-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-black,#000)}@media(hover:hover){.soft-dark:hover{background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}}.light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@media(hover:hover){.light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.outline-light{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.outline-light:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.soft-light{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.soft-light:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.link{padding:calc(var(--spacing,.25rem)*0);color:var(--color-blue-600,oklch(54.6% .245 262.881));--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);background-color:#0000}@media(hover:hover){.link:hover{text-decoration-line:underline}}@property --tw-border-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}/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */.toggler-primary{background-color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.toggler-primary:hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.toggler-secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.toggler-secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.toggler-success{background-color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.toggler-success:hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.toggler-danger{background-color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.toggler-danger:hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.toggler-warning{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047))}@media(hover:hover){.toggler-warning:hover{background-color:var(--color-yellow-600,oklch(68.1% .162 75.834))}}.toggler-info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.toggler-info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.toggler-dark{background-color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.toggler-dark:hover{background-color:var(--color-black,#000)}}.toggler-light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}@media(hover:hover){.toggler-light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.animate-slide-up{animation:slideUp .25s cubic-bezier(.22,1,.36,1)}
2
- /*$vite$:1*/`,document.head.appendChild(V);const R={xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-3 py-3",lg:"text-lg px-5 py-3"},ee={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},ge={filled:"rounded-t-lg px-2.5 pb-2.5 pt-5 bg-gray-50 border-b-2",outlined:"rounded-lg px-2.5 pb-2.5 pt-4 bg-transparent border",standard:"px-0 py-2.5 bg-transparent border-0 border-b-2"},be={filled:"absolute duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",outlined:"absolute duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-placeholder-shown:scale-100 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",standard:"absolute duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 peer-focus:text-blue-600"},ve=(e,r,o)=>{if(o)return"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:ring-red-500 focus:border-red-500";if(r)return"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:ring-green-500 focus:border-green-500";switch(e){case"error":return"border-red-500 bg-red-50 focus:ring-red-500";case"warning":return"border-yellow-500 bg-yellow-50 focus:ring-yellow-500";case"success":return"border-green-500 bg-green-50 focus:ring-green-500";default:return"border-gray-300 focus:ring-blue-500"}},oe=t.forwardRef((e,r)=>{const{label:o,id:l,inputSize:n="md",shape:i="rounded",validate:f,onValidatedChange:u,className:g="",icon:c,iconPosition:s="left",floatingLabelStyle:h,onChange:b,isValid:p,isInvalid:d,feedback:k,iconClasses:M,feedbackType:m="invalid",labelClasses:S="",inputType:N="",inputPattern:y,...w}=e,[x,P]=t.useState("default"),E=t.useCallback(j=>{const T=j.target.value,O=(f==null?void 0:f(T))??"default";P(O),u==null||u(j,O),b==null||b(j)},[f,u,b]),D=t.useMemo(()=>l||(typeof o=="string"?`input-${o.toLowerCase().replace(/\s+/g,"-")}`:`input-${Math.random().toString(36).slice(2)}`),[l,o]),B=!!h,v=R[n]||R.md,$=ee[i]||ee.flat,L=t.useMemo(()=>ve(x,p,d),[x,p,d]),A=t.useMemo(()=>s==="start"||s==="left"?"left-0 ps-3.5":"right-0 pe-3.5",[s]),z=t.useMemo(()=>c?s==="start"||s==="left"?"ps-10":"pe-10":"",[c,s]),_=j=>{var F;const T=j.key;!(j.ctrlKey||j.metaKey||T.length!==1||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(T))&&(()=>{const W=/^\d$/,K=/^[a-zA-Z]$/;switch(N){case"numeric":case"number":case"integer":return!W.test(T);case"decimal":return!W.test(T)&&T!=="."&&T!=="Backspace"&&T!=="Tab";case"alphabetic":return!K.test(T);case"custom":return y?!y.test(T):!1;default:return!1}})()&&j.preventDefault(),(F=w.onKeyDown)==null||F.call(w,j)},H=j=>{var I;const T=j.clipboardData.getData("Text");(()=>{const F=/^\d+$/,W=/^\d*\.?\d*$/,K=/^[a-zA-Z]+$/;switch(N){case"numeric":case"number":case"integer":return!F.test(T);case"decimal":return!W.test(T);case"alphabetic":return!K.test(T);case"custom":return y?!y.test(T):!1;default:return!1}})()&&j.preventDefault(),(I=w.onPaste)==null||I.call(w,j)};return a.jsxs("div",{className:`w-full relative ${B?"z-0":""} tailwind-ux-input`,children:[!B&&o&&a.jsx("label",{htmlFor:D,className:`block mb-1 text-sm ${p?"text-green-700 dark:text-green-500":d?"text-red-700 dark:text-red-500":"text-gray-700"} ${S}`,children:o}),a.jsxs("div",{className:"relative w-full",children:[c&&a.jsx("div",{className:`absolute inset-y-0 flex items-center ${A} ${M}`,"aria-hidden":"true",children:c}),a.jsx("input",{...w,id:D,ref:r,placeholder:B?" ":w.placeholder,onChange:E,onKeyDown:_,onPaste:H,className:`border peer w-full block font-normal appearance-none focus:outline-none focus:ring-0 transition text-gray-900 placeholder-gray-600 border-gray-400
3
- ${v}
4
- ${B&&h&&ge[h]}
5
- ${z} ${$} ${L} ${g}`}),B&&o&&h&&a.jsx("label",{htmlFor:D,className:`ms-1 ${be[h]} ${g}`,children:o})]}),k&&a.jsx("p",{className:`mt-1 text-xs ${m==="invalid"?"text-red-600 dark:text-red-500":"text-green-600 dark:text-green-500"}`,role:m==="invalid"?"alert":void 0,children:k})]})});oe.displayName="Input";const pe={xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-3 py-3",lg:"text-lg px-5 py-3"},ye={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},we={filled:"rounded-t-lg px-2.5 pb-2.5 pt-5 bg-gray-50 border-b-2",outlined:"rounded-lg px-2.5 pb-2.5 pt-4 bg-transparent border",standard:"px-0 py-2.5 bg-transparent border-0 border-b-2"},ke={filled:"absolute duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",outlined:"absolute duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-placeholder-shown:scale-100 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",standard:"absolute duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 peer-focus:text-blue-600"},me=(e,r,o)=>{if(o)return"border-red-500 bg-red-50 text-red-900 focus:ring-red-500 focus:border-red-500";if(r)return"border-green-500 bg-green-50 text-green-900 focus:ring-green-500 focus:border-green-500";const l="focus:ring focus:border";switch(e){case"error":return`${l}-red-500 border-red-500 bg-red-50`;case"warning":return`${l}-yellow-500 border-yellow-500 bg-yellow-50`;case"success":return`${l}-green-500 border-green-500 bg-green-50`;default:return"border-gray-300 focus:ring-blue-500"}},re=t.forwardRef((e,r)=>{const{label:o,id:l,inputSize:n="md",shape:i="rounded",validate:f,onValidatedChange:u,className:g="",icon:c,iconPosition:s="left",floatingLabelStyle:h,onChange:b,isValid:p,isInvalid:d,feedback:k,feedbackType:M="invalid",children:m,...S}=e,[N,y]=t.useState("default"),w=t.useId(),x=t.useMemo(()=>l||(typeof o=="string"?`select-${o.toLowerCase().replace(/\s+/g,"-")}`:w),[l,o,w]),P=A=>{const z=A.target.value,_=(f==null?void 0:f(z))??"default";y(_),u==null||u(A,_),b==null||b(A)},E=!!h,D=pe[n],B=ye[i],v=me(N,p,d),$=c&&(s==="start"||s==="left")?"ps-10":c?"pe-10":"",L=s==="start"||s==="left"?"left-0 ps-3.5":"right-0 pe-3.5";return a.jsxs("div",{className:`w-full relative ${E?"z-0":""}`,children:[!E&&o&&a.jsx("label",{htmlFor:x,className:`block mb-1 text-sm ${p?"text-green-700":d?"text-red-700":"text-gray-700"}`,children:o}),a.jsxs("div",{className:"relative w-full",children:[c&&a.jsx("div",{className:`absolute inset-y-0 flex items-center ${L}`,children:a.jsx("span",{className:"text-gray-500",children:c})}),a.jsx("select",{...S,id:x,ref:r,onChange:P,className:`border peer w-full block font-normal appearance-none focus:outline-none focus:ring-0 transition text-gray-600 placeholder-[#798ba5] border-gray-400
6
- ${D} ${$}
7
- ${E&&h&&we[h]}
8
- ${B} ${v} ${g}`,children:m}),E&&o&&h&&a.jsx("label",{htmlFor:x,className:`ms-1 ${ke[h]} ${g}`,children:o})]}),k&&a.jsx("p",{className:`mt-1 text-xs ${M==="invalid"?"text-red-600":"text-green-600"}`,children:k})]})});re.displayName="Select";const xe={primary:"btn-primary",secondary:"btn-secondary",success:"btn-success",danger:"btn-danger",warning:"btn-warning",info:"btn-info",dark:"btn-dark",light:"btn-light",link:"btn-link","outline-primary":"btn-outline-primary","outline-secondary":"btn-outline-secondary","outline-success":"btn-outline-success","outline-danger":"btn-outline-danger","outline-warning":"btn-outline-warning","outline-info":"btn-outline-info","outline-dark":"btn-outline-dark","outline-light":"btn-outline-light","soft-primary":"btn-soft-primary","soft-secondary":"btn-soft-secondary","soft-success":"btn-soft-success","soft-danger":"btn-soft-danger","soft-warning":"btn-soft-warning","soft-info":"btn-soft-info","soft-dark":"btn-soft-dark","soft-light":"btn-soft-light"},Ce={xs:"px-3 py-2 text-xs",sm:"px-3 py-2 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-3.5 text-base"},Se={flat:"shadow-none",rounded:"rounded-sm",pill:"rounded-full",circle:"rounded-full w-10 h-10 p-0 flex items-center justify-center"},$e=({children:e,variant:r="primary",size:o="md",type:l="button",shape:n="rounded",className:i="",isLoading:f=!1,disabled:u=!1,...g})=>{const c=u||f,s=["inline-flex items-center justify-center font-normal transition duration-150",xe[r],Ce[o],Se[n],n==="flat"?"shadow-none":"shadow-sm",c?"opacity-50 cursor-not-allowed":"cursor-pointer",i].filter(Boolean).join(" ");return a.jsxs("button",{type:l,className:s,disabled:c,...g,children:[f&&a.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 me-3 text-gray-200 animate-spin dark:text-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"#1C64F2"})]}),e]})};var te={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},le=t.createContext&&t.createContext(te),Ne=["attr","size","title"];function Ee(e,r){if(e==null)return{};var o=Le(e,r),l,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)l=i[n],!(r.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(e,l)&&(o[l]=e[l])}return o}function Le(e,r){if(e==null)return{};var o={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){if(r.indexOf(l)>=0)continue;o[l]=e[l]}return o}function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&(e[l]=o[l])}return e},Y.apply(this,arguments)}function ne(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);r&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,l)}return o}function Z(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ne(Object(o),!0).forEach(function(l){Me(e,l,o[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(l){Object.defineProperty(e,l,Object.getOwnPropertyDescriptor(o,l))})}return e}function Me(e,r,o){return r=Pe(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Pe(e){var r=Oe(e,"string");return typeof r=="symbol"?r:r+""}function Oe(e,r){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var l=o.call(e,r);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function ae(e){return e&&e.map((r,o)=>t.createElement(r.tag,Z({key:o},r.attr),ae(r.child)))}function U(e){return r=>t.createElement(Te,Y({attr:Z({},e.attr)},r),ae(e.child))}function Te(e){var r=o=>{var{attr:l,size:n,title:i}=e,f=Ee(e,Ne),u=n||o.size||"1em",g;return o.className&&(g=o.className),e.className&&(g=(g?g+" ":"")+e.className),t.createElement("svg",Y({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,l,f,{className:g,style:Z(Z({color:e.color||o.color},o.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&t.createElement("title",null,i),e.children)};return le!==void 0?t.createElement(le.Consumer,null,o=>r(o)):r(te)}function De(e){return U({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}const Be={xs:"w-3 h-3 text-[10px]",sm:"w-4 h-4 text-xs",md:"w-5 h-5 text-sm",lg:"w-6 h-6 text-base"},je={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},Ae={primary:"primary",secondary:"secondary",success:"success",danger:"danger",warning:"warning",info:"info",dark:"dark",light:"light",link:"link","outline-primary":"outline-primary","outline-secondary":"outline-secondary","outline-success":"outline-success","outline-danger":"outline-danger","outline-warning":"outline-warning","outline-info":"outline-info","outline-dark":"outline-dark","outline-light":"outline-light","soft-primary":"soft-primary","soft-secondary":"soft-secondary","soft-success":"soft-success","soft-danger":"soft-danger","soft-warning":"soft-warning","soft-info":"soft-info","soft-dark":"soft-dark","soft-light":"soft-light"},ce=t.forwardRef(({label:e,boxSize:r="md",shape:o="rounded",variant:l="success",onSelectionChange:n,disabled:i=!1,className:f="",id:u,value:g,icon:c,children:s,checked:h,...b},p)=>{const d=D=>{!i&&n&&n(D.target.checked),b.onChange&&b.onChange(D)},k="mr-2 border flex items-center justify-center transition-all",M=Be[r],m=je[o],S=Ae[l]??"",N=l.startsWith("outline"),y=l.startsWith("soft"),P=`${k} ${M} ${m} ${S} ${h&&(N||y||l==="link")?"peer-checked:bg-current peer-checked:text-white":h?"peer-checked:bg-current":""}`,E={xs:"w-2 h-2",sm:"w-2.5 h-2.5",md:"w-3 h-3",lg:"w-3.5 h-3.5"};return a.jsxs("label",{className:`flex items-center ${i?"opacity-50 cursor-not-allowed":"cursor-pointer"} me-4 ${f}`,children:[a.jsx("input",{type:"checkbox",className:"peer hidden",checked:h,onChange:d,disabled:i,id:u,value:g,ref:p,...b}),a.jsx("span",{className:P.trim(),children:(h||b.defaultChecked)&&(c??a.jsx(De,{className:`${E[r]}`}))}),e||s?a.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-300",children:e??s}):null]})});ce.displayName="Checkbox";const Ie=({label:e,header:r,items:o=[],onSelect:l,renderItem:n,position:i="right",className:f="",menuClassName:u="",width:g="w-48",closeOnSelect:c=!1,transition:s=!0,ariaLabel:h="Dropdown menu",forceCloseDropdown:b,...p})=>{const[d,k]=t.useState(!1),[M,m]=t.useState(!1),S=t.useRef(null),N=t.useRef(null),y=t.useMemo(()=>({left:"left-0",center:"left-1/2 transform -translate-x-1/2",right:"right-0"})[i],[i]),w=t.useCallback(()=>{const v=N.current,$=S.current;if(!v||!$)return;const{top:L,bottom:A}=v.getBoundingClientRect(),z=$.offsetHeight,_=window.innerHeight-A,H=L;m(_<z&&H>z)},[]),x=t.useCallback(v=>{var $,L;!(($=S.current)!=null&&$.contains(v.target))&&!((L=N.current)!=null&&L.contains(v.target))&&k(!1)},[]),P=t.useCallback(()=>k(v=>!v),[]),E=t.useCallback(()=>k(!1),[]);t.useEffect(()=>{if(d)return w(),window.addEventListener("resize",w),window.addEventListener("scroll",w,!0),()=>{window.removeEventListener("resize",w),window.removeEventListener("scroll",w,!0)}},[d,w]);const D=t.useRef(d);t.useEffect(()=>{D.current=d},[d]),t.useEffect(()=>{const v=$=>{var L;$.key==="Escape"&&D.current&&(k(!1),(L=N.current)==null||L.focus())};return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[]),t.useEffect(()=>(document.addEventListener("mousedown",x),()=>document.removeEventListener("mousedown",x)),[x]);const B=t.useMemo(()=>["absolute z-50 bg-white rounded shadow-lg overflow-hidden w-auto",M?"bottom-full mb-2":"top-full mt-2",y,g,s&&"transition-all duration-200 ease-out",u].filter(Boolean).join(" "),[M,y,g,s,u]);return a.jsxs("div",{className:`relative inline-block ${f}`,...p,children:[a.jsx("button",{type:"button",ref:N,onClick:P,"aria-expanded":d,"aria-label":h,className:"focus:outline-none",children:e}),d&&a.jsxs("div",{ref:S,role:"menu",className:B,children:[r&&r,o.map((v,$)=>{const L=()=>{l&&l(v),c&&E()};return a.jsx("div",{children:n?n(v,L):a.jsx("div",{onClick:L,className:"px-4 py-2 text-sm text-gray-800 hover:bg-gray-100 cursor-pointer",role:"menuitem",children:v.label})},$)})]})]})},ze=({children:e,content:r,position:o="top",className:l="",tooltipClass:n="",tooltipStyle:i={}})=>{const f=t.useRef(null),u=t.useRef(null);t.useEffect(()=>{const c=f.current,s=u.current;if(!c||!s)return;const h=()=>{s.style.opacity="1",s.style.visibility="visible"},b=()=>{s.style.opacity="0",s.style.visibility="hidden"};return c.addEventListener("mouseenter",h),c.addEventListener("mouseleave",b),()=>{c.removeEventListener("mouseenter",h),c.removeEventListener("mouseleave",b)}},[]);const g=c=>{const s={position:"absolute",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",maxWidth:"240px",whiteSpace:"normal",wordBreak:"break-word",padding:"8px 12px",fontSize:"0.875rem",backgroundColor:"black",color:"white",borderRadius:"4px",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.15)",zIndex:9999,width:"max-content"};switch(c){case"top":return{...s,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"8px"};case"bottom":return{...s,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"8px"};case"left":return{...s,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"8px"};case"right":return{...s,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"8px"};default:return s}};return a.jsxs("div",{ref:f,className:`relative inline-block ${l}`,children:[e,a.jsx("div",{ref:u,role:"tooltip",className:n,style:{...g(o),...i},children:r})]})},_e={primary:"bg-blue-500 text-white",secondary:"bg-gray-500 text-white",success:"bg-green-500 text-white",danger:"bg-red-500 text-white",warning:"bg-yellow-400 text-black",info:"bg-cyan-500 text-white",dark:"bg-black text-white",light:"bg-gray-100 text-gray-800",link:"bg-transparent text-blue-500 underline","outline-primary":"border border-blue-500 text-blue-500 bg-transparent","outline-secondary":"border border-gray-500 text-gray-500 bg-transparent","outline-success":"border border-green-500 text-green-500 bg-transparent","outline-danger":"border border-red-500 text-red-500 bg-transparent","outline-warning":"border border-yellow-400 text-yellow-500 bg-transparent","outline-info":"border border-cyan-500 text-cyan-500 bg-transparent","outline-dark":"border border-black text-black bg-transparent","outline-light":"border border-gray-100 text-gray-800 bg-transparent"},Fe={xs:"text-xs px-2 py-0.5",sm:"text-sm px-2.5 py-0.5",md:"text-base px-3 py-1",lg:"text-lg px-3.5 py-1.5",xl:"text-xl px-4 py-2"},Ke={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full",circle:"rounded-full p-2 w-8 h-8 justify-center"},He=({label:e,variant:r="primary",size:o="sm",shape:l="rounded",icon:n,dismissible:i,onDismiss:f,className:u="",...g})=>{const c=!e&&!!n,s=`inline-flex items-center font-medium ${_e[r]||""} ${Fe[o]||""} ${Ke[l]||""} ${c?"justify-center p-2 w-8 h-8":""} `+u;return a.jsxs("span",{className:s.trim(),...g,children:[n&&a.jsx("span",{className:e?"mr-1":"",children:n}),e,i&&a.jsx("button",{type:"button",onClick:f,className:"ml-2 text-xs font-bold leading-none focus:outline-none",children:"×"})]})},We={rounded:"rounded-md",pill:"rounded-full",flat:"rounded-none"},Ye={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-4 text-lg"};function Ze({option:e,selected:r,disabled:o,variant:l,sizeClass:n,classNames:i,onSelect:f,renderOption:u,buttonRef:g}){const c=t.useCallback(()=>{o||f(e.value)},[o,f,e.value]),s=t.useCallback(h=>{(h.key==="Enter"||h.key===" ")&&!o&&(h.preventDefault(),f(e.value))},[o,f,e.value]);return a.jsx("button",{ref:g,type:"button",role:"radio","aria-checked":r,disabled:o,onClick:c,onKeyDown:s,className:`relative z-10 transition-colors duration-200 focus:outline-none w-full ${n}
9
- ${r?`text-white toggler-${l}`:"text-gray-700 hover:bg-gray-200"}
1
+ (function(C,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],a):(C=typeof globalThis<"u"?globalThis:C||self,a(C.TailwindUiKit={},C.jsxRuntime,C.React,C.ReactDOM))})(this,(function(C,a,l,ge){"use strict";"use client";var R=document.createElement("style");R.textContent=`@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-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}}}.btn-primary{background-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-white,#fff)}@media(hover:hover){.btn-primary:hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.btn-outline-primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.btn-outline-primary:hover{background-color:var(--color-blue-50,oklch(97% .014 254.604))}}.btn-soft-primary{background-color:var(--color-blue-100,oklch(93.2% .032 255.585));color:var(--color-blue-700,oklch(48.8% .243 264.376))}@media(hover:hover){.btn-soft-primary:hover{background-color:var(--color-blue-200,oklch(88.2% .059 254.128))}}.btn-secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-white,#fff)}@media(hover:hover){.btn-secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.btn-outline-secondary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.btn-outline-secondary:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.btn-soft-secondary{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.btn-soft-secondary:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.btn-success{background-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-white,#fff)}@media(hover:hover){.btn-success:hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.btn-outline-success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.btn-outline-success:hover{background-color:var(--color-green-50,oklch(98.2% .018 155.826))}}.btn-soft-success{background-color:var(--color-green-100,oklch(96.2% .044 156.743));color:var(--color-green-700,oklch(52.7% .154 150.069))}@media(hover:hover){.btn-soft-success:hover{background-color:var(--color-green-200,oklch(92.5% .084 155.995))}}.btn-danger{background-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-white,#fff)}@media(hover:hover){.btn-danger:hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.btn-outline-danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.btn-outline-danger:hover{background-color:var(--color-red-50,oklch(97.1% .013 17.38))}}.btn-soft-danger{background-color:var(--color-red-100,oklch(93.6% .032 17.717));color:var(--color-red-700,oklch(50.5% .213 27.518))}@media(hover:hover){.btn-soft-danger:hover{background-color:var(--color-red-200,oklch(88.5% .062 18.334))}}.btn-warning{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047));color:var(--color-white,#fff)}@media(hover:hover){.btn-warning:hover{background-color:var(--color-yellow-600,oklch(68.1% .162 75.834))}}.btn-outline-warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-500,oklch(79.5% .184 86.047));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.btn-outline-warning:hover{background-color:var(--color-yellow-50,oklch(98.7% .026 102.212))}}.btn-soft-warning{background-color:var(--color-yellow-100,oklch(97.3% .071 103.193));color:var(--color-yellow-700,oklch(55.4% .135 66.442))}@media(hover:hover){.btn-soft-warning:hover{background-color:var(--color-yellow-200,oklch(94.5% .129 101.54))}}.btn-info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-white,#fff)}@media(hover:hover){.btn-info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.btn-outline-info{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.btn-outline-info:hover{background-color:var(--color-cyan-50,oklch(98.4% .019 200.873))}}.btn-soft-info{background-color:var(--color-cyan-100,oklch(95.6% .045 203.388));color:var(--color-cyan-700,oklch(52% .105 223.128))}@media(hover:hover){.btn-soft-info:hover{background-color:var(--color-cyan-200,oklch(91.7% .08 205.041))}}.btn-dark{background-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-white,#fff)}@media(hover:hover){.btn-dark:hover{background-color:var(--color-black,#000)}}.btn-outline-dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.btn-outline-dark:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.btn-soft-dark{background-color:var(--color-gray-200,oklch(92.8% .006 264.531));color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.btn-soft-dark:hover{background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}}.btn-light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@media(hover:hover){.btn-light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.btn-outline-light{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.btn-outline-light:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.btn-soft-light{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.btn-soft-light:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.btn-link{padding:calc(var(--spacing,.25rem)*0);color:var(--color-blue-600,oklch(54.6% .245 262.881));--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);background-color:#0000}@media(hover:hover){.btn-link:hover{text-decoration-line:underline}}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-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}}}.primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-white,#fff)}.primary:is(:where(.peer):checked~*){border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-white,#fff)}@media(hover:hover){.primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}.primary:is(:where(.peer):checked~*):hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.outline-primary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-white,#fff)}.outline-primary:is(:where(.peer):checked~*){color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.outline-primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}}.soft-primary{border-color:var(--color-blue-600,oklch(54.6% .245 262.881));background-color:var(--color-blue-200,oklch(88.2% .059 254.128));color:var(--color-blue-600,oklch(54.6% .245 262.881))}.soft-primary:is(:where(.peer):checked~*){border-color:var(--color-blue-600,oklch(54.6% .245 262.881));color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.soft-primary:hover{background-color:var(--color-blue-300,oklch(80.9% .105 251.813))}}.secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-white,#fff)}@media(hover:hover){.secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.outline-secondary{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-600,oklch(44.6% .03 256.802));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.outline-secondary:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.soft-secondary{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.soft-secondary:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-white,#fff)}.success:is(:where(.peer):checked~*){border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-white,#fff)}@media(hover:hover){.success:hover{background-color:var(--color-green-300,oklch(87.1% .15 154.449))}.success:is(:where(.peer):checked~*):hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.outline-success{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-white,#fff)}.outline-success:is(:where(.peer):checked~*){color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.outline-success:hover{background-color:var(--color-green-300,oklch(87.1% .15 154.449))}}.soft-success{border-color:var(--color-green-600,oklch(62.7% .194 149.214));background-color:var(--color-green-200,oklch(92.5% .084 155.995));color:var(--color-green-600,oklch(62.7% .194 149.214))}.soft-success:is(:where(.peer):checked~*){border-color:var(--color-green-600,oklch(62.7% .194 149.214));color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.soft-success:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-white,#fff)}.danger:is(:where(.peer):checked~*){border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-white,#fff)}@media(hover:hover){.danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}.danger:is(:where(.peer):checked~*):hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.outline-danger{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-white,#fff)}.outline-danger:is(:where(.peer):checked~*){color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.outline-danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.soft-danger{border-color:var(--color-red-600,oklch(57.7% .245 27.325));background-color:var(--color-red-200,oklch(88.5% .062 18.334));color:var(--color-red-600,oklch(57.7% .245 27.325))}.soft-danger:is(:where(.peer):checked~*){border-color:var(--color-red-600,oklch(57.7% .245 27.325));color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.soft-danger:hover{background-color:var(--color-red-300,oklch(80.8% .114 19.571))}}.warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-white,#fff)}.warning:is(:where(.peer):checked~*){border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-yellow-600,oklch(68.1% .162 75.834));color:var(--color-white,#fff)}@media(hover:hover){.warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}.warning:is(:where(.peer):checked~*):hover{background-color:var(--color-yellow-700,oklch(55.4% .135 66.442))}}.outline-warning{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-white,#fff)}.outline-warning:is(:where(.peer):checked~*){color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.outline-warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}}.soft-warning{border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));background-color:var(--color-yellow-200,oklch(94.5% .129 101.54));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}.soft-warning:is(:where(.peer):checked~*){border-color:var(--color-yellow-600,oklch(68.1% .162 75.834));color:var(--color-yellow-600,oklch(68.1% .162 75.834))}@media(hover:hover){.soft-warning:hover{background-color:var(--color-yellow-300,oklch(90.5% .182 98.111))}}.info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-white,#fff)}@media(hover:hover){.info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.outline-info{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-cyan-600,oklch(60.9% .126 221.723));color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.outline-info:hover{background-color:var(--color-cyan-50,oklch(98.4% .019 200.873))}}.soft-info{background-color:var(--color-cyan-100,oklch(95.6% .045 203.388));color:var(--color-cyan-700,oklch(52% .105 223.128))}@media(hover:hover){.soft-info:hover{background-color:var(--color-cyan-200,oklch(91.7% .08 205.041))}}.dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-700,oklch(37.3% .034 259.733));background-color:var(--color-white,#fff)}.dark:is(:where(.peer):checked~*){border-color:var(--color-black,#000);background-color:var(--color-black,#000);color:var(--color-white,#fff)}@media(hover:hover){.dark:hover{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.dark:hover{background-color:color-mix(in oklab,var(--color-black,#000)50%,transparent)}}}.outline-dark{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-900,oklch(21% .034 264.665));background-color:var(--color-white,#fff)}.outline-dark:is(:where(.peer):checked~*){color:var(--color-black,#000)}@media(hover:hover){.outline-dark:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.soft-dark{border-color:var(--color-gray-600,oklch(44.6% .03 256.802));background-color:var(--color-gray-500,oklch(55.1% .027 264.364));color:var(--color-black,#000)}.soft-dark:is(:where(.peer):checked~*){border-color:var(--color-gray-900,oklch(21% .034 264.665));color:var(--color-black,#000)}@media(hover:hover){.soft-dark:hover{background-color:var(--color-gray-300,oklch(87.2% .01 258.338))}}.light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-800,oklch(27.8% .033 256.848))}@media(hover:hover){.light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}.outline-light{border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-gray-100,oklch(96.7% .003 264.542));color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.outline-light:hover{background-color:var(--color-gray-50,oklch(98.5% .002 247.839))}}.soft-light{background-color:var(--color-gray-50,oklch(98.5% .002 247.839));color:var(--color-gray-700,oklch(37.3% .034 259.733))}@media(hover:hover){.soft-light:hover{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}}.link{padding:calc(var(--spacing,.25rem)*0);color:var(--color-blue-600,oklch(54.6% .245 262.881));--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);background-color:#0000}@media(hover:hover){.link:hover{text-decoration-line:underline}}@property --tw-border-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}/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */.toggler-primary{background-color:var(--color-blue-600,oklch(54.6% .245 262.881))}@media(hover:hover){.toggler-primary:hover{background-color:var(--color-blue-700,oklch(48.8% .243 264.376))}}.toggler-secondary{background-color:var(--color-gray-600,oklch(44.6% .03 256.802))}@media(hover:hover){.toggler-secondary:hover{background-color:var(--color-gray-700,oklch(37.3% .034 259.733))}}.toggler-success{background-color:var(--color-green-600,oklch(62.7% .194 149.214))}@media(hover:hover){.toggler-success:hover{background-color:var(--color-green-700,oklch(52.7% .154 150.069))}}.toggler-danger{background-color:var(--color-red-600,oklch(57.7% .245 27.325))}@media(hover:hover){.toggler-danger:hover{background-color:var(--color-red-700,oklch(50.5% .213 27.518))}}.toggler-warning{background-color:var(--color-yellow-500,oklch(79.5% .184 86.047))}@media(hover:hover){.toggler-warning:hover{background-color:var(--color-yellow-600,oklch(68.1% .162 75.834))}}.toggler-info{background-color:var(--color-cyan-600,oklch(60.9% .126 221.723))}@media(hover:hover){.toggler-info:hover{background-color:var(--color-cyan-700,oklch(52% .105 223.128))}}.toggler-dark{background-color:var(--color-gray-900,oklch(21% .034 264.665))}@media(hover:hover){.toggler-dark:hover{background-color:var(--color-black,#000)}}.toggler-light{background-color:var(--color-gray-100,oklch(96.7% .003 264.542))}@media(hover:hover){.toggler-light:hover{background-color:var(--color-gray-200,oklch(92.8% .006 264.531))}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.animate-slide-up{animation:slideUp .25s cubic-bezier(.22,1,.36,1)}
2
+ /*$vite$:1*/`,document.head.appendChild(R);const ee={xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-3 py-3",lg:"text-lg px-5 py-3"},oe={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},be={filled:"rounded-t-lg px-2.5 pb-2.5 pt-5 bg-gray-50 border-b-2",outlined:"rounded-lg px-2.5 pb-2.5 pt-4 bg-transparent border",standard:"px-0 py-2.5 bg-transparent border-0 border-b-2"},ve={filled:"absolute duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",outlined:"absolute duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-placeholder-shown:scale-100 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",standard:"absolute duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 peer-focus:text-blue-600"},pe=(e,r,o)=>{if(o)return"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:ring-red-500 focus:border-red-500";if(r)return"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:ring-green-500 focus:border-green-500";switch(e){case"error":return"border-red-500 bg-red-50 focus:ring-red-500";case"warning":return"border-yellow-500 bg-yellow-50 focus:ring-yellow-500";case"success":return"border-green-500 bg-green-50 focus:ring-green-500";default:return"border-gray-300 focus:ring-blue-500"}},re=l.forwardRef((e,r)=>{const{label:o,id:t,inputSize:n="md",shape:i="rounded",validate:f,onValidatedChange:u,className:g="",icon:c,iconPosition:s="left",floatingLabelStyle:h,onChange:b,isValid:p,isInvalid:d,feedback:k,feedbackType:O="invalid",labelClasses:m="",inputType:$="",inputPattern:E,leftIcon:w,rightIcon:x,...y}=e,[T,L]=l.useState("default"),D=l.useCallback(S=>{const P=S.target.value,z=(f==null?void 0:f(P))??"default";L(z),u==null||u(S,z),b==null||b(S)},[f,u,b]),B=l.useMemo(()=>t||(typeof o=="string"?`input-${o.toLowerCase().replace(/\s+/g,"-")}`:`input-${Math.random().toString(36).slice(2)}`),[t,o]),v=!!h,N=ee[n]||ee.md,M=oe[i]||oe.flat,I=l.useMemo(()=>pe(T,p,d),[T,p,d]),j=l.useMemo(()=>c?s==="start"||s==="left"?"ps-10":"pe-10":"",[c,s]),A=S=>{var F;const P=S.key;!(S.ctrlKey||S.metaKey||P.length!==1||["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(P))&&(()=>{const _=/^\d$/,V=/^[a-zA-Z]$/;switch($){case"numeric":case"number":case"integer":return!_.test(P);case"decimal":return!_.test(P)&&P!=="."&&P!=="Backspace"&&P!=="Tab";case"alphabetic":return!V.test(P);case"custom":return E?!E.test(P):!1;default:return!1}})()&&S.preventDefault(),(F=y.onKeyDown)==null||F.call(y,S)},K=S=>{var Y;const P=S.clipboardData.getData("Text");(()=>{const F=/^\d+$/,_=/^\d*\.?\d*$/,V=/^[a-zA-Z]+$/;switch($){case"numeric":case"number":case"integer":return!F.test(P);case"decimal":return!_.test(P);case"alphabetic":return!V.test(P);case"custom":return E?!E.test(P):!1;default:return!1}})()&&S.preventDefault(),(Y=y.onPaste)==null||Y.call(y,S)},J=!!w,Q=!!x;return a.jsxs("div",{className:`w-full relative ${v?"z-0":""} tailwind-ux-input`,children:[!v&&o&&a.jsx("label",{htmlFor:B,className:`block mb-1 text-sm ${p?"text-green-700 dark:text-green-500":d?"text-red-700 dark:text-red-500":"text-gray-700"} ${m}`,children:o}),a.jsxs("div",{className:"relative w-full",children:[J&&a.jsx("div",{className:"absolute inset-y-0 left-0 flex items-center pl-3.5",children:w}),Q&&a.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3.5",children:x}),a.jsx("input",{...y,id:B,ref:r,placeholder:v?" ":y.placeholder,onChange:D,onKeyDown:A,onPaste:K,className:`border peer w-full block font-normal appearance-none focus:outline-none focus:ring-0 transition text-gray-900 placeholder-gray-600 border-gray-400
3
+ ${N}
4
+ ${v&&h&&be[h]}
5
+ ${j} ${M} ${I} ${g}`}),v&&o&&h&&a.jsx("label",{htmlFor:B,className:`ms-1 ${ve[h]} ${m}`,children:o})]}),k&&a.jsx("p",{className:`mt-1 text-xs ${O==="invalid"?"text-red-600 dark:text-red-500":"text-green-600 dark:text-green-500"}`,role:O==="invalid"?"alert":void 0,children:k})]})});re.displayName="Input";const ye={xs:"text-xs px-2 py-1",sm:"text-sm px-3 py-1.5",md:"text-sm px-3 py-3",lg:"text-lg px-5 py-3"},we={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},ke={filled:"rounded-t-lg px-2.5 pb-2.5 pt-5 bg-gray-50 border-b-2",outlined:"rounded-lg px-2.5 pb-2.5 pt-4 bg-transparent border",standard:"px-0 py-2.5 bg-transparent border-0 border-b-2"},me={filled:"absolute duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",outlined:"absolute duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-placeholder-shown:scale-100 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 peer-focus:text-blue-600",standard:"absolute duration-300 transform -translate-y-6 scale-75 top-3 origin-[0] peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 peer-focus:text-blue-600"},xe=(e,r,o)=>{if(o)return"border-red-500 bg-red-50 text-red-900 focus:ring-red-500 focus:border-red-500";if(r)return"border-green-500 bg-green-50 text-green-900 focus:ring-green-500 focus:border-green-500";const t="focus:ring focus:border";switch(e){case"error":return`${t}-red-500 border-red-500 bg-red-50`;case"warning":return`${t}-yellow-500 border-yellow-500 bg-yellow-50`;case"success":return`${t}-green-500 border-green-500 bg-green-50`;default:return"border-gray-300 focus:ring-blue-500"}},te=l.forwardRef((e,r)=>{const{label:o,id:t,inputSize:n="md",shape:i="rounded",validate:f,onValidatedChange:u,className:g="",icon:c,iconPosition:s="left",floatingLabelStyle:h,onChange:b,isValid:p,isInvalid:d,feedback:k,feedbackType:O="invalid",children:m,...$}=e,[E,w]=l.useState("default"),x=l.useId(),y=l.useMemo(()=>t||(typeof o=="string"?`select-${o.toLowerCase().replace(/\s+/g,"-")}`:x),[t,o,x]),T=I=>{const j=I.target.value,A=(f==null?void 0:f(j))??"default";w(A),u==null||u(I,A),b==null||b(I)},L=!!h,D=ye[n],B=we[i],v=xe(E,p,d),N=c&&(s==="start"||s==="left")?"ps-10":c?"pe-10":"",M=s==="start"||s==="left"?"left-0 ps-3.5":"right-0 pe-3.5";return a.jsxs("div",{className:`w-full relative ${L?"z-0":""}`,children:[!L&&o&&a.jsx("label",{htmlFor:y,className:`block mb-1 text-sm ${p?"text-green-700":d?"text-red-700":"text-gray-700"}`,children:o}),a.jsxs("div",{className:"relative w-full",children:[c&&a.jsx("div",{className:`absolute inset-y-0 flex items-center ${M}`,children:a.jsx("span",{className:"text-gray-500",children:c})}),a.jsx("select",{...$,id:y,ref:r,onChange:T,className:`border peer w-full block font-normal appearance-none focus:outline-none focus:ring-0 transition text-gray-600 placeholder-[#798ba5] border-gray-400
6
+ ${D} ${N}
7
+ ${L&&h&&ke[h]}
8
+ ${B} ${v} ${g}`,children:m}),L&&o&&h&&a.jsx("label",{htmlFor:y,className:`ms-1 ${me[h]} ${g}`,children:o})]}),k&&a.jsx("p",{className:`mt-1 text-xs ${O==="invalid"?"text-red-600":"text-green-600"}`,children:k})]})});te.displayName="Select";const Ce={primary:"btn-primary",secondary:"btn-secondary",success:"btn-success",danger:"btn-danger",warning:"btn-warning",info:"btn-info",dark:"btn-dark",light:"btn-light",link:"btn-link","outline-primary":"btn-outline-primary","outline-secondary":"btn-outline-secondary","outline-success":"btn-outline-success","outline-danger":"btn-outline-danger","outline-warning":"btn-outline-warning","outline-info":"btn-outline-info","outline-dark":"btn-outline-dark","outline-light":"btn-outline-light","soft-primary":"btn-soft-primary","soft-secondary":"btn-soft-secondary","soft-success":"btn-soft-success","soft-danger":"btn-soft-danger","soft-warning":"btn-soft-warning","soft-info":"btn-soft-info","soft-dark":"btn-soft-dark","soft-light":"btn-soft-light"},Se={xs:"px-3 py-2 text-xs",sm:"px-3 py-2 text-sm",md:"px-5 py-2.5 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-3.5 text-base"},$e={flat:"shadow-none",rounded:"rounded-sm",pill:"rounded-full",circle:"rounded-full w-10 h-10 p-0 flex items-center justify-center"},Ne=({children:e,variant:r="primary",size:o="md",type:t="button",shape:n="rounded",className:i="",isLoading:f=!1,disabled:u=!1,...g})=>{const c=u||f,s=["inline-flex items-center justify-center font-normal transition duration-150",Ce[r],Se[o],$e[n],n==="flat"?"shadow-none":"shadow-sm",c?"opacity-50 cursor-not-allowed":"cursor-pointer",i].filter(Boolean).join(" ");return a.jsxs("button",{type:t,className:s,disabled:c,...g,children:[f&&a.jsxs("svg",{"aria-hidden":"true",role:"status",className:"inline w-4 h-4 me-3 text-gray-200 animate-spin dark:text-gray-600",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"#1C64F2"})]}),e]})};var le={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ne=l.createContext&&l.createContext(le),Ee=["attr","size","title"];function Le(e,r){if(e==null)return{};var o=Me(e,r),t,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function Me(e,r){if(e==null)return{};var o={};for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){if(r.indexOf(t)>=0)continue;o[t]=e[t]}return o}function H(){return H=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e},H.apply(this,arguments)}function ae(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,t)}return o}function W(e){for(var r=1;r<arguments.length;r++){var o=arguments[r]!=null?arguments[r]:{};r%2?ae(Object(o),!0).forEach(function(t){Pe(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ae(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Pe(e,r,o){return r=Oe(r),r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function Oe(e){var r=Te(e,"string");return typeof r=="symbol"?r:r+""}function Te(e,r){if(typeof e!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var t=o.call(e,r);if(typeof t!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function ce(e){return e&&e.map((r,o)=>l.createElement(r.tag,W({key:o},r.attr),ce(r.child)))}function Z(e){return r=>l.createElement(De,H({attr:W({},e.attr)},r),ce(e.child))}function De(e){var r=o=>{var{attr:t,size:n,title:i}=e,f=Le(e,Ee),u=n||o.size||"1em",g;return o.className&&(g=o.className),e.className&&(g=(g?g+" ":"")+e.className),l.createElement("svg",H({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,t,f,{className:g,style:W(W({color:e.color||o.color},o.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),i&&l.createElement("title",null,i),e.children)};return ne!==void 0?l.createElement(ne.Consumer,null,o=>r(o)):r(le)}function Be(e){return Z({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}const Ie={xs:"w-3 h-3 text-[10px]",sm:"w-4 h-4 text-xs",md:"w-5 h-5 text-sm",lg:"w-6 h-6 text-base"},je={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full"},Ae={primary:"primary",secondary:"secondary",success:"success",danger:"danger",warning:"warning",info:"info",dark:"dark",light:"light",link:"link","outline-primary":"outline-primary","outline-secondary":"outline-secondary","outline-success":"outline-success","outline-danger":"outline-danger","outline-warning":"outline-warning","outline-info":"outline-info","outline-dark":"outline-dark","outline-light":"outline-light","soft-primary":"soft-primary","soft-secondary":"soft-secondary","soft-success":"soft-success","soft-danger":"soft-danger","soft-warning":"soft-warning","soft-info":"soft-info","soft-dark":"soft-dark","soft-light":"soft-light"},se=l.forwardRef(({label:e,boxSize:r="md",shape:o="rounded",variant:t="success",onSelectionChange:n,disabled:i=!1,className:f="",id:u,value:g,icon:c,children:s,checked:h,...b},p)=>{const d=D=>{!i&&n&&n(D.target.checked),b.onChange&&b.onChange(D)},k="mr-2 border flex items-center justify-center transition-all",O=Ie[r],m=je[o],$=Ae[t]??"",E=t.startsWith("outline"),w=t.startsWith("soft"),T=`${k} ${O} ${m} ${$} ${h&&(E||w||t==="link")?"peer-checked:bg-current peer-checked:text-white":h?"peer-checked:bg-current":""}`,L={xs:"w-2 h-2",sm:"w-2.5 h-2.5",md:"w-3 h-3",lg:"w-3.5 h-3.5"};return a.jsxs("label",{className:`flex items-center ${i?"opacity-50 cursor-not-allowed":"cursor-pointer"} me-4 ${f}`,children:[a.jsx("input",{type:"checkbox",className:"peer hidden",checked:h,onChange:d,disabled:i,id:u,value:g,ref:p,...b}),a.jsx("span",{className:T.trim(),children:(h||b.defaultChecked)&&(c??a.jsx(Be,{className:`${L[r]}`}))}),e||s?a.jsx("span",{className:"text-sm font-medium text-gray-900 dark:text-gray-300",children:e??s}):null]})});se.displayName="Checkbox";const ze=({label:e,header:r,items:o=[],onSelect:t,renderItem:n,position:i="right",className:f="",menuClassName:u="",width:g="w-48",closeOnSelect:c=!1,transition:s=!0,ariaLabel:h="Dropdown menu",forceCloseDropdown:b,...p})=>{const[d,k]=l.useState(!1),[O,m]=l.useState(!1),$=l.useRef(null),E=l.useRef(null),w=l.useMemo(()=>({left:"left-0",center:"left-1/2 transform -translate-x-1/2",right:"right-0"})[i],[i]),x=l.useCallback(()=>{const v=E.current,N=$.current;if(!v||!N)return;const{top:M,bottom:I}=v.getBoundingClientRect(),j=N.offsetHeight,A=window.innerHeight-I,K=M;m(A<j&&K>j)},[]),y=l.useCallback(v=>{var N,M;!((N=$.current)!=null&&N.contains(v.target))&&!((M=E.current)!=null&&M.contains(v.target))&&k(!1)},[]),T=l.useCallback(()=>k(v=>!v),[]),L=l.useCallback(()=>k(!1),[]);l.useEffect(()=>{if(d)return x(),window.addEventListener("resize",x),window.addEventListener("scroll",x,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",x,!0)}},[d,x]);const D=l.useRef(d);l.useEffect(()=>{D.current=d},[d]),l.useEffect(()=>{const v=N=>{var M;N.key==="Escape"&&D.current&&(k(!1),(M=E.current)==null||M.focus())};return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[]),l.useEffect(()=>(document.addEventListener("mousedown",y),()=>document.removeEventListener("mousedown",y)),[y]);const B=l.useMemo(()=>["absolute z-50 bg-white rounded shadow-lg overflow-hidden w-auto",O?"bottom-full mb-2":"top-full mt-2",w,g,s&&"transition-all duration-200 ease-out",u].filter(Boolean).join(" "),[O,w,g,s,u]);return a.jsxs("div",{className:`relative inline-block ${f}`,...p,children:[a.jsx("button",{type:"button",ref:E,onClick:T,"aria-expanded":d,"aria-label":h,className:"focus:outline-none",children:e}),d&&a.jsxs("div",{ref:$,role:"menu",className:B,children:[r&&r,o.map((v,N)=>{const M=()=>{t&&t(v),c&&L()};return a.jsx("div",{children:n?n(v,M):a.jsx("div",{onClick:M,className:"px-4 py-2 text-sm text-gray-800 hover:bg-gray-100 cursor-pointer",role:"menuitem",children:v.label})},N)})]})]})},_e=({children:e,content:r,position:o="top",className:t="",tooltipClass:n="",tooltipStyle:i={}})=>{const f=l.useRef(null),u=l.useRef(null);l.useEffect(()=>{const c=f.current,s=u.current;if(!c||!s)return;const h=()=>{s.style.opacity="1",s.style.visibility="visible"},b=()=>{s.style.opacity="0",s.style.visibility="hidden"};return c.addEventListener("mouseenter",h),c.addEventListener("mouseleave",b),()=>{c.removeEventListener("mouseenter",h),c.removeEventListener("mouseleave",b)}},[]);const g=c=>{const s={position:"absolute",opacity:0,visibility:"hidden",transition:"opacity 0.2s ease",maxWidth:"240px",whiteSpace:"normal",wordBreak:"break-word",padding:"8px 12px",fontSize:"0.875rem",backgroundColor:"black",color:"white",borderRadius:"4px",boxShadow:"0px 4px 12px rgba(0, 0, 0, 0.15)",zIndex:9999,width:"max-content"};switch(c){case"top":return{...s,bottom:"100%",left:"50%",transform:"translateX(-50%)",marginBottom:"8px"};case"bottom":return{...s,top:"100%",left:"50%",transform:"translateX(-50%)",marginTop:"8px"};case"left":return{...s,right:"100%",top:"50%",transform:"translateY(-50%)",marginRight:"8px"};case"right":return{...s,left:"100%",top:"50%",transform:"translateY(-50%)",marginLeft:"8px"};default:return s}};return a.jsxs("div",{ref:f,className:`relative inline-block ${t}`,children:[e,a.jsx("div",{ref:u,role:"tooltip",className:n,style:{...g(o),...i},children:r})]})},Fe={primary:"bg-blue-500 text-white",secondary:"bg-gray-500 text-white",success:"bg-green-500 text-white",danger:"bg-red-500 text-white",warning:"bg-yellow-400 text-black",info:"bg-cyan-500 text-white",dark:"bg-black text-white",light:"bg-gray-100 text-gray-800",link:"bg-transparent text-blue-500 underline","outline-primary":"border border-blue-500 text-blue-500 bg-transparent","outline-secondary":"border border-gray-500 text-gray-500 bg-transparent","outline-success":"border border-green-500 text-green-500 bg-transparent","outline-danger":"border border-red-500 text-red-500 bg-transparent","outline-warning":"border border-yellow-400 text-yellow-500 bg-transparent","outline-info":"border border-cyan-500 text-cyan-500 bg-transparent","outline-dark":"border border-black text-black bg-transparent","outline-light":"border border-gray-100 text-gray-800 bg-transparent"},Ke={xs:"text-xs px-2 py-0.5",sm:"text-sm px-2.5 py-0.5",md:"text-base px-3 py-1",lg:"text-lg px-3.5 py-1.5",xl:"text-xl px-4 py-2"},He={flat:"rounded-none",rounded:"rounded-sm",pill:"rounded-full",circle:"rounded-full p-2 w-8 h-8 justify-center"},We=({label:e,variant:r="primary",size:o="sm",shape:t="rounded",icon:n,dismissible:i,onDismiss:f,className:u="",...g})=>{const c=!e&&!!n,s=`inline-flex items-center font-medium ${Fe[r]||""} ${Ke[o]||""} ${He[t]||""} ${c?"justify-center p-2 w-8 h-8":""} `+u;return a.jsxs("span",{className:s.trim(),...g,children:[n&&a.jsx("span",{className:e?"mr-1":"",children:n}),e,i&&a.jsx("button",{type:"button",onClick:f,className:"ml-2 text-xs font-bold leading-none focus:outline-none",children:"×"})]})},Ye={rounded:"rounded-md",pill:"rounded-full",flat:"rounded-none"},Ze={xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-3 text-base",xl:"px-6 py-4 text-lg"};function Ue({option:e,selected:r,disabled:o,variant:t,sizeClass:n,classNames:i,onSelect:f,renderOption:u,buttonRef:g}){const c=l.useCallback(()=>{o||f(e.value)},[o,f,e.value]),s=l.useCallback(h=>{(h.key==="Enter"||h.key===" ")&&!o&&(h.preventDefault(),f(e.value))},[o,f,e.value]);return a.jsx("button",{ref:g,type:"button",role:"radio","aria-checked":r,disabled:o,onClick:c,onKeyDown:s,className:`relative z-10 transition-colors duration-200 focus:outline-none w-full ${n}
9
+ ${r?`text-white toggler-${t}`:"text-gray-700 hover:bg-gray-200"}
10
10
  ${i.option??""}
11
11
  ${r?i.selectedOption??"":""}
12
- `,children:u?u(e,r):e.label})}const Ue=t.memo(Ze);function se({options:e,selected:r,onChange:o,label:l,disabled:n=!1,shape:i="rounded",variant:f="primary",size:u="md",className:g="",classNames:c={},id:s,name:h,renderOption:b}){const p=t.useRef([]),[d,k]=t.useState({}),M=t.useMemo(()=>We[i],[i]),m=t.useMemo(()=>Ye[u],[u]),S=t.useMemo(()=>e.findIndex(y=>y.value===r),[e,r]);t.useLayoutEffect(()=>{if(S<0)return;const y=p.current[S];if(!y)return;const w={transform:`translateX(${y.offsetLeft}px)`,width:y.offsetWidth,height:y.offsetHeight};k(x=>x.transform===w.transform&&x.width===w.width&&x.height===w.height?x:w)},[S,e]);const N=t.useCallback(y=>{y!==r&&o(y)},[o,r]);return a.jsxs("div",{id:s,className:`flex w-fit flex-col gap-2 ${g} ${c.root??""}`,children:[l?a.jsx("span",{className:`select-none text-sm font-medium ${c.label??""}`,children:l}):null,a.jsxs("div",{role:"radiogroup","aria-disabled":n,"aria-label":typeof l=="string"?l:void 0,className:`relative flex overflow-hidden border border-gray-300 bg-gray-100 ${M}
12
+ `,children:u?u(e,r):e.label})}const qe=l.memo(Ue);function ie({options:e,selected:r,onChange:o,label:t,disabled:n=!1,shape:i="rounded",variant:f="primary",size:u="md",className:g="",classNames:c={},id:s,name:h,renderOption:b}){const p=l.useRef([]),[d,k]=l.useState({}),O=l.useMemo(()=>Ye[i],[i]),m=l.useMemo(()=>Ze[u],[u]),$=l.useMemo(()=>e.findIndex(w=>w.value===r),[e,r]);l.useLayoutEffect(()=>{if($<0)return;const w=p.current[$];if(!w)return;const x={transform:`translateX(${w.offsetLeft}px)`,width:w.offsetWidth,height:w.offsetHeight};k(y=>y.transform===x.transform&&y.width===x.width&&y.height===x.height?y:x)},[$,e]);const E=l.useCallback(w=>{w!==r&&o(w)},[o,r]);return a.jsxs("div",{id:s,className:`flex w-fit flex-col gap-2 ${g} ${c.root??""}`,children:[t?a.jsx("span",{className:`select-none text-sm font-medium ${c.label??""}`,children:t}):null,a.jsxs("div",{role:"radiogroup","aria-disabled":n,"aria-label":typeof t=="string"?t:void 0,className:`relative flex overflow-hidden border border-gray-300 bg-gray-100 ${O}
13
13
  ${n?"cursor-not-allowed opacity-50":""}
14
14
  ${c.group??""}
15
- `,children:[a.jsx("div",{"aria-hidden":"true",style:d,className:`absolute left-0 top-0 z-0 transition-all duration-300 ease-in-out toggler-${f}`}),e.map((y,w)=>{const x=r===y.value,P=n||!!y.disabled;return a.jsx(Ue,{option:y,selected:x,disabled:P,variant:f,sizeClass:m,classNames:c,onSelect:N,renderOption:b,buttonRef:E=>{p.current[w]=E}},String(y.value))})]}),h?a.jsx("input",{type:"hidden",name:h,value:String(r)}):null]})}se.displayName="Toggler";const qe=t.memo(se),ie=t.createContext(null);function Ge({children:e}){const[r,o]=t.useState([]),l=t.useCallback(u=>{o(g=>g.includes(u)?g:[...g,u])},[]),n=t.useCallback(u=>{o(g=>g.filter(c=>c!==u))},[]),i=t.useCallback(()=>{o([])},[]),f=t.useMemo(()=>({showBottomSheet:l,closeBottomSheet:n,closeAllBottomSheet:i,activeSheets:r}),[l,n,i,r]);return a.jsx(ie.Provider,{value:f,children:e})}function de(){const e=t.useContext(ie);if(!e)throw new Error("useBottomSheet must be used inside BottomSheetProvider");return e}function Xe({id:e,children:r,initialSnap:o="half",snapPoints:l,position:n="bottom",showNotchIndicator:i=!0,className:f="",overlayClassName:u="",closeOnBackdrop:g=!0,lockScroll:c=!0,zIndex:s=1e3}){const{activeSheets:h,closeBottomSheet:b}=de(),p=h.includes(e),d=!!l,[k,M]=t.useState(!1),[m,S]=t.useState(100),[N,y]=t.useState(!1),w=t.useRef(0),x=t.useRef(0),P=t.useRef(null),E=typeof window<"u"?window.innerHeight:0,D=typeof window<"u"?window.innerWidth:0,B=l?(1-l.full)*100:0,v=l?(1-l.half)*100:0,$=t.useCallback(O=>{if(d)switch(O){case"full":S(B);break;case"half":S(v);break;default:S(100)}},[B,v,d]);t.useEffect(()=>{M(!0)},[]),t.useEffect(()=>{if(!p){S(100);return}d?$(o):S(0)},[p,o,$,d]),t.useEffect(()=>{if(c)return p?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow="",document.body.style.touchAction=""),()=>{document.body.style.overflow="",document.body.style.touchAction=""}},[p,c]),t.useEffect(()=>{if(!p)return;const O=I=>{I.key==="Escape"&&b(e)};return window.addEventListener("keydown",O),()=>{window.removeEventListener("keydown",O)}},[b,e,p]);const L=n==="left"||n==="right",A=O=>{var I,F;d&&(y(!0),w.current=L?O.clientX:O.clientY,x.current=m,(F=(I=O.target).setPointerCapture)==null||F.call(I,O.pointerId))},z=O=>{if(!N||!d)return;const K=((L?O.clientX:O.clientY)-w.current)/(L?D:E)*100;let Q=x.current;n==="right"||n==="bottom"?Q+=K:Q-=K,S(Math.min(Math.max(Q,B),100))},_=()=>{if(!d)return;if(y(!1),m>75){b(e);return}const O=(v+B)/2;m<=O?$("full"):$("half")};if(!k)return null;const H={bottom:`translate3d(0, ${m}%, 0)`,top:`translate3d(0, -${m}%, 0)`,left:`translate3d(-${m}%, 0, 0)`,right:`translate3d(${m}%, 0, 0)`},j={bottom:"inset-x-0 bottom-0 rounded-t-xl max-h-[100dvh]",top:"inset-x-0 rounded-b-xl top-0 max-h-[100dvh]",left:"left-0 top-0 h-full",right:"right-0 top-0 h-full"},T={transform:H[n],transition:N?"none":"transform 240ms cubic-bezier(0.22, 1, 0.36, 1)",willChange:"transform",zIndex:s};return fe.createPortal(a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button","aria-label":"Close sheet",onClick:()=>{g&&b(e)},className:`
15
+ `,children:[a.jsx("div",{"aria-hidden":"true",style:d,className:`absolute left-0 top-0 z-0 transition-all duration-300 ease-in-out toggler-${f}`}),e.map((w,x)=>{const y=r===w.value,T=n||!!w.disabled;return a.jsx(qe,{option:w,selected:y,disabled:T,variant:f,sizeClass:m,classNames:c,onSelect:E,renderOption:b,buttonRef:L=>{p.current[x]=L}},String(w.value))})]}),h?a.jsx("input",{type:"hidden",name:h,value:String(r)}):null]})}ie.displayName="Toggler";const Ge=l.memo(ie),de=l.createContext(null);function Xe({children:e}){const[r,o]=l.useState([]),t=l.useCallback(u=>{o(g=>g.includes(u)?g:[...g,u])},[]),n=l.useCallback(u=>{o(g=>g.filter(c=>c!==u))},[]),i=l.useCallback(()=>{o([])},[]),f=l.useMemo(()=>({showBottomSheet:t,closeBottomSheet:n,closeAllBottomSheet:i,activeSheets:r}),[t,n,i,r]);return a.jsx(de.Provider,{value:f,children:e})}function ue(){const e=l.useContext(de);if(!e)throw new Error("useBottomSheet must be used inside BottomSheetProvider");return e}function Je({id:e,children:r,initialSnap:o="half",snapPoints:t,position:n="bottom",showNotchIndicator:i=!0,className:f="",overlayClassName:u="",closeOnBackdrop:g=!0,lockScroll:c=!0,zIndex:s=1e3}){const{activeSheets:h,closeBottomSheet:b}=ue(),p=h.includes(e),d=!!t,[k,O]=l.useState(!1),[m,$]=l.useState(100),[E,w]=l.useState(!1),x=l.useRef(0),y=l.useRef(0),T=l.useRef(null),L=typeof window<"u"?window.innerHeight:0,D=typeof window<"u"?window.innerWidth:0,B=t?(1-t.full)*100:0,v=t?(1-t.half)*100:0,N=l.useCallback(S=>{if(d)switch(S){case"full":$(B);break;case"half":$(v);break;default:$(100)}},[B,v,d]);l.useEffect(()=>{O(!0)},[]),l.useEffect(()=>{if(!p){$(100);return}d?N(o):$(0)},[p,o,N,d]),l.useEffect(()=>{if(c)return p?(document.body.style.overflow="hidden",document.body.style.touchAction="none"):(document.body.style.overflow="",document.body.style.touchAction=""),()=>{document.body.style.overflow="",document.body.style.touchAction=""}},[p,c]),l.useEffect(()=>{if(!p)return;const S=P=>{P.key==="Escape"&&b(e)};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[b,e,p]);const M=n==="left"||n==="right",I=S=>{var P,z;d&&(w(!0),x.current=M?S.clientX:S.clientY,y.current=m,(z=(P=S.target).setPointerCapture)==null||z.call(P,S.pointerId))},j=S=>{if(!E||!d)return;const F=((M?S.clientX:S.clientY)-x.current)/(M?D:L)*100;let _=y.current;n==="right"||n==="bottom"?_+=F:_-=F,$(Math.min(Math.max(_,B),100))},A=()=>{if(!d)return;if(w(!1),m>75){b(e);return}const S=(v+B)/2;m<=S?N("full"):N("half")};if(!k)return null;const K={bottom:`translate3d(0, ${m}%, 0)`,top:`translate3d(0, -${m}%, 0)`,left:`translate3d(-${m}%, 0, 0)`,right:`translate3d(${m}%, 0, 0)`},J={bottom:"inset-x-0 bottom-0 rounded-t-xl max-h-[100dvh]",top:"inset-x-0 rounded-b-xl top-0 max-h-[100dvh]",left:"left-0 top-0 h-full",right:"right-0 top-0 h-full"},Q={transform:K[n],transition:E?"none":"transform 240ms cubic-bezier(0.22, 1, 0.36, 1)",willChange:"transform",zIndex:s};return ge.createPortal(a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button","aria-label":"Close sheet",onClick:()=>{g&&b(e)},className:`
16
16
  fixed inset-0
17
17
  bg-black/45
18
18
  backdrop-blur-[2px]
@@ -20,21 +20,21 @@
20
20
  duration-200
21
21
  ${p?"opacity-100":"pointer-events-none opacity-0"}
22
22
  ${u}
23
- `,style:{zIndex:s}}),a.jsxs("div",{ref:P,style:T,className:`fixed bg-white overflow-hidden flex flex-col overscroll-contain touch-pan-y pb-[env(safe-area-inset-bottom)]
24
- ${j[n]}
23
+ `,style:{zIndex:s}}),a.jsxs("div",{ref:T,style:Q,className:`fixed bg-white overflow-hidden flex flex-col overscroll-contain touch-pan-y pb-[env(safe-area-inset-bottom)]
24
+ ${J[n]}
25
25
  ${f}
26
- `,children:[i&&a.jsx("div",{onPointerDown:A,onPointerMove:z,onPointerUp:_,className:`flex justify-center items-center py-2.5 select-none touch-none bg-gray-50
26
+ `,children:[i&&a.jsx("div",{onPointerDown:I,onPointerMove:j,onPointerUp:A,className:`flex justify-center items-center py-2.5 select-none touch-none bg-gray-50
27
27
  ${d?"cursor-grab active:cursor-grabbing":""}
28
- `,children:a.jsx("div",{className:`rounded-full bg-gray-400 ${L?"w-1 h-14":"h-1 w-14"}`})}),a.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r})]})]}),document.body)}function Je(e){return U({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}const Qe=({items:e,allowMultipleOpen:r=!1,className:o="",tileClasses:l="",open:n,onChange:i,renderTitle:f,renderContent:u,showArrowIcon:g=!0,panelClasses:c=""})=>{const[s,h]=t.useState(new Set),b=t.useMemo(()=>n?new Set(n):s,[n,s]),p=t.useCallback(d=>{const k=new Set(b);k.has(d)?k.delete(d):(r||k.clear(),k.add(d)),n&&i?i(Array.from(k)):h(k)},[b,n,i,r]);return a.jsx("div",{className:"accordion",role:"region","aria-multiselectable":r,children:e.map(d=>{const k=b.has(d.id),M=`accordion-heading-${d.id}`,m=`accordion-panel-${d.id}`;return a.jsxs("div",{className:`accordion-item border rounded border-gray-300 dark:border-gray-700 ${o}`,children:[a.jsxs("button",{id:M,type:"button","aria-expanded":k,"aria-controls":m,onClick:()=>p(d.id),className:`flex justify-between items-center w-full p-1.5 text-left text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none gap-3 ${l}`,children:[f?f(d,k):d.title,g?a.jsx(Je,{}):null]}),a.jsx("div",{id:m,role:"region","aria-labelledby":M,hidden:!k,className:`p-4 border-t border-gray-200 dark:border-gray-700 text-gray-600 dark:text-gray-400 ${c}`,children:u?u(d,k):d.content})]},d.id)})})},ue=t.createContext(null),q=()=>{const e=t.useContext(ue);if(!e)throw new Error("useModalActions must be used within a ModalActionProvider");return e},he=t.createContext(null),G=()=>t.useContext(he);function Ve({id:e,variant:r="center",title:o,children:l,standalone:n=!1,showFloatingClose:i=!1,containerClasses:f="",headerClasses:u="",bodyClasses:g="",onClose:c,disableEscapeClose:s=!1,closeBtnStyle:h}){const b=G(),p=q(),d=!n&&!!b&&!!p,[k,M]=t.useState(!1),m=d?b.isOpen(e):k,S=d?b.getModalData(e):null,N=r==="bottom-sheet",y=t.useCallback(()=>{d?p.closeModal(e):M(!1),c==null||c()},[d,p,e,c]),w=t.useRef(null);return t.useEffect(()=>{if(!m)return;const x=window.scrollY,P={position:document.body.style.position,top:document.body.style.top,width:document.body.style.width};document.body.style.position="fixed",document.body.style.top=`-${x}px`,document.body.style.width="100%";const E=D=>{D.preventDefault()};return document.addEventListener("touchmove",E,{passive:!1}),()=>{document.body.style.position=P.position,document.body.style.top=P.top,document.body.style.width=P.width,document.removeEventListener("touchmove",E),window.scrollTo(0,x)}},[m]),t.useEffect(()=>{m&&(w.current=document.activeElement);const x=document.getElementById(e),P=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'],E=()=>{if(!x)return[];const v=x.querySelectorAll(P.join(","));return Array.from(v).filter($=>$.offsetParent!==null)},D=v=>{if(v.key!=="Tab")return;const $=E();if(!$.length)return;const L=$[0],A=$[$.length-1];v.shiftKey?document.activeElement===L&&(v.preventDefault(),A.focus()):document.activeElement===A&&(v.preventDefault(),L.focus())},B=v=>{v.key==="Escape"&&!s&&y(),D(v)};return m&&(window.addEventListener("keydown",B),setTimeout(()=>{const v=E();v.length&&v[0].focus()},0)),()=>{var v;window.removeEventListener("keydown",B),(v=w.current)==null||v.focus()}},[m,y,s,e]),m?a.jsx("div",{id:e,className:`
28
+ `,children:a.jsx("div",{className:`rounded-full bg-gray-400 ${M?"w-1 h-14":"h-1 w-14"}`})}),a.jsx("div",{className:"flex-1 overflow-y-auto p-4",children:r})]})]}),document.body)}function Qe(e){return Z({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"},child:[]}]})(e)}const Ve=({items:e,allowMultipleOpen:r=!1,className:o="",tileClasses:t="",open:n,onChange:i,renderTitle:f,renderContent:u,showArrowIcon:g=!0,panelClasses:c=""})=>{const[s,h]=l.useState(new Set),b=l.useMemo(()=>n?new Set(n):s,[n,s]),p=l.useCallback(d=>{const k=new Set(b);k.has(d)?k.delete(d):(r||k.clear(),k.add(d)),n&&i?i(Array.from(k)):h(k)},[b,n,i,r]);return a.jsx("div",{className:"accordion",role:"region","aria-multiselectable":r,children:e.map(d=>{const k=b.has(d.id),O=`accordion-heading-${d.id}`,m=`accordion-panel-${d.id}`;return a.jsxs("div",{className:`accordion-item border rounded border-gray-300 dark:border-gray-700 ${o}`,children:[a.jsxs("button",{id:O,type:"button","aria-expanded":k,"aria-controls":m,onClick:()=>p(d.id),className:`flex justify-between items-center w-full p-1.5 text-left text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 focus:outline-none gap-3 ${t}`,children:[f?f(d,k):d.title,g?a.jsx(Qe,{}):null]}),a.jsx("div",{id:m,role:"region","aria-labelledby":O,hidden:!k,className:`p-4 border-t border-gray-200 dark:border-gray-700 text-gray-600 dark:text-gray-400 ${c}`,children:u?u(d,k):d.content})]},d.id)})})},he=l.createContext(null),U=()=>{const e=l.useContext(he);if(!e)throw new Error("useModalActions must be used within a ModalActionProvider");return e},fe=l.createContext(null),q=()=>l.useContext(fe);function Re({id:e,variant:r="center",title:o,children:t,standalone:n=!1,showFloatingClose:i=!1,containerClasses:f="",headerClasses:u="",bodyClasses:g="",onClose:c,disableEscapeClose:s=!1,closeBtnStyle:h}){const b=q(),p=U(),d=!n&&!!b&&!!p,[k,O]=l.useState(!1),m=d?b.isOpen(e):k,$=d?b.getModalData(e):null,E=r==="bottom-sheet",w=l.useCallback(()=>{d?p.closeModal(e):O(!1),c==null||c()},[d,p,e,c]),x=l.useRef(null);return l.useEffect(()=>{if(!m)return;const y=window.scrollY,T={position:document.body.style.position,top:document.body.style.top,width:document.body.style.width};document.body.style.position="fixed",document.body.style.top=`-${y}px`,document.body.style.width="100%";const L=D=>{D.preventDefault()};return document.addEventListener("touchmove",L,{passive:!1}),()=>{document.body.style.position=T.position,document.body.style.top=T.top,document.body.style.width=T.width,document.removeEventListener("touchmove",L),window.scrollTo(0,y)}},[m]),l.useEffect(()=>{m&&(x.current=document.activeElement);const y=document.getElementById(e),T=["a[href]","button:not([disabled])","textarea:not([disabled])","input:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'],L=()=>{if(!y)return[];const v=y.querySelectorAll(T.join(","));return Array.from(v).filter(N=>N.offsetParent!==null)},D=v=>{if(v.key!=="Tab")return;const N=L();if(!N.length)return;const M=N[0],I=N[N.length-1];v.shiftKey?document.activeElement===M&&(v.preventDefault(),I.focus()):document.activeElement===I&&(v.preventDefault(),M.focus())},B=v=>{v.key==="Escape"&&!s&&w(),D(v)};return m&&(window.addEventListener("keydown",B),setTimeout(()=>{const v=L();v.length&&v[0].focus()},0)),()=>{var v;window.removeEventListener("keydown",B),(v=x.current)==null||v.focus()}},[m,w,s,e]),m?a.jsx("div",{id:e,className:`
29
29
  fixed inset-0 z-50
30
30
  bg-black/60 backdrop-blur-[2px]
31
31
  flex
32
- ${N?"items-end justify-center":"items-center justify-center"}
32
+ ${E?"items-end justify-center":"items-center justify-center"}
33
33
  `,children:a.jsxs("div",{className:`
34
34
  bg-white shadow-lg
35
35
  transform transition-all duration-300
36
36
 
37
- ${N?`
37
+ ${E?`
38
38
  w-full
39
39
  rounded-t-3xl
40
40
  max-h-[92dvh]
@@ -52,7 +52,7 @@
52
52
  flex justify-between
53
53
  items-center relative
54
54
  ${u}
55
- `,children:[o&&a.jsx("h2",{className:"text-lg font-semibold",children:o}),i&&a.jsx("button",{onClick:y,"aria-label":"Close modal",className:`
55
+ `,children:[o&&a.jsx("h2",{className:"text-lg font-semibold",children:o}),i&&a.jsx("button",{onClick:w,"aria-label":"Close modal",className:`
56
56
  text-gray-500 hover:text-black
57
57
  absolute top-0 right-3
58
58
  hover:bg-gray-200
@@ -60,4 +60,4 @@
60
60
  w-8 aspect-square
61
61
 
62
62
  ${h}
63
- `,children:"✕"})]}),a.jsx("div",{className:g,children:typeof l=="function"?l({modalData:S}):l})]})}):null}function Re({children:e}){const[r,o]=t.useState({}),[l,n]=t.useState({}),i=t.useCallback((h,b)=>{o(p=>({...p,[h]:!0})),b&&n(p=>({...p,[h]:b}))},[]),f=t.useCallback(h=>{o(b=>({...b,[h]:!1})),n(b=>{const p={...b};return delete p[h],p})},[]),u=t.useCallback(h=>!!r[h],[r]),g=t.useCallback(h=>l[h],[l]),c=t.useMemo(()=>({openModal:i,closeModal:f}),[i,f]),s=t.useMemo(()=>({isOpen:u,getModalData:g}),[u,g]);return a.jsx(ue.Provider,{value:c,children:a.jsx(he.Provider,{value:s,children:e})})}function eo(e){const{openModal:r,closeModal:o}=q(),{isOpen:l,getModalData:n}=G();return{open:i=>r(e,i),close:()=>o(e),isOpen:l(e),data:n(e)}}let X=null,J={};function oo(e){X=e}function ro(e){J={...J,...e}}function to(){return J}function lo(e,r,o=3e3,l){X?X(e,r,o,l):console.warn("Toast system is not mounted")}function no(e){return U({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(e)}const ao=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),co=({containerStyle:e=""})=>{const[r,o]=t.useState([]);t.useEffect(()=>{oo((n,i,f,u)=>{const g=ao();o(c=>[...c,{id:g,type:n,message:i,config:u}]),setTimeout(()=>{o(c=>c.filter(s=>s.id!==g))},f)})},[]);const l=to();return a.jsx("div",{className:`fixed top-5 right-5 z-9999 flex flex-col gap-2 ${e}`,children:r.map(n=>{var c,s,h,b,p,d,k,M,m,S,N,y,w,x;const i=((c=n.config)==null?void 0:c.icon)||((s=l.icons)==null?void 0:s[n.type])||so(n.type),f=((h=n.config)==null?void 0:h.bgColor)||((p=(b=l.colors)==null?void 0:b[n.type])==null?void 0:p.bg)||"bg-white dark:bg-gray-800",u=((d=n.config)==null?void 0:d.textColor)||((M=(k=l.colors)==null?void 0:k[n.type])==null?void 0:M.text)||"text-gray-700 dark:text-gray-300",g=`w-8 h-8 mr-3 text-xl flex items-center justify-center ${(m=n.config)==null?void 0:m.iconContainerClass}`;return a.jsxs("div",{className:`flex items-center w-full max-w-xs p-4 text-sm rounded-lg shadow ${f} ${u} ${(S=n.config)==null?void 0:S.containerBody}`,children:[i&&a.jsx("div",{className:g,children:i}),a.jsxs("div",{className:"flex-1",children:[((N=n.config)==null?void 0:N.title)&&a.jsx("div",{className:`font-semibold text-black ${(y=n.config)==null?void 0:y.titleClass}`,children:n.config.title}),((w=n.config)==null?void 0:w.description)&&a.jsx("div",{className:`text-sm text-gray-500 ${(x=n.config)==null?void 0:x.subTitleClass}`,children:n.config.description})]}),a.jsx("button",{onClick:()=>o(P=>P.filter(E=>E.id!==n.id)),className:"ml-auto text-gray-400 hover:text-gray-700 dark:text-gray-500 dark:hover:text-white","aria-label":"Close",children:a.jsx(no,{size:18})})]},n.id)})})};function so(e){switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";case"info":return"ℹ️"}}C.Accordion=Qe,C.Badge=He,C.BottomSheet=Xe,C.BottomSheetProvider=Ge,C.Button=$e,C.Checkbox=ce,C.Dropdown=Ie,C.Input=oe,C.Modal=Ve,C.ModalProvider=Re,C.Select=re,C.Toast=co,C.Toggler=qe,C.Tooltip=ze,C.setToastDefaults=ro,C.showToast=lo,C.useBottomSheet=de,C.useModalActions=q,C.useModalInstance=eo,C.useModalState=G,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
63
+ `,children:"✕"})]}),a.jsx("div",{className:g,children:typeof t=="function"?t({modalData:$}):t})]})}):null}function eo({children:e}){const[r,o]=l.useState({}),[t,n]=l.useState({}),i=l.useCallback((h,b)=>{o(p=>({...p,[h]:!0})),b&&n(p=>({...p,[h]:b}))},[]),f=l.useCallback(h=>{o(b=>({...b,[h]:!1})),n(b=>{const p={...b};return delete p[h],p})},[]),u=l.useCallback(h=>!!r[h],[r]),g=l.useCallback(h=>t[h],[t]),c=l.useMemo(()=>({openModal:i,closeModal:f}),[i,f]),s=l.useMemo(()=>({isOpen:u,getModalData:g}),[u,g]);return a.jsx(he.Provider,{value:c,children:a.jsx(fe.Provider,{value:s,children:e})})}function oo(e){const{openModal:r,closeModal:o}=U(),{isOpen:t,getModalData:n}=q();return{open:i=>r(e,i),close:()=>o(e),isOpen:t(e),data:n(e)}}let G=null,X={};function ro(e){G=e}function to(e){X={...X,...e}}function lo(){return X}function no(e,r,o=3e3,t){G?G(e,r,o,t):console.warn("Toast system is not mounted")}function ao(e){return Z({attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(e)}const co=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)}),so=({containerStyle:e=""})=>{const[r,o]=l.useState([]);l.useEffect(()=>{ro((n,i,f,u)=>{const g=co();o(c=>[...c,{id:g,type:n,message:i,config:u}]),setTimeout(()=>{o(c=>c.filter(s=>s.id!==g))},f)})},[]);const t=lo();return a.jsx("div",{className:`fixed top-5 right-5 z-9999 flex flex-col gap-2 ${e}`,children:r.map(n=>{var c,s,h,b,p,d,k,O,m,$,E,w,x,y;const i=((c=n.config)==null?void 0:c.icon)||((s=t.icons)==null?void 0:s[n.type])||io(n.type),f=((h=n.config)==null?void 0:h.bgColor)||((p=(b=t.colors)==null?void 0:b[n.type])==null?void 0:p.bg)||"bg-white dark:bg-gray-800",u=((d=n.config)==null?void 0:d.textColor)||((O=(k=t.colors)==null?void 0:k[n.type])==null?void 0:O.text)||"text-gray-700 dark:text-gray-300",g=`w-8 h-8 mr-3 text-xl flex items-center justify-center ${(m=n.config)==null?void 0:m.iconContainerClass}`;return a.jsxs("div",{className:`flex items-center w-full max-w-xs p-4 text-sm rounded-lg shadow ${f} ${u} ${($=n.config)==null?void 0:$.containerBody}`,children:[i&&a.jsx("div",{className:g,children:i}),a.jsxs("div",{className:"flex-1",children:[((E=n.config)==null?void 0:E.title)&&a.jsx("div",{className:`font-semibold text-black ${(w=n.config)==null?void 0:w.titleClass}`,children:n.config.title}),((x=n.config)==null?void 0:x.description)&&a.jsx("div",{className:`text-sm text-gray-500 ${(y=n.config)==null?void 0:y.subTitleClass}`,children:n.config.description})]}),a.jsx("button",{onClick:()=>o(T=>T.filter(L=>L.id!==n.id)),className:"ml-auto text-gray-400 hover:text-gray-700 dark:text-gray-500 dark:hover:text-white","aria-label":"Close",children:a.jsx(ao,{size:18})})]},n.id)})})};function io(e){switch(e){case"success":return"✅";case"error":return"❌";case"warning":return"⚠️";case"info":return"ℹ️"}}C.Accordion=Ve,C.Badge=We,C.BottomSheet=Je,C.BottomSheetProvider=Xe,C.Button=Ne,C.Checkbox=se,C.Dropdown=ze,C.Input=re,C.Modal=Re,C.ModalProvider=eo,C.Select=te,C.Toast=so,C.Toggler=Ge,C.Tooltip=_e,C.setToastDefaults=to,C.showToast=no,C.useBottomSheet=ue,C.useModalActions=U,C.useModalInstance=oo,C.useModalState=q,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-ux-kit",
3
- "version": "1.0.112",
3
+ "version": "1.0.114",
4
4
  "main": "lib/tailwind-ux-kit.es.js",
5
5
  "module": "lib/tailwind-ux-kit.umd.js",
6
6
  "types": "lib/tailwind-ux-kit.es.d.ts",