revotech-ui-kit 0.0.21 → 0.0.22-beta-01

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,8 +35,8 @@ const tr = "-", go = (e) => {
35
35
  return u[0] === "" && u.length !== 1 && u.shift(), Ar(u, t) || fo(a);
36
36
  },
37
37
  getConflictingClassGroupIds: (a, u) => {
38
- const m = o[a] || [];
39
- return u && s[a] ? [...m, ...s[a]] : m;
38
+ const v = o[a] || [];
39
+ return u && s[a] ? [...v, ...s[a]] : v;
40
40
  }
41
41
  };
42
42
  }, Ar = (e, t) => {
@@ -131,13 +131,13 @@ const tr = "-", go = (e) => {
131
131
  separator: t,
132
132
  experimentalParseClassName: o
133
133
  } = e, s = t.length === 1, r = t[0], i = t.length, a = (u) => {
134
- const m = [];
135
- let b = 0, v = 0, P;
134
+ const v = [];
135
+ let b = 0, m = 0, P;
136
136
  for (let w = 0; w < u.length; w++) {
137
137
  let j = u[w];
138
138
  if (b === 0) {
139
139
  if (j === r && (s || u.slice(w, w + i) === t)) {
140
- m.push(u.slice(v, w)), v = w + i;
140
+ v.push(u.slice(m, w)), m = w + i;
141
141
  continue;
142
142
  }
143
143
  if (j === "/") {
@@ -147,9 +147,9 @@ const tr = "-", go = (e) => {
147
147
  }
148
148
  j === "[" ? b++ : j === "]" && b--;
149
149
  }
150
- const k = m.length === 0 ? u : u.substring(v), N = k.startsWith(zr), D = N ? k.substring(1) : k, $ = P && P > v ? P - v : void 0;
150
+ const k = v.length === 0 ? u : u.substring(m), N = k.startsWith(zr), D = N ? k.substring(1) : k, $ = P && P > m ? P - m : void 0;
151
151
  return {
152
- modifiers: m,
152
+ modifiers: v,
153
153
  hasImportantModifier: N,
154
154
  baseClassName: D,
155
155
  maybePostfixModifierPosition: $
@@ -178,9 +178,9 @@ const tr = "-", go = (e) => {
178
178
  getConflictingClassGroupIds: r
179
179
  } = t, i = [], a = e.trim().split($o);
180
180
  let u = "";
181
- for (let m = a.length - 1; m >= 0; m -= 1) {
182
- const b = a[m], {
183
- modifiers: v,
181
+ for (let v = a.length - 1; v >= 0; v -= 1) {
182
+ const b = a[v], {
183
+ modifiers: m,
184
184
  hasImportantModifier: P,
185
185
  baseClassName: k,
186
186
  maybePostfixModifierPosition: N
@@ -197,7 +197,7 @@ const tr = "-", go = (e) => {
197
197
  }
198
198
  D = !1;
199
199
  }
200
- const w = xo(v).join(":"), j = P ? w + zr : w, A = j + $;
200
+ const w = xo(m).join(":"), j = P ? w + zr : w, A = j + $;
201
201
  if (i.includes(A))
202
202
  continue;
203
203
  i.push(A);
@@ -226,16 +226,16 @@ const Ir = (e) => {
226
226
  };
227
227
  function Po(e, ...t) {
228
228
  let o, s, r, i = a;
229
- function a(m) {
230
- const b = t.reduce((v, P) => P(v), e());
231
- return o = _o(b), s = o.cache.get, r = o.cache.set, i = u, u(m);
229
+ function a(v) {
230
+ const b = t.reduce((m, P) => P(m), e());
231
+ return o = _o(b), s = o.cache.get, r = o.cache.set, i = u, u(v);
232
232
  }
233
- function u(m) {
234
- const b = s(m);
233
+ function u(v) {
234
+ const b = s(v);
235
235
  if (b)
236
236
  return b;
237
- const v = Oo(m, o);
238
- return r(m, v), v;
237
+ const m = Oo(v, o);
238
+ return r(v, m), m;
239
239
  }
240
240
  return function() {
241
241
  return i(Co.apply(null, arguments));
@@ -253,7 +253,7 @@ const y = (e) => {
253
253
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
254
254
  jo.test(e) && !Do.test(e)
255
255
  ), Mr = () => !1, Vo = (e) => Ao.test(e), qo = (e) => zo.test(e), Uo = () => {
256
- const e = y("colors"), t = y("spacing"), o = y("blur"), s = y("brightness"), r = y("borderColor"), i = y("borderRadius"), a = y("borderSpacing"), u = y("borderWidth"), m = y("contrast"), b = y("grayscale"), v = y("hueRotate"), P = y("invert"), k = y("gap"), N = y("gradientColorStops"), D = y("gradientColorStopPositions"), $ = y("inset"), w = y("margin"), j = y("opacity"), A = y("padding"), Ve = y("saturate"), be = y("scale"), nt = y("sepia"), wr = y("skew"), yr = y("space"), xr = y("translate"), _t = () => ["auto", "contain", "none"], $t = () => ["auto", "hidden", "clip", "visible", "scroll"], Ot = () => ["auto", f, t], x = () => [f, t], _r = () => ["", H, Q], lt = () => ["auto", Oe, f], $r = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], dt = () => ["solid", "dashed", "dotted", "double", "none"], Or = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ct = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], qe = () => ["", "0", f], Cr = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [Oe, f];
256
+ const e = y("colors"), t = y("spacing"), o = y("blur"), s = y("brightness"), r = y("borderColor"), i = y("borderRadius"), a = y("borderSpacing"), u = y("borderWidth"), v = y("contrast"), b = y("grayscale"), m = y("hueRotate"), P = y("invert"), k = y("gap"), N = y("gradientColorStops"), D = y("gradientColorStopPositions"), $ = y("inset"), w = y("margin"), j = y("opacity"), A = y("padding"), Ve = y("saturate"), be = y("scale"), nt = y("sepia"), wr = y("skew"), yr = y("space"), xr = y("translate"), _t = () => ["auto", "contain", "none"], $t = () => ["auto", "hidden", "clip", "visible", "scroll"], Ot = () => ["auto", f, t], x = () => [f, t], _r = () => ["", H, Q], lt = () => ["auto", Oe, f], $r = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], dt = () => ["solid", "dashed", "dotted", "double", "none"], Or = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ct = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], qe = () => ["", "0", f], Cr = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [Oe, f];
257
257
  return {
258
258
  cacheSize: 500,
259
259
  separator: ":",
@@ -1670,7 +1670,7 @@ const y = (e) => {
1670
1670
  * @see https://tailwindcss.com/docs/contrast
1671
1671
  */
1672
1672
  contrast: [{
1673
- contrast: [m]
1673
+ contrast: [v]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Drop Shadow
@@ -1691,7 +1691,7 @@ const y = (e) => {
1691
1691
  * @see https://tailwindcss.com/docs/hue-rotate
1692
1692
  */
1693
1693
  "hue-rotate": [{
1694
- "hue-rotate": [v]
1694
+ "hue-rotate": [m]
1695
1695
  }],
1696
1696
  /**
1697
1697
  * Invert
@@ -1741,7 +1741,7 @@ const y = (e) => {
1741
1741
  * @see https://tailwindcss.com/docs/backdrop-contrast
1742
1742
  */
1743
1743
  "backdrop-contrast": [{
1744
- "backdrop-contrast": [m]
1744
+ "backdrop-contrast": [v]
1745
1745
  }],
1746
1746
  /**
1747
1747
  * Backdrop Grayscale
@@ -1755,7 +1755,7 @@ const y = (e) => {
1755
1755
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1756
1756
  */
1757
1757
  "backdrop-hue-rotate": [{
1758
- "backdrop-hue-rotate": [v]
1758
+ "backdrop-hue-rotate": [m]
1759
1759
  }],
1760
1760
  /**
1761
1761
  * Backdrop Invert
@@ -2315,16 +2315,16 @@ const Sr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Er =
2315
2315
  if ((t == null ? void 0 : t.variants) == null)
2316
2316
  return Er(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2317
2317
  const { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((b) => {
2318
- const v = o == null ? void 0 : o[b], P = i == null ? void 0 : i[b];
2319
- if (v === null)
2318
+ const m = o == null ? void 0 : o[b], P = i == null ? void 0 : i[b];
2319
+ if (m === null)
2320
2320
  return null;
2321
- const k = Sr(v) || Sr(P);
2321
+ const k = Sr(m) || Sr(P);
2322
2322
  return r[b][k];
2323
- }), u = o && Object.entries(o).reduce((b, v) => {
2324
- let [P, k] = v;
2323
+ }), u = o && Object.entries(o).reduce((b, m) => {
2324
+ let [P, k] = m;
2325
2325
  return k === void 0 || (b[P] = k), b;
2326
- }, {}), m = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((b, v) => {
2327
- let { class: P, className: k, ...N } = v;
2326
+ }, {}), v = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((b, m) => {
2327
+ let { class: P, className: k, ...N } = m;
2328
2328
  return Object.entries(N).every((D) => {
2329
2329
  let [$, w] = D;
2330
2330
  return Array.isArray(w) ? w.includes({
@@ -2340,7 +2340,7 @@ const Sr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Er =
2340
2340
  k
2341
2341
  ] : b;
2342
2342
  }, []);
2343
- return Er(e, a, m, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2343
+ return Er(e, a, v, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2344
2344
  }, Yo = de(
2345
2345
  "inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
2346
2346
  {
@@ -5810,16 +5810,16 @@ let He = class extends h {
5810
5810
  "rtg-command-list > rtg-command-group"
5811
5811
  );
5812
5812
  o && o.forEach((r) => {
5813
- var m, b;
5813
+ var v, b;
5814
5814
  let i = !0;
5815
5815
  const a = r.querySelectorAll("rtg-command-item");
5816
- a && a.forEach((v) => {
5817
- ((v == null ? void 0 : v.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, v.setAttribute("aria-hidden", "false")) : v.setAttribute("aria-hidden", "true");
5816
+ a && a.forEach((m) => {
5817
+ ((m == null ? void 0 : m.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, m.setAttribute("aria-hidden", "false")) : m.setAttribute("aria-hidden", "true");
5818
5818
  }), r.setAttribute("aria-hidden", i ? "true" : "false");
5819
5819
  let u = r.previousElementSibling;
5820
5820
  u && u.setAttribute(
5821
5821
  "aria-hidden",
5822
- i || ((m = u.previousElementSibling) == null ? void 0 : m.getAttribute(
5822
+ i || ((v = u.previousElementSibling) == null ? void 0 : v.getAttribute(
5823
5823
  "aria-hidden"
5824
5824
  )) === "true" ? "true" : "false"
5825
5825
  ), u = r.nextElementSibling, u && u.setAttribute(
@@ -6786,21 +6786,24 @@ let R = class extends h {
6786
6786
  });
6787
6787
  }
6788
6788
  handleClickOutside(e) {
6789
- var r, i;
6789
+ var i, a, u, v;
6790
6790
  console.log("handleClickOutside");
6791
- const t = e.target, o = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
6791
+ const t = e.target, o = (i = this.shadowRoot) == null ? void 0 : i.querySelector(
6792
6792
  "[data-hs-combo-box]"
6793
6793
  );
6794
- if (!this.shadowRoot || !(t instanceof HTMLElement)) {
6794
+ if (console.log("dropdownContainer", o), !this.shadowRoot || !(t instanceof HTMLElement)) {
6795
6795
  console.log("Invalid target or shadow root");
6796
6796
  return;
6797
6797
  }
6798
- const s = (i = t.shadowRoot) == null ? void 0 : i.firstElementChild;
6799
- if (!s) {
6800
- this.isOpen = !1;
6798
+ const s = (a = t.shadowRoot) == null ? void 0 : a.firstElementChild;
6799
+ if (console.log("firstChild", (u = s == null ? void 0 : s.shadowRoot) == null ? void 0 : u.firstElementChild), !s) {
6800
+ console.log("!firstChild"), this.isOpen = !1;
6801
6801
  return;
6802
6802
  }
6803
- (!o || !o.contains(s)) && (this.isOpen = !1);
6803
+ const r = (v = s.shadowRoot) == null ? void 0 : v.firstElementChild;
6804
+ r && (!o || !o.contains(r)) && (console.log(
6805
+ "!dropdownContainer || !dropdownContainer.contains(firstChild)"
6806
+ ), this.isOpen = !1);
6804
6807
  }
6805
6808
  updateFocus() {
6806
6809
  if (console.log("updateFocus"), !this.shadowRoot)
@@ -1,4 +1,4 @@
1
- (function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element"),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-element","lit/directives/ref.js"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement,a.ref_js))})(this,function(a,l,d,ar,Be,lr,D,Q){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const b=r[i]||[];return u&&o[i]?[...b,...o[i]]:b}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return gr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,gr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,mr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",fr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const b=[];let g=0,m=0,C;for(let v=0;v<u.length;v++){let P=u[v];if(g===0){if(P===t&&(o||u.slice(v,v+s)===e)){b.push(u.slice(m,v)),m=v+s;continue}if(P==="/"){C=v;continue}}P==="["?g++:P==="]"&&g--}const _=b.length===0?u:u.substring(m),k=_.startsWith(Ct),S=k?_.substring(1):_,$=C&&C>m?C-m:void 0;return{modifiers:b,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},br=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:mr(n.cacheSize),parseClassName:fr(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let b=i.length-1;b>=0;b-=1){const g=i[b],{modifiers:m,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=r(g);let S=!!k,$=o(S?_.substring(0,k):_);if(!$){if(!S){u=g+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=br(m).join(":"),P=C?v+Ct:v,E=P+$;if(s.includes(E))continue;s.push(E);const $e=t($,S);for(let J=0;J<$e.length;++J){const ze=$e[J];s.push(P+ze)}u=g+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(b){const g=e.reduce((m,C)=>C(m),n());return r=vr(g),o=r.cache.get,t=r.cache.set,s=u,u(b)}function u(b){const g=o(b);if(g)return g;const m=yr(b,r);return t(b,m),m}return function(){return s(xr.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\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$/,Sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),Ge=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Pt),Ar=n=>te(n,"position",Pt),Lr=new Set(["image","url"]),zr=n=>te(n,Lr,Nr),Rr=n=>te(n,"",Br),ge=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Pr.test(n)&&!Sr.test(n),Pt=()=>!1,Br=n=>Er.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),C=f("invert"),_=f("gap"),k=f("gradientColorStops"),S=f("gradientColorStopPositions"),$=f("inset"),v=f("margin"),P=f("opacity"),E=f("padding"),$e=f("saturate"),J=f("scale"),ze=f("sepia"),er=f("skew"),tr=f("space"),rr=f("translate"),mt=()=>["auto","contain","none"],ft=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",h,e],w=()=>[h,e],or=()=>["",L,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[L,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:bt(),margin:bt(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"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:[...nr(),h]}],overflow:[{overflow:ft()}],"overflow-x":[{"overflow-x":ft()}],"overflow-y":[{"overflow-y":ft()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"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",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ee,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],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",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Te()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[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:["",...Te()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],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",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,T,Ge]}],stroke:[{stroke:[n,"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-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(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}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,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Gr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Et=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=Gr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(g=>{const m=r==null?void 0:r[g],C=s==null?void 0:s[g];if(m===null)return null;const _=Et(m)||Et(C);return t[g][_]}),u=r&&Object.entries(r).reduce((g,m)=>{let[C,_]=m;return _===void 0||(g[C]=_),g},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,m)=>{let{class:C,className:_,...k}=m;return Object.entries(k).every(S=>{let[$,v]=S;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...g,C,_]:g},[]);return kt(n,i,b,r==null?void 0:r.class,r==null?void 0:r.className)},qr=N("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
1
+ (function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element"),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-element","lit/directives/ref.js"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement,a.ref_js))})(this,function(a,l,d,ar,Be,lr,D,Q){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const m=r[i]||[];return u&&o[i]?[...m,...o[i]]:m}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return gr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,gr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,mr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",fr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const m=[];let g=0,f=0,C;for(let v=0;v<u.length;v++){let P=u[v];if(g===0){if(P===t&&(o||u.slice(v,v+s)===e)){m.push(u.slice(f,v)),f=v+s;continue}if(P==="/"){C=v;continue}}P==="["?g++:P==="]"&&g--}const _=m.length===0?u:u.substring(f),k=_.startsWith(Ct),S=k?_.substring(1):_,$=C&&C>f?C-f:void 0;return{modifiers:m,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},br=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:mr(n.cacheSize),parseClassName:fr(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let m=i.length-1;m>=0;m-=1){const g=i[m],{modifiers:f,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=r(g);let S=!!k,$=o(S?_.substring(0,k):_);if(!$){if(!S){u=g+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=br(f).join(":"),P=C?v+Ct:v,E=P+$;if(s.includes(E))continue;s.push(E);const $e=t($,S);for(let J=0;J<$e.length;++J){const ze=$e[J];s.push(P+ze)}u=g+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(m){const g=e.reduce((f,C)=>C(f),n());return r=vr(g),o=r.cache.get,t=r.cache.set,s=u,u(m)}function u(m){const g=o(m);if(g)return g;const f=yr(m,r);return t(m,f),f}return function(){return s(xr.apply(null,arguments))}}const b=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\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$/,Sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),Ge=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Pt),Ar=n=>te(n,"position",Pt),Lr=new Set(["image","url"]),zr=n=>te(n,Lr,Nr),Rr=n=>te(n,"",Br),ge=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Pr.test(n)&&!Sr.test(n),Pt=()=>!1,Br=n=>Er.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=b("colors"),e=b("spacing"),r=b("blur"),o=b("brightness"),t=b("borderColor"),s=b("borderRadius"),i=b("borderSpacing"),u=b("borderWidth"),m=b("contrast"),g=b("grayscale"),f=b("hueRotate"),C=b("invert"),_=b("gap"),k=b("gradientColorStops"),S=b("gradientColorStopPositions"),$=b("inset"),v=b("margin"),P=b("opacity"),E=b("padding"),$e=b("saturate"),J=b("scale"),ze=b("sepia"),er=b("skew"),tr=b("space"),rr=b("translate"),mt=()=>["auto","contain","none"],ft=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",h,e],w=()=>[h,e],or=()=>["",L,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[L,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:bt(),margin:bt(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"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:[...nr(),h]}],overflow:[{overflow:ft()}],"overflow-x":[{"overflow-x":ft()}],"overflow-y":[{"overflow-y":ft()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"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",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ee,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],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",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Te()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[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:["",...Te()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[m]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[m]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],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",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,T,Ge]}],stroke:[{stroke:[n,"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-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(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}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,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Gr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Et=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=Gr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(g=>{const f=r==null?void 0:r[g],C=s==null?void 0:s[g];if(f===null)return null;const _=Et(f)||Et(C);return t[g][_]}),u=r&&Object.entries(r).reduce((g,f)=>{let[C,_]=f;return _===void 0||(g[C]=_),g},{}),m=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,f)=>{let{class:C,className:_,...k}=f;return Object.entries(k).every(S=>{let[$,v]=S;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...g,C,_]:g},[]);return kt(n,i,m,r==null?void 0:r.class,r==null?void 0:r.className)},qr=N("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
2
2
  font-family: 'GeistSans';
3
3
 
4
4
  src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
@@ -2854,7 +2854,7 @@ body {
2854
2854
  <slot></slot>
2855
2855
  </div>
2856
2856
  </div>
2857
- `}`}};z._counter=0,z.styles=[l.css``,c],Oe([d.property({type:String})],z.prototype,"heading",2),Oe([d.property({attribute:"id",type:String})],z.prototype,"_id",2),Oe([d.property({attribute:"aria-hidden",type:String})],z.prototype,"_hidden",2),z=Oe([d.customElement("rtg-command-group")],z);var Eo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?ko(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Eo(e,r,t),t};let me=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var b,g;let s=!0;const i=t.querySelectorAll("rtg-command-item");i&&i.forEach(m=>{((m==null?void 0:m.value)||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,e=!1,m.setAttribute("aria-hidden","false")):m.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",s?"true":"false");let u=t.previousElementSibling;u&&u.setAttribute("aria-hidden",s||((b=u.previousElementSibling)==null?void 0:b.getAttribute("aria-hidden"))==="true"?"true":"false"),u=t.nextElementSibling,u&&u.setAttribute("aria-hidden",s||((g=u.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
2857
+ `}`}};z._counter=0,z.styles=[l.css``,c],Oe([d.property({type:String})],z.prototype,"heading",2),Oe([d.property({attribute:"id",type:String})],z.prototype,"_id",2),Oe([d.property({attribute:"aria-hidden",type:String})],z.prototype,"_hidden",2),z=Oe([d.customElement("rtg-command-group")],z);var Eo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Ue=(n,e,r,o)=>{for(var t=o>1?void 0:o?ko(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Eo(e,r,t),t};let me=class extends l.LitElement{constructor(){super(...arguments),this.placeholder="Type a command or search...",this._value=""}get identifier(){var e,r;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-root]");return n?`${n.getAttribute("id")}i`:"rtgcmdrxi"}filterItems(){const n=this.parentElement;if(n){let e=!0;const r=n.querySelectorAll("rtg-command-list > rtg-command-group");r&&r.forEach(t=>{var m,g;let s=!0;const i=t.querySelectorAll("rtg-command-item");i&&i.forEach(f=>{((f==null?void 0:f.value)||"").toLowerCase().includes(this._value.toLowerCase())?(s=!1,e=!1,f.setAttribute("aria-hidden","false")):f.setAttribute("aria-hidden","true")}),t.setAttribute("aria-hidden",s?"true":"false");let u=t.previousElementSibling;u&&u.setAttribute("aria-hidden",s||((m=u.previousElementSibling)==null?void 0:m.getAttribute("aria-hidden"))==="true"?"true":"false"),u=t.nextElementSibling,u&&u.setAttribute("aria-hidden",s||((g=u.nextElementSibling)==null?void 0:g.getAttribute("aria-hidden"))==="true"?"true":"false")});const o=n.querySelector("rtg-command-empty");o&&o.setAttribute("aria-hidden",e?"false":"true")}}handleChange(n){const e=n.target;e&&(this._value=e.value,this.filterItems())}render(){return l.html`
2858
2858
  <div
2859
2859
  class="${p("flex items-center border-b px-3",this.className)}"
2860
2860
  name="rtgcmd-input-container"
@@ -3138,7 +3138,7 @@ body {
3138
3138
  </div>
3139
3139
  <slot></slot>
3140
3140
  </div>
3141
- `}};be.styles=[l.css``,c],We([d.property({attribute:"data-state",type:String})],be.prototype,"state",2),We([d.state()],be.prototype,"isOpen",2),be=We([d.customElement("rtg-combo-box-list")],be);var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items firstUpdated",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1,console.log("toggleDropdown",this.isOpen)}selectItem(e){console.log("selectItem");const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){console.log("-----handleInputClick------"),this.toggleDropdown()}handleSearch(e){console.log("handleSearch");const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){console.log("handleKeyDown");const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){console.log("handleMouseOver"),e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),console.log("connectedCallback"),document.addEventListener("click",this.handleClickOutside.bind(this)),console.log("connectedCallback click"),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0,console.log("connectedCallback focus",this.isOpen)}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1,console.log("connectedCallback blur",this.isOpen))})}disconnectedCallback(){var e,r,o,t;console.log("disconnectedCallback"),super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var s,i;console.log("handleClickOutside");const r=e.target,o=(s=this.shadowRoot)==null?void 0:s.querySelector("[data-hs-combo-box]");if(!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(i=r.shadowRoot)==null?void 0:i.firstElementChild;if(!t){this.isOpen=!1;return}(!o||!o.contains(t))&&(this.isOpen=!1)}updateFocus(){if(console.log("updateFocus"),!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return console.log("render ",this.isOpen),l.html`
3141
+ `}};be.styles=[l.css``,c],We([d.property({attribute:"data-state",type:String})],be.prototype,"state",2),We([d.state()],be.prototype,"isOpen",2),be=We([d.customElement("rtg-combo-box-list")],be);var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items firstUpdated",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1,console.log("toggleDropdown",this.isOpen)}selectItem(e){console.log("selectItem");const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){console.log("-----handleInputClick------"),this.toggleDropdown()}handleSearch(e){console.log("handleSearch");const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){console.log("handleKeyDown");const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){console.log("handleMouseOver"),e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),console.log("connectedCallback"),document.addEventListener("click",this.handleClickOutside.bind(this)),console.log("connectedCallback click"),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0,console.log("connectedCallback focus",this.isOpen)}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1,console.log("connectedCallback blur",this.isOpen))})}disconnectedCallback(){var e,r,o,t;console.log("disconnectedCallback"),super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var i,u,m,g;console.log("handleClickOutside");const r=e.target,o=(i=this.shadowRoot)==null?void 0:i.querySelector("[data-hs-combo-box]");if(console.log("dropdownContainer",o),!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(u=r.shadowRoot)==null?void 0:u.firstElementChild;if(console.log("firstChild",(m=t==null?void 0:t.shadowRoot)==null?void 0:m.firstElementChild),!t){console.log("!firstChild"),this.isOpen=!1;return}const s=(g=t.shadowRoot)==null?void 0:g.firstElementChild;s&&(!o||!o.contains(s))&&(console.log("!dropdownContainer || !dropdownContainer.contains(firstChild)"),this.isOpen=!1)}updateFocus(){if(console.log("updateFocus"),!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return console.log("render ",this.isOpen),l.html`
3142
3142
  <div class="relative" data-hs-combo-box="">
3143
3143
  isopen:${this.isOpen}
3144
3144
  <div>
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent wc-ui following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "wc-ui",
6
- "version": "0.0.21",
6
+ "version": "0.0.22-beta-01",
7
7
  "type": "module",
8
8
  "main": "dist/revotech-ui-kit.umd.cjs",
9
9
  "module": "./dist/revotech-ui-kit.js",