revotech-ui-kit 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -201,9 +201,9 @@ const tr = "-", go = (e) => {
201
201
  if (i.includes(A))
202
202
  continue;
203
203
  i.push(A);
204
- const qe = r($, D);
205
- for (let be = 0; be < qe.length; ++be) {
206
- const nt = qe[be];
204
+ const Ve = r($, D);
205
+ for (let be = 0; be < Ve.length; ++be) {
206
+ const nt = Ve[be];
207
207
  i.push(j + nt);
208
208
  }
209
209
  u = b + (u.length > 0 ? " " + u : u);
@@ -244,7 +244,7 @@ function Po(e, ...t) {
244
244
  const y = (e) => {
245
245
  const t = (o) => o[e] || [];
246
246
  return t.isThemeGetter = !0, t;
247
- }, Lr = /^\[(?:([a-z-]+):)?(.+)\]$/i, ko = /^\d+\/\d+$/, So = /* @__PURE__ */ new Set(["px", "full", "screen"]), Eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\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$/, Do = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ao = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Oe(e) || So.has(e) || ko.test(e), Q = (e) => Me(e, "length", Fo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Pt = (e) => Me(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), f = (e) => Lr.test(e), ee = (e) => Eo.test(e), Lo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Mo = (e) => Me(e, Lo, Mr), To = (e) => Me(e, "position", Mr), No = /* @__PURE__ */ new Set(["image", "url"]), Ro = (e) => Me(e, No, Vo), Bo = (e) => Me(e, "", qo), Ge = () => !0, Me = (e, t, o) => {
247
+ }, Lr = /^\[(?:([a-z-]+):)?(.+)\]$/i, ko = /^\d+\/\d+$/, So = /* @__PURE__ */ new Set(["px", "full", "screen"]), Eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\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$/, Do = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ao = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Oe(e) || So.has(e) || ko.test(e), Q = (e) => Me(e, "length", Fo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Pt = (e) => Me(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), f = (e) => Lr.test(e), ee = (e) => Eo.test(e), Lo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Mo = (e) => Me(e, Lo, Mr), To = (e) => Me(e, "position", Mr), No = /* @__PURE__ */ new Set(["image", "url"]), Ro = (e) => Me(e, No, qo), Bo = (e) => Me(e, "", Vo), Ge = () => !0, Me = (e, t, o) => {
248
248
  const s = Lr.exec(e);
249
249
  return s ? s[1] ? typeof t == "string" ? s[1] === t : t.has(s[1]) : o(s[2]) : !1;
250
250
  }, Fo = (e) => (
@@ -252,8 +252,8 @@ const y = (e) => {
252
252
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
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
- ), Mr = () => !1, qo = (e) => Ao.test(e), Vo = (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"), qe = 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"], Ve = () => ["", "0", f], Cr = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [Oe, f];
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];
257
257
  return {
258
258
  cacheSize: 500,
259
259
  separator: ":",
@@ -267,9 +267,9 @@ const y = (e) => {
267
267
  borderSpacing: x(),
268
268
  borderWidth: _r(),
269
269
  contrast: K(),
270
- grayscale: Ve(),
270
+ grayscale: qe(),
271
271
  hueRotate: K(),
272
- invert: Ve(),
272
+ invert: qe(),
273
273
  gap: x(),
274
274
  gradientColorStops: [e],
275
275
  gradientColorStopPositions: [Io, Q],
@@ -279,7 +279,7 @@ const y = (e) => {
279
279
  padding: x(),
280
280
  saturate: K(),
281
281
  scale: K(),
282
- sepia: Ve(),
282
+ sepia: qe(),
283
283
  skew: K(),
284
284
  space: x(),
285
285
  translate: x()
@@ -534,14 +534,14 @@ const y = (e) => {
534
534
  * @see https://tailwindcss.com/docs/flex-grow
535
535
  */
536
536
  grow: [{
537
- grow: Ve()
537
+ grow: qe()
538
538
  }],
539
539
  /**
540
540
  * Flex Shrink
541
541
  * @see https://tailwindcss.com/docs/flex-shrink
542
542
  */
543
543
  shrink: [{
544
- shrink: Ve()
544
+ shrink: qe()
545
545
  }],
546
546
  /**
547
547
  * Order
@@ -1705,7 +1705,7 @@ const y = (e) => {
1705
1705
  * @see https://tailwindcss.com/docs/saturate
1706
1706
  */
1707
1707
  saturate: [{
1708
- saturate: [qe]
1708
+ saturate: [Ve]
1709
1709
  }],
1710
1710
  /**
1711
1711
  * Sepia
@@ -1776,7 +1776,7 @@ const y = (e) => {
1776
1776
  * @see https://tailwindcss.com/docs/backdrop-saturate
1777
1777
  */
1778
1778
  "backdrop-saturate": [{
1779
- "backdrop-saturate": [qe]
1779
+ "backdrop-saturate": [Ve]
1780
1780
  }],
1781
1781
  /**
1782
1782
  * Backdrop Sepia
@@ -5601,7 +5601,7 @@ re = Ne([
5601
5601
  const $s = de(
5602
5602
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
5603
5603
  );
5604
- var Os = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, qr = (e, t, o, s) => {
5604
+ var Os = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, Vr = (e, t, o, s) => {
5605
5605
  for (var r = s > 1 ? void 0 : s ? Cs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5606
5606
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5607
5607
  return s && r && Os(t, o, r), r;
@@ -5657,13 +5657,13 @@ Pe.styles = [
5657
5657
  `,
5658
5658
  c
5659
5659
  ];
5660
- qr([
5660
+ Vr([
5661
5661
  n({ type: String })
5662
5662
  ], Pe.prototype, "for", 2);
5663
- Pe = qr([
5663
+ Pe = Vr([
5664
5664
  d("rtg-label")
5665
5665
  ], Pe);
5666
- var Ps = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, Vr = (e, t, o, s) => {
5666
+ var Ps = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, qr = (e, t, o, s) => {
5667
5667
  for (var r = s > 1 ? void 0 : s ? ks(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5668
5668
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5669
5669
  return s && r && Ps(t, o, r), r;
@@ -5685,10 +5685,10 @@ let ct = class extends h {
5685
5685
  }
5686
5686
  };
5687
5687
  ct.styles = [p``, c];
5688
- Vr([
5688
+ qr([
5689
5689
  no({ selector: "input[rtgcmd-input]" })
5690
5690
  ], ct.prototype, "_input", 2);
5691
- ct = Vr([
5691
+ ct = qr([
5692
5692
  d("rtg-command")
5693
5693
  ], ct);
5694
5694
  var Ss = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, or = (e, t, o, s) => {
@@ -6025,8 +6025,8 @@ ir([
6025
6025
  se = ir([
6026
6026
  d("rtg-command-separator")
6027
6027
  ], se);
6028
- var Fs = Object.defineProperty, qs = Object.getOwnPropertyDescriptor, Vs = (e, t, o, s) => {
6029
- for (var r = s > 1 ? void 0 : s ? qs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6028
+ var Fs = Object.defineProperty, Vs = Object.getOwnPropertyDescriptor, qs = (e, t, o, s) => {
6029
+ for (var r = s > 1 ? void 0 : s ? Vs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6030
6030
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6031
6031
  return s && r && Fs(t, o, r), r;
6032
6032
  };
@@ -6036,7 +6036,7 @@ let At = class extends h {
6036
6036
  }
6037
6037
  };
6038
6038
  At.styles = [p``, c];
6039
- At = Vs([
6039
+ At = qs([
6040
6040
  d("rtg-card-title")
6041
6041
  ], At);
6042
6042
  var Us = Object.defineProperty, Gs = Object.getOwnPropertyDescriptor, Xs = (e, t, o, s) => {
@@ -6727,14 +6727,15 @@ let R = class extends h {
6727
6727
  super(...arguments), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.label = "Select an item", this.items = [];
6728
6728
  }
6729
6729
  firstUpdated(e) {
6730
- console.log("this. items", this.items), this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6730
+ console.log("this. items firstUpdated", this.items), this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6731
6731
  (t) => t.toLowerCase().includes(this.searchTerm)
6732
6732
  ));
6733
6733
  }
6734
6734
  toggleDropdown() {
6735
- this.isOpen = !this.isOpen, this.focusedIndex = -1, this.requestUpdate(), console.log("toggleDropdown", this.isOpen);
6735
+ this.isOpen = !this.isOpen, this.focusedIndex = -1, console.log("toggleDropdown", this.isOpen);
6736
6736
  }
6737
6737
  selectItem(e) {
6738
+ console.log("selectItem");
6738
6739
  const t = e.target;
6739
6740
  if (t instanceof HTMLElement) {
6740
6741
  const o = t.closest(
@@ -6748,10 +6749,12 @@ let R = class extends h {
6748
6749
  console.log("-----handleInputClick------"), this.toggleDropdown();
6749
6750
  }
6750
6751
  handleSearch(e) {
6752
+ console.log("handleSearch");
6751
6753
  const t = e.target;
6752
6754
  this.searchTerm = t.value, this.filteredItems = this.items.filter((o) => o.toLowerCase().includes(this.searchTerm.toLowerCase()));
6753
6755
  }
6754
6756
  handleKeyDown(e) {
6757
+ console.log("handleKeyDown");
6755
6758
  const t = this.filteredItems.length;
6756
6759
  switch (e.key) {
6757
6760
  case "ArrowDown":
@@ -6766,40 +6769,27 @@ let R = class extends h {
6766
6769
  }
6767
6770
  }
6768
6771
  handleMouseOver(e, t) {
6769
- e.preventDefault(), this.focusedIndex = t;
6772
+ console.log("handleMouseOver"), e.preventDefault(), this.focusedIndex = t;
6770
6773
  }
6771
6774
  connectedCallback() {
6772
6775
  var e, t, o, s;
6773
- super.connectedCallback(), document.addEventListener("click", this.handleClickOutside.bind(this)), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.addEventListener("focus", () => {
6774
- this.isOpen = !0;
6776
+ super.connectedCallback(), console.log("connectedCallback"), document.addEventListener("click", this.handleClickOutside.bind(this)), console.log("connectedCallback click"), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.addEventListener("focus", () => {
6777
+ this.isOpen = !0, console.log("connectedCallback focus", this.isOpen);
6775
6778
  }), (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input")) == null || s.addEventListener("blur", () => {
6776
- this.isOpen && (this.isOpen = !1);
6779
+ this.isOpen && (this.isOpen = !1, console.log("connectedCallback blur", this.isOpen));
6777
6780
  });
6778
6781
  }
6779
6782
  disconnectedCallback() {
6780
6783
  var e, t, o, s;
6781
- super.disconnectedCallback(), document.removeEventListener("click", this.handleClickOutside), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.removeEventListener("focus", () => {
6784
+ console.log("disconnectedCallback"), super.disconnectedCallback(), document.removeEventListener("click", this.handleClickOutside), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.removeEventListener("focus", () => {
6782
6785
  }), (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input")) == null || s.removeEventListener("blur", () => {
6783
6786
  });
6784
6787
  }
6785
6788
  handleClickOutside(e) {
6786
- var r, i;
6787
- const t = e.target, o = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
6788
- "[data-hs-combo-box]"
6789
- );
6790
- if (!this.shadowRoot || !(t instanceof HTMLElement)) {
6791
- console.log("Invalid target or shadow root");
6792
- return;
6793
- }
6794
- const s = (i = t.shadowRoot) == null ? void 0 : i.firstElementChild;
6795
- if (!s) {
6796
- this.isOpen = !1;
6797
- return;
6798
- }
6799
- (!o || !o.contains(s)) && (this.isOpen = !1);
6789
+ console.log("handleClickOutside");
6800
6790
  }
6801
6791
  updateFocus() {
6802
- if (!this.shadowRoot)
6792
+ if (console.log("updateFocus"), !this.shadowRoot)
6803
6793
  return;
6804
6794
  this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((t, o) => {
6805
6795
  o === this.focusedIndex ? t.classList.add("bg-gray-100") : t.classList.remove("bg-gray-100");
@@ -6810,23 +6800,14 @@ let R = class extends h {
6810
6800
  <div class="relative" data-hs-combo-box="">
6811
6801
  isopen:${this.isOpen}
6812
6802
  <div>
6813
- <input
6814
- part="combobox"
6815
- class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
6816
- text-sm font-medium border border-input cursor-pointer
6817
- ring-offset-background
6818
- transition-colors disabled:pointer-events-none
6819
- disabled:opacity-50
6820
- bg-background hover:bg-accent
6821
- hover:text-accent-foreground
6822
- outline-none"
6823
- role="combobox"
6824
- aria-expanded=${this.isOpen}
6825
- readonly
6826
- .value=${this.selectedValue || this.label}
6827
- @click="${this.handleInputClick}"
6828
- @keydown="${this.handleKeyDown}"
6829
- />
6803
+ <input part="combobox" class="inline-flex justify-between items-center
6804
+ w-full h-10 px-4 py-2 whitespace-nowrap rounded-md text-sm font-medium
6805
+ border border-input cursor-pointer ring-offset-background
6806
+ transition-colors disabled:pointer-events-none disabled:opacity-50
6807
+ bg-background hover:bg-accent hover:text-accent-foreground
6808
+ outline-none" role="combobox" aria-expanded=${this.isOpen} readonly
6809
+ .value=${this.selectedValue || this.label} //
6810
+ @click="${this.handleInputClick}" @keydown="${this.handleKeyDown}" />
6830
6811
  <div
6831
6812
  class="absolute top-1/2 end-3 -translate-y-1/2 cursor-pointer"
6832
6813
  aria-expanded=${this.isOpen}
@@ -6967,7 +6948,7 @@ var Ri = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, it = (e, t
6967
6948
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6968
6949
  return s && r && Ri(t, o, r), r;
6969
6950
  };
6970
- let q = class extends h {
6951
+ let V = class extends h {
6971
6952
  constructor() {
6972
6953
  super(...arguments), this._id = "", this._hidden = "", this.selected = !1;
6973
6954
  }
@@ -6976,7 +6957,7 @@ let q = class extends h {
6976
6957
  if (this._id !== "")
6977
6958
  return this._id;
6978
6959
  const e = (o = (t = this.parentElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : o.querySelector("div[rtgcmd-group]");
6979
- return e ? this._id = `${e.getAttribute("id")}li${q._counter++}` : this._id = `rtgcmdrxgxli${q._counter++}`, this._id;
6960
+ return e ? this._id = `${e.getAttribute("id")}li${V._counter++}` : this._id = `rtgcmdrxgxli${V._counter++}`, this._id;
6980
6961
  }
6981
6962
  get value() {
6982
6963
  var e;
@@ -7008,25 +6989,25 @@ let q = class extends h {
7008
6989
  `}`;
7009
6990
  }
7010
6991
  };
7011
- q._counter = 0;
7012
- q.styles = [p``, c];
6992
+ V._counter = 0;
6993
+ V.styles = [p``, c];
7013
6994
  it([
7014
6995
  n({ type: String })
7015
- ], q.prototype, "_id", 2);
6996
+ ], V.prototype, "_id", 2);
7016
6997
  it([
7017
6998
  n({ attribute: "aria-hidden", type: String })
7018
- ], q.prototype, "_hidden", 2);
6999
+ ], V.prototype, "_hidden", 2);
7019
7000
  it([
7020
7001
  n({ attribute: "data-value", type: String })
7021
- ], q.prototype, "value", 1);
7002
+ ], V.prototype, "value", 1);
7022
7003
  it([
7023
7004
  n({ type: Boolean })
7024
- ], q.prototype, "selected", 2);
7025
- q = it([
7005
+ ], V.prototype, "selected", 2);
7006
+ V = it([
7026
7007
  d("rtg-dropdown-menu-item")
7027
- ], q);
7028
- var Fi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, me = (e, t, o, s) => {
7029
- for (var r = s > 1 ? void 0 : s ? qi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7008
+ ], V);
7009
+ var Fi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, me = (e, t, o, s) => {
7010
+ for (var r = s > 1 ? void 0 : s ? Vi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7030
7011
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7031
7012
  return s && r && Fi(t, o, r), r;
7032
7013
  };
@@ -7117,10 +7098,10 @@ me([
7117
7098
  I = me([
7118
7099
  d("rtg-dropdown-menu-radio-item")
7119
7100
  ], I);
7120
- var Vi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, cr = (e, t, o, s) => {
7101
+ var qi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, cr = (e, t, o, s) => {
7121
7102
  for (var r = s > 1 ? void 0 : s ? Ui(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7122
7103
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7123
- return s && r && Vi(t, o, r), r;
7104
+ return s && r && qi(t, o, r), r;
7124
7105
  };
7125
7106
  let ie = class extends h {
7126
7107
  constructor() {
@@ -7403,7 +7384,7 @@ var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Re = (e, t
7403
7384
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7404
7385
  return s && r && Ji(t, o, r), r;
7405
7386
  };
7406
- let V = class extends _ {
7387
+ let q = class extends _ {
7407
7388
  constructor() {
7408
7389
  super(...arguments), this.disabled = !1, this.checked = !1, this.required = !1, this.variant = Qr.DEFAULT, this.size = Jr.SMALL;
7409
7390
  }
@@ -7419,7 +7400,7 @@ let V = class extends _ {
7419
7400
  <button
7420
7401
  type="button"
7421
7402
  class="${g(
7422
- V.toggleVariants({
7403
+ q.toggleVariants({
7423
7404
  variant: this.variant,
7424
7405
  size: this.size,
7425
7406
  className: this.className
@@ -7438,26 +7419,26 @@ let V = class extends _ {
7438
7419
  `;
7439
7420
  }
7440
7421
  };
7441
- V.styles = [c];
7442
- V.toggleVariants = Zi;
7422
+ q.styles = [c];
7423
+ q.toggleVariants = Zi;
7443
7424
  Re([
7444
7425
  n({ type: Boolean })
7445
- ], V.prototype, "disabled", 2);
7426
+ ], q.prototype, "disabled", 2);
7446
7427
  Re([
7447
7428
  n({ attribute: !0, type: Boolean, reflect: !0 })
7448
- ], V.prototype, "checked", 2);
7429
+ ], q.prototype, "checked", 2);
7449
7430
  Re([
7450
7431
  n({ attribute: !0, type: Boolean, reflect: !0 })
7451
- ], V.prototype, "required", 2);
7432
+ ], q.prototype, "required", 2);
7452
7433
  Re([
7453
7434
  n({ attribute: !0, type: String })
7454
- ], V.prototype, "variant", 2);
7435
+ ], q.prototype, "variant", 2);
7455
7436
  Re([
7456
7437
  n({ attribute: !0, type: String })
7457
- ], V.prototype, "size", 2);
7458
- V = Re([
7438
+ ], q.prototype, "size", 2);
7439
+ q = Re([
7459
7440
  d("rtg-toggle")
7460
- ], V);
7441
+ ], q);
7461
7442
  var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, pr = (e, t, o, s) => {
7462
7443
  for (var r = s > 1 ? void 0 : s ? ta(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7463
7444
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8062,7 +8043,7 @@ var xa = Object.defineProperty, _a = Object.getOwnPropertyDescriptor, $a = (e, t
8062
8043
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8063
8044
  return s && r && xa(t, o, r), r;
8064
8045
  };
8065
- let qt = class extends h {
8046
+ let Vt = class extends h {
8066
8047
  render() {
8067
8048
  return l`
8068
8049
  <span class="${g("px-2 py-1.5 text-sm font-semibold", this.className)}">
@@ -8071,10 +8052,10 @@ let qt = class extends h {
8071
8052
  `;
8072
8053
  }
8073
8054
  };
8074
- qt.styles = [p``, c];
8075
- qt = $a([
8055
+ Vt.styles = [p``, c];
8056
+ Vt = $a([
8076
8057
  d("rtg-select-label")
8077
- ], qt);
8058
+ ], Vt);
8078
8059
  var Oa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, gr = (e, t, o, s) => {
8079
8060
  for (var r = s > 1 ? void 0 : s ? Ca(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8080
8061
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8367,7 +8348,7 @@ var za = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, La = (e, t
8367
8348
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8368
8349
  return s && r && za(t, o, r), r;
8369
8350
  };
8370
- let Vt = class extends h {
8351
+ let qt = class extends h {
8371
8352
  connectedCallback() {
8372
8353
  super.connectedCallback(), this.addEventListener("radio-selected", this._handleRadioSelected);
8373
8354
  }
@@ -8384,10 +8365,10 @@ let Vt = class extends h {
8384
8365
  `;
8385
8366
  }
8386
8367
  };
8387
- Vt.styles = [p``, c];
8388
- Vt = La([
8368
+ qt.styles = [p``, c];
8369
+ qt = La([
8389
8370
  d("rtg-radio-group")
8390
- ], Vt);
8371
+ ], qt);
8391
8372
  var Ma = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, br = (e, t, o, s) => {
8392
8373
  for (var r = s > 1 ? void 0 : s ? Ta(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8393
8374
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8558,10 +8539,10 @@ vr([
8558
8539
  ot = vr([
8559
8540
  d("rtg-accordion-content")
8560
8541
  ], ot);
8561
- var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}), qa = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
8562
- for (var r = s > 1 ? void 0 : s ? Va(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8542
+ var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}), Va = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
8543
+ for (var r = s > 1 ? void 0 : s ? qa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8563
8544
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8564
- return s && r && qa(t, o, r), r;
8545
+ return s && r && Va(t, o, r), r;
8565
8546
  };
8566
8547
  let Ie = class extends _ {
8567
8548
  constructor() {
@@ -9308,21 +9289,21 @@ export {
9308
9289
  L as DropdownMenuCheckboxItem,
9309
9290
  De as DropdownMenuContent,
9310
9291
  Z as DropdownMenuGroup,
9311
- q as DropdownMenuItem,
9292
+ V as DropdownMenuItem,
9312
9293
  I as DropdownMenuRadioItem,
9313
9294
  ie as DropdownMenuSeparator,
9314
9295
  re as Input,
9315
9296
  ke as Popover,
9316
9297
  We as PopoverContent,
9317
9298
  Nt as PopoverTrigger,
9318
- Vt as RadioGroup,
9299
+ qt as RadioGroup,
9319
9300
  le as RadioGroupItem,
9320
9301
  X as Select,
9321
9302
  G as SelectItem,
9322
- qt as SelectLabel,
9303
+ Vt as SelectLabel,
9323
9304
  et as SelectList,
9324
9305
  ne as SelectSeperator,
9325
9306
  pt as Separator,
9326
9307
  tt as Switch,
9327
- V as Toggle
9308
+ q as Toggle
9328
9309
  };
@@ -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)),qe=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",qe]}],"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,qe]}],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,qe]}],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 qr(){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=qr,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)},Gr=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 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 {
2
2
  font-family: 'GeistSans';
3
3
 
4
4
  src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
@@ -2682,7 +2682,7 @@ body {
2682
2682
  >
2683
2683
  <slot></slot>
2684
2684
  </button>
2685
- `}},a.Button.buttonVariants=Gr,a.Button.styles=[l.css`
2685
+ `}},a.Button.buttonVariants=qr,a.Button.styles=[l.css`
2686
2686
  :host {
2687
2687
  --rtg-button-bg: unset;
2688
2688
  --rtg-button-color: unset;
@@ -2763,7 +2763,7 @@ body {
2763
2763
  >
2764
2764
  <slot></slot>
2765
2765
  </div>
2766
- `}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=so([d.customElement("rtg-dialog-footer")],a.DialogFooter);var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(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&&io(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
2766
+ `}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=so([d.customElement("rtg-dialog-footer")],a.DialogFooter);var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,qe=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(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&&io(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
2767
2767
  <div
2768
2768
  class="${p("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
2769
2769
  >
@@ -2776,7 +2776,7 @@ body {
2776
2776
  ${this.description}
2777
2777
  </p>
2778
2778
  </div>
2779
- `}},a.DialogHeader.styles=[l.css``,c],Ge([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),Ge([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=Ge([d.customElement("rtg-dialog-header")],a.DialogHeader);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,uo=(n,e,r,o)=>{for(var t=o>1?void 0:o?co(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&&lo(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
2779
+ `}},a.DialogHeader.styles=[l.css``,c],qe([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),qe([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=qe([d.customElement("rtg-dialog-header")],a.DialogHeader);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,uo=(n,e,r,o)=>{for(var t=o>1?void 0:o?co(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&&lo(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
2780
2780
  <div
2781
2781
  class="${p("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",this.className)}"
2782
2782
  ></div>
@@ -2823,7 +2823,7 @@ body {
2823
2823
  >
2824
2824
  <slot></slot>
2825
2825
  </div>
2826
- `}};_e.styles=[l.css``,c],Rt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],_e.prototype,"_input",2),_e=Rt([d.customElement("rtg-command")],_e);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(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&&_o(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${q._counter++}`:this._id=`rtgcmdrxlxe${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2826
+ `}};_e.styles=[l.css``,c],Rt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],_e.prototype,"_input",2),_e=Rt([d.customElement("rtg-command")],_e);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(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&&_o(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${G._counter++}`:this._id=`rtgcmdrxlxe${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2827
2827
  <div
2828
2828
  class="${p("py-6 text-center text-sm",this.className)}"
2829
2829
  rtgcmd-empty
@@ -2832,7 +2832,7 @@ body {
2832
2832
  >
2833
2833
  <slot></slot>
2834
2834
  </div>
2835
- `}`}};q._counter=0,q.styles=[l.css``,c],Ve([d.property({type:String})],q.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=Ve([d.customElement("rtg-command-empty")],q);var Po=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?So(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&&Po(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${z._counter++}`:this._id=`rtgcmdrxlxg${z._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
2835
+ `}`}};G._counter=0,G.styles=[l.css``,c],Ve([d.property({type:String})],G.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=Ve([d.customElement("rtg-command-empty")],G);var Po=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?So(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&&Po(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${z._counter++}`:this._id=`rtgcmdrxlxg${z._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
2836
2836
  <div
2837
2837
  class="${n}"
2838
2838
  rtgcmd-group
@@ -2921,14 +2921,14 @@ body {
2921
2921
  <slot></slot>
2922
2922
  </div>
2923
2923
  </div>
2924
- `}};Xe.styles=[l.css``,c],Xe=Lo([d.customElement("rtg-command-list")],Xe);var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(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&&zo(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${G._counter++}`:this._id=`rtgcmdrxlxs${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2924
+ `}};Xe.styles=[l.css``,c],Xe=Lo([d.customElement("rtg-command-list")],Xe);var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(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&&zo(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${q._counter++}`:this._id=`rtgcmdrxlxs${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
2925
2925
  <div
2926
2926
  class="${p("-mx-1 h-px bg-border",this.className)}"
2927
2927
  rtgcmd-separator
2928
2928
  role="separator"
2929
2929
  id="${this.identifier}"
2930
2930
  ></div>
2931
- `}`}};G._counter=0,G.styles=[l.css``,c],Ye([d.property({type:String})],G.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=Ye([d.customElement("rtg-command-separator")],G);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,No=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(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&&To(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=No([d.customElement("rtg-card-title")],a.CardTitle);var Fo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Go=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(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&&Fo(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=Go([d.customElement("rtg-card-header")],a.CardHeader);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(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&&Vo(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=Xo([d.customElement("rtg-card-footer")],a.CardFooter);var Yo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ho(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&&Yo(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=Ko([d.customElement("rtg-card-description")],a.CardDescription);var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,jo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zo(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&&Wo(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=jo([d.customElement("rtg-card-content")],a.CardContent);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,en=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(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&&Jo(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<div
2931
+ `}`}};q._counter=0,q.styles=[l.css``,c],Ye([d.property({type:String})],q.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=Ye([d.customElement("rtg-command-separator")],q);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,No=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(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&&To(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=No([d.customElement("rtg-card-title")],a.CardTitle);var Fo=Object.defineProperty,Go=Object.getOwnPropertyDescriptor,qo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Go(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&&Fo(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=qo([d.customElement("rtg-card-header")],a.CardHeader);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(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&&Vo(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=Xo([d.customElement("rtg-card-footer")],a.CardFooter);var Yo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ho(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&&Yo(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=Ko([d.customElement("rtg-card-description")],a.CardDescription);var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,jo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zo(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&&Wo(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=jo([d.customElement("rtg-card-content")],a.CardContent);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,en=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(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&&Jo(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<div
2932
2932
  part="card"
2933
2933
  class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
2934
2934
  id="rtg-card-id"
@@ -3004,7 +3004,7 @@ body {
3004
3004
  <path d="m7 15 5 5 5-5"></path>
3005
3005
  <path d="m7 9 5-5 5 5"></path>
3006
3006
  </svg>
3007
- `}function qt(){return l.svg`
3007
+ `}function Gt(){return l.svg`
3008
3008
  <svg
3009
3009
  class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
3010
3010
  xmlns="http://www.w3.org/2000/svg"
@@ -3019,7 +3019,7 @@ body {
3019
3019
  >
3020
3020
  <path d="M20 6 9 17l-5-5"></path>
3021
3021
  </svg>
3022
- `}function Gt(){return l.svg` <svg
3022
+ `}function qt(){return l.svg` <svg
3023
3023
  xmlns="http://www.w3.org/2000/svg"
3024
3024
  width = "24"
3025
3025
  height = "24"
@@ -3103,7 +3103,7 @@ body {
3103
3103
  <span
3104
3104
  class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
3105
3105
  >
3106
- ${qt()}
3106
+ ${Gt()}
3107
3107
  </span>
3108
3108
  <div class="flex justify-between items-center w-full">
3109
3109
  <span
@@ -3123,7 +3123,7 @@ body {
3123
3123
  <div
3124
3124
  class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
3125
3125
  >
3126
- ${Gt()}
3126
+ ${qt()}
3127
3127
  <input
3128
3128
  type="text"
3129
3129
  class="w-full px-2 py-2 rounded focus:outline-none"
@@ -3138,27 +3138,18 @@ 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",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,this.requestUpdate(),console.log("toggleDropdown",this.isOpen)}selectItem(e){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){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){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){e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),document.addEventListener("click",this.handleClickOutside.bind(this)),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1)})}disconnectedCallback(){var e,r,o,t;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;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(!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){console.log("handleClickOutside")}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>
3145
- <input
3146
- part="combobox"
3147
- class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
3148
- text-sm font-medium border border-input cursor-pointer
3149
- ring-offset-background
3150
- transition-colors disabled:pointer-events-none
3151
- disabled:opacity-50
3152
- bg-background hover:bg-accent
3153
- hover:text-accent-foreground
3154
- outline-none"
3155
- role="combobox"
3156
- aria-expanded=${this.isOpen}
3157
- readonly
3158
- .value=${this.selectedValue||this.label}
3159
- @click="${this.handleInputClick}"
3160
- @keydown="${this.handleKeyDown}"
3161
- />
3145
+ <input part="combobox" class="inline-flex justify-between items-center
3146
+ w-full h-10 px-4 py-2 whitespace-nowrap rounded-md text-sm font-medium
3147
+ border border-input cursor-pointer ring-offset-background
3148
+ transition-colors disabled:pointer-events-none disabled:opacity-50
3149
+ bg-background hover:bg-accent hover:text-accent-foreground
3150
+ outline-none" role="combobox" aria-expanded=${this.isOpen} readonly
3151
+ .value=${this.selectedValue||this.label} //
3152
+ @click="${this.handleInputClick}" @keydown="${this.handleKeyDown}" />
3162
3153
  <div
3163
3154
  class="absolute top-1/2 end-3 -translate-y-1/2 cursor-pointer"
3164
3155
  aria-expanded=${this.isOpen}
@@ -3177,7 +3168,7 @@ body {
3177
3168
  <div
3178
3169
  class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
3179
3170
  >
3180
- ${Gt()}
3171
+ ${qt()}
3181
3172
  <input
3182
3173
  type="text"
3183
3174
  class="w-full px-2 py-2 rounded focus:outline-none"
@@ -3265,14 +3256,14 @@ body {
3265
3256
  height: 16px;
3266
3257
  display: inline-block;
3267
3258
  }
3268
- `,c],K([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=K([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Fn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?qn(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&&Fn(e,r,t),t};a.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3259
+ `,c],K([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=K([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Fn=Object.defineProperty,Gn=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gn(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&&Fn(e,r,t),t};a.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
3269
3260
  <div
3270
3261
  class="${p("-mx-1 h-px bg-border",this.className)}"
3271
3262
  rtgcmd-separator
3272
3263
  role="separator"
3273
3264
  id="${this.identifier}"
3274
3265
  ></div>
3275
- `}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],je([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=je([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var Gn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(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&&Gn(e,r,t),t};a.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3266
+ `}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],je([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=je([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var qn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(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&&qn(e,r,t),t};a.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
3276
3267
  <div
3277
3268
  class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
3278
3269
  @click=${this.toggleChecked}
@@ -3513,7 +3504,7 @@ body {
3513
3504
  <span
3514
3505
  class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
3515
3506
  >
3516
- ${qt()}
3507
+ ${Gt()}
3517
3508
  </span>
3518
3509
  <div
3519
3510
  class="flex justify-between items-center w-full text-sm text-gray-500"
@@ -3713,7 +3704,7 @@ body {
3713
3704
  <div data-orientation="vertical" ${x(n)}>
3714
3705
  <slot name="accordion-item"></slot>
3715
3706
  </div>
3716
- `}};ce.styles=[l.css``,c],Kt([d.property({type:String})],ce.prototype,"type",2),ce=Kt([d.customElement("rtg-accordion")],ce);var st=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(st||{}),qs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Wt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gs(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&&qs(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=st.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===st.HORIZONTAL?l.html` <div
3707
+ `}};ce.styles=[l.css``,c],Kt([d.property({type:String})],ce.prototype,"type",2),ce=Kt([d.customElement("rtg-accordion")],ce);var st=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(st||{}),Gs=Object.defineProperty,qs=Object.getOwnPropertyDescriptor,Wt=(n,e,r,o)=>{for(var t=o>1?void 0:o?qs(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&&Gs(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=st.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===st.HORIZONTAL?l.html` <div
3717
3708
  class="${p("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
3718
3709
  ${x(e)}
3719
3710
  role="none"
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.20",
6
+ "version": "0.0.22",
7
7
  "type": "module",
8
8
  "main": "dist/revotech-ui-kit.umd.cjs",
9
9
  "module": "./dist/revotech-ui-kit.js",