revotech-ui-kit 0.0.22 → 0.0.24

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,4 +1,4 @@
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";
@@ -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) => 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) => (
@@ -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, 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"], Y = () => [Oe, f];
257
257
  return {
258
258
  cacheSize: 500,
259
259
  separator: ":",
260
260
  theme: {
261
261
  colors: [Ge],
262
- spacing: [H, Q],
262
+ spacing: [K, Q],
263
263
  blur: ["none", "", ee, f],
264
- brightness: K(),
264
+ brightness: Y(),
265
265
  borderColor: [e],
266
266
  borderRadius: ["none", "", "full", ee, 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
275
  gradientColorStopPositions: [Io, Q],
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
  },
@@ -999,7 +999,7 @@ const y = (e) => {
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, Q]
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, Q]
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, Q]
1601
1601
  }],
1602
1602
  /**
1603
1603
  * Ring Offset Color
@@ -1670,7 +1670,7 @@ const y = (e) => {
1670
1670
  * @see https://tailwindcss.com/docs/contrast
1671
1671
  */
1672
1672
  contrast: [{
1673
- contrast: [m]
1673
+ contrast: [v]
1674
1674
  }],
1675
1675
  /**
1676
1676
  * Drop Shadow
@@ -1691,7 +1691,7 @@ const y = (e) => {
1691
1691
  * @see https://tailwindcss.com/docs/hue-rotate
1692
1692
  */
1693
1693
  "hue-rotate": [{
1694
- "hue-rotate": [v]
1694
+ "hue-rotate": [m]
1695
1695
  }],
1696
1696
  /**
1697
1697
  * Invert
@@ -1741,7 +1741,7 @@ const y = (e) => {
1741
1741
  * @see https://tailwindcss.com/docs/backdrop-contrast
1742
1742
  */
1743
1743
  "backdrop-contrast": [{
1744
- "backdrop-contrast": [m]
1744
+ "backdrop-contrast": [v]
1745
1745
  }],
1746
1746
  /**
1747
1747
  * Backdrop Grayscale
@@ -1755,7 +1755,7 @@ const y = (e) => {
1755
1755
  * @see https://tailwindcss.com/docs/backdrop-hue-rotate
1756
1756
  */
1757
1757
  "backdrop-hue-rotate": [{
1758
- "backdrop-hue-rotate": [v]
1758
+ "backdrop-hue-rotate": [m]
1759
1759
  }],
1760
1760
  /**
1761
1761
  * Backdrop Invert
@@ -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, Q, 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
  {
@@ -5501,12 +5501,12 @@ 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";
5509
+ const vs = "open", ws = "closed";
5510
5510
  let Ce = class extends h {
5511
5511
  constructor() {
5512
5512
  super(...arguments), this.state = ws;
@@ -5529,7 +5529,7 @@ 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
  `;
@@ -5736,7 +5736,7 @@ var js = Object.defineProperty, Ds = Object.getOwnPropertyDescriptor, bt = (e, t
5736
5736
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
5737
5737
  return s && r && js(t, o, r), r;
5738
5738
  };
5739
- let W = class extends h {
5739
+ let H = class extends h {
5740
5740
  constructor() {
5741
5741
  super(...arguments), this.heading = "", this._id = "", this._hidden = "";
5742
5742
  }
@@ -5745,7 +5745,7 @@ let W = class extends h {
5745
5745
  if (this._id !== "")
5746
5746
  return this._id;
5747
5747
  const e = (o = (t = this.parentElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : o.querySelector("div[rtgcmd-list]");
5748
- return e ? this._id = `${e.getAttribute("id")}g${W._counter++}` : this._id = `rtgcmdrxlxg${W._counter++}`, this._id;
5748
+ return e ? this._id = `${e.getAttribute("id")}g${H._counter++}` : this._id = `rtgcmdrxlxg${H._counter++}`, this._id;
5749
5749
  }
5750
5750
  render() {
5751
5751
  const e = "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";
@@ -5774,20 +5774,20 @@ let W = class extends h {
5774
5774
  `}`;
5775
5775
  }
5776
5776
  };
5777
- W._counter = 0;
5778
- W.styles = [p``, c];
5777
+ H._counter = 0;
5778
+ H.styles = [p``, c];
5779
5779
  bt([
5780
5780
  n({ type: String })
5781
- ], W.prototype, "heading", 2);
5781
+ ], H.prototype, "heading", 2);
5782
5782
  bt([
5783
5783
  n({ attribute: "id", type: String })
5784
- ], W.prototype, "_id", 2);
5784
+ ], H.prototype, "_id", 2);
5785
5785
  bt([
5786
5786
  n({ attribute: "aria-hidden", type: String })
5787
- ], W.prototype, "_hidden", 2);
5788
- W = bt([
5787
+ ], H.prototype, "_hidden", 2);
5788
+ H = bt([
5789
5789
  d("rtg-command-group")
5790
- ], W);
5790
+ ], H);
5791
5791
  var As = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, sr = (e, t, o, s) => {
5792
5792
  for (var r = s > 1 ? void 0 : s ? zs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
5793
5793
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -5810,16 +5810,16 @@ let He = class extends h {
5810
5810
  "rtg-command-list > rtg-command-group"
5811
5811
  );
5812
5812
  o && o.forEach((r) => {
5813
- var m, b;
5813
+ var v, b;
5814
5814
  let i = !0;
5815
5815
  const a = r.querySelectorAll("rtg-command-item");
5816
- a && a.forEach((v) => {
5817
- ((v == null ? void 0 : v.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, v.setAttribute("aria-hidden", "false")) : v.setAttribute("aria-hidden", "true");
5816
+ a && a.forEach((m) => {
5817
+ ((m == null ? void 0 : m.value) || "").toLowerCase().includes(this._value.toLowerCase()) ? (i = !1, t = !1, m.setAttribute("aria-hidden", "false")) : m.setAttribute("aria-hidden", "true");
5818
5818
  }), r.setAttribute("aria-hidden", i ? "true" : "false");
5819
5819
  let u = r.previousElementSibling;
5820
5820
  u && u.setAttribute(
5821
5821
  "aria-hidden",
5822
- i || ((m = u.previousElementSibling) == null ? void 0 : m.getAttribute(
5822
+ i || ((v = u.previousElementSibling) == null ? void 0 : v.getAttribute(
5823
5823
  "aria-hidden"
5824
5824
  )) === "true" ? "true" : "false"
5825
5825
  ), u = r.nextElementSibling, u && u.setAttribute(
@@ -6327,10 +6327,10 @@ Rt.styles = p`
6327
6327
  Rt = bi([
6328
6328
  d("rtg-alert-title")
6329
6329
  ], 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--)
6330
+ var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, wi = (e, t, o, s) => {
6331
+ for (var r = s > 1 ? void 0 : s ? vi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6332
6332
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6333
- return s && r && vi(t, o, r), r;
6333
+ return s && r && mi(t, o, r), r;
6334
6334
  };
6335
6335
  let Bt = class extends h {
6336
6336
  render() {
@@ -6451,7 +6451,7 @@ Ee = Xr([
6451
6451
  d("rtg-badge")
6452
6452
  ], Ee);
6453
6453
  function Yr() {
6454
- return ve` <svg
6454
+ return me` <svg
6455
6455
  class="shrink-0 size-3.5 text-gray-500 dark:text-neutral-500"
6456
6456
  xmlns="http://www.w3.org/2000/svg"
6457
6457
  width="24"
@@ -6469,7 +6469,7 @@ function Yr() {
6469
6469
  `;
6470
6470
  }
6471
6471
  function Kr() {
6472
- return ve`
6472
+ return me`
6473
6473
  <svg
6474
6474
  class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
6475
6475
  xmlns="http://www.w3.org/2000/svg"
@@ -6487,7 +6487,7 @@ function Kr() {
6487
6487
  `;
6488
6488
  }
6489
6489
  function Hr() {
6490
- return ve` <svg
6490
+ return me` <svg
6491
6491
  xmlns="http://www.w3.org/2000/svg"
6492
6492
  width = "24"
6493
6493
  height = "24"
@@ -6504,7 +6504,7 @@ function Hr() {
6504
6504
  `;
6505
6505
  }
6506
6506
  function Wr() {
6507
- return ve` <svg
6507
+ return me` <svg
6508
6508
  xmlns="http://www.w3.org/2000/svg"
6509
6509
  width="24"
6510
6510
  height="24"
@@ -6521,11 +6521,11 @@ function Wr() {
6521
6521
  `;
6522
6522
  }
6523
6523
  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>
6524
+ 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
6525
  `;
6526
6526
  }
6527
6527
  function Pi() {
6528
- return ve` <svg
6528
+ return me` <svg
6529
6529
  xmlns="http://www.w3.org/2000/svg"
6530
6530
  width="24"
6531
6531
  height="24"
@@ -6542,9 +6542,9 @@ function Pi() {
6542
6542
  `;
6543
6543
  }
6544
6544
  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 >`;
6545
+ 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
6546
  }
6547
- var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, vt = (e, t, o, s) => {
6547
+ var Si = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, mt = (e, t, o, s) => {
6548
6548
  for (var r = s > 1 ? void 0 : s ? Ei(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6549
6549
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
6550
6550
  return s && r && Si(t, o, r), r;
@@ -6577,16 +6577,16 @@ let je = class extends h {
6577
6577
  }
6578
6578
  };
6579
6579
  je.styles = [p``, c];
6580
- vt([
6580
+ mt([
6581
6581
  n({ type: String })
6582
6582
  ], je.prototype, "value", 2);
6583
- vt([
6583
+ mt([
6584
6584
  n({ type: Function })
6585
6585
  ], je.prototype, "handleClick", 2);
6586
- vt([
6586
+ mt([
6587
6587
  n({ type: Function })
6588
6588
  ], je.prototype, "handleKeyDown", 2);
6589
- je = vt([
6589
+ je = mt([
6590
6590
  d("rtg-combo-box-input")
6591
6591
  ], je);
6592
6592
  var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, pe = (e, t, o, s) => {
@@ -6663,7 +6663,7 @@ pe([
6663
6663
  F = pe([
6664
6664
  d("rtg-combo-box-item")
6665
6665
  ], F);
6666
- const Ai = "open", mt = "closed";
6666
+ const Ai = "open", vt = "closed";
6667
6667
  var zi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, lr = (e, t, o, s) => {
6668
6668
  for (var r = s > 1 ? void 0 : s ? Ii(t, o) : t, i = e.length - 1, a; i >= 0; i--)
6669
6669
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -6671,7 +6671,7 @@ var zi = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, lr = (e, t
6671
6671
  };
6672
6672
  let Ze = class extends h {
6673
6673
  constructor() {
6674
- super(...arguments), this.state = mt, this.isOpen = !1;
6674
+ super(...arguments), this.state = vt, this.isOpen = !1;
6675
6675
  }
6676
6676
  get _popover() {
6677
6677
  let e = this.parentElement;
@@ -6724,18 +6724,34 @@ var Li = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ue = (e, t
6724
6724
  };
6725
6725
  let R = class extends h {
6726
6726
  constructor() {
6727
- super(...arguments), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.label = "Select an item", this.items = [];
6727
+ super(...arguments), this.isOpen = !1, this.selectedValue = "", this.searchTerm = "", this.focusedIndex = -1, this.filteredItems = [], this.label = "Select an item", this.items = [], this.handleClickOutside = (e) => {
6728
+ var r, i;
6729
+ const t = e.target, o = (r = this.shadowRoot) == null ? void 0 : r.querySelector(
6730
+ "[data-hs-combo-box]"
6731
+ );
6732
+ if (console.log("target", t), console.log("this.shadowRoot", this.shadowRoot), !this.shadowRoot || !(t instanceof HTMLElement)) {
6733
+ console.log("Invalid target or shadow root");
6734
+ return;
6735
+ }
6736
+ const s = (i = t.shadowRoot) == null ? void 0 : i.firstElementChild;
6737
+ if (!s) {
6738
+ this.isOpen = !1;
6739
+ return;
6740
+ }
6741
+ (!o || !o.contains(s)) && console.log(
6742
+ "!dropdownContainer || !dropdownContainer.contains(firstChild)"
6743
+ );
6744
+ };
6728
6745
  }
6729
6746
  firstUpdated(e) {
6730
- console.log("this. items firstUpdated", this.items), this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6747
+ this.items && this.items.length > 0 && (this.filteredItems = this.items.filter(
6731
6748
  (t) => t.toLowerCase().includes(this.searchTerm)
6732
6749
  ));
6733
6750
  }
6734
6751
  toggleDropdown() {
6735
- this.isOpen = !this.isOpen, this.focusedIndex = -1, console.log("toggleDropdown", this.isOpen);
6752
+ this.isOpen = !this.isOpen, this.focusedIndex = -1;
6736
6753
  }
6737
6754
  selectItem(e) {
6738
- console.log("selectItem");
6739
6755
  const t = e.target;
6740
6756
  if (t instanceof HTMLElement) {
6741
6757
  const o = t.closest(
@@ -6746,15 +6762,13 @@ let R = class extends h {
6746
6762
  console.log("Event target is not an HTMLElement");
6747
6763
  }
6748
6764
  handleInputClick() {
6749
- console.log("-----handleInputClick------"), this.toggleDropdown();
6765
+ this.toggleDropdown();
6750
6766
  }
6751
6767
  handleSearch(e) {
6752
- console.log("handleSearch");
6753
6768
  const t = e.target;
6754
6769
  this.searchTerm = t.value, this.filteredItems = this.items.filter((o) => o.toLowerCase().includes(this.searchTerm.toLowerCase()));
6755
6770
  }
6756
6771
  handleKeyDown(e) {
6757
- console.log("handleKeyDown");
6758
6772
  const t = this.filteredItems.length;
6759
6773
  switch (e.key) {
6760
6774
  case "ArrowDown":
@@ -6769,45 +6783,50 @@ let R = class extends h {
6769
6783
  }
6770
6784
  }
6771
6785
  handleMouseOver(e, t) {
6772
- console.log("handleMouseOver"), e.preventDefault(), this.focusedIndex = t;
6786
+ e.preventDefault(), this.focusedIndex = t;
6773
6787
  }
6774
6788
  connectedCallback() {
6775
6789
  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);
6790
+ super.connectedCallback(), document.addEventListener("click", this.handleClickOutside.bind(this)), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.addEventListener("focus", () => {
6791
+ this.isOpen = !0;
6778
6792
  }), (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));
6793
+ this.isOpen && (this.isOpen = !1);
6780
6794
  });
6781
6795
  }
6782
6796
  disconnectedCallback() {
6783
6797
  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", () => {
6798
+ super.disconnectedCallback(), document.removeEventListener("click", this.handleClickOutside), (t = (e = this.shadowRoot) == null ? void 0 : e.querySelector("input")) == null || t.removeEventListener("focus", () => {
6785
6799
  }), (s = (o = this.shadowRoot) == null ? void 0 : o.querySelector("input")) == null || s.removeEventListener("blur", () => {
6786
6800
  });
6787
6801
  }
6788
- handleClickOutside(e) {
6789
- console.log("handleClickOutside");
6790
- }
6791
6802
  updateFocus() {
6792
- if (console.log("updateFocus"), !this.shadowRoot)
6803
+ if (!this.shadowRoot)
6793
6804
  return;
6794
6805
  this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((t, o) => {
6795
6806
  o === this.focusedIndex ? t.classList.add("bg-gray-100") : t.classList.remove("bg-gray-100");
6796
6807
  });
6797
6808
  }
6798
6809
  render() {
6799
- return console.log("render ", this.isOpen), l`
6810
+ return l`
6800
6811
  <div class="relative" data-hs-combo-box="">
6801
- isopen:${this.isOpen}
6802
6812
  <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}" />
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
+ />
6811
6830
  <div
6812
6831
  class="absolute top-1/2 end-3 -translate-y-1/2 cursor-pointer"
6813
6832
  aria-expanded=${this.isOpen}
@@ -6898,7 +6917,7 @@ var Ti = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, dr = (e, t
6898
6917
  };
6899
6918
  let De = class extends h {
6900
6919
  constructor() {
6901
- super(...arguments), this.state = mt, this.isOpen = !1;
6920
+ super(...arguments), this.state = vt, this.isOpen = !1;
6902
6921
  }
6903
6922
  get _dropdownMenu() {
6904
6923
  let e = this.parentElement;
@@ -7006,7 +7025,7 @@ it([
7006
7025
  V = it([
7007
7026
  d("rtg-dropdown-menu-item")
7008
7027
  ], V);
7009
- var Fi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, me = (e, t, o, s) => {
7028
+ var Fi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, ve = (e, t, o, s) => {
7010
7029
  for (var r = s > 1 ? void 0 : s ? Vi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7011
7030
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7012
7031
  return s && r && Fi(t, o, r), r;
@@ -7077,25 +7096,25 @@ I.styles = [
7077
7096
  `,
7078
7097
  c
7079
7098
  ];
7080
- me([
7099
+ ve([
7081
7100
  n({ type: String })
7082
7101
  ], I.prototype, "_id", 2);
7083
- me([
7102
+ ve([
7084
7103
  n({ attribute: "aria-hidden", type: String })
7085
7104
  ], I.prototype, "_hidden", 2);
7086
- me([
7105
+ ve([
7087
7106
  n({ attribute: "data-value", type: String })
7088
7107
  ], I.prototype, "value", 1);
7089
- me([
7108
+ ve([
7090
7109
  n({ type: Boolean })
7091
7110
  ], I.prototype, "selected", 2);
7092
- me([
7111
+ ve([
7093
7112
  n({ type: Boolean })
7094
7113
  ], I.prototype, "checked", 2);
7095
- me([
7114
+ ve([
7096
7115
  n({ type: Boolean })
7097
7116
  ], I.prototype, "disabled", 2);
7098
- I = me([
7117
+ I = ve([
7099
7118
  d("rtg-dropdown-menu-radio-item")
7100
7119
  ], I);
7101
7120
  var qi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, cr = (e, t, o, s) => {
@@ -7244,7 +7263,7 @@ var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, wt = (e, t
7244
7263
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7245
7264
  return s && r && Yi(t, o, r), r;
7246
7265
  };
7247
- let Z = class extends h {
7266
+ let W = class extends h {
7248
7267
  constructor() {
7249
7268
  super(...arguments), this.heading = "", this._id = "", this._hidden = "";
7250
7269
  }
@@ -7253,7 +7272,7 @@ let Z = class extends h {
7253
7272
  if (this._id !== "")
7254
7273
  return this._id;
7255
7274
  const e = (o = (t = this.parentElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : o.querySelector("div[rtgcmd-list]");
7256
- return e ? this._id = `${e.getAttribute("id")}g${Z._counter++}` : this._id = `rtgcmdrxlxg${Z._counter++}`, this._id;
7275
+ return e ? this._id = `${e.getAttribute("id")}g${W._counter++}` : this._id = `rtgcmdrxlxg${W._counter++}`, this._id;
7257
7276
  }
7258
7277
  render() {
7259
7278
  const e = "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";
@@ -7282,20 +7301,20 @@ let Z = class extends h {
7282
7301
  `}`;
7283
7302
  }
7284
7303
  };
7285
- Z._counter = 0;
7286
- Z.styles = [p``, c];
7304
+ W._counter = 0;
7305
+ W.styles = [p``, c];
7287
7306
  wt([
7288
7307
  n({ type: String })
7289
- ], Z.prototype, "heading", 2);
7308
+ ], W.prototype, "heading", 2);
7290
7309
  wt([
7291
7310
  n({ attribute: "id", type: String })
7292
- ], Z.prototype, "_id", 2);
7311
+ ], W.prototype, "_id", 2);
7293
7312
  wt([
7294
7313
  n({ attribute: "aria-hidden", type: String })
7295
- ], Z.prototype, "_hidden", 2);
7296
- Z = wt([
7314
+ ], W.prototype, "_hidden", 2);
7315
+ W = wt([
7297
7316
  d("rtg-dropdown-menu-group")
7298
- ], Z);
7317
+ ], W);
7299
7318
  var Hi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, Zr = (e, t, o, s) => {
7300
7319
  for (var r = s > 1 ? void 0 : s ? Wi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7301
7320
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -7446,7 +7465,7 @@ var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, pr = (e, t
7446
7465
  };
7447
7466
  let Ae = class extends h {
7448
7467
  constructor() {
7449
- super(...arguments), this.state = mt, this.isOpen = !1;
7468
+ super(...arguments), this.state = vt, this.isOpen = !1;
7450
7469
  }
7451
7470
  get _contextMenu() {
7452
7471
  let e = this.parentElement;
@@ -7598,7 +7617,7 @@ var sa = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, yt = (e, t
7598
7617
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7599
7618
  return s && r && sa(t, o, r), r;
7600
7619
  };
7601
- let J = class extends h {
7620
+ let Z = class extends h {
7602
7621
  constructor() {
7603
7622
  super(...arguments), this.heading = "", this._id = "", this._hidden = "";
7604
7623
  }
@@ -7607,7 +7626,7 @@ let J = class extends h {
7607
7626
  if (this._id !== "")
7608
7627
  return this._id;
7609
7628
  const e = (o = (t = this.parentElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : o.querySelector("div[rtgcmd-list]");
7610
- return e ? this._id = `${e.getAttribute("id")}g${J._counter++}` : this._id = `rtgcmdrxlxg${J._counter++}`, this._id;
7629
+ return e ? this._id = `${e.getAttribute("id")}g${Z._counter++}` : this._id = `rtgcmdrxlxg${Z._counter++}`, this._id;
7611
7630
  }
7612
7631
  render() {
7613
7632
  const e = "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";
@@ -7636,20 +7655,20 @@ let J = class extends h {
7636
7655
  `}`;
7637
7656
  }
7638
7657
  };
7639
- J._counter = 0;
7640
- J.styles = [p``, c];
7658
+ Z._counter = 0;
7659
+ Z.styles = [p``, c];
7641
7660
  yt([
7642
7661
  n({ type: String })
7643
- ], J.prototype, "heading", 2);
7662
+ ], Z.prototype, "heading", 2);
7644
7663
  yt([
7645
7664
  n({ attribute: "id", type: String })
7646
- ], J.prototype, "_id", 2);
7665
+ ], Z.prototype, "_id", 2);
7647
7666
  yt([
7648
7667
  n({ attribute: "aria-hidden", type: String })
7649
- ], J.prototype, "_hidden", 2);
7650
- J = yt([
7668
+ ], Z.prototype, "_hidden", 2);
7669
+ Z = yt([
7651
7670
  d("rtg-context-menu-group")
7652
- ], J);
7671
+ ], Z);
7653
7672
  var aa = Object.defineProperty, na = Object.getOwnPropertyDescriptor, at = (e, t, o, s) => {
7654
7673
  for (var r = s > 1 ? void 0 : s ? na(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7655
7674
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -7930,10 +7949,10 @@ eo([
7930
7949
  Qe = eo([
7931
7950
  d("rtg-context-menu")
7932
7951
  ], 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--)
7952
+ var ma = Object.defineProperty, va = Object.getOwnPropertyDescriptor, he = (e, t, o, s) => {
7953
+ for (var r = s > 1 ? void 0 : s ? va(t, o) : t, i = e.length - 1, a; i >= 0; i--)
7935
7954
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
7936
- return s && r && va(t, o, r), r;
7955
+ return s && r && ma(t, o, r), r;
7937
7956
  };
7938
7957
  let G = class extends h {
7939
7958
  constructor() {
@@ -8013,7 +8032,7 @@ var wa = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, hr = (e, t
8013
8032
  };
8014
8033
  let et = class extends h {
8015
8034
  constructor() {
8016
- super(...arguments), this.state = mt, this.isOpen = !1;
8035
+ super(...arguments), this.state = vt, this.isOpen = !1;
8017
8036
  }
8018
8037
  render() {
8019
8038
  return l`
@@ -8491,7 +8510,7 @@ xt([
8491
8510
  ze = xt([
8492
8511
  d("rtg-accordion-trigger")
8493
8512
  ], ze);
8494
- var Ba = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, vr = (e, t, o, s) => {
8513
+ var Ba = Object.defineProperty, Fa = Object.getOwnPropertyDescriptor, mr = (e, t, o, s) => {
8495
8514
  for (var r = s > 1 ? void 0 : s ? Fa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8496
8515
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8497
8516
  return s && r && Ba(t, o, r), r;
@@ -8530,13 +8549,13 @@ let ot = class extends uo {
8530
8549
  }
8531
8550
  };
8532
8551
  ot.styles = [er``, c];
8533
- vr([
8552
+ mr([
8534
8553
  n({ type: String })
8535
8554
  ], ot.prototype, "value", 2);
8536
- vr([
8555
+ mr([
8537
8556
  S()
8538
8557
  ], ot.prototype, "selectedValue", 2);
8539
- ot = vr([
8558
+ ot = mr([
8540
8559
  d("rtg-accordion-content")
8541
8560
  ], ot);
8542
8561
  var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}), Va = Object.defineProperty, qa = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
@@ -8667,31 +8686,149 @@ var Ya = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, Fe = (e, t
8667
8686
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8668
8687
  return s && r && Ya(t, o, r), r;
8669
8688
  };
8670
- let Y = class extends h {
8689
+ let J = class extends h {
8671
8690
  constructor() {
8672
8691
  super(...arguments), this.click = () => {
8673
8692
  }, this.disabled = !1, this.isCustomClass = !1, this.variant = "default", this.size = "default";
8674
8693
  }
8675
8694
  render() {
8676
8695
  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>
8689
- </div>
8696
+ <rtg-card class="rounded block w-96" data-testid="card-id">
8697
+ <cardheader data-testid="card-header-id">
8698
+ <cardtitle data-testid="card-title-id">
8699
+ <h3 class="text-white font-bold">Payment Method</h3>
8700
+ </cardtitle>
8701
+ <carddescription data-testid="card-description-id">
8702
+ <p class="text-sm text-gray-400 mt-1">
8703
+ Add a new payment method to your account.
8704
+ </p>
8705
+ </carddescription>
8706
+ </cardheader>
8707
+ <cardcontent data-testid="card-content-id">
8708
+ <div class="grid grid-cols-3 gap-3 mt-7">
8709
+ <div
8710
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8711
+ >
8712
+ <span>Card</span>
8713
+ <span>test</span>
8714
+ </div>
8715
+ <div
8716
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8717
+ >
8718
+ <span>Card</span>
8719
+ <span>test</span>
8720
+ </div>
8721
+ <div
8722
+ class="flex flex-col border-2 border-white rounded-lg p-4 text-center"
8723
+ >
8724
+ <span>Card</span>
8725
+ <span>test</span>
8726
+ </div>
8727
+ </div>
8728
+ <div class="mt-6">
8729
+ <span class="block text-sm mb-1 font-bold">Name</span>
8730
+ <rtg-input
8731
+ data-testid="input-id"
8732
+ data-testchild="children-id"
8733
+ id=""
8734
+ type="text"
8735
+ placeholder="Enter text"
8736
+ ></rtg-input>
8737
+ </div>
8738
+ <div class="mt-4">
8739
+ <span class="block text-sm mb-1 font-bold">Card Number</span>
8740
+ <rtg-input type="text"></rtg-input>
8741
+ </div>
8742
+ <div class="grid grid-cols-3 gap-3 mt-6 mb-6">
8743
+ <div>
8744
+ <span class="block text-sm mb-1 font-bold">Expires</span>
8745
+ <rtg-combo-box
8746
+ label="Month"
8747
+ .items='["next.js", "sveltekit", "nuxt.js", "remix", "astro"]'
8748
+ >
8749
+ <rtg-combo-box-list>
8750
+ <rtg-combo-box-item
8751
+ data-hs-combo-box-value="next.js"
8752
+ tabindex="0"
8753
+ ></rtg-combo-box-item>
8754
+ <rtg-combo-box-item
8755
+ data-hs-combo-box-value="sveltekit"
8756
+ tabindex="1"
8757
+ ></rtg-combo-box-item>
8758
+ <rtg-combo-box-item
8759
+ data-hs-combo-box-value="nuxt.js"
8760
+ tabindex="2"
8761
+ ></rtg-combo-box-item>
8762
+ <rtg-combo-box-item
8763
+ data-hs-combo-box-value="remix"
8764
+ tabindex="3"
8765
+ ></rtg-combo-box-item>
8766
+ <rtg-combo-box-item
8767
+ data-hs-combo-box-value="astro"
8768
+ tabindex="4"
8769
+ ></rtg-combo-box-item>
8770
+ </rtg-combo-box-list>
8771
+ </rtg-combo-box>
8772
+ </div>
8773
+ <div>
8774
+ <span class="block text-sm mb-1 font-bold">Year</span>
8775
+ <rtg-combo-box
8776
+ label="Year"
8777
+ items='["next.js", "sveltekit", "nuxt.js", "remix", "astro"]'
8778
+ >
8779
+ <rtg-combo-box-list>
8780
+ <rtg-combo-box-item
8781
+ data-hs-combo-box-value="next.js"
8782
+ tabindex="0"
8783
+ ></rtg-combo-box-item>
8784
+ <rtg-combo-box-item
8785
+ data-hs-combo-box-value="sveltekit"
8786
+ tabindex="1"
8787
+ ></rtg-combo-box-item>
8788
+ <rtg-combo-box-item
8789
+ data-hs-combo-box-value="nuxt.js"
8790
+ tabindex="2"
8791
+ ></rtg-combo-box-item>
8792
+ <rtg-combo-box-item
8793
+ data-hs-combo-box-value="remix"
8794
+ tabindex="3"
8795
+ ></rtg-combo-box-item>
8796
+ <rtg-combo-box-item
8797
+ data-hs-combo-box-value="astro"
8798
+ tabindex="4"
8799
+ ></rtg-combo-box-item>
8800
+ </rtg-combo-box-list>
8801
+ </rtg-combo-box>
8802
+ </div>
8803
+ <div>
8804
+ <span class="block text-sm mb-1 font-bold">CVC</span>
8805
+ <rtg-input
8806
+ data-testid="input-id"
8807
+ data-testchild="children-id"
8808
+ id=""
8809
+ type="text"
8810
+ placeholder="Enter text"
8811
+ ></rtg-input>
8812
+ </div>
8813
+ </div>
8814
+ </cardcontent>
8815
+ <cardfooter data-testid="card-footer-id">
8816
+ <rtg-button
8817
+ class="w-full text-black bg-white py-2 rounded-lg"
8818
+ method="post"
8819
+ data-testid="btn-id"
8820
+ data-testchild="children-id"
8821
+ variant="default"
8822
+ size="default"
8823
+ >Continue</rtg-button
8824
+ >
8825
+ </cardfooter>
8826
+ </rtg-card>
8690
8827
  `;
8691
8828
  }
8692
8829
  };
8693
- Y.buttonVariants = Xa;
8694
- Y.styles = [
8830
+ J.buttonVariants = Xa;
8831
+ J.styles = [
8695
8832
  c,
8696
8833
  p`
8697
8834
  :host {
@@ -8710,22 +8847,22 @@ Y.styles = [
8710
8847
  ];
8711
8848
  Fe([
8712
8849
  n({ type: Function })
8713
- ], Y.prototype, "click", 2);
8850
+ ], J.prototype, "click", 2);
8714
8851
  Fe([
8715
8852
  n({ type: Boolean })
8716
- ], Y.prototype, "disabled", 2);
8853
+ ], J.prototype, "disabled", 2);
8717
8854
  Fe([
8718
8855
  n({ type: String })
8719
- ], Y.prototype, "isCustomClass", 2);
8856
+ ], J.prototype, "isCustomClass", 2);
8720
8857
  Fe([
8721
8858
  n({ type: String })
8722
- ], Y.prototype, "variant", 2);
8859
+ ], J.prototype, "variant", 2);
8723
8860
  Fe([
8724
8861
  n({ type: String })
8725
- ], Y.prototype, "size", 2);
8726
- Y = Fe([
8862
+ ], J.prototype, "size", 2);
8863
+ J = Fe([
8727
8864
  d("rtg-sample-demo")
8728
- ], Y);
8865
+ ], J);
8729
8866
  var Ha = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Za = (e, t, o, s) => {
8730
8867
  for (var r = s > 1 ? void 0 : s ? Wa(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8731
8868
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
@@ -8784,7 +8921,7 @@ Xt.styles = [p``, c];
8784
8921
  Xt = en([
8785
8922
  d("rtg-collapsible-content")
8786
8923
  ], Xt);
8787
- var tn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, mr = (e, t, o, s) => {
8924
+ var tn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, vr = (e, t, o, s) => {
8788
8925
  for (var r = s > 1 ? void 0 : s ? rn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8789
8926
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8790
8927
  return s && r && tn(t, o, r), r;
@@ -8808,13 +8945,13 @@ let Le = class extends _ {
8808
8945
  }
8809
8946
  };
8810
8947
  Le.styles = [p``, c];
8811
- mr([
8948
+ vr([
8812
8949
  n({ type: Boolean })
8813
8950
  ], Le.prototype, "open", 2);
8814
- mr([
8951
+ vr([
8815
8952
  n({ type: Function })
8816
8953
  ], Le.prototype, "onOpenChange", 2);
8817
- Le = mr([
8954
+ Le = vr([
8818
8955
  d("rtg-collapsible")
8819
8956
  ], Le);
8820
8957
  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";
@@ -8883,8 +9020,8 @@ Kt.styles = [p``, c];
8883
9020
  Kt = fn([
8884
9021
  d("rtg-bread-crumb-item")
8885
9022
  ], 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--)
9023
+ var bn = Object.defineProperty, mn = Object.getOwnPropertyDescriptor, vn = (e, t, o, s) => {
9024
+ for (var r = s > 1 ? void 0 : s ? mn(t, o) : t, i = e.length - 1, a; i >= 0; i--)
8888
9025
  (a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
8889
9026
  return s && r && bn(t, o, r), r;
8890
9027
  };
@@ -8906,7 +9043,7 @@ let Ht = class extends _ {
8906
9043
  }
8907
9044
  };
8908
9045
  Ht.styles = [p``, c];
8909
- Ht = mn([
9046
+ Ht = vn([
8910
9047
  d("rtg-bread-crumb-list")
8911
9048
  ], Ht);
8912
9049
  var wn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, xn = (e, t, o, s) => {
@@ -9274,7 +9411,7 @@ export {
9274
9411
  Qe as ContextMenu,
9275
9412
  M as ContextMenuCheckboxItem,
9276
9413
  Ae as ContextMenuContent,
9277
- J as ContextMenuGroup,
9414
+ Z as ContextMenuGroup,
9278
9415
  U as ContextMenuItem,
9279
9416
  T as ContextMenuRadioItem,
9280
9417
  ae as ContextMenuSeparator,
@@ -9288,7 +9425,7 @@ export {
9288
9425
  Je as DropdownMenu,
9289
9426
  L as DropdownMenuCheckboxItem,
9290
9427
  De as DropdownMenuContent,
9291
- Z as DropdownMenuGroup,
9428
+ W as DropdownMenuGroup,
9292
9429
  V as DropdownMenuItem,
9293
9430
  I as DropdownMenuRadioItem,
9294
9431
  ie as DropdownMenuSeparator,