@revotech-group/revotech-ui-kit 0.0.99 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/library.css +30 -10
- package/dist/rtg-ui-kit.js +24 -18
- package/dist/rtg-ui-kit.umd.cjs +5 -5
- package/dist/src/components/ui/checkbox/checkbox.style.d.ts +1 -1
- package/dist/src/components/ui/input/input.styles.d.ts +1 -1
- package/dist/src/components/ui/input-otp/input-otp.d.ts +1 -0
- package/package.json +1 -1
package/dist/library.css
CHANGED
|
@@ -1717,6 +1717,7 @@ body {
|
|
|
1717
1717
|
--sidebar-border: 0 0% 90%;
|
|
1718
1718
|
--sidebar-ring: 0 0% 64%;
|
|
1719
1719
|
--radius: 0.5rem;
|
|
1720
|
+
--custom-outline: 0 0% 64% / 50%;
|
|
1720
1721
|
}
|
|
1721
1722
|
|
|
1722
1723
|
[data-theme='dark'] {
|
|
@@ -1753,16 +1754,23 @@ body {
|
|
|
1753
1754
|
--sidebar-border: 0 0% 100% / 10%;
|
|
1754
1755
|
--sidebar-ring: 0 0% 32%;
|
|
1755
1756
|
--radius: 0.5rem;
|
|
1757
|
+
--custom-outline: 0 0% 45% / 50%;
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
[data-theme='light'] .rtg-no-autofill-bg:-webkit-autofill {
|
|
1761
|
+
-webkit-text-fill-color: hsl(0 0% 4%) !important; /* light foreground */
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
[data-theme='dark'] .rtg-no-autofill-bg:-webkit-autofill {
|
|
1765
|
+
-webkit-text-fill-color: hsl(0 0% 98%) !important; /* dark foreground */
|
|
1756
1766
|
}
|
|
1757
1767
|
|
|
1758
1768
|
.rtg-no-autofill-bg:-webkit-autofill,
|
|
1759
1769
|
.rtg-no-autofill-bg:-webkit-autofill:hover,
|
|
1760
1770
|
.rtg-no-autofill-bg:-webkit-autofill:focus,
|
|
1761
1771
|
.rtg-no-autofill-bg:-webkit-autofill:active {
|
|
1762
|
-
|
|
1763
|
-
-
|
|
1764
|
-
-webkit-transition: background-color 5000s ease-in-out 0s !important;
|
|
1765
|
-
transition: background-color 5000s ease-in-out 0s !important;
|
|
1772
|
+
-webkit-transition: background-color 5000s ease-in-out;
|
|
1773
|
+
transition: background-color 5000s ease-in-out;
|
|
1766
1774
|
}
|
|
1767
1775
|
|
|
1768
1776
|
@media (max-width: 640px) {
|
|
@@ -1933,6 +1941,10 @@ body {
|
|
|
1933
1941
|
border-color: hsl(var(--input));
|
|
1934
1942
|
}
|
|
1935
1943
|
|
|
1944
|
+
.focus\:rtg-border-ring:focus {
|
|
1945
|
+
border-color: hsl(var(--ring));
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1936
1948
|
.focus\:rtg-bg-accent:focus {
|
|
1937
1949
|
background-color: hsl(var(--accent));
|
|
1938
1950
|
}
|
|
@@ -1980,6 +1992,16 @@ body {
|
|
|
1980
1992
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1981
1993
|
}
|
|
1982
1994
|
|
|
1995
|
+
.focus\:rtg-ring-\[3px\]:focus {
|
|
1996
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
1997
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
1998
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.focus\:rtg-ring-custom-outline:focus {
|
|
2002
|
+
--tw-ring-color: hsl(var(--custom-outline));
|
|
2003
|
+
}
|
|
2004
|
+
|
|
1983
2005
|
.focus\:rtg-ring-ring:focus {
|
|
1984
2006
|
--tw-ring-color: hsl(var(--ring));
|
|
1985
2007
|
}
|
|
@@ -2019,18 +2041,16 @@ body {
|
|
|
2019
2041
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2020
2042
|
}
|
|
2021
2043
|
|
|
2022
|
-
.focus-visible\:rtg-ring-\[2px\]:focus-visible {
|
|
2023
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2024
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2025
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
2044
|
.focus-visible\:rtg-ring-\[3px\]:focus-visible {
|
|
2029
2045
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2030
2046
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
|
2031
2047
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
2032
2048
|
}
|
|
2033
2049
|
|
|
2050
|
+
.focus-visible\:rtg-ring-custom-outline:focus-visible {
|
|
2051
|
+
--tw-ring-color: hsl(var(--custom-outline));
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2034
2054
|
.focus-visible\:rtg-ring-ring:focus-visible {
|
|
2035
2055
|
--tw-ring-color: hsl(var(--ring));
|
|
2036
2056
|
}
|
package/dist/rtg-ui-kit.js
CHANGED
|
@@ -8,7 +8,7 @@ import { unsafeHTML as Dn } from "lit/directives/unsafe-html.js";
|
|
|
8
8
|
import { html as dt } from "lit-element";
|
|
9
9
|
import { createContext as Ps, provide as Mr, consume as Ur } from "@lit-labs/context";
|
|
10
10
|
import { ref as Bi } from "lit/directives/ref.js";
|
|
11
|
-
const Vi = "rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[
|
|
11
|
+
const Vi = "rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[3px] focus-visible:rtg-ring-custom-outline focus-visible:rtg-border-ring disabled:rtg-opacity-50 input-base";
|
|
12
12
|
function Rn(e) {
|
|
13
13
|
var t, o, s = "";
|
|
14
14
|
if (typeof e == "string" || typeof e == "number") s += e;
|
|
@@ -6163,7 +6163,7 @@ zn([
|
|
|
6163
6163
|
_t = zn([
|
|
6164
6164
|
g("rtg-label")
|
|
6165
6165
|
], _t);
|
|
6166
|
-
const Da = "rtg-peer rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-
|
|
6166
|
+
const Da = "rtg-peer rtg-shadow-sm rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-input focus:rtg-border-ring rtg-ring-offset-background focus-visible:rtg-outline-none focus:rtg-ring-[3px] focus:rtg-ring-custom-outline disabled:rtg-opacity-50 data-[state=checked]:rtg-bg-primary data-[state=checked]:rtg-text-primary-foreground", Ra = "rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";
|
|
6167
6167
|
var ka = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Lt = (e, t, o, s) => {
|
|
6168
6168
|
for (var r = s > 1 ? void 0 : s ? Aa(t, o) : t, n = e.length - 1, i; n >= 0; n--)
|
|
6169
6169
|
(i = e[n]) && (r = (s ? i(t, o, r) : i(r)) || r);
|
|
@@ -6517,10 +6517,10 @@ const Xa = pe(
|
|
|
6517
6517
|
{
|
|
6518
6518
|
variants: {
|
|
6519
6519
|
variant: {
|
|
6520
|
-
default: "rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",
|
|
6521
|
-
destructive: "rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",
|
|
6522
|
-
outline: "rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",
|
|
6523
|
-
secondary: "rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",
|
|
6520
|
+
default: "rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",
|
|
6521
|
+
destructive: "rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",
|
|
6522
|
+
outline: "rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",
|
|
6523
|
+
secondary: "rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",
|
|
6524
6524
|
ghost: "hover:rtg-bg-accent hover:rtg-text-accent-foreground",
|
|
6525
6525
|
link: "rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"
|
|
6526
6526
|
},
|
|
@@ -12771,18 +12771,19 @@ let it = class extends h {
|
|
|
12771
12771
|
}
|
|
12772
12772
|
}
|
|
12773
12773
|
handleInputChange(e) {
|
|
12774
|
+
var s;
|
|
12774
12775
|
const t = e.target;
|
|
12775
12776
|
if (new RegExp(/^\d+$/).test(t.value)) {
|
|
12776
|
-
const
|
|
12777
|
-
if (
|
|
12778
|
-
let
|
|
12779
|
-
(
|
|
12777
|
+
const r = this._inputOtp;
|
|
12778
|
+
if (r) {
|
|
12779
|
+
let n = r.inputes.findIndex(
|
|
12780
|
+
(i) => i.index === this.index
|
|
12780
12781
|
);
|
|
12781
|
-
|
|
12782
|
-
...
|
|
12782
|
+
r.inputes[n] = {
|
|
12783
|
+
...r.inputes[n],
|
|
12783
12784
|
value: t.value,
|
|
12784
12785
|
isSelected: !1
|
|
12785
|
-
}, r + 1 <
|
|
12786
|
+
}, (s = r.checkIfCompleteAndSubmit) == null || s.call(r), n + 1 < r.inputes.length && r.raiseEvent(n + 1, "changes");
|
|
12786
12787
|
}
|
|
12787
12788
|
} else
|
|
12788
12789
|
t.value = "";
|
|
@@ -13017,6 +13018,16 @@ let at = class extends h {
|
|
|
13017
13018
|
updated(e) {
|
|
13018
13019
|
e.has("variant") && this.applyVariantStyles();
|
|
13019
13020
|
}
|
|
13021
|
+
checkIfCompleteAndSubmit() {
|
|
13022
|
+
if (this.inputes.every((t) => t.value !== "")) {
|
|
13023
|
+
const t = this.inputes.map((s) => s.value).join(""), o = new CustomEvent("otp-complete", {
|
|
13024
|
+
detail: { value: t },
|
|
13025
|
+
bubbles: !0,
|
|
13026
|
+
composed: !0
|
|
13027
|
+
});
|
|
13028
|
+
this.dispatchEvent(o);
|
|
13029
|
+
}
|
|
13030
|
+
}
|
|
13020
13031
|
applyVariantStyles() {
|
|
13021
13032
|
const e = this.querySelectorAll("rtg-input-otp-group");
|
|
13022
13033
|
switch (e.forEach((t) => {
|
|
@@ -13025,11 +13036,6 @@ let at = class extends h {
|
|
|
13025
13036
|
case "with-spacing":
|
|
13026
13037
|
e.forEach((t) => t.classList.add("rtg-gap-2"));
|
|
13027
13038
|
break;
|
|
13028
|
-
case "with-separator":
|
|
13029
|
-
break;
|
|
13030
|
-
case "combined":
|
|
13031
|
-
e.forEach((t) => t.classList.add("rtg-gap-2"));
|
|
13032
|
-
break;
|
|
13033
13039
|
}
|
|
13034
13040
|
}
|
|
13035
13041
|
render() {
|
package/dist/rtg-ui-kit.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Ln,_t,Nn,Bn,sr,Ce,oe,qn){"use strict";const Un="rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[2px] focus-visible:rtg-ring-ring disabled:rtg-opacity-50 input-base";function lr(i){var e,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var t=i.length;for(e=0;e<t;e++)i[e]&&(r=lr(i[e]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function cr(){for(var i,e,r=0,n="",t=arguments.length;r<t;r++)(i=arguments[r])&&(e=lr(i))&&(n&&(n+=" "),n+=e);return n}const Et="-",zn=i=>{const e=Gn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(Et);return m[0]===""&&m.length!==1&&m.shift(),dr(m,e)||Fn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},dr=(i,e)=>{var s;if(i.length===0)return e.classGroupId;const r=i[0],n=e.nextPart.get(r),t=n?dr(i.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const a=i.join(Et);return(s=e.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},ur=/^\[(.+)\]$/,Fn=i=>{if(ur.test(i)){const e=ur.exec(i)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Gn=i=>{const{theme:e,prefix:r}=i,n={nextPart:new Map,validators:[]};return Hn(Object.entries(i.classGroups),r).forEach(([a,s])=>{xt(s,n,a,e)}),n},xt=(i,e,r,n)=>{i.forEach(t=>{if(typeof t=="string"){const a=t===""?e:gr(e,t);a.classGroupId=r;return}if(typeof t=="function"){if(Vn(t)){xt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([a,s])=>{xt(s,gr(e,a),r,n)})})},gr=(i,e)=>{let r=i;return e.split(Et).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vn=i=>i.isThemeGetter,Hn=(i,e)=>e?i.map(([r,n])=>{const t=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[e+s,m])):a);return[r,t]}):i,Yn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(a,s)=>{r.set(a,s),e++,e>i&&(e=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return t(a,s),s},set(a,s){r.has(a)?r.set(a,s):t(a,s)}}},pr="!",Kn=i=>{const{separator:e,experimentalParseClassName:r}=i,n=e.length===1,t=e[0],a=e.length,s=m=>{const C=[];let b=0,w=0,x;for(let P=0;P<m.length;P++){let L=m[P];if(b===0){if(L===t&&(n||m.slice(P,P+a)===e)){C.push(m.slice(w,P)),w=P+a;continue}if(L==="/"){x=P;continue}}L==="["?b++:L==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(pr),M=F?N.substring(1):N,q=x&&x>w?x-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:M,maybePostfixModifierPosition:q}};return r?m=>r({className:m,parseClassName:s}):s},Wn=i=>{if(i.length<=1)return i;const e=[];let r=[];return i.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jn=i=>({cache:Yn(i.cacheSize),parseClassName:Kn(i),...zn(i)}),Xn=/\s+/,Zn=(i,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,a=[],s=i.trim().split(Xn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let M=!!F,q=n(M?N.substring(0,F):N);if(!q){if(!M){m=b+(m.length>0?" "+m:m);continue}if(q=n(N),!q){m=b+(m.length>0?" "+m:m);continue}M=!1}const P=Wn(w).join(":"),L=x?P+pr:P,W=L+q;if(a.includes(W))continue;a.push(W);const j=t(q,M);for(let ee=0;ee<j.length;++ee){const B=j[ee];a.push(L+B)}m=b+(m.length>0?" "+m:m)}return m};function Qn(){let i=0,e,r,n="";for(;i<arguments.length;)(e=arguments[i++])&&(r=hr(e))&&(n&&(n+=" "),n+=r);return n}const hr=i=>{if(typeof i=="string")return i;let e,r="";for(let n=0;n<i.length;n++)i[n]&&(e=hr(i[n]))&&(r&&(r+=" "),r+=e);return r};function Jn(i,...e){let r,n,t,a=s;function s(C){const b=e.reduce((w,x)=>x(w),i());return r=jn(b),n=r.cache.get,t=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=Zn(C,r);return t(C,w),w}return function(){return a(Qn.apply(null,arguments))}}const H=i=>{const e=r=>r[i]||[];return e.isThemeGetter=!0,e},mr=/^\[(?:([a-z-]+):)?(.+)\]$/i,eo=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=i=>ke(i)||to.has(i)||eo.test(i),he=i=>Te(i,"length",mo),ke=i=>!!i&&!Number.isNaN(Number(i)),$t=i=>Te(i,"number",ke),We=i=>!!i&&Number.isInteger(Number(i)),so=i=>i.endsWith("%")&&ke(i.slice(0,-1)),S=i=>mr.test(i),me=i=>ro.test(i),lo=new Set(["length","size","percentage"]),co=i=>Te(i,lo,vr),uo=i=>Te(i,"position",vr),go=new Set(["image","url"]),po=i=>Te(i,go,fo),ho=i=>Te(i,"",vo),je=()=>!0,Te=(i,e,r)=>{const n=mr.exec(i);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mo=i=>no.test(i)&&!oo.test(i),vr=()=>!1,vo=i=>io.test(i),fo=i=>ao.test(i),bo=Jn(()=>{const i=H("colors"),e=H("spacing"),r=H("blur"),n=H("brightness"),t=H("borderColor"),a=H("borderRadius"),s=H("borderSpacing"),m=H("borderWidth"),C=H("contrast"),b=H("grayscale"),w=H("hueRotate"),x=H("invert"),N=H("gap"),F=H("gradientColorStops"),M=H("gradientColorStopPositions"),q=H("inset"),P=H("margin"),L=H("opacity"),W=H("padding"),j=H("saturate"),ee=H("scale"),B=H("sepia"),fe=H("skew"),be=H("space"),ae=H("translate"),te=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",S,e],U=()=>[S,e],ce=()=>["",pe,he],re=()=>["auto",ke,S],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[ke,S];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[pe,he],blur:["none","",me,S],brightness:v(),borderColor:[i],borderRadius:["none","","full",me,S],borderSpacing:U(),borderWidth:ce(),contrast:v(),grayscale:ue(),hueRotate:v(),invert:ue(),gap:U(),gradientColorStops:[i],gradientColorStopPositions:[so,he],inset:G(),margin:G(),opacity:v(),padding:U(),saturate:v(),scale:v(),sepia:ue(),skew:v(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),S]}],overflow:[{overflow:Ie()}],"overflow-x":[{"overflow-x":Ie()}],"overflow-y":[{"overflow-y":Ie()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,S]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",We,S]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,S]},S]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,S]},S]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",S,e]}],"min-w":[{"min-w":[S,e,"min","max","fit"]}],"max-w":[{"max-w":[S,e,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[S,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,e,"auto","min","max","fit"]}],"font-size":[{text:["base",me,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[je]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",ke,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,he]}],"underline-offset":[{"underline-offset":["auto",pe,S]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:Z()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-s":[{"border-s":[t]}],"border-color-e":[{"border-e":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[pe,S]}],"outline-w":[{outline:[pe,he]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[pe,he]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",me,ho]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",me,S]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ee]}],"scale-x":[{"scale-x":[ee]}],"scale-y":[{"scale-y":[ee]}],rotate:[{rotate:[We,S]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[pe,he,$t]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return bo(cr(i))}var yo=Object.defineProperty,fr=(i,e,r,n)=>{for(var t=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(e,r,t)||t);return t&&yo(e,r,t),t};class h extends d.LitElement{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,n=""){var a,s;let t="";e.some(m=>this.isCustomPropertySet(m))&&(t=n),t&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(t))}removeDuplicateContent(){var a;const e=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let t;for(;t=e.nextNode();){let s;if(t.nodeType===Node.TEXT_NODE){const m=(a=t.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(t instanceof HTMLElement){const m=Array.from(t.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${t.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,t)}else r.set(s,t)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(e,r){let n;if(r&&r.length>0){n=r.filter(t=>this.contains(t)&&t!==e&&!t.contains(e));for(const t of n){const a=Array.from(e.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,t)});a&&e.removeChild(a)}}else n=Array.from(this.childNodes).filter(t=>t!==e&&!e.contains(t)&&!t.contains(e));for(const t of n)e.appendChild(t)}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const t=this.getAttribute("style")||"";t&&(this.customStyle=t,this.removeAttribute("style"))}if(n.attributeName==="class"){const t=this.getAttribute("class")||"";t&&(e.className=t,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}fr([l.property({type:String,reflect:!0})],h.prototype,"customClass"),fr([l.property({type:String,reflect:!0})],h.prototype,"customStyle");function St(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const br=d.css`
|
|
1
|
+
(function(o,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js"),require("lit-element"),require("@lit-labs/context"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js","lit-element","@lit-labs/context","lit/directives/ref.js"],d):(o=typeof globalThis<"u"?globalThis:o||self,d(o["rtg-ui-kit"]={},o.lit,o.decorators_js,o.html_js,o.directive_js,o.asyncDirective_js,o.ifDefined_js,o.unsafeHtml_js,o.litElement,o.context,o.ref_js))})(this,function(o,d,l,Ln,_t,Nn,Bn,sr,Ce,oe,qn){"use strict";const Un="rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[3px] focus-visible:rtg-ring-custom-outline focus-visible:rtg-border-ring disabled:rtg-opacity-50 input-base";function lr(i){var e,r,n="";if(typeof i=="string"||typeof i=="number")n+=i;else if(typeof i=="object")if(Array.isArray(i)){var t=i.length;for(e=0;e<t;e++)i[e]&&(r=lr(i[e]))&&(n&&(n+=" "),n+=r)}else for(r in i)i[r]&&(n&&(n+=" "),n+=r);return n}function cr(){for(var i,e,r=0,n="",t=arguments.length;r<t;r++)(i=arguments[r])&&(e=lr(i))&&(n&&(n+=" "),n+=e);return n}const Et="-",zn=i=>{const e=Gn(i),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=i;return{getClassGroupId:s=>{const m=s.split(Et);return m[0]===""&&m.length!==1&&m.shift(),dr(m,e)||Fn(s)},getConflictingClassGroupIds:(s,m)=>{const C=r[s]||[];return m&&n[s]?[...C,...n[s]]:C}}},dr=(i,e)=>{var s;if(i.length===0)return e.classGroupId;const r=i[0],n=e.nextPart.get(r),t=n?dr(i.slice(1),n):void 0;if(t)return t;if(e.validators.length===0)return;const a=i.join(Et);return(s=e.validators.find(({validator:m})=>m(a)))==null?void 0:s.classGroupId},ur=/^\[(.+)\]$/,Fn=i=>{if(ur.test(i)){const e=ur.exec(i)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Gn=i=>{const{theme:e,prefix:r}=i,n={nextPart:new Map,validators:[]};return Hn(Object.entries(i.classGroups),r).forEach(([a,s])=>{xt(s,n,a,e)}),n},xt=(i,e,r,n)=>{i.forEach(t=>{if(typeof t=="string"){const a=t===""?e:gr(e,t);a.classGroupId=r;return}if(typeof t=="function"){if(Vn(t)){xt(t(n),e,r,n);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([a,s])=>{xt(s,gr(e,a),r,n)})})},gr=(i,e)=>{let r=i;return e.split(Et).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Vn=i=>i.isThemeGetter,Hn=(i,e)=>e?i.map(([r,n])=>{const t=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,m])=>[e+s,m])):a);return[r,t]}):i,Yn=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const t=(a,s)=>{r.set(a,s),e++,e>i&&(e=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return t(a,s),s},set(a,s){r.has(a)?r.set(a,s):t(a,s)}}},pr="!",Kn=i=>{const{separator:e,experimentalParseClassName:r}=i,n=e.length===1,t=e[0],a=e.length,s=m=>{const C=[];let b=0,w=0,x;for(let P=0;P<m.length;P++){let L=m[P];if(b===0){if(L===t&&(n||m.slice(P,P+a)===e)){C.push(m.slice(w,P)),w=P+a;continue}if(L==="/"){x=P;continue}}L==="["?b++:L==="]"&&b--}const N=C.length===0?m:m.substring(w),F=N.startsWith(pr),M=F?N.substring(1):N,q=x&&x>w?x-w:void 0;return{modifiers:C,hasImportantModifier:F,baseClassName:M,maybePostfixModifierPosition:q}};return r?m=>r({className:m,parseClassName:s}):s},Wn=i=>{if(i.length<=1)return i;const e=[];let r=[];return i.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jn=i=>({cache:Yn(i.cacheSize),parseClassName:Kn(i),...zn(i)}),Xn=/\s+/,Zn=(i,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:t}=e,a=[],s=i.trim().split(Xn);let m="";for(let C=s.length-1;C>=0;C-=1){const b=s[C],{modifiers:w,hasImportantModifier:x,baseClassName:N,maybePostfixModifierPosition:F}=r(b);let M=!!F,q=n(M?N.substring(0,F):N);if(!q){if(!M){m=b+(m.length>0?" "+m:m);continue}if(q=n(N),!q){m=b+(m.length>0?" "+m:m);continue}M=!1}const P=Wn(w).join(":"),L=x?P+pr:P,W=L+q;if(a.includes(W))continue;a.push(W);const j=t(q,M);for(let ee=0;ee<j.length;++ee){const B=j[ee];a.push(L+B)}m=b+(m.length>0?" "+m:m)}return m};function Qn(){let i=0,e,r,n="";for(;i<arguments.length;)(e=arguments[i++])&&(r=hr(e))&&(n&&(n+=" "),n+=r);return n}const hr=i=>{if(typeof i=="string")return i;let e,r="";for(let n=0;n<i.length;n++)i[n]&&(e=hr(i[n]))&&(r&&(r+=" "),r+=e);return r};function Jn(i,...e){let r,n,t,a=s;function s(C){const b=e.reduce((w,x)=>x(w),i());return r=jn(b),n=r.cache.get,t=r.cache.set,a=m,m(C)}function m(C){const b=n(C);if(b)return b;const w=Zn(C,r);return t(C,w),w}return function(){return a(Qn.apply(null,arguments))}}const H=i=>{const e=r=>r[i]||[];return e.isThemeGetter=!0,e},mr=/^\[(?:([a-z-]+):)?(.+)\]$/i,eo=/^\d+\/\d+$/,to=new Set(["px","full","screen"]),ro=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,no=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,io=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,pe=i=>ke(i)||to.has(i)||eo.test(i),he=i=>Te(i,"length",mo),ke=i=>!!i&&!Number.isNaN(Number(i)),$t=i=>Te(i,"number",ke),We=i=>!!i&&Number.isInteger(Number(i)),so=i=>i.endsWith("%")&&ke(i.slice(0,-1)),S=i=>mr.test(i),me=i=>ro.test(i),lo=new Set(["length","size","percentage"]),co=i=>Te(i,lo,vr),uo=i=>Te(i,"position",vr),go=new Set(["image","url"]),po=i=>Te(i,go,fo),ho=i=>Te(i,"",vo),je=()=>!0,Te=(i,e,r)=>{const n=mr.exec(i);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},mo=i=>no.test(i)&&!oo.test(i),vr=()=>!1,vo=i=>io.test(i),fo=i=>ao.test(i),bo=Jn(()=>{const i=H("colors"),e=H("spacing"),r=H("blur"),n=H("brightness"),t=H("borderColor"),a=H("borderRadius"),s=H("borderSpacing"),m=H("borderWidth"),C=H("contrast"),b=H("grayscale"),w=H("hueRotate"),x=H("invert"),N=H("gap"),F=H("gradientColorStops"),M=H("gradientColorStopPositions"),q=H("inset"),P=H("margin"),L=H("opacity"),W=H("padding"),j=H("saturate"),ee=H("scale"),B=H("sepia"),fe=H("skew"),be=H("space"),ae=H("translate"),te=()=>["auto","contain","none"],Ie=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto",S,e],U=()=>[S,e],ce=()=>["",pe,he],re=()=>["auto",ke,S],X=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Z=()=>["solid","dashed","dotted","double","none"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>["start","end","center","between","around","evenly","stretch"],ue=()=>["","0",S],u=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>[ke,S];return{cacheSize:500,separator:":",theme:{colors:[je],spacing:[pe,he],blur:["none","",me,S],brightness:v(),borderColor:[i],borderRadius:["none","","full",me,S],borderSpacing:U(),borderWidth:ce(),contrast:v(),grayscale:ue(),hueRotate:v(),invert:ue(),gap:U(),gradientColorStops:[i],gradientColorStopPositions:[so,he],inset:G(),margin:G(),opacity:v(),padding:U(),saturate:v(),scale:v(),sepia:ue(),skew:v(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",S]}],container:["container"],columns:[{columns:[me]}],"break-after":[{"break-after":u()}],"break-before":[{"break-before":u()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...X(),S]}],overflow:[{overflow:Ie()}],"overflow-x":[{"overflow-x":Ie()}],"overflow-y":[{"overflow-y":Ie()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[q]}],"inset-x":[{"inset-x":[q]}],"inset-y":[{"inset-y":[q]}],start:[{start:[q]}],end:[{end:[q]}],top:[{top:[q]}],right:[{right:[q]}],bottom:[{bottom:[q]}],left:[{left:[q]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",We,S]}],basis:[{basis:G()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",S]}],grow:[{grow:ue()}],shrink:[{shrink:ue()}],order:[{order:["first","last","none",We,S]}],"grid-cols":[{"grid-cols":[je]}],"col-start-end":[{col:["auto",{span:["full",We,S]},S]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[je]}],"row-start-end":[{row:["auto",{span:[We,S]},S]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",S]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",S]}],gap:[{gap:[N]}],"gap-x":[{"gap-x":[N]}],"gap-y":[{"gap-y":[N]}],"justify-content":[{justify:["normal",...de()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...de(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...de(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[W]}],px:[{px:[W]}],py:[{py:[W]}],ps:[{ps:[W]}],pe:[{pe:[W]}],pt:[{pt:[W]}],pr:[{pr:[W]}],pb:[{pb:[W]}],pl:[{pl:[W]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[be]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[be]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",S,e]}],"min-w":[{"min-w":[S,e,"min","max","fit"]}],"max-w":[{"max-w":[S,e,"none","full","min","max","fit","prose",{screen:[me]},me]}],h:[{h:[S,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[S,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[S,e,"auto","min","max","fit"]}],"font-size":[{text:["base",me,he]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$t]}],"font-family":[{font:[je]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",S]}],"line-clamp":[{"line-clamp":["none",ke,$t]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",pe,S]}],"list-image":[{"list-image":["none",S]}],"list-style-type":[{list:["none","disc","decimal",S]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[i]}],"placeholder-opacity":[{"placeholder-opacity":[L]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[i]}],"text-opacity":[{"text-opacity":[L]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",pe,he]}],"underline-offset":[{"underline-offset":["auto",pe,S]}],"text-decoration-color":[{decoration:[i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",S]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",S]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[L]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...X(),uo]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",co]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},po]}],"bg-color":[{bg:[i]}],"gradient-from-pos":[{from:[M]}],"gradient-via-pos":[{via:[M]}],"gradient-to-pos":[{to:[M]}],"gradient-from":[{from:[F]}],"gradient-via":[{via:[F]}],"gradient-to":[{to:[F]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[m]}],"border-w-x":[{"border-x":[m]}],"border-w-y":[{"border-y":[m]}],"border-w-s":[{"border-s":[m]}],"border-w-e":[{"border-e":[m]}],"border-w-t":[{"border-t":[m]}],"border-w-r":[{"border-r":[m]}],"border-w-b":[{"border-b":[m]}],"border-w-l":[{"border-l":[m]}],"border-opacity":[{"border-opacity":[L]}],"border-style":[{border:[...Z(),"hidden"]}],"divide-x":[{"divide-x":[m]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[m]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[L]}],"divide-style":[{divide:Z()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-s":[{"border-s":[t]}],"border-color-e":[{"border-e":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Z()]}],"outline-offset":[{"outline-offset":[pe,S]}],"outline-w":[{outline:[pe,he]}],"outline-color":[{outline:[i]}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[i]}],"ring-opacity":[{"ring-opacity":[L]}],"ring-offset-w":[{"ring-offset":[pe,he]}],"ring-offset-color":[{"ring-offset":[i]}],shadow:[{shadow:["","inner","none",me,ho]}],"shadow-color":[{shadow:[je]}],opacity:[{opacity:[L]}],"mix-blend":[{"mix-blend":[...ye(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ye()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[C]}],"drop-shadow":[{"drop-shadow":["","none",me,S]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[w]}],invert:[{invert:[x]}],saturate:[{saturate:[j]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[C]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[w]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[L]}],"backdrop-saturate":[{"backdrop-saturate":[j]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",S]}],duration:[{duration:v()}],ease:[{ease:["linear","in","out","in-out",S]}],delay:[{delay:v()}],animate:[{animate:["none","spin","ping","pulse","bounce",S]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[ee]}],"scale-x":[{"scale-x":[ee]}],"scale-y":[{"scale-y":[ee]}],rotate:[{rotate:[We,S]}],"translate-x":[{"translate-x":[ae]}],"translate-y":[{"translate-y":[ae]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",S]}],accent:[{accent:["auto",i]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",S]}],"caret-color":[{caret:[i]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",S]}],fill:[{fill:[i,"none"]}],"stroke-w":[{stroke:[pe,he,$t]}],stroke:[{stroke:[i,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...i){return bo(cr(i))}var yo=Object.defineProperty,fr=(i,e,r,n)=>{for(var t=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=s(e,r,t)||t);return t&&yo(e,r,t),t};class h extends d.LitElement{constructor(){super(),this.customClass="",this.customStyle=""}getAttributesToExclude(){return[]}getAttributesToRemoveFromParent(){return["class"]}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.mutationObserver)==null||e.disconnect()}removeParentAttributes(){this.getAttributesToRemoveFromParent().forEach(r=>{r==="class"&&this.hasAttribute("class")&&(this.customClass=this.getAttribute("class")||""),r==="style"&&this.hasAttribute("style")&&(this.customStyle=this.getAttribute("style")||""),this.hasAttribute(r)&&this.removeAttribute(r)})}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,n=""){var a,s;let t="";e.some(m=>this.isCustomPropertySet(m))&&(t=n),t&&((s=(a=this.shadowRoot)==null?void 0:a.querySelector(r))==null||s.classList.add(t))}removeDuplicateContent(){var a;const e=document.createTreeWalker(this,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{var m;return s.nodeType===Node.COMMENT_NODE||s.nodeType===Node.TEXT_NODE&&!((m=s.textContent)!=null&&m.trim())?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),r=new Map,n=[];let t;for(;t=e.nextNode();){let s;if(t.nodeType===Node.TEXT_NODE){const m=(a=t.textContent)==null?void 0:a.trim();if(!m)continue;s=`text:${m}`}else if(t instanceof HTMLElement){const m=Array.from(t.attributes).map(C=>`${C.name}=${C.value}`).sort().join(":");s=`element:${t.tagName}:${m}`}else continue;if(r.has(s)){const m=r.get(s);m&&m.parentNode&&n.push(m),r.set(s,t)}else r.set(s,t)}n.forEach(s=>{s.parentNode&&(console.log("Removing duplicate:",s),s.parentNode.removeChild(s))})}moveLightDomChildrenInto(e,r){let n;if(r&&r.length>0){n=r.filter(t=>this.contains(t)&&t!==e&&!t.contains(e));for(const t of n){const a=Array.from(e.childNodes).find(s=>{var m;return(m=s.isEqualNode)==null?void 0:m.call(s,t)});a&&e.removeChild(a)}}else n=Array.from(this.childNodes).filter(t=>t!==e&&!e.contains(t)&&!t.contains(e));for(const t of n)e.appendChild(t)}observeStyleAndClassSync(e){this.mutationObserver=new MutationObserver(r=>{for(const n of r)if(n.type==="attributes"){if(n.attributeName==="style"){const t=this.getAttribute("style")||"";t&&(this.customStyle=t,this.removeAttribute("style"))}if(n.attributeName==="class"){const t=this.getAttribute("class")||"";t&&(e.className=t,this.removeAttribute("class"))}}}),this.mutationObserver.observe(this,{attributes:!0,attributeFilter:["style","class"]})}}fr([l.property({type:String,reflect:!0})],h.prototype,"customClass"),fr([l.property({type:String,reflect:!0})],h.prototype,"customStyle");function St(){const i=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){const n=(i+Math.random()*16)%16|0;return(r=="x"?n:n&3|8).toString(16)})}const br=d.css`
|
|
2
2
|
@font-face {
|
|
3
3
|
font-family: 'GeistSans';
|
|
4
4
|
|
|
@@ -2919,7 +2919,7 @@ body {
|
|
|
2919
2919
|
color: var(--label-text-color) !important;
|
|
2920
2920
|
padding: var(--label-padding) !important;
|
|
2921
2921
|
}
|
|
2922
|
-
`],$r([l.property({type:String})],o.Label.prototype,"for",2),o.Label=$r([l.customElement("rtg-label")],o.Label);const So="rtg-peer rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-
|
|
2922
|
+
`],$r([l.property({type:String})],o.Label.prototype,"for",2),o.Label=$r([l.customElement("rtg-label")],o.Label);const So="rtg-peer rtg-shadow-sm rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-input focus:rtg-border-ring rtg-ring-offset-background focus-visible:rtg-outline-none focus:rtg-ring-[3px] focus:rtg-ring-custom-outline disabled:rtg-opacity-50 data-[state=checked]:rtg-bg-primary data-[state=checked]:rtg-text-primary-foreground",Oo="rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";var Po=Object.defineProperty,Do=Object.getOwnPropertyDescriptor,Ae=(i,e,r,n)=>{for(var t=n>1?void 0:n?Do(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&Po(e,r,t),t};o.Checkbox=class extends d.LitElement{constructor(){super(...arguments),this.disabled=!1,this.checked=!1,this.type="text",this.value="",this.required=!1}_onClick(e){e.defaultPrevented||(this.checked=!this.checked,this.required=!this.required,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}click(){this.checked=!this.checked,this.required=!this.required}createRenderRoot(){return this}render(){return d.html`
|
|
2923
2923
|
<button
|
|
2924
2924
|
part="checkbox"
|
|
2925
2925
|
data-testid="checkbox-atom"
|
|
@@ -3001,7 +3001,7 @@ body {
|
|
|
3001
3001
|
</div>`:""}
|
|
3002
3002
|
${this.message?d.html`<div part="alert-description">${this.message}</div>`:""}
|
|
3003
3003
|
</div>
|
|
3004
|
-
`}},o.Alert.alertVariants=Or,Xe([l.property({type:String})],o.Alert.prototype,"title",2),Xe([l.property({type:String})],o.Alert.prototype,"message",2),Xe([l.property({type:String})],o.Alert.prototype,"variant",2),Xe([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Xe([l.customElement("rtg-alert")],o.Alert);const Ko=J("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Wo=J("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-9 rtg-rounded-md rtg-px-4 rtg-py-2 rtg-has-[>svg]:px-3",sm:"rtg-h-8 rtg-rounded-md rtg-px-3 rtg-text-xs rtg-has-[>svg]:px-2.5",lg:"rtg-h-10 rtg-rounded-md rtg-px-6 rtg-has-[>svg]:px-4",icon:"rtg-h-9 rtg-w-9"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,_e=(i,e,r,n)=>{for(var t=n>1?void 0:n?Xo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&jo(e,r,t),t};o.Button=class extends h{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid","custom-class"]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes(),this.observeStyleAndClassSync(this.buttonElement)}updated(e){this.removeParentAttributes()}render(){const e=this.getFilteredAttributes(),r=this.customStyle||"",n=this.customClass||"";return d.html`
|
|
3004
|
+
`}},o.Alert.alertVariants=Or,Xe([l.property({type:String})],o.Alert.prototype,"title",2),Xe([l.property({type:String})],o.Alert.prototype,"message",2),Xe([l.property({type:String})],o.Alert.prototype,"variant",2),Xe([l.property({type:String})],o.Alert.prototype,"size",2),o.Alert=Xe([l.customElement("rtg-alert")],o.Alert);const Ko=J("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-sm rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{outline:"rtg-border rtg-border-input rtg-bg-transparent rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground"},size:{default:"rtg-h-7 rtg-w-7 rtg-p-0"}},defaultVariants:{variant:"outline",size:"default"}}),Wo=J("rtg-inline-flex rtg-items-center rtg-justify-center rtg-whitespace-nowrap rtg-rounded-md rtg-text-sm rtg-font-medium rtg-transition-colors focus-visible:rtg-outline-none focus-visible:rtg-ring-1 focus-visible:rtg-ring-ring disabled:rtg-pointer-events-none disabled:rtg-opacity-50",{variants:{variant:{default:"rtg-bg-primary rtg-text-primary-foreground rtg-shadow hover:rtg-bg-primary/90 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",destructive:"rtg-bg-destructive rtg-text-destructive-foreground rtg-shadow-sm hover:rtg-bg-destructive/90 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",outline:"rtg-border rtg-border-input rtg-bg-background rtg-shadow-sm hover:rtg-bg-accent hover:rtg-text-accent-foreground focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",secondary:"rtg-bg-secondary rtg-text-secondary-foreground rtg-shadow-sm hover:rtg-bg-secondary/80 focus:rtg-ring-[3px] focus:rtg-ring-custom-outline",ghost:"hover:rtg-bg-accent hover:rtg-text-accent-foreground",link:"rtg-text-primary rtg-underline-offset-4 hover:rtg-underline"},size:{default:"rtg-h-9 rtg-rounded-md rtg-px-4 rtg-py-2 rtg-has-[>svg]:px-3",sm:"rtg-h-8 rtg-rounded-md rtg-px-3 rtg-text-xs rtg-has-[>svg]:px-2.5",lg:"rtg-h-10 rtg-rounded-md rtg-px-6 rtg-has-[>svg]:px-4",icon:"rtg-h-9 rtg-w-9"}},defaultVariants:{variant:"default",size:"default"}});var jo=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,_e=(i,e,r,n)=>{for(var t=n>1?void 0:n?Xo(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&jo(e,r,t),t};o.Button=class extends h{constructor(){super(...arguments),this.click=()=>{},this.disabled=!1,this.type="button",this.variant="default",this.size="default"}createRenderRoot(){return this}getAttributesToExclude(){return["click","disabled","type","variant","size","data-testid","custom-class"]}getAttributesToRemoveFromParent(){return["class","style"]}firstUpdated(){this.moveLightDomChildrenInto(this.buttonElement),this.removeParentAttributes(),this.observeStyleAndClassSync(this.buttonElement)}updated(e){this.removeParentAttributes()}render(){const e=this.getFilteredAttributes(),r=this.customStyle||"",n=this.customClass||"";return d.html`
|
|
3005
3005
|
<button
|
|
3006
3006
|
part="button"
|
|
3007
3007
|
type="${this.type}"
|
|
@@ -4423,7 +4423,7 @@ body {
|
|
|
4423
4423
|
class="${p(cd,this.className)}"
|
|
4424
4424
|
?disable="${this.disabled}"
|
|
4425
4425
|
></div>
|
|
4426
|
-
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const t=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);t&&(t.focus(),n.detail.eventType==="changes"&&(t.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(e){const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const
|
|
4426
|
+
`}},Pe([l.property({type:Boolean})],o.ToggleGroup.prototype,"disabled",2),Pe([l.property({type:String})],o.ToggleGroup.prototype,"type",2),Pe([l.property({attribute:!0,type:Boolean,reflect:!0})],o.ToggleGroup.prototype,"required",2),Pe([l.property({attribute:!0,type:String,reflect:!0})],o.ToggleGroup.prototype,"variant",2),Pe([l.property({attribute:!0,type:String})],o.ToggleGroup.prototype,"size",2),Pe([l.property({type:Array})],o.ToggleGroup.prototype,"selectedItems",2),o.ToggleGroup=Pe([l.customElement("rtg-toggle-group")],o.ToggleGroup);var hd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,Fe=(i,e,r,n)=>{for(var t=n>1?void 0:n?md(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&hd(e,r,t),t};o.InputOtpSlot=class extends h{constructor(){super(...arguments),this.click=()=>{},this.index=0,this.isFirst=!1,this.isLast=!1,this.value=""}get _inputOtp(){let e=this.parentElement;for(;e&&!(e instanceof o.InputOtp);)e=e.parentElement;return e}firstUpdated(e){const r=this._inputOtp;r&&(r.inputes.push({index:r.inputes.length,value:"",isSelected:!1,userIndex:this.index}),r.addEventListener("selected-input",n=>{const t=this.querySelector(`input[name="input-${n.detail.selectedItems}"]`);t&&(t.focus(),n.detail.eventType==="changes"&&(t.value=""))}))}disconnectedCallback(){super.disconnectedCallback(),this._inputOtp&&this._inputOtp.removeEventListener("selected-input",()=>{})}getAttributesToExclude(){return[]}handleFocus(e){const r=this._inputOtp;if(!r)return;const n=r.inputes.findIndex(a=>a.value===""),t=this.index;if(n!==-1&&t>n){e.preventDefault(),e.stopImmediatePropagation();const a=n;r.raiseEvent(a,"focus")}}handleInputChange(e){var t;const r=e.target;if(new RegExp(/^\d+$/).test(r.value)){const a=this._inputOtp;if(a){let s=a.inputes.findIndex(m=>m.index===this.index);a.inputes[s]={...a.inputes[s],value:r.value,isSelected:!1},(t=a.checkIfCompleteAndSubmit)==null||t.call(a),s+1<a.inputes.length&&a.raiseEvent(s+1,"changes")}}else r.value=""}handleKeyDown(e){const r=e.target,n=this._inputOtp;if(!n)return;const t=n.inputes.findIndex(a=>a.index===this.index);switch(e.key){case"Backspace":{e.preventDefault();const a=r.value==="",s=n.inputes.find(w=>w.value===""),m=s!==void 0?n.inputes.indexOf(s):n.inputes.length;if(a&&t>=m){t>0&&n.raiseEvent(t-1,"focus");return}n.inputes[t].value="",r.value="";for(let w=t;w<n.inputes.length-1;w++){n.inputes[w].value=n.inputes[w+1].value;const x=n.querySelector(`input[name="input-${n.inputes[w].index}"]`);x&&(x.value=n.inputes[w].value)}const C=n.inputes[n.inputes.length-1];C.value="";const b=n.querySelector(`input[name="input-${C.index}"]`);b&&(b.value=""),n.raiseEvent(t,"focus");break}case"ArrowLeft":e.preventDefault(),t>0&&n.raiseEvent(t-1,"focus");break;case"ArrowRight":e.preventDefault(),t<n.maxLength-1&&n.raiseEvent(t+1,"focus");break}}handlePaste(e){var C;e.preventDefault();const r=this._inputOtp;if(!r)return;const t=(((C=e.clipboardData)==null?void 0:C.getData("text"))??"").replace(/\D/g,"").split("").slice(0);if(t.length===0)return;const a=r.inputes.findIndex(b=>b.index===this.index),s=r.maxLength-a;t.splice(s);for(let b=0;b<t.length;b++){const w=a+b;if(w>=r.maxLength)break;r.inputes[w].value=t[b];const x=r.querySelector(`input[name="input-${w}"]`);x&&(x.value=t[b])}const m=a+t.length;m<r.maxLength&&r.raiseEvent(m,"focus")}createRenderRoot(){return this}render(){const e=this._inputOtp,r=(e==null?void 0:e.variant)==="with-spacing",n=(e==null?void 0:e.variant)==="combined",t={"rtg-bg-transparent":!0,"rtg-h-[36px]":!0,"rtg-w-[36px]":!0,"rtg-text-center rtg-relative rtg-flex rtg-h-10 rtg-w-10 rtg-items-center rtg-justify-center rtg-border-y rtg-border-r rtg-border-input rtg-text-sm rtg-transition-all":!0,"first:rtg-rounded-l-md first:rtg-border-l":this.isFirst,"rtg-overflow-hidden":!0,"focus:rtg-border focus:rtg-border-input focus:rtg-border-[3px]":!0,"rtg-border":r||n,"rtg-border-t":!r||n,"rtg-border-b":!r||n,"rtg-border-r":!r||n,"rtg-border-l":this.isFirst||r||n,"first:rtg-rounded-l-md":!0,"last:rtg-rounded-r-md":!0,"rtg-rounded-none":(e==null?void 0:e.variant)==="with-separator"||(e==null?void 0:e.variant)==="combined","rtg-rounded-l-md":this.isFirst&&((e==null?void 0:e.variant)==="default"||(e==null?void 0:e.variant)==="with-spacing"),"rtg-rounded-r-md":this.isLast&&((e==null?void 0:e.variant)==="default"||(e==null?void 0:e.variant)==="with-spacing")};return d.html`
|
|
4427
4427
|
<input
|
|
4428
4428
|
part="input-otp-slot"
|
|
4429
4429
|
auto-complete="one-time-code"
|
|
@@ -4452,7 +4452,7 @@ body {
|
|
|
4452
4452
|
>
|
|
4453
4453
|
${fi()}
|
|
4454
4454
|
</div>
|
|
4455
|
-
`}},sn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=sn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="default",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),this.applyVariantStyles()}updated(e){e.has("variant")&&this.applyVariantStyles()}applyVariantStyles(){const e=this.querySelectorAll("rtg-input-otp-group");switch(e.forEach(r=>{r.className="",r.classList.add("rtg-flex","rtg-items-center")}),this.variant){case"with-spacing":e.forEach(r=>r.classList.add("rtg-gap-2"));break
|
|
4455
|
+
`}},sn([l.property({type:Number})],o.InputOtpSeparator.prototype,"index",2),o.InputOtpSeparator=sn([l.customElement("rtg-input-otp-separator")],o.InputOtpSeparator);var wd=Object.defineProperty,Cd=Object.getOwnPropertyDescriptor,rt=(i,e,r,n)=>{for(var t=n>1?void 0:n?Cd(e,r):e,a=i.length-1,s;a>=0;a--)(s=i[a])&&(t=(n?s(e,r,t):s(t))||t);return n&&t&&wd(e,r,t),t};o.InputOtp=class extends h{constructor(){super(),this.maxLength=6,this.onChange=()=>{},this.pin=new Array(this.maxLength),this.variant="default",this.inputes=[]}connectedCallback(){super.connectedCallback()}getAttributesToExclude(){return[]}get _containerElement(){return this.querySelector("div[part=input-otp]")}raiseEvent(e,r="changes",n=1/0){const t=new CustomEvent("selected-input",{bubbles:!0,composed:!0,detail:{selectedItems:e,eventType:r,customIndex:n}});this.dispatchEvent(t)}createRenderRoot(){return this}firstUpdated(e){this.moveLightDomChildrenInto(this._containerElement),this.applyVariantStyles()}updated(e){e.has("variant")&&this.applyVariantStyles()}checkIfCompleteAndSubmit(){if(this.inputes.every(r=>r.value!=="")){const r=this.inputes.map(t=>t.value).join(""),n=new CustomEvent("otp-complete",{detail:{value:r},bubbles:!0,composed:!0});this.dispatchEvent(n)}}applyVariantStyles(){const e=this.querySelectorAll("rtg-input-otp-group");switch(e.forEach(r=>{r.className="",r.classList.add("rtg-flex","rtg-items-center")}),this.variant){case"with-spacing":e.forEach(r=>r.classList.add("rtg-gap-2"));break}}render(){return d.html`
|
|
4456
4456
|
<div
|
|
4457
4457
|
part="input-otp"
|
|
4458
4458
|
class="${p("rtg-flex rtg-items-center",this.className)}"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const checkboxStyles = "rtg-peer rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-
|
|
1
|
+
export declare const checkboxStyles = "rtg-peer rtg-shadow-sm rtg-h-4 rtg-w-4 rtg-align-middle rtg-shrink-0 rtg-rounded-sm rtg-border rtg-border-input focus:rtg-border-ring rtg-ring-offset-background focus-visible:rtg-outline-none focus:rtg-ring-[3px] focus:rtg-ring-custom-outline disabled:rtg-opacity-50 data-[state=checked]:rtg-bg-primary data-[state=checked]:rtg-text-primary-foreground";
|
|
2
2
|
export declare const iconStyles = "rtg-flex rtg-items-center rtg-justify-center rtg-text-current rtg-pointer-events-none";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const inputStyles = "rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[
|
|
1
|
+
export declare const inputStyles = "rtg-flex rtg-h-9 rtg-w-full rtg-no-autofill-bg rtg-rounded-md rtg-border rtg-border-input autofill:rtg-bg-transparent rtg-bg-transparent rtg-px-3 rtg-py-1 rtg-text-sm rtg-shadow-sm rtg-transition-colors file:rtg-border-0 file:rtg-bg-transparent file:rtg-text-sm file:rtg-font-medium placeholder:rtg-text-muted-foreground focus-visible:rtg-outline-none focus-visible:rtg-ring-[3px] focus-visible:rtg-ring-custom-outline focus-visible:rtg-border-ring disabled:rtg-opacity-50 input-base";
|
|
@@ -23,6 +23,7 @@ declare class InputOtp extends BaseElement {
|
|
|
23
23
|
protected createRenderRoot(): HTMLElement | DocumentFragment;
|
|
24
24
|
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
25
25
|
protected updated(changedProperties: PropertyValues): void;
|
|
26
|
+
checkIfCompleteAndSubmit(): void;
|
|
26
27
|
private applyVariantStyles;
|
|
27
28
|
protected render(): import('lit').TemplateResult<1>;
|
|
28
29
|
}
|
package/package.json
CHANGED