revotech-ui-kit 0.0.22 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { LitElement as h, css as p, html as l, nothing as C, svg as ve } from "lit";
1
+ import { LitElement as h, css as p, html as l, nothing as C, svg as me } from "lit";
2
2
  import { property as n, customElement as d, queryAssignedElements as no, state as S } from "lit/decorators.js";
3
3
  import { nothing as lo } from "lit/html.js";
4
4
  import { directive as Qt } from "lit/directive.js";
5
5
  import { AsyncDirective as co } from "lit/async-directive.js";
6
6
  import { html as Xe, css as er, nothing as po, LitElement as uo } from "lit-element";
7
- import { createRef as _e } from "lit/directives/ref.js";
7
+ import { createRef as $e } from "lit/directives/ref.js";
8
8
  function Dr(e) {
9
9
  var t, o, s = "";
10
10
  if (typeof e == "string" || typeof e == "number")
@@ -35,8 +35,8 @@ const tr = "-", go = (e) => {
35
35
  return u[0] === "" && u.length !== 1 && u.shift(), Ar(u, t) || fo(a);
36
36
  },
37
37
  getConflictingClassGroupIds: (a, u) => {
38
- const m = o[a] || [];
39
- return u && s[a] ? [...m, ...s[a]] : m;
38
+ const v = o[a] || [];
39
+ return u && s[a] ? [...v, ...s[a]] : v;
40
40
  }
41
41
  };
42
42
  }, Ar = (e, t) => {
@@ -66,7 +66,7 @@ const tr = "-", go = (e) => {
66
66
  nextPart: /* @__PURE__ */ new Map(),
67
67
  validators: []
68
68
  };
69
- return mo(Object.entries(e.classGroups), o).forEach(([i, a]) => {
69
+ return vo(Object.entries(e.classGroups), o).forEach(([i, a]) => {
70
70
  kt(a, s, i, t);
71
71
  }), s;
72
72
  }, kt = (e, t, o, s) => {
@@ -77,7 +77,7 @@ const tr = "-", go = (e) => {
77
77
  return;
78
78
  }
79
79
  if (typeof r == "function") {
80
- if (vo(r)) {
80
+ if (mo(r)) {
81
81
  kt(r(s), t, o, s);
82
82
  return;
83
83
  }
@@ -99,7 +99,7 @@ const tr = "-", go = (e) => {
99
99
  validators: []
100
100
  }), o = o.nextPart.get(s);
101
101
  }), o;
102
- }, vo = (e) => e.isThemeGetter, mo = (e, t) => t ? e.map(([o, s]) => {
102
+ }, mo = (e) => e.isThemeGetter, vo = (e, t) => t ? e.map(([o, s]) => {
103
103
  const r = s.map((i) => typeof i == "string" ? t + i : typeof i == "object" ? Object.fromEntries(Object.entries(i).map(([a, u]) => [t + a, u])) : i);
104
104
  return [o, r];
105
105
  }) : e, wo = (e) => {
@@ -131,13 +131,13 @@ const tr = "-", go = (e) => {
131
131
  separator: t,
132
132
  experimentalParseClassName: o
133
133
  } = e, s = t.length === 1, r = t[0], i = t.length, a = (u) => {
134
- const m = [];
135
- let b = 0, v = 0, P;
134
+ const v = [];
135
+ let b = 0, m = 0, P;
136
136
  for (let w = 0; w < u.length; w++) {
137
137
  let j = u[w];
138
138
  if (b === 0) {
139
139
  if (j === r && (s || u.slice(w, w + i) === t)) {
140
- m.push(u.slice(v, w)), v = w + i;
140
+ v.push(u.slice(m, w)), m = w + i;
141
141
  continue;
142
142
  }
143
143
  if (j === "/") {
@@ -147,9 +147,9 @@ const tr = "-", go = (e) => {
147
147
  }
148
148
  j === "[" ? b++ : j === "]" && b--;
149
149
  }
150
- const k = m.length === 0 ? u : u.substring(v), N = k.startsWith(zr), D = N ? k.substring(1) : k, $ = P && P > v ? P - v : void 0;
150
+ const k = v.length === 0 ? u : u.substring(m), N = k.startsWith(zr), D = N ? k.substring(1) : k, $ = P && P > m ? P - m : void 0;
151
151
  return {
152
- modifiers: m,
152
+ modifiers: v,
153
153
  hasImportantModifier: N,
154
154
  baseClassName: D,
155
155
  maybePostfixModifierPosition: $
@@ -178,9 +178,9 @@ const tr = "-", go = (e) => {
178
178
  getConflictingClassGroupIds: r
179
179
  } = t, i = [], a = e.trim().split($o);
180
180
  let u = "";
181
- for (let m = a.length - 1; m >= 0; m -= 1) {
182
- const b = a[m], {
183
- modifiers: v,
181
+ for (let v = a.length - 1; v >= 0; v -= 1) {
182
+ const b = a[v], {
183
+ modifiers: m,
184
184
  hasImportantModifier: P,
185
185
  baseClassName: k,
186
186
  maybePostfixModifierPosition: N
@@ -197,7 +197,7 @@ const tr = "-", go = (e) => {
197
197
  }
198
198
  D = !1;
199
199
  }
200
- const w = xo(v).join(":"), j = P ? w + zr : w, A = j + $;
200
+ const w = xo(m).join(":"), j = P ? w + zr : w, A = j + $;
201
201
  if (i.includes(A))
202
202
  continue;
203
203
  i.push(A);
@@ -226,16 +226,16 @@ const Ir = (e) => {
226
226
  };
227
227
  function Po(e, ...t) {
228
228
  let o, s, r, i = a;
229
- function a(m) {
230
- const b = t.reduce((v, P) => P(v), e());
231
- return o = _o(b), s = o.cache.get, r = o.cache.set, i = u, u(m);
229
+ function a(v) {
230
+ const b = t.reduce((m, P) => P(m), e());
231
+ return o = _o(b), s = o.cache.get, r = o.cache.set, i = u, u(v);
232
232
  }
233
- function u(m) {
234
- const b = s(m);
233
+ function u(v) {
234
+ const b = s(v);
235
235
  if (b)
236
236
  return b;
237
- const v = Oo(m, o);
238
- return r(m, v), v;
237
+ const m = Oo(v, o);
238
+ return r(v, m), m;
239
239
  }
240
240
  return function() {
241
241
  return i(Co.apply(null, arguments));
@@ -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, qo), Bo = (e) => Me(e, "", Vo), 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)\(.+\)$/, K = (e) => Ce(e) || So.has(e) || ko.test(e), ee = (e) => Te(e, "length", Fo), Ce = (e) => !!e && !Number.isNaN(Number(e)), Pt = (e) => Te(e, "number", Ce), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Ce(e.slice(0, -1)), f = (e) => Lr.test(e), te = (e) => Eo.test(e), Lo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Mo = (e) => Te(e, Lo, Mr), To = (e) => Te(e, "position", Mr), No = /* @__PURE__ */ new Set(["image", "url"]), Ro = (e) => Te(e, No, qo), Bo = (e) => Te(e, "", Vo), Ge = () => !0, Te = (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) => (
@@ -253,34 +253,34 @@ const y = (e) => {
253
253
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
254
254
  jo.test(e) && !Do.test(e)
255
255
  ), Mr = () => !1, Vo = (e) => Ao.test(e), qo = (e) => zo.test(e), Uo = () => {
256
- const e = y("colors"), t = y("spacing"), o = y("blur"), s = y("brightness"), r = y("borderColor"), i = y("borderRadius"), a = y("borderSpacing"), u = y("borderWidth"), m = y("contrast"), b = y("grayscale"), v = y("hueRotate"), P = y("invert"), k = y("gap"), N = y("gradientColorStops"), D = y("gradientColorStopPositions"), $ = y("inset"), w = y("margin"), j = y("opacity"), A = y("padding"), Ve = y("saturate"), be = y("scale"), nt = y("sepia"), wr = y("skew"), yr = y("space"), xr = y("translate"), _t = () => ["auto", "contain", "none"], $t = () => ["auto", "hidden", "clip", "visible", "scroll"], Ot = () => ["auto", f, t], x = () => [f, t], _r = () => ["", H, Q], lt = () => ["auto", Oe, f], $r = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], dt = () => ["solid", "dashed", "dotted", "double", "none"], Or = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ct = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], qe = () => ["", "0", f], Cr = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [Oe, f];
256
+ const e = y("colors"), t = y("spacing"), o = y("blur"), s = y("brightness"), r = y("borderColor"), i = y("borderRadius"), a = y("borderSpacing"), u = y("borderWidth"), v = y("contrast"), b = y("grayscale"), m = y("hueRotate"), P = y("invert"), k = y("gap"), N = y("gradientColorStops"), D = y("gradientColorStopPositions"), $ = y("inset"), w = y("margin"), j = y("opacity"), A = y("padding"), Ve = y("saturate"), be = y("scale"), nt = y("sepia"), wr = y("skew"), yr = y("space"), xr = y("translate"), _t = () => ["auto", "contain", "none"], $t = () => ["auto", "hidden", "clip", "visible", "scroll"], Ot = () => ["auto", f, t], x = () => [f, t], _r = () => ["", K, ee], lt = () => ["auto", Ce, 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"], Y = () => [Ce, f];
257
257
  return {
258
258
  cacheSize: 500,
259
259
  separator: ":",
260
260
  theme: {
261
261
  colors: [Ge],
262
- spacing: [H, Q],
263
- blur: ["none", "", ee, f],
264
- brightness: K(),
262
+ spacing: [K, ee],
263
+ blur: ["none", "", te, f],
264
+ brightness: Y(),
265
265
  borderColor: [e],
266
- borderRadius: ["none", "", "full", ee, f],
266
+ borderRadius: ["none", "", "full", te, f],
267
267
  borderSpacing: x(),
268
268
  borderWidth: _r(),
269
- contrast: K(),
269
+ contrast: Y(),
270
270
  grayscale: qe(),
271
- hueRotate: K(),
271
+ hueRotate: Y(),
272
272
  invert: qe(),
273
273
  gap: x(),
274
274
  gradientColorStops: [e],
275
- gradientColorStopPositions: [Io, Q],
275
+ gradientColorStopPositions: [Io, ee],
276
276
  inset: Ot(),
277
277
  margin: Ot(),
278
- opacity: K(),
278
+ opacity: Y(),
279
279
  padding: x(),
280
- saturate: K(),
281
- scale: K(),
280
+ saturate: Y(),
281
+ scale: Y(),
282
282
  sepia: qe(),
283
- skew: K(),
283
+ skew: Y(),
284
284
  space: x(),
285
285
  translate: x()
286
286
  },
@@ -303,7 +303,7 @@ const y = (e) => {
303
303
  * @see https://tailwindcss.com/docs/columns
304
304
  */
305
305
  columns: [{
306
- columns: [ee]
306
+ columns: [te]
307
307
  }],
308
308
  /**
309
309
  * Break After
@@ -887,8 +887,8 @@ const y = (e) => {
887
887
  */
888
888
  "max-w": [{
889
889
  "max-w": [f, t, "none", "full", "min", "max", "fit", "prose", {
890
- screen: [ee]
891
- }, ee]
890
+ screen: [te]
891
+ }, te]
892
892
  }],
893
893
  /**
894
894
  * Height
@@ -924,7 +924,7 @@ const y = (e) => {
924
924
  * @see https://tailwindcss.com/docs/font-size
925
925
  */
926
926
  "font-size": [{
927
- text: ["base", ee, Q]
927
+ text: ["base", te, ee]
928
928
  }],
929
929
  /**
930
930
  * Font Smoothing
@@ -992,14 +992,14 @@ const y = (e) => {
992
992
  * @see https://tailwindcss.com/docs/line-clamp
993
993
  */
994
994
  "line-clamp": [{
995
- "line-clamp": ["none", Oe, Pt]
995
+ "line-clamp": ["none", Ce, Pt]
996
996
  }],
997
997
  /**
998
998
  * Line Height
999
999
  * @see https://tailwindcss.com/docs/line-height
1000
1000
  */
1001
1001
  leading: [{
1002
- leading: ["none", "tight", "snug", "normal", "relaxed", "loose", H, f]
1002
+ leading: ["none", "tight", "snug", "normal", "relaxed", "loose", K, f]
1003
1003
  }],
1004
1004
  /**
1005
1005
  * List Style Image
@@ -1075,14 +1075,14 @@ const y = (e) => {
1075
1075
  * @see https://tailwindcss.com/docs/text-decoration-thickness
1076
1076
  */
1077
1077
  "text-decoration-thickness": [{
1078
- decoration: ["auto", "from-font", H, Q]
1078
+ decoration: ["auto", "from-font", K, ee]
1079
1079
  }],
1080
1080
  /**
1081
1081
  * Text Underline Offset
1082
1082
  * @see https://tailwindcss.com/docs/text-underline-offset
1083
1083
  */
1084
1084
  "underline-offset": [{
1085
- "underline-offset": ["auto", H, f]
1085
+ "underline-offset": ["auto", K, f]
1086
1086
  }],
1087
1087
  /**
1088
1088
  * Text Decoration Color
@@ -1550,14 +1550,14 @@ const y = (e) => {
1550
1550
  * @see https://tailwindcss.com/docs/outline-offset
1551
1551
  */
1552
1552
  "outline-offset": [{
1553
- "outline-offset": [H, f]
1553
+ "outline-offset": [K, f]
1554
1554
  }],
1555
1555
  /**
1556
1556
  * Outline Width
1557
1557
  * @see https://tailwindcss.com/docs/outline-width
1558
1558
  */
1559
1559
  "outline-w": [{
1560
- outline: [H, Q]
1560
+ outline: [K, ee]
1561
1561
  }],
1562
1562
  /**
1563
1563
  * Outline Color
@@ -1597,7 +1597,7 @@ const y = (e) => {
1597
1597
  * @see https://tailwindcss.com/docs/ring-offset-width
1598
1598
  */
1599
1599
  "ring-offset-w": [{
1600
- "ring-offset": [H, Q]
1600
+ "ring-offset": [K, ee]
1601
1601
  }],
1602
1602
  /**
1603
1603
  * Ring Offset Color
@@ -1612,7 +1612,7 @@ const y = (e) => {
1612
1612
  * @see https://tailwindcss.com/docs/box-shadow
1613
1613
  */
1614
1614
  shadow: [{
1615
- shadow: ["", "inner", "none", ee, Bo]
1615
+ shadow: ["", "inner", "none", te, Bo]
1616
1616
  }],
1617
1617
  /**
1618
1618
  * Box Shadow Color
@@ -1670,14 +1670,14 @@ const y = (e) => {
1670
1670
  * @see https://tailwindcss.com/docs/contrast
1671
1671
  */
1672
1672
  contrast: [{
1673
- contrast: [m]
1673
+ contrast: [v]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Drop Shadow
1677
1677
  * @see https://tailwindcss.com/docs/drop-shadow
1678
1678
  */
1679
1679
  "drop-shadow": [{
1680
- "drop-shadow": ["", "none", ee, f]
1680
+ "drop-shadow": ["", "none", te, f]
1681
1681
  }],
1682
1682
  /**
1683
1683
  * Grayscale
@@ -1691,7 +1691,7 @@ const y = (e) => {
1691
1691
  * @see https://tailwindcss.com/docs/hue-rotate
1692
1692
  */
1693
1693
  "hue-rotate": [{
1694
- "hue-rotate": [v]
1694
+ "hue-rotate": [m]
1695
1695
  }],
1696
1696
  /**
1697
1697
  * Invert
@@ -1741,7 +1741,7 @@ const y = (e) => {
1741
1741
  * @see https://tailwindcss.com/docs/backdrop-contrast
1742
1742
  */
1743
1743
  "backdrop-contrast": [{
1744
- "backdrop-contrast": [m]
1744
+ "backdrop-contrast": [v]
1745
1745
  }],
1746
1746
  /**
1747
1747
  * Backdrop Grayscale
@@ -1755,7 +1755,7 @@ const y = (e) => {
1755
1755
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1756
1756
  */
1757
1757
  "backdrop-hue-rotate": [{
1758
- "backdrop-hue-rotate": [v]
1758
+ "backdrop-hue-rotate": [m]
1759
1759
  }],
1760
1760
  /**
1761
1761
  * Backdrop Invert
@@ -1841,7 +1841,7 @@ const y = (e) => {
1841
1841
  * @see https://tailwindcss.com/docs/transition-duration
1842
1842
  */
1843
1843
  duration: [{
1844
- duration: K()
1844
+ duration: Y()
1845
1845
  }],
1846
1846
  /**
1847
1847
  * Transition Timing Function
@@ -1855,7 +1855,7 @@ const y = (e) => {
1855
1855
  * @see https://tailwindcss.com/docs/transition-delay
1856
1856
  */
1857
1857
  delay: [{
1858
- delay: K()
1858
+ delay: Y()
1859
1859
  }],
1860
1860
  /**
1861
1861
  * Animation
@@ -2192,7 +2192,7 @@ const y = (e) => {
2192
2192
  * @see https://tailwindcss.com/docs/stroke-width
2193
2193
  */
2194
2194
  "stroke-w": [{
2195
- stroke: [H, Q, Pt]
2195
+ stroke: [K, ee, Pt]
2196
2196
  }],
2197
2197
  /**
2198
2198
  * Stroke
@@ -2315,16 +2315,16 @@ const Sr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Er =
2315
2315
  if ((t == null ? void 0 : t.variants) == null)
2316
2316
  return Er(e, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2317
2317
  const { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((b) => {
2318
- const v = o == null ? void 0 : o[b], P = i == null ? void 0 : i[b];
2319
- if (v === null)
2318
+ const m = o == null ? void 0 : o[b], P = i == null ? void 0 : i[b];
2319
+ if (m === null)
2320
2320
  return null;
2321
- const k = Sr(v) || Sr(P);
2321
+ const k = Sr(m) || Sr(P);
2322
2322
  return r[b][k];
2323
- }), u = o && Object.entries(o).reduce((b, v) => {
2324
- let [P, k] = v;
2323
+ }), u = o && Object.entries(o).reduce((b, m) => {
2324
+ let [P, k] = m;
2325
2325
  return k === void 0 || (b[P] = k), b;
2326
- }, {}), m = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((b, v) => {
2327
- let { class: P, className: k, ...N } = v;
2326
+ }, {}), v = t == null || (s = t.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((b, m) => {
2327
+ let { class: P, className: k, ...N } = m;
2328
2328
  return Object.entries(N).every((D) => {
2329
2329
  let [$, w] = D;
2330
2330
  return Array.isArray(w) ? w.includes({
@@ -2340,7 +2340,7 @@ const Sr = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, Er =
2340
2340
  k
2341
2341
  ] : b;
2342
2342
  }, []);
2343
- return Er(e, a, m, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2343
+ return Er(e, a, v, o == null ? void 0 : o.class, o == null ? void 0 : o.className);
2344
2344
  }, Yo = de(
2345
2345
  "inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
2346
2346
  {
@@ -5243,12 +5243,12 @@ z = ce([
5243
5243
  d("rtg-button")
5244
5244
  ], z);
5245
5245
  const Zo = "peer h-4 w-4 align-middle shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground", Jo = "flex items-center justify-center text-current pointer-events-none";
5246
- var Qo = Object.defineProperty, es = Object.getOwnPropertyDescriptor, Te = (e, t, o, s) => {
5246
+ var Qo = Object.defineProperty, es = Object.getOwnPropertyDescriptor, Ne = (e, t, o, s) => {
5247
5247
  for (var r = s > 1 ? void 0 : s ? es(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5248
5248
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5249
5249
  return s && r && Qo(t, o, r), r;
5250
5250
  };
5251
- let te = class extends h {
5251
+ let re = class extends h {
5252
5252
  constructor() {
5253
5253
  super(...arguments), this.disabled = !1, this.checked = !1, this.type = "text", this.value = "", this.required = !1;
5254
5254
  }
@@ -5295,25 +5295,25 @@ let te = class extends h {
5295
5295
  `;
5296
5296
  }
5297
5297
  };
5298
- te.styles = [p``, c];
5299
- Te([
5298
+ re.styles = [p``, c];
5299
+ Ne([
5300
5300
  n({ type: Boolean })
5301
- ], te.prototype, "disabled", 2);
5302
- Te([
5301
+ ], re.prototype, "disabled", 2);
5302
+ Ne([
5303
5303
  n({ type: Boolean })
5304
- ], te.prototype, "checked", 2);
5305
- Te([
5304
+ ], re.prototype, "checked", 2);
5305
+ Ne([
5306
5306
  n({ type: String })
5307
- ], te.prototype, "type", 2);
5308
- Te([
5307
+ ], re.prototype, "type", 2);
5308
+ Ne([
5309
5309
  n({ type: String })
5310
- ], te.prototype, "value", 2);
5311
- Te([
5310
+ ], re.prototype, "value", 2);
5311
+ Ne([
5312
5312
  n({ type: Boolean })
5313
- ], te.prototype, "required", 2);
5314
- te = Te([
5313
+ ], re.prototype, "required", 2);
5314
+ re = Ne([
5315
5315
  d("rtg-checkbox")
5316
- ], te);
5316
+ ], re);
5317
5317
  var ts = Object.defineProperty, rs = Object.getOwnPropertyDescriptor, Br = (e, t, o, s) => {
5318
5318
  for (var r = s > 1 ? void 0 : s ? rs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5319
5319
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -5330,7 +5330,7 @@ let Ye = class extends h {
5330
5330
  get _dialog() {
5331
5331
  let e = this.parentElement;
5332
5332
  for (; e; ) {
5333
- if (e instanceof Ce)
5333
+ if (e instanceof Pe)
5334
5334
  return e;
5335
5335
  e = e.parentElement;
5336
5336
  }
@@ -5388,7 +5388,7 @@ let St = class extends h {
5388
5388
  get _dialog() {
5389
5389
  let e = this.parentElement;
5390
5390
  for (; e; ) {
5391
- if (e instanceof Ce)
5391
+ if (e instanceof Pe)
5392
5392
  return e;
5393
5393
  e = e.parentElement;
5394
5394
  }
@@ -5501,13 +5501,13 @@ jt.styles = [p``, c];
5501
5501
  jt = fs([
5502
5502
  d("rtg-dialog-overlay")
5503
5503
  ], jt);
5504
- var bs = Object.defineProperty, vs = Object.getOwnPropertyDescriptor, Fr = (e, t, o, s) => {
5505
- for (var r = s > 1 ? void 0 : s ? vs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5504
+ var bs = Object.defineProperty, ms = Object.getOwnPropertyDescriptor, Fr = (e, t, o, s) => {
5505
+ for (var r = s > 1 ? void 0 : s ? ms(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5506
5506
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5507
5507
  return s && r && bs(t, o, r), r;
5508
5508
  };
5509
- const ms = "open", ws = "closed";
5510
- let Ce = class extends h {
5509
+ const vs = "open", ws = "closed";
5510
+ let Pe = class extends h {
5511
5511
  constructor() {
5512
5512
  super(...arguments), this.state = ws;
5513
5513
  }
@@ -5529,28 +5529,28 @@ let Ce = class extends h {
5529
5529
  render() {
5530
5530
  return l`
5531
5531
  <div rtgdlg-root>
5532
- ${this.state === ms ? l` <rtg-dialog-overlay></rtg-dialog-overlay>` : C}
5532
+ ${this.state === vs ? l` <rtg-dialog-overlay></rtg-dialog-overlay>` : C}
5533
5533
  <slot></slot>
5534
5534
  </div>
5535
5535
  `;
5536
5536
  }
5537
5537
  };
5538
- Ce.styles = [p``, c];
5538
+ Pe.styles = [p``, c];
5539
5539
  Fr([
5540
5540
  n({ attribute: "data-state", type: String })
5541
- ], Ce.prototype, "state", 2);
5542
- Ce = Fr([
5541
+ ], Pe.prototype, "state", 2);
5542
+ Pe = Fr([
5543
5543
  d("rtg-dialog")
5544
- ], Ce);
5544
+ ], Pe);
5545
5545
  const ys = "flex h-8 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 input-base";
5546
- var xs = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, Ne = (e, t, o, s) => {
5546
+ var xs = Object.defineProperty, _s = Object.getOwnPropertyDescriptor, ve = (e, t, o, s) => {
5547
5547
  for (var r = s > 1 ? void 0 : s ? _s(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5548
5548
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5549
5549
  return s && r && xs(t, o, r), r;
5550
5550
  };
5551
- let re = class extends _ {
5551
+ let H = class extends _ {
5552
5552
  constructor() {
5553
- super(), this.disabled = !1, this.type = "text", this.placeholder = "", this.defaultValue = "", this.value = "", this.attachShadow({ mode: "open" }), this.value = this.value || this.defaultValue;
5553
+ super(), this.disabled = !1, this.type = "text", this.placeholder = "", this.defaultValue = "", this.value = "", this.twCLass = "", this.value = this.value || this.defaultValue;
5554
5554
  }
5555
5555
  firstUpdated(e) {
5556
5556
  const t = ["--input-border-radius", "--input-padding"];
@@ -5571,7 +5571,7 @@ let re = class extends _ {
5571
5571
  type="${this.type}"
5572
5572
  placeholder="${this.placeholder}"
5573
5573
  ?disabled=${this.disabled}
5574
- class="${g(ys, this.className)}"
5574
+ class="${g(ys, this.classList, this.twCLass)}"
5575
5575
  .value=${this.type !== "file" ? this.value : ""}
5576
5576
  @change="${this.handleInputChange}"
5577
5577
  ${O(e)}
@@ -5579,25 +5579,28 @@ let re = class extends _ {
5579
5579
  `;
5580
5580
  }
5581
5581
  };
5582
- re.styles = [p``, c];
5583
- Ne([
5582
+ H.styles = [p``, c];
5583
+ ve([
5584
5584
  n({ type: Boolean })
5585
- ], re.prototype, "disabled", 2);
5586
- Ne([
5585
+ ], H.prototype, "disabled", 2);
5586
+ ve([
5587
5587
  n({ type: String })
5588
- ], re.prototype, "type", 2);
5589
- Ne([
5588
+ ], H.prototype, "type", 2);
5589
+ ve([
5590
5590
  n({ type: String })
5591
- ], re.prototype, "placeholder", 2);
5592
- Ne([
5591
+ ], H.prototype, "placeholder", 2);
5592
+ ve([
5593
5593
  n({ type: String })
5594
- ], re.prototype, "defaultValue", 2);
5595
- Ne([
5594
+ ], H.prototype, "defaultValue", 2);
5595
+ ve([
5596
5596
  n({ type: String })
5597
- ], re.prototype, "value", 2);
5598
- re = Ne([
5597
+ ], H.prototype, "value", 2);
5598
+ ve([
5599
+ n({ type: String })
5600
+ ], H.prototype, "twCLass", 2);
5601
+ H = ve([
5599
5602
  d("rtg-input")
5600
- ], re);
5603
+ ], H);
5601
5604
  const $s = de(
5602
5605
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
5603
5606
  );
@@ -5606,7 +5609,7 @@ var Os = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, Vr = (e, t
5606
5609
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5607
5610
  return s && r && Os(t, o, r), r;
5608
5611
  };
5609
- let Pe = class extends _ {
5612
+ let ke = class extends _ {
5610
5613
  constructor() {
5611
5614
  super(...arguments), this.for = "";
5612
5615
  }
@@ -5632,7 +5635,7 @@ let Pe = class extends _ {
5632
5635
  @click="${this._onClick}"
5633
5636
  @keydown="${this._onClick}"
5634
5637
  class="${g(
5635
- Pe.labelVariants({
5638
+ ke.labelVariants({
5636
5639
  className: this.className
5637
5640
  })
5638
5641
  )}"
@@ -5643,8 +5646,8 @@ let Pe = class extends _ {
5643
5646
  `;
5644
5647
  }
5645
5648
  };
5646
- Pe.labelVariants = $s;
5647
- Pe.styles = [
5649
+ ke.labelVariants = $s;
5650
+ ke.styles = [
5648
5651
  p`
5649
5652
  :root {
5650
5653
  --label-text-color: inherit;
@@ -5659,10 +5662,10 @@ Pe.styles = [
5659
5662
  ];
5660
5663
  Vr([
5661
5664
  n({ type: String })
5662
- ], Pe.prototype, "for", 2);
5663
- Pe = Vr([
5665
+ ], ke.prototype, "for", 2);
5666
+ ke = Vr([
5664
5667
  d("rtg-label")
5665
- ], Pe);
5668
+ ], ke);
5666
5669
  var Ps = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, qr = (e, t, o, s) => {
5667
5670
  for (var r = s > 1 ? void 0 : s ? ks(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5668
5671
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -5810,16 +5813,16 @@ let He = class extends h {
5810
5813
  "rtg-command-list > rtg-command-group"
5811
5814
  );
5812
5815
  o && o.forEach((r) => {
5813
- var m, b;
5816
+ var v, b;
5814
5817
  let i = !0;
5815
5818
  const a = r.querySelectorAll("rtg-command-item");
5816
- a && a.forEach((v) => {
5817
- ((v == null ? void 0 : v.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, v.setAttribute("aria-hidden", "false")) : v.setAttribute("aria-hidden", "true");
5819
+ a && a.forEach((m) => {
5820
+ ((m == null ? void 0 : m.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, m.setAttribute("aria-hidden", "false")) : m.setAttribute("aria-hidden", "true");
5818
5821
  }), r.setAttribute("aria-hidden", i ? "true" : "false");
5819
5822
  let u = r.previousElementSibling;
5820
5823
  u && u.setAttribute(
5821
5824
  "aria-hidden",
5822
- i || ((m = u.previousElementSibling) == null ? void 0 : m.getAttribute(
5825
+ i || ((v = u.previousElementSibling) == null ? void 0 : v.getAttribute(
5823
5826
  "aria-hidden"
5824
5827
  )) === "true" ? "true" : "false"
5825
5828
  ), u = r.nextElementSibling, u && u.setAttribute(
@@ -6168,7 +6171,7 @@ let We = class extends h {
6168
6171
  }
6169
6172
  get _popover() {
6170
6173
  let e = this.parentElement;
6171
- for (; e && !(e instanceof ke); )
6174
+ for (; e && !(e instanceof Se); )
6172
6175
  e = e.parentElement;
6173
6176
  return e;
6174
6177
  }
@@ -6226,7 +6229,7 @@ let Nt = class extends h {
6226
6229
  }
6227
6230
  get _popover() {
6228
6231
  let e = this.parentElement;
6229
- for (; e && !(e instanceof ke); )
6232
+ for (; e && !(e instanceof Se); )
6230
6233
  e = e.parentElement;
6231
6234
  return e;
6232
6235
  }
@@ -6257,7 +6260,7 @@ var ui = Object.defineProperty, hi = Object.getOwnPropertyDescriptor, Ur = (e, t
6257
6260
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6258
6261
  return s && r && ui(t, o, r), r;
6259
6262
  };
6260
- let ke = class extends h {
6263
+ let Se = class extends h {
6261
6264
  constructor() {
6262
6265
  super(...arguments), this.isOpen = !1;
6263
6266
  }
@@ -6281,13 +6284,13 @@ let ke = class extends h {
6281
6284
  `;
6282
6285
  }
6283
6286
  };
6284
- ke.styles = [p``, c];
6287
+ Se.styles = [p``, c];
6285
6288
  Ur([
6286
6289
  S()
6287
- ], ke.prototype, "isOpen", 2);
6288
- ke = Ur([
6290
+ ], Se.prototype, "isOpen", 2);
6291
+ Se = Ur([
6289
6292
  d("rtg-popover")
6290
- ], ke);
6293
+ ], Se);
6291
6294
  const Gr = de("p-4 rounded-sm text-sm font-medium", {
6292
6295
  variants: {
6293
6296
  variant: {
@@ -6327,10 +6330,10 @@ Rt.styles = p`
6327
6330
  Rt = bi([
6328
6331
  d("rtg-alert-title")
6329
6332
  ], Rt);
6330
- var vi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, wi = (e, t, o, s) => {
6331
- for (var r = s > 1 ? void 0 : s ? mi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6333
+ var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, wi = (e, t, o, s) => {
6334
+ for (var r = s > 1 ? void 0 : s ? vi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6332
6335
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6333
- return s && r && vi(t, o, r), r;
6336
+ return s && r && mi(t, o, r), r;
6334
6337
  };
6335
6338
  let Bt = class extends h {
6336
6339
  render() {
@@ -6350,7 +6353,7 @@ var yi = Object.defineProperty, xi = Object.getOwnPropertyDescriptor, nr = (e, t
6350
6353
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6351
6354
  return s && r && yi(t, o, r), r;
6352
6355
  };
6353
- let Se = class extends h {
6356
+ let Ee = class extends h {
6354
6357
  constructor() {
6355
6358
  super(...arguments), this.variant = "info", this.size = "default";
6356
6359
  }
@@ -6366,7 +6369,7 @@ let Se = class extends h {
6366
6369
  `;
6367
6370
  }
6368
6371
  };
6369
- Se.styles = [
6372
+ Ee.styles = [
6370
6373
  p`
6371
6374
  :host {
6372
6375
  display: block;
@@ -6383,16 +6386,16 @@ Se.styles = [
6383
6386
  `,
6384
6387
  c
6385
6388
  ];
6386
- Se.alertVairants = Gr;
6389
+ Ee.alertVairants = Gr;
6387
6390
  nr([
6388
6391
  n({ type: String })
6389
- ], Se.prototype, "variant", 2);
6392
+ ], Ee.prototype, "variant", 2);
6390
6393
  nr([
6391
6394
  n({ type: String })
6392
- ], Se.prototype, "size", 2);
6393
- Se = nr([
6395
+ ], Ee.prototype, "size", 2);
6396
+ Ee = nr([
6394
6397
  d("rtg-alert")
6395
- ], Se);
6398
+ ], Ee);
6396
6399
  const _i = de(
6397
6400
  "inline-flex items-center border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent rounded-full",
6398
6401
  {
@@ -6416,7 +6419,7 @@ var $i = Object.defineProperty, Oi = Object.getOwnPropertyDescriptor, Xr = (e, t
6416
6419
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6417
6420
  return s && r && $i(t, o, r), r;
6418
6421
  };
6419
- let Ee = class extends _ {
6422
+ let je = class extends _ {
6420
6423
  constructor() {
6421
6424
  super(...arguments), this.variant = "default";
6422
6425
  }
@@ -6430,7 +6433,7 @@ let Ee = class extends _ {
6430
6433
  id="rtg-badge-id"
6431
6434
  class="
6432
6435
  ${g(
6433
- Ee.badgeVariants({
6436
+ je.badgeVariants({
6434
6437
  variant: this.variant,
6435
6438
  className: this.className
6436
6439
  })
@@ -6442,16 +6445,16 @@ let Ee = class extends _ {
6442
6445
  `;
6443
6446
  }
6444
6447
  };
6445
- Ee.badgeVariants = _i;
6446
- Ee.styles = [p``, c];
6448
+ je.badgeVariants = _i;
6449
+ je.styles = [p``, c];
6447
6450
  Xr([
6448
6451
  n({ type: String })
6449
- ], Ee.prototype, "variant", 2);
6450
- Ee = Xr([
6452
+ ], je.prototype, "variant", 2);
6453
+ je = Xr([
6451
6454
  d("rtg-badge")
6452
- ], Ee);
6455
+ ], je);
6453
6456
  function Yr() {
6454
- return ve` <svg
6457
+ return me` <svg
6455
6458
  class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
6456
6459
  xmlns="http://www.w3.org/2000/svg"
6457
6460
  width="24"
@@ -6469,7 +6472,7 @@ function Yr() {
6469
6472
  `;
6470
6473
  }
6471
6474
  function Kr() {
6472
- return ve`
6475
+ return me`
6473
6476
  <svg
6474
6477
  class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
6475
6478
  xmlns="http://www.w3.org/2000/svg"
@@ -6487,7 +6490,7 @@ function Kr() {
6487
6490
  `;
6488
6491
  }
6489
6492
  function Hr() {
6490
- return ve` <svg
6493
+ return me` <svg
6491
6494
  xmlns="http://www.w3.org/2000/svg"
6492
6495
  width = "24"
6493
6496
  height = "24"
@@ -6504,7 +6507,7 @@ function Hr() {
6504
6507
  `;
6505
6508
  }
6506
6509
  function Wr() {
6507
- return ve` <svg
6510
+ return me` <svg
6508
6511
  xmlns="http://www.w3.org/2000/svg"
6509
6512
  width="24"
6510
6513
  height="24"
@@ -6521,11 +6524,11 @@ function Wr() {
6521
6524
  `;
6522
6525
  }
6523
6526
  function Ci() {
6524
- return ve` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
6527
+ return me` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down h-4 w-4 shrink-0 transition-transform duration-200"><path d="m6 9 6 6 6-6"></path></svg>
6525
6528
  `;
6526
6529
  }
6527
6530
  function Pi() {
6528
- return ve` <svg
6531
+ return me` <svg
6529
6532
  xmlns="http://www.w3.org/2000/svg"
6530
6533
  width="24"
6531
6534
  height="24"
@@ -6542,14 +6545,14 @@ function Pi() {
6542
6545
  `;
6543
6546
  }
6544
6547
  function ki() {
6545
- return ve`<svg xmlns="http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke - width="2" stroke - linecap="round" stroke - linejoin="round" class="lucide lucide-dot " > <circle cx="12.1" cy = "12.1" r = "1" > </circle></svg >`;
6548
+ return me`<svg xmlns="http://www.w3.org/2000/svg" width = "24" height = "24" viewBox = "0 0 24 24" fill = "none" stroke = "currentColor" stroke - width="2" stroke - linecap="round" stroke - linejoin="round" class="lucide lucide-dot " > <circle cx="12.1" cy = "12.1" r = "1" > </circle></svg >`;
6546
6549
  }
6547
- var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, vt = (e, t, o, s) => {
6550
+ var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, mt = (e, t, o, s) => {
6548
6551
  for (var r = s > 1 ? void 0 : s ? Ei(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6549
6552
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6550
6553
  return s && r && Si(t, o, r), r;
6551
6554
  };
6552
- let je = class extends h {
6555
+ let De = class extends h {
6553
6556
  constructor() {
6554
6557
  super(...arguments), this.value = "", this.handleClick = () => {
6555
6558
  }, this.handleKeyDown = () => {
@@ -6576,19 +6579,19 @@ let je = class extends h {
6576
6579
  `;
6577
6580
  }
6578
6581
  };
6579
- je.styles = [p``, c];
6580
- vt([
6582
+ De.styles = [p``, c];
6583
+ mt([
6581
6584
  n({ type: String })
6582
- ], je.prototype, "value", 2);
6583
- vt([
6585
+ ], De.prototype, "value", 2);
6586
+ mt([
6584
6587
  n({ type: Function })
6585
- ], je.prototype, "handleClick", 2);
6586
- vt([
6588
+ ], De.prototype, "handleClick", 2);
6589
+ mt([
6587
6590
  n({ type: Function })
6588
- ], je.prototype, "handleKeyDown", 2);
6589
- je = vt([
6591
+ ], De.prototype, "handleKeyDown", 2);
6592
+ De = mt([
6590
6593
  d("rtg-combo-box-input")
6591
- ], je);
6594
+ ], De);
6592
6595
  var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, pe = (e, t, o, s) => {
6593
6596
  for (var r = s > 1 ? void 0 : s ? Di(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6594
6597
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -6663,7 +6666,7 @@ pe([
6663
6666
  F = pe([
6664
6667
  d("rtg-combo-box-item")
6665
6668
  ], F);
6666
- const Ai = "open", mt = "closed";
6669
+ const Ai = "open", vt = "closed";
6667
6670
  var zi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, lr = (e, t, o, s) => {
6668
6671
  for (var r = s > 1 ? void 0 : s ? Ii(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6669
6672
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -6671,7 +6674,7 @@ var zi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, lr = (e, t
6671
6674
  };
6672
6675
  let Ze = class extends h {
6673
6676
  constructor() {
6674
- super(...arguments), this.state = mt, this.isOpen = !1;
6677
+ super(...arguments), this.state = vt, this.isOpen = !1;
6675
6678
  }
6676
6679
  get _popover() {
6677
6680
  let e = this.parentElement;
@@ -6724,18 +6727,34 @@ var Li = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ue = (e, t
6724
6727
  };
6725
6728
  let R = class extends h {
6726
6729
  constructor() {
6727
- super(...arguments), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.label = "Select an item", this.items = [];
6730
+ super(...arguments), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.label = "Select an item", this.items = [], this.handleClickOutside = (e) => {
6731
+ var r, i;
6732
+ const t = e.target, o = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
6733
+ "[data-hs-combo-box]"
6734
+ );
6735
+ if (console.log("target", t), console.log("this.shadowRoot", this.shadowRoot), !this.shadowRoot || !(t instanceof HTMLElement)) {
6736
+ console.log("Invalid target or shadow root");
6737
+ return;
6738
+ }
6739
+ const s = (i = t.shadowRoot) == null ? void 0 : i.firstElementChild;
6740
+ if (!s) {
6741
+ this.isOpen = !1;
6742
+ return;
6743
+ }
6744
+ (!o || !o.contains(s)) && console.log(
6745
+ "!dropdownContainer || !dropdownContainer.contains(firstChild)"
6746
+ );
6747
+ };
6728
6748
  }
6729
6749
  firstUpdated(e) {
6730
- console.log("this. items firstUpdated", this.items), this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6750
+ this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6731
6751
  (t) => t.toLowerCase().includes(this.searchTerm)
6732
6752
  ));
6733
6753
  }
6734
6754
  toggleDropdown() {
6735
- this.isOpen = !this.isOpen, this.focusedIndex = -1, console.log("toggleDropdown", this.isOpen);
6755
+ this.isOpen = !this.isOpen, this.focusedIndex = -1;
6736
6756
  }
6737
6757
  selectItem(e) {
6738
- console.log("selectItem");
6739
6758
  const t = e.target;
6740
6759
  if (t instanceof HTMLElement) {
6741
6760
  const o = t.closest(
@@ -6746,15 +6765,13 @@ let R = class extends h {
6746
6765
  console.log("Event target is not an HTMLElement");
6747
6766
  }
6748
6767
  handleInputClick() {
6749
- console.log("-----handleInputClick------"), this.toggleDropdown();
6768
+ this.toggleDropdown();
6750
6769
  }
6751
6770
  handleSearch(e) {
6752
- console.log("handleSearch");
6753
6771
  const t = e.target;
6754
6772
  this.searchTerm = t.value, this.filteredItems = this.items.filter((o) => o.toLowerCase().includes(this.searchTerm.toLowerCase()));
6755
6773
  }
6756
6774
  handleKeyDown(e) {
6757
- console.log("handleKeyDown");
6758
6775
  const t = this.filteredItems.length;
6759
6776
  switch (e.key) {
6760
6777
  case "ArrowDown":
@@ -6769,45 +6786,50 @@ let R = class extends h {
6769
6786
  }
6770
6787
  }
6771
6788
  handleMouseOver(e, t) {
6772
- console.log("handleMouseOver"), e.preventDefault(), this.focusedIndex = t;
6789
+ e.preventDefault(), this.focusedIndex = t;
6773
6790
  }
6774
6791
  connectedCallback() {
6775
6792
  var e, t, o, s;
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);
6793
+ super.connectedCallback(), document.addEventListener("click", this.handleClickOutside.bind(this)), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.addEventListener("focus", () => {
6794
+ this.isOpen = !0;
6778
6795
  }), (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input")) == null || s.addEventListener("blur", () => {
6779
- this.isOpen && (this.isOpen = !1, console.log("connectedCallback blur", this.isOpen));
6796
+ this.isOpen && (this.isOpen = !1);
6780
6797
  });
6781
6798
  }
6782
6799
  disconnectedCallback() {
6783
6800
  var e, t, o, s;
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", () => {
6801
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleClickOutside), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.removeEventListener("focus", () => {
6785
6802
  }), (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input")) == null || s.removeEventListener("blur", () => {
6786
6803
  });
6787
6804
  }
6788
- handleClickOutside(e) {
6789
- console.log("handleClickOutside");
6790
- }
6791
6805
  updateFocus() {
6792
- if (console.log("updateFocus"), !this.shadowRoot)
6806
+ if (!this.shadowRoot)
6793
6807
  return;
6794
6808
  this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((t, o) => {
6795
6809
  o === this.focusedIndex ? t.classList.add("bg-gray-100") : t.classList.remove("bg-gray-100");
6796
6810
  });
6797
6811
  }
6798
6812
  render() {
6799
- return console.log("render ", this.isOpen), l`
6813
+ return l`
6800
6814
  <div class="relative" data-hs-combo-box="">
6801
- isopen:${this.isOpen}
6802
6815
  <div>
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}" />
6816
+ <input
6817
+ part="combobox"
6818
+ class="inline-flex justify-between items-center w-full h-10 px-4 py-2 whitespace-nowrap rounded-md
6819
+ text-sm font-medium border border-input cursor-pointer
6820
+ ring-offset-background
6821
+ transition-colors disabled:pointer-events-none
6822
+ disabled:opacity-50
6823
+ bg-background hover:bg-accent
6824
+ hover:text-accent-foreground
6825
+ outline-none"
6826
+ role="combobox"
6827
+ aria-expanded=${this.isOpen}
6828
+ readonly
6829
+ .value=${this.selectedValue || this.label}
6830
+ @click="${this.handleInputClick}"
6831
+ @keydown="${this.handleKeyDown}"
6832
+ />
6811
6833
  <div
6812
6834
  class="absolute top-1/2 end-3 -translate-y-1/2 cursor-pointer"
6813
6835
  aria-expanded=${this.isOpen}
@@ -6896,9 +6918,9 @@ var Ti = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, dr = (e, t
6896
6918
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6897
6919
  return s && r && Ti(t, o, r), r;
6898
6920
  };
6899
- let De = class extends h {
6921
+ let Ae = class extends h {
6900
6922
  constructor() {
6901
- super(...arguments), this.state = mt, this.isOpen = !1;
6923
+ super(...arguments), this.state = vt, this.isOpen = !1;
6902
6924
  }
6903
6925
  get _dropdownMenu() {
6904
6926
  let e = this.parentElement;
@@ -6933,16 +6955,16 @@ let De = class extends h {
6933
6955
  `;
6934
6956
  }
6935
6957
  };
6936
- De.styles = [p``, c];
6958
+ Ae.styles = [p``, c];
6937
6959
  dr([
6938
6960
  n({ attribute: "data-state", type: String })
6939
- ], De.prototype, "state", 2);
6961
+ ], Ae.prototype, "state", 2);
6940
6962
  dr([
6941
6963
  S()
6942
- ], De.prototype, "isOpen", 2);
6943
- De = dr([
6964
+ ], Ae.prototype, "isOpen", 2);
6965
+ Ae = dr([
6944
6966
  d("rtg-dropdown-menu-content")
6945
- ], De);
6967
+ ], Ae);
6946
6968
  var Ri = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, it = (e, t, o, s) => {
6947
6969
  for (var r = s > 1 ? void 0 : s ? Bi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6948
6970
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -7006,7 +7028,7 @@ it([
7006
7028
  V = it([
7007
7029
  d("rtg-dropdown-menu-item")
7008
7030
  ], V);
7009
- var Fi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, me = (e, t, o, s) => {
7031
+ var Fi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, we = (e, t, o, s) => {
7010
7032
  for (var r = s > 1 ? void 0 : s ? Vi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7011
7033
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7012
7034
  return s && r && Fi(t, o, r), r;
@@ -7077,25 +7099,25 @@ I.styles = [
7077
7099
  `,
7078
7100
  c
7079
7101
  ];
7080
- me([
7102
+ we([
7081
7103
  n({ type: String })
7082
7104
  ], I.prototype, "_id", 2);
7083
- me([
7105
+ we([
7084
7106
  n({ attribute: "aria-hidden", type: String })
7085
7107
  ], I.prototype, "_hidden", 2);
7086
- me([
7108
+ we([
7087
7109
  n({ attribute: "data-value", type: String })
7088
7110
  ], I.prototype, "value", 1);
7089
- me([
7111
+ we([
7090
7112
  n({ type: Boolean })
7091
7113
  ], I.prototype, "selected", 2);
7092
- me([
7114
+ we([
7093
7115
  n({ type: Boolean })
7094
7116
  ], I.prototype, "checked", 2);
7095
- me([
7117
+ we([
7096
7118
  n({ type: Boolean })
7097
7119
  ], I.prototype, "disabled", 2);
7098
- I = me([
7120
+ I = we([
7099
7121
  d("rtg-dropdown-menu-radio-item")
7100
7122
  ], I);
7101
7123
  var qi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, cr = (e, t, o, s) => {
@@ -7138,7 +7160,7 @@ cr([
7138
7160
  ie = cr([
7139
7161
  d("rtg-dropdown-menu-separator")
7140
7162
  ], ie);
7141
- var Gi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, we = (e, t, o, s) => {
7163
+ var Gi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, ye = (e, t, o, s) => {
7142
7164
  for (var r = s > 1 ? void 0 : s ? Xi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7143
7165
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7144
7166
  return s && r && Gi(t, o, r), r;
@@ -7218,25 +7240,25 @@ L.styles = [
7218
7240
  `,
7219
7241
  c
7220
7242
  ];
7221
- we([
7243
+ ye([
7222
7244
  n({ type: String })
7223
7245
  ], L.prototype, "_id", 2);
7224
- we([
7246
+ ye([
7225
7247
  n({ attribute: "aria-hidden", type: String })
7226
7248
  ], L.prototype, "_hidden", 2);
7227
- we([
7249
+ ye([
7228
7250
  n({ attribute: "data-value", type: String })
7229
7251
  ], L.prototype, "value", 1);
7230
- we([
7252
+ ye([
7231
7253
  n({ type: Boolean })
7232
7254
  ], L.prototype, "selected", 2);
7233
- we([
7255
+ ye([
7234
7256
  n({ type: Boolean })
7235
7257
  ], L.prototype, "checked", 2);
7236
- we([
7258
+ ye([
7237
7259
  n({ type: Boolean })
7238
7260
  ], L.prototype, "disabled", 2);
7239
- L = we([
7261
+ L = ye([
7240
7262
  d("rtg-dropdown-menu-checkbox-item")
7241
7263
  ], L);
7242
7264
  var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, wt = (e, t, o, s) => {
@@ -7323,7 +7345,7 @@ let Je = class extends h {
7323
7345
  const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot"), t = e == null ? void 0 : e.assignedElements();
7324
7346
  if (t) {
7325
7347
  for (let s = 0; s < t.length; s++)
7326
- if (t[s] instanceof De)
7348
+ if (t[s] instanceof Ae)
7327
7349
  return t[s];
7328
7350
  }
7329
7351
  return null;
@@ -7444,9 +7466,9 @@ var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, pr = (e, t
7444
7466
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7445
7467
  return s && r && ea(t, o, r), r;
7446
7468
  };
7447
- let Ae = class extends h {
7469
+ let ze = class extends h {
7448
7470
  constructor() {
7449
- super(...arguments), this.state = mt, this.isOpen = !1;
7471
+ super(...arguments), this.state = vt, this.isOpen = !1;
7450
7472
  }
7451
7473
  get _contextMenu() {
7452
7474
  let e = this.parentElement;
@@ -7482,17 +7504,17 @@ let Ae = class extends h {
7482
7504
  `;
7483
7505
  }
7484
7506
  };
7485
- Ae.styles = [p``, c];
7507
+ ze.styles = [p``, c];
7486
7508
  pr([
7487
7509
  n({ attribute: "data-state", type: String })
7488
- ], Ae.prototype, "state", 2);
7510
+ ], ze.prototype, "state", 2);
7489
7511
  pr([
7490
7512
  S()
7491
- ], Ae.prototype, "isOpen", 2);
7492
- Ae = pr([
7513
+ ], ze.prototype, "isOpen", 2);
7514
+ ze = pr([
7493
7515
  d("rtg-context-menu-content")
7494
- ], Ae);
7495
- var ra = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, ye = (e, t, o, s) => {
7516
+ ], ze);
7517
+ var ra = Object.defineProperty, oa = Object.getOwnPropertyDescriptor, xe = (e, t, o, s) => {
7496
7518
  for (var r = s > 1 ? void 0 : s ? oa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7497
7519
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7498
7520
  return s && r && ra(t, o, r), r;
@@ -7572,25 +7594,25 @@ M.styles = [
7572
7594
  `,
7573
7595
  c
7574
7596
  ];
7575
- ye([
7597
+ xe([
7576
7598
  n({ type: String })
7577
7599
  ], M.prototype, "_id", 2);
7578
- ye([
7600
+ xe([
7579
7601
  n({ attribute: "aria-hidden", type: String })
7580
7602
  ], M.prototype, "_hidden", 2);
7581
- ye([
7603
+ xe([
7582
7604
  n({ attribute: "data-value", type: String })
7583
7605
  ], M.prototype, "value", 1);
7584
- ye([
7606
+ xe([
7585
7607
  n({ type: Boolean })
7586
7608
  ], M.prototype, "selected", 2);
7587
- ye([
7609
+ xe([
7588
7610
  n({ type: Boolean })
7589
7611
  ], M.prototype, "checked", 2);
7590
- ye([
7612
+ xe([
7591
7613
  n({ type: Boolean })
7592
7614
  ], M.prototype, "disabled", 2);
7593
- M = ye([
7615
+ M = xe([
7594
7616
  d("rtg-context-menu-checkbox-item")
7595
7617
  ], M);
7596
7618
  var sa = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, yt = (e, t, o, s) => {
@@ -7713,7 +7735,7 @@ at([
7713
7735
  U = at([
7714
7736
  d("rtg-context-menu-item")
7715
7737
  ], U);
7716
- var la = Object.defineProperty, da = Object.getOwnPropertyDescriptor, xe = (e, t, o, s) => {
7738
+ var la = Object.defineProperty, da = Object.getOwnPropertyDescriptor, _e = (e, t, o, s) => {
7717
7739
  for (var r = s > 1 ? void 0 : s ? da(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7718
7740
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7719
7741
  return s && r && la(t, o, r), r;
@@ -7784,25 +7806,25 @@ T.styles = [
7784
7806
  `,
7785
7807
  c
7786
7808
  ];
7787
- xe([
7809
+ _e([
7788
7810
  n({ type: String })
7789
7811
  ], T.prototype, "_id", 2);
7790
- xe([
7812
+ _e([
7791
7813
  n({ attribute: "aria-hidden", type: String })
7792
7814
  ], T.prototype, "_hidden", 2);
7793
- xe([
7815
+ _e([
7794
7816
  n({ attribute: "data-value", type: String })
7795
7817
  ], T.prototype, "value", 1);
7796
- xe([
7818
+ _e([
7797
7819
  n({ type: Boolean })
7798
7820
  ], T.prototype, "selected", 2);
7799
- xe([
7821
+ _e([
7800
7822
  n({ type: Boolean })
7801
7823
  ], T.prototype, "checked", 2);
7802
- xe([
7824
+ _e([
7803
7825
  n({ type: Boolean })
7804
7826
  ], T.prototype, "disabled", 2);
7805
- T = xe([
7827
+ T = _e([
7806
7828
  d("rtg-context-menu-radio-item")
7807
7829
  ], T);
7808
7830
  var ca = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, ur = (e, t, o, s) => {
@@ -7895,7 +7917,7 @@ let Qe = class extends h {
7895
7917
  const e = (o = this.shadowRoot) == null ? void 0 : o.querySelector("slot"), t = e == null ? void 0 : e.assignedElements();
7896
7918
  if (t) {
7897
7919
  for (let s = 0; s < t.length; s++)
7898
- if (t[s] instanceof Ae)
7920
+ if (t[s] instanceof ze)
7899
7921
  return t[s];
7900
7922
  }
7901
7923
  return null;
@@ -7930,10 +7952,10 @@ eo([
7930
7952
  Qe = eo([
7931
7953
  d("rtg-context-menu")
7932
7954
  ], Qe);
7933
- var va = Object.defineProperty, ma = Object.getOwnPropertyDescriptor, he = (e, t, o, s) => {
7934
- for (var r = s > 1 ? void 0 : s ? ma(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7955
+ var ma = Object.defineProperty, va = Object.getOwnPropertyDescriptor, he = (e, t, o, s) => {
7956
+ for (var r = s > 1 ? void 0 : s ? va(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7935
7957
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7936
- return s && r && va(t, o, r), r;
7958
+ return s && r && ma(t, o, r), r;
7937
7959
  };
7938
7960
  let G = class extends h {
7939
7961
  constructor() {
@@ -8013,7 +8035,7 @@ var wa = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, hr = (e, t
8013
8035
  };
8014
8036
  let et = class extends h {
8015
8037
  constructor() {
8016
- super(...arguments), this.state = mt, this.isOpen = !1;
8038
+ super(...arguments), this.state = vt, this.isOpen = !1;
8017
8039
  }
8018
8040
  render() {
8019
8041
  return l`
@@ -8403,7 +8425,7 @@ let rt = class extends _ {
8403
8425
  }
8404
8426
  get _accordion() {
8405
8427
  let e = this.parentElement;
8406
- for (; e && !(e instanceof Ie); )
8428
+ for (; e && !(e instanceof Le); )
8407
8429
  e = e.parentElement;
8408
8430
  return e;
8409
8431
  }
@@ -8445,7 +8467,7 @@ var Na = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, xt = (e, t
8445
8467
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8446
8468
  return s && r && Na(t, o, r), r;
8447
8469
  };
8448
- let ze = class extends _ {
8470
+ let Ie = class extends _ {
8449
8471
  constructor() {
8450
8472
  super(...arguments), this.defaultValue = "", this.value = "";
8451
8473
  }
@@ -8478,20 +8500,20 @@ let ze = class extends _ {
8478
8500
  `;
8479
8501
  }
8480
8502
  };
8481
- ze.styles = [er``, c];
8503
+ Ie.styles = [er``, c];
8482
8504
  xt([
8483
8505
  n({ type: String })
8484
- ], ze.prototype, "defaultValue", 2);
8506
+ ], Ie.prototype, "defaultValue", 2);
8485
8507
  xt([
8486
8508
  n({ type: String })
8487
- ], ze.prototype, "value", 2);
8509
+ ], Ie.prototype, "value", 2);
8488
8510
  xt([
8489
8511
  n({ type: Function })
8490
- ], ze.prototype, "onClickCallback", 2);
8491
- ze = xt([
8512
+ ], Ie.prototype, "onClickCallback", 2);
8513
+ Ie = xt([
8492
8514
  d("rtg-accordion-trigger")
8493
- ], ze);
8494
- var Ba = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, vr = (e, t, o, s) => {
8515
+ ], Ie);
8516
+ var Ba = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, mr = (e, t, o, s) => {
8495
8517
  for (var r = s > 1 ? void 0 : s ? Fa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8496
8518
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8497
8519
  return s && r && Ba(t, o, r), r;
@@ -8502,7 +8524,7 @@ let ot = class extends uo {
8502
8524
  }
8503
8525
  get _accordion() {
8504
8526
  let e = this.parentElement;
8505
- for (; e && !(e instanceof Ie); )
8527
+ for (; e && !(e instanceof Le); )
8506
8528
  e = e.parentElement;
8507
8529
  return e;
8508
8530
  }
@@ -8530,23 +8552,23 @@ let ot = class extends uo {
8530
8552
  }
8531
8553
  };
8532
8554
  ot.styles = [er``, c];
8533
- vr([
8555
+ mr([
8534
8556
  n({ type: String })
8535
8557
  ], ot.prototype, "value", 2);
8536
- vr([
8558
+ mr([
8537
8559
  S()
8538
8560
  ], ot.prototype, "selectedValue", 2);
8539
- ot = vr([
8561
+ ot = mr([
8540
8562
  d("rtg-accordion-content")
8541
8563
  ], ot);
8542
- var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}), Va = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
8564
+ var Oe = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))(Oe || {}), Va = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
8543
8565
  for (var r = s > 1 ? void 0 : s ? qa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8544
8566
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8545
8567
  return s && r && Va(t, o, r), r;
8546
8568
  };
8547
- let Ie = class extends _ {
8569
+ let Le = class extends _ {
8548
8570
  constructor() {
8549
- super(...arguments), this.type = $e.MULTIPLE, this.selectedItems = [];
8571
+ super(...arguments), this.type = Oe.MULTIPLE, this.selectedItems = [];
8550
8572
  }
8551
8573
  getAttributesToExclude() {
8552
8574
  return ["variant"];
@@ -8562,15 +8584,15 @@ let Ie = class extends _ {
8562
8584
  setSelectedItems(e) {
8563
8585
  const t = this.selectedItems.indexOf(e);
8564
8586
  if (t > -1)
8565
- if (this.type === $e.SINGLE)
8587
+ if (this.type === Oe.SINGLE)
8566
8588
  this.selectedItems = [];
8567
- else if (this.type === $e.MULTIPLE)
8589
+ else if (this.type === Oe.MULTIPLE)
8568
8590
  this.selectedItems.splice(t, 1);
8569
8591
  else
8570
8592
  throw new Error("Type does not correct");
8571
- else if (this.type === $e.SINGLE)
8593
+ else if (this.type === Oe.SINGLE)
8572
8594
  this.selectedItems[0] = e;
8573
- else if (this.type === $e.MULTIPLE)
8595
+ else if (this.type === Oe.MULTIPLE)
8574
8596
  this.selectedItems.push(e);
8575
8597
  else
8576
8598
  throw new Error("Type does not correct");
@@ -8595,13 +8617,13 @@ let Ie = class extends _ {
8595
8617
  `;
8596
8618
  }
8597
8619
  };
8598
- Ie.styles = [p``, c];
8620
+ Le.styles = [p``, c];
8599
8621
  to([
8600
8622
  n({ type: String })
8601
- ], Ie.prototype, "type", 2);
8602
- Ie = to([
8623
+ ], Le.prototype, "type", 2);
8624
+ Le = to([
8603
8625
  d("rtg-accordion")
8604
- ], Ie);
8626
+ ], Le);
8605
8627
  var Ut = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(Ut || {}), Ua = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, ro = (e, t, o, s) => {
8606
8628
  for (var r = s > 1 ? void 0 : s ? Ga(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8607
8629
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8667,31 +8689,152 @@ var Ya = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, Fe = (e, t
8667
8689
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8668
8690
  return s && r && Ya(t, o, r), r;
8669
8691
  };
8670
- let Y = class extends h {
8692
+ let Q = class extends h {
8671
8693
  constructor() {
8672
8694
  super(...arguments), this.click = () => {
8673
8695
  }, this.disabled = !1, this.isCustomClass = !1, this.variant = "default", this.size = "default";
8674
8696
  }
8675
8697
  render() {
8676
8698
  return l`
8677
- <div
8678
- class="${g(
8679
- Y.buttonVariants({
8680
- variant: this.variant,
8681
- size: this.size,
8682
- className: this.className
8683
- })
8684
- )} ${this.isCustomClass ? "rtg-sample-demo-custom-class" : ""}"
8685
- >
8686
- <div part="tab active">Tab A</div>
8687
- <div class="px-4" part="tab">Tab B</div>
8688
- <div part="tab">Tab C</div>
8699
+ <div class="${this.className}">
8700
+ <rtg-card class="rounded block w-96" data-testid="card-id">
8701
+ <cardheader data-testid="card-header-id">
8702
+ <cardtitle data-testid="card-title-id">
8703
+ <h3 class="text-white font-bold">Payment Method</h3>
8704
+ </cardtitle>
8705
+ <carddescription data-testid="card-description-id">
8706
+ <p class="text-sm text-gray-400 mt-1">
8707
+ Add a new payment method to your account.
8708
+ </p>
8709
+ </carddescription>
8710
+ </cardheader>
8711
+ <cardcontent data-testid="card-content-id">
8712
+ <div class="grid grid-cols-3 gap-3 mt-7">
8713
+ <div
8714
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8715
+ >
8716
+ <span>Card</span>
8717
+ <span>test</span>
8718
+ </div>
8719
+ <div
8720
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8721
+ >
8722
+ <span>Card</span>
8723
+ <span>test</span>
8724
+ </div>
8725
+ <div
8726
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8727
+ >
8728
+ <span>Card</span>
8729
+ <span>test</span>
8730
+ </div>
8731
+ </div>
8732
+ <div class="mt-6">
8733
+ <span class="block text-sm mb-1 font-bold">Name</span>
8734
+ <rtg-input
8735
+ data-testid="input-id"
8736
+ data-testchild="children-id"
8737
+ id=""
8738
+ type="text"
8739
+ placeholder="Enter text"
8740
+ twCLass="px-5 border"
8741
+ ></rtg-input>
8742
+ </div>
8743
+ <div class="mt-4">
8744
+ <span class="block text-sm mb-1 font-bold">Card Number</span>
8745
+ <rtg-input type="text"></rtg-input>
8746
+ </div>
8747
+ <div class="grid grid-cols-3 gap-3 mt-6 mb-6">
8748
+ <div>
8749
+ <span class="block text-sm mb-1 font-bold">Expires</span>
8750
+ <rtg-combo-box
8751
+ label="Month"
8752
+ .items='["next.js", "sveltekit", "nuxt.js", "remix", "astro"]'
8753
+ >
8754
+ <rtg-combo-box-list>
8755
+ <rtg-combo-box-item
8756
+ data-hs-combo-box-value="next.js"
8757
+ tabindex="0"
8758
+ ></rtg-combo-box-item>
8759
+ <rtg-combo-box-item
8760
+ data-hs-combo-box-value="sveltekit"
8761
+ tabindex="1"
8762
+ ></rtg-combo-box-item>
8763
+ <rtg-combo-box-item
8764
+ data-hs-combo-box-value="nuxt.js"
8765
+ tabindex="2"
8766
+ ></rtg-combo-box-item>
8767
+ <rtg-combo-box-item
8768
+ data-hs-combo-box-value="remix"
8769
+ tabindex="3"
8770
+ ></rtg-combo-box-item>
8771
+ <rtg-combo-box-item
8772
+ data-hs-combo-box-value="astro"
8773
+ tabindex="4"
8774
+ ></rtg-combo-box-item>
8775
+ </rtg-combo-box-list>
8776
+ </rtg-combo-box>
8777
+ </div>
8778
+ <div>
8779
+ <span class="block text-sm mb-1 font-bold">Year</span>
8780
+ <rtg-combo-box
8781
+ label="Year"
8782
+ items='["next.js", "sveltekit", "nuxt.js", "remix", "astro"]'
8783
+ >
8784
+ <rtg-combo-box-list>
8785
+ <rtg-combo-box-item
8786
+ data-hs-combo-box-value="next.js"
8787
+ tabindex="0"
8788
+ ></rtg-combo-box-item>
8789
+ <rtg-combo-box-item
8790
+ data-hs-combo-box-value="sveltekit"
8791
+ tabindex="1"
8792
+ ></rtg-combo-box-item>
8793
+ <rtg-combo-box-item
8794
+ data-hs-combo-box-value="nuxt.js"
8795
+ tabindex="2"
8796
+ ></rtg-combo-box-item>
8797
+ <rtg-combo-box-item
8798
+ data-hs-combo-box-value="remix"
8799
+ tabindex="3"
8800
+ ></rtg-combo-box-item>
8801
+ <rtg-combo-box-item
8802
+ data-hs-combo-box-value="astro"
8803
+ tabindex="4"
8804
+ ></rtg-combo-box-item>
8805
+ </rtg-combo-box-list>
8806
+ </rtg-combo-box>
8807
+ </div>
8808
+ <div>
8809
+ <span class="block text-sm mb-1 font-bold">CVC</span>
8810
+ <rtg-input
8811
+ data-testid="input-id"
8812
+ data-testchild="children-id"
8813
+ id=""
8814
+ type="text"
8815
+ placeholder="Enter text"
8816
+ ></rtg-input>
8817
+ </div>
8818
+ </div>
8819
+ </cardcontent>
8820
+ <cardfooter data-testid="card-footer-id">
8821
+ <rtg-button
8822
+ class="w-full text-black bg-white py-2 rounded-lg px-2"
8823
+ method="post"
8824
+ data-testid="btn-id"
8825
+ data-testchild="children-id"
8826
+ variant="default"
8827
+ size="default"
8828
+ >Continue</rtg-button
8829
+ >
8830
+ </cardfooter>
8831
+ </rtg-card>
8689
8832
  </div>
8690
8833
  `;
8691
8834
  }
8692
8835
  };
8693
- Y.buttonVariants = Xa;
8694
- Y.styles = [
8836
+ Q.buttonVariants = Xa;
8837
+ Q.styles = [
8695
8838
  c,
8696
8839
  p`
8697
8840
  :host {
@@ -8710,22 +8853,22 @@ Y.styles = [
8710
8853
  ];
8711
8854
  Fe([
8712
8855
  n({ type: Function })
8713
- ], Y.prototype, "click", 2);
8856
+ ], Q.prototype, "click", 2);
8714
8857
  Fe([
8715
8858
  n({ type: Boolean })
8716
- ], Y.prototype, "disabled", 2);
8859
+ ], Q.prototype, "disabled", 2);
8717
8860
  Fe([
8718
8861
  n({ type: String })
8719
- ], Y.prototype, "isCustomClass", 2);
8862
+ ], Q.prototype, "isCustomClass", 2);
8720
8863
  Fe([
8721
8864
  n({ type: String })
8722
- ], Y.prototype, "variant", 2);
8865
+ ], Q.prototype, "variant", 2);
8723
8866
  Fe([
8724
8867
  n({ type: String })
8725
- ], Y.prototype, "size", 2);
8726
- Y = Fe([
8868
+ ], Q.prototype, "size", 2);
8869
+ Q = Fe([
8727
8870
  d("rtg-sample-demo")
8728
- ], Y);
8871
+ ], Q);
8729
8872
  var Ha = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Za = (e, t, o, s) => {
8730
8873
  for (var r = s > 1 ? void 0 : s ? Wa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8731
8874
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8737,7 +8880,7 @@ let Gt = class extends _ {
8737
8880
  }
8738
8881
  get _collapsible() {
8739
8882
  let e = this.parentElement;
8740
- for (; e && !(e instanceof Le); )
8883
+ for (; e && !(e instanceof Me); )
8741
8884
  e = e.parentElement;
8742
8885
  return e;
8743
8886
  }
@@ -8784,12 +8927,12 @@ Xt.styles = [p``, c];
8784
8927
  Xt = en([
8785
8928
  d("rtg-collapsible-content")
8786
8929
  ], Xt);
8787
- var tn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, mr = (e, t, o, s) => {
8930
+ var tn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, vr = (e, t, o, s) => {
8788
8931
  for (var r = s > 1 ? void 0 : s ? rn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8789
8932
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8790
8933
  return s && r && tn(t, o, r), r;
8791
8934
  };
8792
- let Le = class extends _ {
8935
+ let Me = class extends _ {
8793
8936
  constructor() {
8794
8937
  super(...arguments), this.open = !1, this.onOpenChange = () => {
8795
8938
  };
@@ -8807,16 +8950,16 @@ let Le = class extends _ {
8807
8950
  `;
8808
8951
  }
8809
8952
  };
8810
- Le.styles = [p``, c];
8811
- mr([
8953
+ Me.styles = [p``, c];
8954
+ vr([
8812
8955
  n({ type: Boolean })
8813
- ], Le.prototype, "open", 2);
8814
- mr([
8956
+ ], Me.prototype, "open", 2);
8957
+ vr([
8815
8958
  n({ type: Function })
8816
- ], Le.prototype, "onOpenChange", 2);
8817
- Le = mr([
8959
+ ], Me.prototype, "onOpenChange", 2);
8960
+ Me = vr([
8818
8961
  d("rtg-collapsible")
8819
- ], Le);
8962
+ ], Me);
8820
8963
  const on = "inline-flex items-center gap-1.5", sn = "transition-colors hover:text-foreground", an = "font-normal text-foreground", nn = "[&>svg]:size-3.5", ln = "flex h-9 w-9 items-center justify-center", dn = "flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5";
8821
8964
  var cn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, un = (e, t, o, s) => {
8822
8965
  for (var r = s > 1 ? void 0 : s ? pn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
@@ -8883,8 +9026,8 @@ Kt.styles = [p``, c];
8883
9026
  Kt = fn([
8884
9027
  d("rtg-bread-crumb-item")
8885
9028
  ], Kt);
8886
- var bn = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, mn = (e, t, o, s) => {
8887
- for (var r = s > 1 ? void 0 : s ? vn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
9029
+ var bn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, vn = (e, t, o, s) => {
9030
+ for (var r = s > 1 ? void 0 : s ? mn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8888
9031
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8889
9032
  return s && r && bn(t, o, r), r;
8890
9033
  };
@@ -8906,7 +9049,7 @@ let Ht = class extends _ {
8906
9049
  }
8907
9050
  };
8908
9051
  Ht.styles = [p``, c];
8909
- Ht = mn([
9052
+ Ht = vn([
8910
9053
  d("rtg-bread-crumb-list")
8911
9054
  ], Ht);
8912
9055
  var wn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, xn = (e, t, o, s) => {
@@ -9047,12 +9190,12 @@ let E = class extends _ {
9047
9190
  super(...arguments), this.click = () => {
9048
9191
  }, this.clientName = "", this.username = "", this.pinLength = 6, this.onChange = (e, t) => {
9049
9192
  }, this.pin = new Array(this.pinLength), this.inputElement = [
9050
- _e(),
9051
- _e(),
9052
- _e(),
9053
- _e(),
9054
- _e(),
9055
- _e()
9193
+ $e(),
9194
+ $e(),
9195
+ $e(),
9196
+ $e(),
9197
+ $e(),
9198
+ $e()
9056
9199
  ];
9057
9200
  }
9058
9201
  getAttributesToExclude() {
@@ -9258,10 +9401,10 @@ ft = ao([
9258
9401
  d("input-otp-slot")
9259
9402
  ], ft);
9260
9403
  export {
9261
- Se as Alert,
9404
+ Ee as Alert,
9262
9405
  Bt as AlertDescription,
9263
9406
  Rt as AlertTitle,
9264
- Ee as Badge,
9407
+ je as Badge,
9265
9408
  z as Button,
9266
9409
  Tt as Card,
9267
9410
  Mt as CardContent,
@@ -9269,17 +9412,17 @@ export {
9269
9412
  It as CardFooter,
9270
9413
  zt as CardHeader,
9271
9414
  At as CardTitle,
9272
- te as Checkbox,
9415
+ re as Checkbox,
9273
9416
  R as ComboBox,
9274
9417
  Qe as ContextMenu,
9275
9418
  M as ContextMenuCheckboxItem,
9276
- Ae as ContextMenuContent,
9419
+ ze as ContextMenuContent,
9277
9420
  J as ContextMenuGroup,
9278
9421
  U as ContextMenuItem,
9279
9422
  T as ContextMenuRadioItem,
9280
9423
  ae as ContextMenuSeparator,
9281
9424
  Ft as ContextMenuShortcut,
9282
- Ce as Dialog,
9425
+ Pe as Dialog,
9283
9426
  St as DialogClose,
9284
9427
  Ye as DialogContent,
9285
9428
  Et as DialogFooter,
@@ -9287,13 +9430,13 @@ export {
9287
9430
  jt as DialogOverlay,
9288
9431
  Je as DropdownMenu,
9289
9432
  L as DropdownMenuCheckboxItem,
9290
- De as DropdownMenuContent,
9433
+ Ae as DropdownMenuContent,
9291
9434
  Z as DropdownMenuGroup,
9292
9435
  V as DropdownMenuItem,
9293
9436
  I as DropdownMenuRadioItem,
9294
9437
  ie as DropdownMenuSeparator,
9295
- re as Input,
9296
- ke as Popover,
9438
+ H as Input,
9439
+ Se as Popover,
9297
9440
  We as PopoverContent,
9298
9441
  Nt as PopoverTrigger,
9299
9442
  qt as RadioGroup,