revotech-ui-kit 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/revotech-ui-kit.js +63 -63
- package/dist/revotech-ui-kit.umd.cjs +18 -18
- package/package.json +1 -1
package/dist/revotech-ui-kit.js
CHANGED
@@ -201,9 +201,9 @@ const tr = "-", go = (e) => {
|
|
201
201
|
if (i.includes(A))
|
202
202
|
continue;
|
203
203
|
i.push(A);
|
204
|
-
const
|
205
|
-
for (let be = 0; be <
|
206
|
-
const nt =
|
204
|
+
const qe = r($, D);
|
205
|
+
for (let be = 0; be < qe.length; ++be) {
|
206
|
+
const nt = qe[be];
|
207
207
|
i.push(j + nt);
|
208
208
|
}
|
209
209
|
u = b + (u.length > 0 ? " " + u : u);
|
@@ -244,7 +244,7 @@ function Po(e, ...t) {
|
|
244
244
|
const y = (e) => {
|
245
245
|
const t = (o) => o[e] || [];
|
246
246
|
return t.isThemeGetter = !0, t;
|
247
|
-
}, Lr = /^\[(?:([a-z-]+):)?(.+)\]$/i, ko = /^\d+\/\d+$/, So = /* @__PURE__ */ new Set(["px", "full", "screen"]), Eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Do = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ao = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Oe(e) || So.has(e) || ko.test(e), Q = (e) => Me(e, "length", Fo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Pt = (e) => Me(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), f = (e) => Lr.test(e), ee = (e) => Eo.test(e), Lo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Mo = (e) => Me(e, Lo, Mr), To = (e) => Me(e, "position", Mr), No = /* @__PURE__ */ new Set(["image", "url"]), Ro = (e) => Me(e, No,
|
247
|
+
}, Lr = /^\[(?:([a-z-]+):)?(.+)\]$/i, ko = /^\d+\/\d+$/, So = /* @__PURE__ */ new Set(["px", "full", "screen"]), Eo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Do = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ao = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, zo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, H = (e) => Oe(e) || So.has(e) || ko.test(e), Q = (e) => Me(e, "length", Fo), Oe = (e) => !!e && !Number.isNaN(Number(e)), Pt = (e) => Me(e, "number", Oe), Ue = (e) => !!e && Number.isInteger(Number(e)), Io = (e) => e.endsWith("%") && Oe(e.slice(0, -1)), f = (e) => Lr.test(e), ee = (e) => Eo.test(e), Lo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Mo = (e) => Me(e, Lo, Mr), To = (e) => Me(e, "position", Mr), No = /* @__PURE__ */ new Set(["image", "url"]), Ro = (e) => Me(e, No, Vo), Bo = (e) => Me(e, "", qo), Ge = () => !0, Me = (e, t, o) => {
|
248
248
|
const s = Lr.exec(e);
|
249
249
|
return s ? s[1] ? typeof t == "string" ? s[1] === t : t.has(s[1]) : o(s[2]) : !1;
|
250
250
|
}, Fo = (e) => (
|
@@ -252,8 +252,8 @@ const y = (e) => {
|
|
252
252
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
253
253
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
254
254
|
jo.test(e) && !Do.test(e)
|
255
|
-
), Mr = () => !1,
|
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"),
|
255
|
+
), Mr = () => !1, qo = (e) => Ao.test(e), Vo = (e) => zo.test(e), Uo = () => {
|
256
|
+
const e = y("colors"), t = y("spacing"), o = y("blur"), s = y("brightness"), r = y("borderColor"), i = y("borderRadius"), a = y("borderSpacing"), u = y("borderWidth"), m = y("contrast"), b = y("grayscale"), v = y("hueRotate"), P = y("invert"), k = y("gap"), N = y("gradientColorStops"), D = y("gradientColorStopPositions"), $ = y("inset"), w = y("margin"), j = y("opacity"), A = y("padding"), qe = y("saturate"), be = y("scale"), nt = y("sepia"), wr = y("skew"), yr = y("space"), xr = y("translate"), _t = () => ["auto", "contain", "none"], $t = () => ["auto", "hidden", "clip", "visible", "scroll"], Ot = () => ["auto", f, t], x = () => [f, t], _r = () => ["", H, Q], lt = () => ["auto", Oe, f], $r = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], dt = () => ["solid", "dashed", "dotted", "double", "none"], Or = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Ct = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Ve = () => ["", "0", f], Cr = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], K = () => [Oe, f];
|
257
257
|
return {
|
258
258
|
cacheSize: 500,
|
259
259
|
separator: ":",
|
@@ -267,9 +267,9 @@ const y = (e) => {
|
|
267
267
|
borderSpacing: x(),
|
268
268
|
borderWidth: _r(),
|
269
269
|
contrast: K(),
|
270
|
-
grayscale:
|
270
|
+
grayscale: Ve(),
|
271
271
|
hueRotate: K(),
|
272
|
-
invert:
|
272
|
+
invert: Ve(),
|
273
273
|
gap: x(),
|
274
274
|
gradientColorStops: [e],
|
275
275
|
gradientColorStopPositions: [Io, Q],
|
@@ -279,7 +279,7 @@ const y = (e) => {
|
|
279
279
|
padding: x(),
|
280
280
|
saturate: K(),
|
281
281
|
scale: K(),
|
282
|
-
sepia:
|
282
|
+
sepia: Ve(),
|
283
283
|
skew: K(),
|
284
284
|
space: x(),
|
285
285
|
translate: x()
|
@@ -534,14 +534,14 @@ const y = (e) => {
|
|
534
534
|
* @see https://tailwindcss.com/docs/flex-grow
|
535
535
|
*/
|
536
536
|
grow: [{
|
537
|
-
grow:
|
537
|
+
grow: Ve()
|
538
538
|
}],
|
539
539
|
/**
|
540
540
|
* Flex Shrink
|
541
541
|
* @see https://tailwindcss.com/docs/flex-shrink
|
542
542
|
*/
|
543
543
|
shrink: [{
|
544
|
-
shrink:
|
544
|
+
shrink: Ve()
|
545
545
|
}],
|
546
546
|
/**
|
547
547
|
* Order
|
@@ -1705,7 +1705,7 @@ const y = (e) => {
|
|
1705
1705
|
* @see https://tailwindcss.com/docs/saturate
|
1706
1706
|
*/
|
1707
1707
|
saturate: [{
|
1708
|
-
saturate: [
|
1708
|
+
saturate: [qe]
|
1709
1709
|
}],
|
1710
1710
|
/**
|
1711
1711
|
* Sepia
|
@@ -1776,7 +1776,7 @@ const y = (e) => {
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
1777
1777
|
*/
|
1778
1778
|
"backdrop-saturate": [{
|
1779
|
-
"backdrop-saturate": [
|
1779
|
+
"backdrop-saturate": [qe]
|
1780
1780
|
}],
|
1781
1781
|
/**
|
1782
1782
|
* Backdrop Sepia
|
@@ -5601,7 +5601,7 @@ re = Ne([
|
|
5601
5601
|
const $s = de(
|
5602
5602
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
5603
5603
|
);
|
5604
|
-
var Os = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor,
|
5604
|
+
var Os = Object.defineProperty, Cs = Object.getOwnPropertyDescriptor, qr = (e, t, o, s) => {
|
5605
5605
|
for (var r = s > 1 ? void 0 : s ? Cs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
5606
5606
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
5607
5607
|
return s && r && Os(t, o, r), r;
|
@@ -5657,13 +5657,13 @@ Pe.styles = [
|
|
5657
5657
|
`,
|
5658
5658
|
c
|
5659
5659
|
];
|
5660
|
-
|
5660
|
+
qr([
|
5661
5661
|
n({ type: String })
|
5662
5662
|
], Pe.prototype, "for", 2);
|
5663
|
-
Pe =
|
5663
|
+
Pe = qr([
|
5664
5664
|
d("rtg-label")
|
5665
5665
|
], Pe);
|
5666
|
-
var Ps = Object.defineProperty, ks = Object.getOwnPropertyDescriptor,
|
5666
|
+
var Ps = Object.defineProperty, ks = Object.getOwnPropertyDescriptor, Vr = (e, t, o, s) => {
|
5667
5667
|
for (var r = s > 1 ? void 0 : s ? ks(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
5668
5668
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
5669
5669
|
return s && r && Ps(t, o, r), r;
|
@@ -5685,10 +5685,10 @@ let ct = class extends h {
|
|
5685
5685
|
}
|
5686
5686
|
};
|
5687
5687
|
ct.styles = [p``, c];
|
5688
|
-
|
5688
|
+
Vr([
|
5689
5689
|
no({ selector: "input[rtgcmd-input]" })
|
5690
5690
|
], ct.prototype, "_input", 2);
|
5691
|
-
ct =
|
5691
|
+
ct = Vr([
|
5692
5692
|
d("rtg-command")
|
5693
5693
|
], ct);
|
5694
5694
|
var Ss = Object.defineProperty, Es = Object.getOwnPropertyDescriptor, or = (e, t, o, s) => {
|
@@ -6025,8 +6025,8 @@ ir([
|
|
6025
6025
|
se = ir([
|
6026
6026
|
d("rtg-command-separator")
|
6027
6027
|
], se);
|
6028
|
-
var Fs = Object.defineProperty,
|
6029
|
-
for (var r = s > 1 ? void 0 : s ?
|
6028
|
+
var Fs = Object.defineProperty, qs = Object.getOwnPropertyDescriptor, Vs = (e, t, o, s) => {
|
6029
|
+
for (var r = s > 1 ? void 0 : s ? qs(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
6030
6030
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
6031
6031
|
return s && r && Fs(t, o, r), r;
|
6032
6032
|
};
|
@@ -6036,7 +6036,7 @@ let At = class extends h {
|
|
6036
6036
|
}
|
6037
6037
|
};
|
6038
6038
|
At.styles = [p``, c];
|
6039
|
-
At =
|
6039
|
+
At = Vs([
|
6040
6040
|
d("rtg-card-title")
|
6041
6041
|
], At);
|
6042
6042
|
var Us = Object.defineProperty, Gs = Object.getOwnPropertyDescriptor, Xs = (e, t, o, s) => {
|
@@ -6732,7 +6732,7 @@ let R = class extends h {
|
|
6732
6732
|
));
|
6733
6733
|
}
|
6734
6734
|
toggleDropdown() {
|
6735
|
-
this.isOpen = !this.isOpen, this.focusedIndex = -1, console.log("toggleDropdown", this.isOpen);
|
6735
|
+
this.isOpen = !this.isOpen, this.focusedIndex = -1, this.requestUpdate(), console.log("toggleDropdown", this.isOpen);
|
6736
6736
|
}
|
6737
6737
|
selectItem(e) {
|
6738
6738
|
const t = e.target;
|
@@ -6967,7 +6967,7 @@ var Ri = Object.defineProperty, Bi = Object.getOwnPropertyDescriptor, it = (e, t
|
|
6967
6967
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
6968
6968
|
return s && r && Ri(t, o, r), r;
|
6969
6969
|
};
|
6970
|
-
let
|
6970
|
+
let q = class extends h {
|
6971
6971
|
constructor() {
|
6972
6972
|
super(...arguments), this._id = "", this._hidden = "", this.selected = !1;
|
6973
6973
|
}
|
@@ -6976,7 +6976,7 @@ let V = class extends h {
|
|
6976
6976
|
if (this._id !== "")
|
6977
6977
|
return this._id;
|
6978
6978
|
const e = (o = (t = this.parentElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : o.querySelector("div[rtgcmd-group]");
|
6979
|
-
return e ? this._id = `${e.getAttribute("id")}li${
|
6979
|
+
return e ? this._id = `${e.getAttribute("id")}li${q._counter++}` : this._id = `rtgcmdrxgxli${q._counter++}`, this._id;
|
6980
6980
|
}
|
6981
6981
|
get value() {
|
6982
6982
|
var e;
|
@@ -7008,25 +7008,25 @@ let V = class extends h {
|
|
7008
7008
|
`}`;
|
7009
7009
|
}
|
7010
7010
|
};
|
7011
|
-
|
7012
|
-
|
7011
|
+
q._counter = 0;
|
7012
|
+
q.styles = [p``, c];
|
7013
7013
|
it([
|
7014
7014
|
n({ type: String })
|
7015
|
-
],
|
7015
|
+
], q.prototype, "_id", 2);
|
7016
7016
|
it([
|
7017
7017
|
n({ attribute: "aria-hidden", type: String })
|
7018
|
-
],
|
7018
|
+
], q.prototype, "_hidden", 2);
|
7019
7019
|
it([
|
7020
7020
|
n({ attribute: "data-value", type: String })
|
7021
|
-
],
|
7021
|
+
], q.prototype, "value", 1);
|
7022
7022
|
it([
|
7023
7023
|
n({ type: Boolean })
|
7024
|
-
],
|
7025
|
-
|
7024
|
+
], q.prototype, "selected", 2);
|
7025
|
+
q = it([
|
7026
7026
|
d("rtg-dropdown-menu-item")
|
7027
|
-
],
|
7028
|
-
var Fi = Object.defineProperty,
|
7029
|
-
for (var r = s > 1 ? void 0 : s ?
|
7027
|
+
], q);
|
7028
|
+
var Fi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, me = (e, t, o, s) => {
|
7029
|
+
for (var r = s > 1 ? void 0 : s ? qi(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
7030
7030
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
7031
7031
|
return s && r && Fi(t, o, r), r;
|
7032
7032
|
};
|
@@ -7117,10 +7117,10 @@ me([
|
|
7117
7117
|
I = me([
|
7118
7118
|
d("rtg-dropdown-menu-radio-item")
|
7119
7119
|
], I);
|
7120
|
-
var
|
7120
|
+
var Vi = Object.defineProperty, Ui = Object.getOwnPropertyDescriptor, cr = (e, t, o, s) => {
|
7121
7121
|
for (var r = s > 1 ? void 0 : s ? Ui(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
7122
7122
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
7123
|
-
return s && r &&
|
7123
|
+
return s && r && Vi(t, o, r), r;
|
7124
7124
|
};
|
7125
7125
|
let ie = class extends h {
|
7126
7126
|
constructor() {
|
@@ -7403,7 +7403,7 @@ var Ji = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, Re = (e, t
|
|
7403
7403
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
7404
7404
|
return s && r && Ji(t, o, r), r;
|
7405
7405
|
};
|
7406
|
-
let
|
7406
|
+
let V = class extends _ {
|
7407
7407
|
constructor() {
|
7408
7408
|
super(...arguments), this.disabled = !1, this.checked = !1, this.required = !1, this.variant = Qr.DEFAULT, this.size = Jr.SMALL;
|
7409
7409
|
}
|
@@ -7419,7 +7419,7 @@ let q = class extends _ {
|
|
7419
7419
|
<button
|
7420
7420
|
type="button"
|
7421
7421
|
class="${g(
|
7422
|
-
|
7422
|
+
V.toggleVariants({
|
7423
7423
|
variant: this.variant,
|
7424
7424
|
size: this.size,
|
7425
7425
|
className: this.className
|
@@ -7438,26 +7438,26 @@ let q = class extends _ {
|
|
7438
7438
|
`;
|
7439
7439
|
}
|
7440
7440
|
};
|
7441
|
-
|
7442
|
-
|
7441
|
+
V.styles = [c];
|
7442
|
+
V.toggleVariants = Zi;
|
7443
7443
|
Re([
|
7444
7444
|
n({ type: Boolean })
|
7445
|
-
],
|
7445
|
+
], V.prototype, "disabled", 2);
|
7446
7446
|
Re([
|
7447
7447
|
n({ attribute: !0, type: Boolean, reflect: !0 })
|
7448
|
-
],
|
7448
|
+
], V.prototype, "checked", 2);
|
7449
7449
|
Re([
|
7450
7450
|
n({ attribute: !0, type: Boolean, reflect: !0 })
|
7451
|
-
],
|
7451
|
+
], V.prototype, "required", 2);
|
7452
7452
|
Re([
|
7453
7453
|
n({ attribute: !0, type: String })
|
7454
|
-
],
|
7454
|
+
], V.prototype, "variant", 2);
|
7455
7455
|
Re([
|
7456
7456
|
n({ attribute: !0, type: String })
|
7457
|
-
],
|
7458
|
-
|
7457
|
+
], V.prototype, "size", 2);
|
7458
|
+
V = Re([
|
7459
7459
|
d("rtg-toggle")
|
7460
|
-
],
|
7460
|
+
], V);
|
7461
7461
|
var ea = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, pr = (e, t, o, s) => {
|
7462
7462
|
for (var r = s > 1 ? void 0 : s ? ta(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
7463
7463
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
@@ -8062,7 +8062,7 @@ var xa = Object.defineProperty, _a = Object.getOwnPropertyDescriptor, $a = (e, t
|
|
8062
8062
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
8063
8063
|
return s && r && xa(t, o, r), r;
|
8064
8064
|
};
|
8065
|
-
let
|
8065
|
+
let qt = class extends h {
|
8066
8066
|
render() {
|
8067
8067
|
return l`
|
8068
8068
|
<span class="${g("px-2 py-1.5 text-sm font-semibold", this.className)}">
|
@@ -8071,10 +8071,10 @@ let Vt = class extends h {
|
|
8071
8071
|
`;
|
8072
8072
|
}
|
8073
8073
|
};
|
8074
|
-
|
8075
|
-
|
8074
|
+
qt.styles = [p``, c];
|
8075
|
+
qt = $a([
|
8076
8076
|
d("rtg-select-label")
|
8077
|
-
],
|
8077
|
+
], qt);
|
8078
8078
|
var Oa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, gr = (e, t, o, s) => {
|
8079
8079
|
for (var r = s > 1 ? void 0 : s ? Ca(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
8080
8080
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
@@ -8367,7 +8367,7 @@ var za = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, La = (e, t
|
|
8367
8367
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
8368
8368
|
return s && r && za(t, o, r), r;
|
8369
8369
|
};
|
8370
|
-
let
|
8370
|
+
let Vt = class extends h {
|
8371
8371
|
connectedCallback() {
|
8372
8372
|
super.connectedCallback(), this.addEventListener("radio-selected", this._handleRadioSelected);
|
8373
8373
|
}
|
@@ -8384,10 +8384,10 @@ let qt = class extends h {
|
|
8384
8384
|
`;
|
8385
8385
|
}
|
8386
8386
|
};
|
8387
|
-
|
8388
|
-
|
8387
|
+
Vt.styles = [p``, c];
|
8388
|
+
Vt = La([
|
8389
8389
|
d("rtg-radio-group")
|
8390
|
-
],
|
8390
|
+
], Vt);
|
8391
8391
|
var Ma = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, br = (e, t, o, s) => {
|
8392
8392
|
for (var r = s > 1 ? void 0 : s ? Ta(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
8393
8393
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
@@ -8558,10 +8558,10 @@ vr([
|
|
8558
8558
|
ot = vr([
|
8559
8559
|
d("rtg-accordion-content")
|
8560
8560
|
], ot);
|
8561
|
-
var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}),
|
8562
|
-
for (var r = s > 1 ? void 0 : s ?
|
8561
|
+
var $e = /* @__PURE__ */ ((e) => (e.MULTIPLE = "multiple", e.SINGLE = "single", e))($e || {}), qa = Object.defineProperty, Va = Object.getOwnPropertyDescriptor, to = (e, t, o, s) => {
|
8562
|
+
for (var r = s > 1 ? void 0 : s ? Va(t, o) : t, i = e.length - 1, a; i >= 0; i--)
|
8563
8563
|
(a = e[i]) && (r = (s ? a(t, o, r) : a(r)) || r);
|
8564
|
-
return s && r &&
|
8564
|
+
return s && r && qa(t, o, r), r;
|
8565
8565
|
};
|
8566
8566
|
let Ie = class extends _ {
|
8567
8567
|
constructor() {
|
@@ -9306,21 +9306,21 @@ export {
|
|
9306
9306
|
L as DropdownMenuCheckboxItem,
|
9307
9307
|
De as DropdownMenuContent,
|
9308
9308
|
Z as DropdownMenuGroup,
|
9309
|
-
|
9309
|
+
q as DropdownMenuItem,
|
9310
9310
|
I as DropdownMenuRadioItem,
|
9311
9311
|
ie as DropdownMenuSeparator,
|
9312
9312
|
re as Input,
|
9313
9313
|
ke as Popover,
|
9314
9314
|
We as PopoverContent,
|
9315
9315
|
Nt as PopoverTrigger,
|
9316
|
-
|
9316
|
+
Vt as RadioGroup,
|
9317
9317
|
le as RadioGroupItem,
|
9318
9318
|
X as Select,
|
9319
9319
|
G as SelectItem,
|
9320
|
-
|
9320
|
+
qt as SelectLabel,
|
9321
9321
|
et as SelectList,
|
9322
9322
|
ne as SelectSeperator,
|
9323
9323
|
pt as Separator,
|
9324
9324
|
tt as Switch,
|
9325
|
-
|
9325
|
+
V as Toggle
|
9326
9326
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element","lit/directives/ref.js"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement,a.ref_js))})(this,function(a,l,d,ar,Be,lr,D,Q){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const b=r[i]||[];return u&&o[i]?[...b,...o[i]]:b}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return gr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,gr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,mr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",fr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const b=[];let g=0,m=0,C;for(let v=0;v<u.length;v++){let P=u[v];if(g===0){if(P===t&&(o||u.slice(v,v+s)===e)){b.push(u.slice(m,v)),m=v+s;continue}if(P==="/"){C=v;continue}}P==="["?g++:P==="]"&&g--}const _=b.length===0?u:u.substring(m),k=_.startsWith(Ct),S=k?_.substring(1):_,$=C&&C>m?C-m:void 0;return{modifiers:b,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},br=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:mr(n.cacheSize),parseClassName:fr(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let b=i.length-1;b>=0;b-=1){const g=i[b],{modifiers:m,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=r(g);let S=!!k,$=o(S?_.substring(0,k):_);if(!$){if(!S){u=g+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=br(m).join(":"),P=C?v+Ct:v,E=P+$;if(s.includes(E))continue;s.push(E);const $e=t($,S);for(let J=0;J<$e.length;++J){const ze=$e[J];s.push(P+ze)}u=g+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(b){const g=e.reduce((m,C)=>C(m),n());return r=vr(g),o=r.cache.get,t=r.cache.set,s=u,u(b)}function u(b){const g=o(b);if(g)return g;const m=yr(b,r);return t(b,m),m}return function(){return s(xr.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),Ge=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Pt),Ar=n=>te(n,"position",Pt),Lr=new Set(["image","url"]),zr=n=>te(n,Lr,Nr),Rr=n=>te(n,"",Br),ge=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Pr.test(n)&&!Sr.test(n),Pt=()=>!1,Br=n=>Er.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),C=f("invert"),_=f("gap"),k=f("gradientColorStops"),S=f("gradientColorStopPositions"),$=f("inset"),v=f("margin"),P=f("opacity"),E=f("padding"),$e=f("saturate"),J=f("scale"),ze=f("sepia"),er=f("skew"),tr=f("space"),rr=f("translate"),mt=()=>["auto","contain","none"],ft=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",h,e],w=()=>[h,e],or=()=>["",L,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[L,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:bt(),margin:bt(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...nr(),h]}],overflow:[{overflow:ft()}],"overflow-x":[{"overflow-x":ft()}],"overflow-y":[{"overflow-y":ft()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ge]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ee,Ge]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Te()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Te()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,T,Ge]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function Gr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Et=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=Gr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(g=>{const m=r==null?void 0:r[g],C=s==null?void 0:s[g];if(m===null)return null;const _=Et(m)||Et(C);return t[g][_]}),u=r&&Object.entries(r).reduce((g,m)=>{let[C,_]=m;return _===void 0||(g[C]=_),g},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,m)=>{let{class:C,className:_,...k}=m;return Object.entries(k).every(S=>{let[$,v]=S;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...g,C,_]:g},[]);return kt(n,i,b,r==null?void 0:r.class,r==null?void 0:r.className)},qr=N("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
|
1
|
+
(function(a,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("lit"),require("lit/decorators.js"),require("lit/html.js"),require("lit/directive.js"),require("lit/async-directive.js"),require("lit-element"),require("lit/directives/ref.js")):typeof define=="function"&&define.amd?define(["exports","lit","lit/decorators.js","lit/html.js","lit/directive.js","lit/async-directive.js","lit-element","lit/directives/ref.js"],l):(a=typeof globalThis<"u"?globalThis:a||self,l(a["revotech-ui-kit"]={},a.lit,a.decorators_js,a.html_js,a.directive_js,a.asyncDirective_js,a.litElement,a.ref_js))})(this,function(a,l,d,ar,Be,lr,D,Q){"use strict";function wt(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var t=n.length;for(e=0;e<t;e++)n[e]&&(r=wt(n[e]))&&(o&&(o+=" "),o+=r)}else for(r in n)n[r]&&(o&&(o+=" "),o+=r);return o}function dr(){for(var n,e,r=0,o="",t=arguments.length;r<t;r++)(n=arguments[r])&&(e=wt(n))&&(o&&(o+=" "),o+=e);return o}const Ne="-",cr=n=>{const e=pr(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:i=>{const u=i.split(Ne);return u[0]===""&&u.length!==1&&u.shift(),yt(u,e)||ur(i)},getConflictingClassGroupIds:(i,u)=>{const b=r[i]||[];return u&&o[i]?[...b,...o[i]]:b}}},yt=(n,e)=>{var i;if(n.length===0)return e.classGroupId;const r=n[0],o=e.nextPart.get(r),t=o?yt(n.slice(1),o):void 0;if(t)return t;if(e.validators.length===0)return;const s=n.join(Ne);return(i=e.validators.find(({validator:u})=>u(s)))==null?void 0:i.classGroupId},xt=/^\[(.+)\]$/,ur=n=>{if(xt.test(n)){const e=xt.exec(n)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},pr=n=>{const{theme:e,prefix:r}=n,o={nextPart:new Map,validators:[]};return gr(Object.entries(n.classGroups),r).forEach(([s,i])=>{Fe(i,o,s,e)}),o},Fe=(n,e,r,o)=>{n.forEach(t=>{if(typeof t=="string"){const s=t===""?e:$t(e,t);s.classGroupId=r;return}if(typeof t=="function"){if(hr(t)){Fe(t(o),e,r,o);return}e.validators.push({validator:t,classGroupId:r});return}Object.entries(t).forEach(([s,i])=>{Fe(i,$t(e,s),r,o)})})},$t=(n,e)=>{let r=n;return e.split(Ne).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},hr=n=>n.isThemeGetter,gr=(n,e)=>e?n.map(([r,o])=>{const t=o.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[r,t]}):n,mr=n=>{if(n<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,o=new Map;const t=(s,i)=>{r.set(s,i),e++,e>n&&(e=0,o=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=o.get(s))!==void 0)return t(s,i),i},set(s,i){r.has(s)?r.set(s,i):t(s,i)}}},Ct="!",fr=n=>{const{separator:e,experimentalParseClassName:r}=n,o=e.length===1,t=e[0],s=e.length,i=u=>{const b=[];let g=0,m=0,C;for(let v=0;v<u.length;v++){let P=u[v];if(g===0){if(P===t&&(o||u.slice(v,v+s)===e)){b.push(u.slice(m,v)),m=v+s;continue}if(P==="/"){C=v;continue}}P==="["?g++:P==="]"&&g--}const _=b.length===0?u:u.substring(m),k=_.startsWith(Ct),S=k?_.substring(1):_,$=C&&C>m?C-m:void 0;return{modifiers:b,hasImportantModifier:k,baseClassName:S,maybePostfixModifierPosition:$}};return r?u=>r({className:u,parseClassName:i}):i},br=n=>{if(n.length<=1)return n;const e=[];let r=[];return n.forEach(o=>{o[0]==="["?(e.push(...r.sort(),o),r=[]):r.push(o)}),e.push(...r.sort()),e},vr=n=>({cache:mr(n.cacheSize),parseClassName:fr(n),...cr(n)}),wr=/\s+/,yr=(n,e)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:t}=e,s=[],i=n.trim().split(wr);let u="";for(let b=i.length-1;b>=0;b-=1){const g=i[b],{modifiers:m,hasImportantModifier:C,baseClassName:_,maybePostfixModifierPosition:k}=r(g);let S=!!k,$=o(S?_.substring(0,k):_);if(!$){if(!S){u=g+(u.length>0?" "+u:u);continue}if($=o(_),!$){u=g+(u.length>0?" "+u:u);continue}S=!1}const v=br(m).join(":"),P=C?v+Ct:v,E=P+$;if(s.includes(E))continue;s.push(E);const $e=t($,S);for(let J=0;J<$e.length;++J){const ze=$e[J];s.push(P+ze)}u=g+(u.length>0?" "+u:u)}return u};function xr(){let n=0,e,r,o="";for(;n<arguments.length;)(e=arguments[n++])&&(r=_t(e))&&(o&&(o+=" "),o+=r);return o}const _t=n=>{if(typeof n=="string")return n;let e,r="";for(let o=0;o<n.length;o++)n[o]&&(e=_t(n[o]))&&(r&&(r+=" "),r+=e);return r};function $r(n,...e){let r,o,t,s=i;function i(b){const g=e.reduce((m,C)=>C(m),n());return r=vr(g),o=r.cache.get,t=r.cache.set,s=u,u(b)}function u(b){const g=o(b);if(g)return g;const m=yr(b,r);return t(b,m),m}return function(){return s(xr.apply(null,arguments))}}const f=n=>{const e=r=>r[n]||[];return e.isThemeGetter=!0,e},Ot=/^\[(?:([a-z-]+):)?(.+)\]$/i,Cr=/^\d+\/\d+$/,_r=new Set(["px","full","screen"]),Or=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Sr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Er=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,kr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=n=>ee(n)||_r.has(n)||Cr.test(n),T=n=>te(n,"length",Tr),ee=n=>!!n&&!Number.isNaN(Number(n)),qe=n=>te(n,"number",ee),he=n=>!!n&&Number.isInteger(Number(n)),Dr=n=>n.endsWith("%")&&ee(n.slice(0,-1)),h=n=>Ot.test(n),B=n=>Or.test(n),Mr=new Set(["length","size","percentage"]),Ir=n=>te(n,Mr,Pt),Ar=n=>te(n,"position",Pt),Lr=new Set(["image","url"]),zr=n=>te(n,Lr,Nr),Rr=n=>te(n,"",Br),ge=()=>!0,te=(n,e,r)=>{const o=Ot.exec(n);return o?o[1]?typeof e=="string"?o[1]===e:e.has(o[1]):r(o[2]):!1},Tr=n=>Pr.test(n)&&!Sr.test(n),Pt=()=>!1,Br=n=>Er.test(n),Nr=n=>kr.test(n),Fr=$r(()=>{const n=f("colors"),e=f("spacing"),r=f("blur"),o=f("brightness"),t=f("borderColor"),s=f("borderRadius"),i=f("borderSpacing"),u=f("borderWidth"),b=f("contrast"),g=f("grayscale"),m=f("hueRotate"),C=f("invert"),_=f("gap"),k=f("gradientColorStops"),S=f("gradientColorStopPositions"),$=f("inset"),v=f("margin"),P=f("opacity"),E=f("padding"),$e=f("saturate"),J=f("scale"),ze=f("sepia"),er=f("skew"),tr=f("space"),rr=f("translate"),mt=()=>["auto","contain","none"],ft=()=>["auto","hidden","clip","visible","scroll"],bt=()=>["auto",h,e],w=()=>[h,e],or=()=>["",L,T],Re=()=>["auto",ee,h],nr=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Te=()=>["solid","dashed","dotted","double","none"],sr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],vt=()=>["start","end","center","between","around","evenly","stretch"],Ce=()=>["","0",h],ir=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[ee,h];return{cacheSize:500,separator:":",theme:{colors:[ge],spacing:[L,T],blur:["none","",B,h],brightness:R(),borderColor:[n],borderRadius:["none","","full",B,h],borderSpacing:w(),borderWidth:or(),contrast:R(),grayscale:Ce(),hueRotate:R(),invert:Ce(),gap:w(),gradientColorStops:[n],gradientColorStopPositions:[Dr,T],inset:bt(),margin:bt(),opacity:R(),padding:w(),saturate:R(),scale:R(),sepia:Ce(),skew:R(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",h]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ir()}],"break-before":[{"break-before":ir()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...nr(),h]}],overflow:[{overflow:ft()}],"overflow-x":[{"overflow-x":ft()}],"overflow-y":[{"overflow-y":ft()}],overscroll:[{overscroll:mt()}],"overscroll-x":[{"overscroll-x":mt()}],"overscroll-y":[{"overscroll-y":mt()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[$]}],"inset-x":[{"inset-x":[$]}],"inset-y":[{"inset-y":[$]}],start:[{start:[$]}],end:[{end:[$]}],top:[{top:[$]}],right:[{right:[$]}],bottom:[{bottom:[$]}],left:[{left:[$]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",he,h]}],basis:[{basis:bt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",h]}],grow:[{grow:Ce()}],shrink:[{shrink:Ce()}],order:[{order:["first","last","none",he,h]}],"grid-cols":[{"grid-cols":[ge]}],"col-start-end":[{col:["auto",{span:["full",he,h]},h]}],"col-start":[{"col-start":Re()}],"col-end":[{"col-end":Re()}],"grid-rows":[{"grid-rows":[ge]}],"row-start-end":[{row:["auto",{span:[he,h]},h]}],"row-start":[{"row-start":Re()}],"row-end":[{"row-end":Re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",h]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",h]}],gap:[{gap:[_]}],"gap-x":[{"gap-x":[_]}],"gap-y":[{"gap-y":[_]}],"justify-content":[{justify:["normal",...vt()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...vt(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...vt(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[tr]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[tr]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",h,e]}],"min-w":[{"min-w":[h,e,"min","max","fit"]}],"max-w":[{"max-w":[h,e,"none","full","min","max","fit","prose",{screen:[B]},B]}],h:[{h:[h,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[h,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[h,e,"auto","min","max","fit"]}],"font-size":[{text:["base",B,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",qe]}],"font-family":[{font:[ge]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",h]}],"line-clamp":[{"line-clamp":["none",ee,qe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,h]}],"list-image":[{"list-image":["none",h]}],"list-style-type":[{list:["none","disc","decimal",h]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[P]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[P]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,h]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",h]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",h]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[P]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...nr(),Ar]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[k]}],"gradient-via":[{via:[k]}],"gradient-to":[{to:[k]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[P]}],"border-style":[{border:[...Te(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[P]}],"divide-style":[{divide:Te()}],"border-color":[{border:[t]}],"border-color-x":[{"border-x":[t]}],"border-color-y":[{"border-y":[t]}],"border-color-t":[{"border-t":[t]}],"border-color-r":[{"border-r":[t]}],"border-color-b":[{"border-b":[t]}],"border-color-l":[{"border-l":[t]}],"divide-color":[{divide:[t]}],"outline-style":[{outline:["",...Te()]}],"outline-offset":[{"outline-offset":[L,h]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:or()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[P]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",B,Rr]}],"shadow-color":[{shadow:[ge]}],opacity:[{opacity:[P]}],"mix-blend":[{"mix-blend":[...sr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":sr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[b]}],"drop-shadow":[{"drop-shadow":["","none",B,h]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[C]}],saturate:[{saturate:[$e]}],sepia:[{sepia:[ze]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[b]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[C]}],"backdrop-opacity":[{"backdrop-opacity":[P]}],"backdrop-saturate":[{"backdrop-saturate":[$e]}],"backdrop-sepia":[{"backdrop-sepia":[ze]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",h]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",h]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",h]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[J]}],"scale-x":[{"scale-x":[J]}],"scale-y":[{"scale-y":[J]}],rotate:[{rotate:[he,h]}],"translate-x":[{"translate-x":[rr]}],"translate-y":[{"translate-y":[rr]}],"skew-x":[{"skew-x":[er]}],"skew-y":[{"skew-y":[er]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",h]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",h]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",h]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[L,T,qe]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function p(...n){return Fr(dr(n))}class y extends l.LitElement{constructor(){super()}getFilteredAttributes(){const e={};return Array.from(this.attributes).forEach(r=>{this.getAttributesToExclude().includes(r.name)||(e[r.name]=r.value??"")}),e}isCustomPropertySet(e){const r=getComputedStyle(this).getPropertyValue(e).trim();return r!=="inherit"&&r.length>0}applyCustomClass(e,r,o=""){var s,i;let t="";e.some(u=>this.isCustomPropertySet(u))&&(t=o),t&&((i=(s=this.shadowRoot)==null?void 0:s.querySelector(r))==null||i.classList.add(t))}}function St(n){var e,r,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n))for(e=0;e<n.length;e++)n[e]&&(r=St(n[e]))&&(o&&(o+=" "),o+=r);else for(e in n)n[e]&&(o&&(o+=" "),o+=e);return o}function qr(){for(var n,e,r=0,o="";r<arguments.length;)(n=arguments[r++])&&(e=St(n))&&(o&&(o+=" "),o+=e);return o}const Et=n=>typeof n=="boolean"?"".concat(n):n===0?"0":n,kt=qr,N=(n,e)=>r=>{var o;if((e==null?void 0:e.variants)==null)return kt(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:t,defaultVariants:s}=e,i=Object.keys(t).map(g=>{const m=r==null?void 0:r[g],C=s==null?void 0:s[g];if(m===null)return null;const _=Et(m)||Et(C);return t[g][_]}),u=r&&Object.entries(r).reduce((g,m)=>{let[C,_]=m;return _===void 0||(g[C]=_),g},{}),b=e==null||(o=e.compoundVariants)===null||o===void 0?void 0:o.reduce((g,m)=>{let{class:C,className:_,...k}=m;return Object.entries(k).every(S=>{let[$,v]=S;return Array.isArray(v)?v.includes({...s,...u}[$]):{...s,...u}[$]===v})?[...g,C,_]:g},[]);return kt(n,i,b,r==null?void 0:r.class,r==null?void 0:r.className)},Gr=N("inline-flex items-center justify-center whitespace-nowrap rounded-sm text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 px-4 py-2",sm:"h-7 rounded-sm px-3 text-xs",lg:"h-9 rounded-sm px-8",icon:"h-8 w-8"}},defaultVariants:{variant:"default",size:"default"}}),c=l.css` @font-face {
|
2
2
|
font-family: 'GeistSans';
|
3
3
|
|
4
4
|
src: url('assets/fonts/Geist/Geist-Regular.woff2') format('woff2');
|
@@ -2682,7 +2682,7 @@ body {
|
|
2682
2682
|
>
|
2683
2683
|
<slot></slot>
|
2684
2684
|
</button>
|
2685
|
-
`}},a.Button.buttonVariants=
|
2685
|
+
`}},a.Button.buttonVariants=Gr,a.Button.styles=[l.css`
|
2686
2686
|
:host {
|
2687
2687
|
--rtg-button-bg: unset;
|
2688
2688
|
--rtg-button-color: unset;
|
@@ -2763,7 +2763,7 @@ body {
|
|
2763
2763
|
>
|
2764
2764
|
<slot></slot>
|
2765
2765
|
</div>
|
2766
|
-
`}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=so([d.customElement("rtg-dialog-footer")],a.DialogFooter);var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,
|
2766
|
+
`}},a.DialogFooter.styles=[l.css``,c],a.DialogFooter=so([d.customElement("rtg-dialog-footer")],a.DialogFooter);var io=Object.defineProperty,ao=Object.getOwnPropertyDescriptor,Ge=(n,e,r,o)=>{for(var t=o>1?void 0:o?ao(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&io(e,r,t),t};a.DialogHeader=class extends l.LitElement{constructor(){super(...arguments),this._title="",this.description=""}render(){return l.html`
|
2767
2767
|
<div
|
2768
2768
|
class="${p("flex flex-col space-y-1.5 text-center sm:text-left",this.className)}"
|
2769
2769
|
>
|
@@ -2776,7 +2776,7 @@ body {
|
|
2776
2776
|
${this.description}
|
2777
2777
|
</p>
|
2778
2778
|
</div>
|
2779
|
-
`}},a.DialogHeader.styles=[l.css``,c],
|
2779
|
+
`}},a.DialogHeader.styles=[l.css``,c],Ge([d.property({attribute:"title",type:String})],a.DialogHeader.prototype,"_title",2),Ge([d.property({type:String})],a.DialogHeader.prototype,"description",2),a.DialogHeader=Ge([d.customElement("rtg-dialog-header")],a.DialogHeader);var lo=Object.defineProperty,co=Object.getOwnPropertyDescriptor,uo=(n,e,r,o)=>{for(var t=o>1?void 0:o?co(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&lo(e,r,t),t};a.DialogOverlay=class extends l.LitElement{render(){return l.html`
|
2780
2780
|
<div
|
2781
2781
|
class="${p("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",this.className)}"
|
2782
2782
|
></div>
|
@@ -2823,7 +2823,7 @@ body {
|
|
2823
2823
|
>
|
2824
2824
|
<slot></slot>
|
2825
2825
|
</div>
|
2826
|
-
`}};_e.styles=[l.css``,c],Rt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],_e.prototype,"_input",2),_e=Rt([d.customElement("rtg-command")],_e);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_o(e,r,t),t};let
|
2826
|
+
`}};_e.styles=[l.css``,c],Rt([d.queryAssignedElements({selector:"input[rtgcmd-input]"})],_e.prototype,"_input",2),_e=Rt([d.customElement("rtg-command")],_e);var _o=Object.defineProperty,Oo=Object.getOwnPropertyDescriptor,Ve=(n,e,r,o)=>{for(var t=o>1?void 0:o?Oo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&_o(e,r,t),t};let q=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="true"}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}e${q._counter++}`:this._id=`rtgcmdrxlxe${q._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2827
2827
|
<div
|
2828
2828
|
class="${p("py-6 text-center text-sm",this.className)}"
|
2829
2829
|
rtgcmd-empty
|
@@ -2832,7 +2832,7 @@ body {
|
|
2832
2832
|
>
|
2833
2833
|
<slot></slot>
|
2834
2834
|
</div>
|
2835
|
-
`}`}};
|
2835
|
+
`}`}};q._counter=0,q.styles=[l.css``,c],Ve([d.property({type:String})],q.prototype,"_id",2),Ve([d.property({attribute:"aria-hidden",type:String})],q.prototype,"_hidden",2),q=Ve([d.customElement("rtg-command-empty")],q);var Po=Object.defineProperty,So=Object.getOwnPropertyDescriptor,Oe=(n,e,r,o)=>{for(var t=o>1?void 0:o?So(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Po(e,r,t),t};let z=class extends l.LitElement{constructor(){super(...arguments),this.heading="",this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}g${z._counter++}`:this._id=`rtgcmdrxlxg${z._counter++}`,this._id}render(){const n="overflow-hidden p-1 text-foreground [&_[rtgcmd-group-heading]]:px-2 [&_[rtgcmd-group-heading]]:py-1.5 [&_[rtgcmd-group-heading]]:text-xs [&_[rtgcmd-group-heading]]:font-medium [&_[rtgcmd-group-heading]]:text-muted-foreground";return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2836
2836
|
<div
|
2837
2837
|
class="${n}"
|
2838
2838
|
rtgcmd-group
|
@@ -2921,14 +2921,14 @@ body {
|
|
2921
2921
|
<slot></slot>
|
2922
2922
|
</div>
|
2923
2923
|
</div>
|
2924
|
-
`}};Xe.styles=[l.css``,c],Xe=Lo([d.customElement("rtg-command-list")],Xe);var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zo(e,r,t),t};let
|
2924
|
+
`}};Xe.styles=[l.css``,c],Xe=Lo([d.customElement("rtg-command-list")],Xe);var zo=Object.defineProperty,Ro=Object.getOwnPropertyDescriptor,Ye=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ro(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&zo(e,r,t),t};let G=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var e,r;if(this._id!=="")return this._id;const n=(r=(e=this.parentElement)==null?void 0:e.shadowRoot)==null?void 0:r.querySelector("div[rtgcmd-list]");return n?this._id=`${n.getAttribute("id")}s${G._counter++}`:this._id=`rtgcmdrxlxs${G._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
2925
2925
|
<div
|
2926
2926
|
class="${p("-mx-1 h-px bg-border",this.className)}"
|
2927
2927
|
rtgcmd-separator
|
2928
2928
|
role="separator"
|
2929
2929
|
id="${this.identifier}"
|
2930
2930
|
></div>
|
2931
|
-
`}`}};
|
2931
|
+
`}`}};G._counter=0,G.styles=[l.css``,c],Ye([d.property({type:String})],G.prototype,"_id",2),Ye([d.property({attribute:"aria-hidden",type:String})],G.prototype,"_hidden",2),G=Ye([d.customElement("rtg-command-separator")],G);var To=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,No=(n,e,r,o)=>{for(var t=o>1?void 0:o?Bo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&To(e,r,t),t};a.CardTitle=class extends l.LitElement{render(){return l.html` <slot part="card-title"></slot> `}},a.CardTitle.styles=[l.css``,c],a.CardTitle=No([d.customElement("rtg-card-title")],a.CardTitle);var Fo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor,Go=(n,e,r,o)=>{for(var t=o>1?void 0:o?qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fo(e,r,t),t};a.CardHeader=class extends l.LitElement{render(){return l.html` <slot part="card-header"></slot> `}},a.CardHeader.styles=[l.css``,c],a.CardHeader=Go([d.customElement("rtg-card-header")],a.CardHeader);var Vo=Object.defineProperty,Uo=Object.getOwnPropertyDescriptor,Xo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Uo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Vo(e,r,t),t};a.CardFooter=class extends l.LitElement{render(){return l.html` <slot part="card-footer"></slot> `}},a.CardFooter.styles=[l.css``,c],a.CardFooter=Xo([d.customElement("rtg-card-footer")],a.CardFooter);var Yo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor,Ko=(n,e,r,o)=>{for(var t=o>1?void 0:o?Ho(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Yo(e,r,t),t};a.CardDescription=class extends l.LitElement{render(){return l.html` <slot part="card-description"></slot> `}},a.CardDescription.styles=[l.css``,c],a.CardDescription=Ko([d.customElement("rtg-card-description")],a.CardDescription);var Wo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,jo=(n,e,r,o)=>{for(var t=o>1?void 0:o?Zo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Wo(e,r,t),t};a.CardContent=class extends l.LitElement{render(){return l.html` <slot part="card-content"></slot> `}},a.CardContent.styles=[l.css``,c],a.CardContent=jo([d.customElement("rtg-card-content")],a.CardContent);var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,en=(n,e,r,o)=>{for(var t=o>1?void 0:o?Qo(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Jo(e,r,t),t};a.Card=class extends l.LitElement{render(){return l.html`<div
|
2932
2932
|
part="card"
|
2933
2933
|
class="rounded-lg border bg-card text-card-foreground shadow-sm p-6"
|
2934
2934
|
id="rtg-card-id"
|
@@ -3004,7 +3004,7 @@ body {
|
|
3004
3004
|
<path d="m7 15 5 5 5-5"></path>
|
3005
3005
|
<path d="m7 9 5-5 5 5"></path>
|
3006
3006
|
</svg>
|
3007
|
-
`}function
|
3007
|
+
`}function qt(){return l.svg`
|
3008
3008
|
<svg
|
3009
3009
|
class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500"
|
3010
3010
|
xmlns="http://www.w3.org/2000/svg"
|
@@ -3019,7 +3019,7 @@ body {
|
|
3019
3019
|
>
|
3020
3020
|
<path d="M20 6 9 17l-5-5"></path>
|
3021
3021
|
</svg>
|
3022
|
-
`}function
|
3022
|
+
`}function Gt(){return l.svg` <svg
|
3023
3023
|
xmlns="http://www.w3.org/2000/svg"
|
3024
3024
|
width = "24"
|
3025
3025
|
height = "24"
|
@@ -3103,7 +3103,7 @@ body {
|
|
3103
3103
|
<span
|
3104
3104
|
class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
|
3105
3105
|
>
|
3106
|
-
${
|
3106
|
+
${qt()}
|
3107
3107
|
</span>
|
3108
3108
|
<div class="flex justify-between items-center w-full">
|
3109
3109
|
<span
|
@@ -3123,7 +3123,7 @@ body {
|
|
3123
3123
|
<div
|
3124
3124
|
class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
|
3125
3125
|
>
|
3126
|
-
${
|
3126
|
+
${Gt()}
|
3127
3127
|
<input
|
3128
3128
|
type="text"
|
3129
3129
|
class="w-full px-2 py-2 rounded focus:outline-none"
|
@@ -3138,7 +3138,7 @@ body {
|
|
3138
3138
|
</div>
|
3139
3139
|
<slot></slot>
|
3140
3140
|
</div>
|
3141
|
-
`}};be.styles=[l.css``,c],We([d.property({attribute:"data-state",type:String})],be.prototype,"state",2),We([d.state()],be.prototype,"isOpen",2),be=We([d.customElement("rtg-combo-box-list")],be);var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1,console.log("toggleDropdown",this.isOpen)}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){console.log("-----handleInputClick------"),this.toggleDropdown()}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),document.addEventListener("click",this.handleClickOutside.bind(this)),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1)})}disconnectedCallback(){var e,r,o,t;super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var s,i;const r=e.target,o=(s=this.shadowRoot)==null?void 0:s.querySelector("[data-hs-combo-box]");if(!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(i=r.shadowRoot)==null?void 0:i.firstElementChild;if(!t){this.isOpen=!1;return}(!o||!o.contains(t))&&(this.isOpen=!1)}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
|
3141
|
+
`}};be.styles=[l.css``,c],We([d.property({attribute:"data-state",type:String})],be.prototype,"state",2),We([d.state()],be.prototype,"isOpen",2),be=We([d.customElement("rtg-combo-box-list")],be);var In=Object.defineProperty,An=Object.getOwnPropertyDescriptor,U=(n,e,r,o)=>{for(var t=o>1?void 0:o?An(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&In(e,r,t),t};a.ComboBox=class extends l.LitElement{constructor(){super(...arguments),this.isOpen=!1,this.selectedValue="",this.searchTerm="",this.focusedIndex=-1,this.filteredItems=[],this.label="Select an item",this.items=[]}firstUpdated(e){console.log("this. items",this.items),this.items&&this.items.length>0&&(this.filteredItems=this.items.filter(r=>r.toLowerCase().includes(this.searchTerm)))}toggleDropdown(){this.isOpen=!this.isOpen,this.focusedIndex=-1,this.requestUpdate(),console.log("toggleDropdown",this.isOpen)}selectItem(e){const r=e.target;if(r instanceof HTMLElement){const o=r.closest("rtg-combo-box-item");o?(this.selectedValue=o.getAttribute("data-hs-combo-box-value")||"",this.isOpen=!1):console.log("No valid rtg-combo-box-item found")}else console.log("Event target is not an HTMLElement")}handleInputClick(){console.log("-----handleInputClick------"),this.toggleDropdown()}handleSearch(e){const r=e.target;this.searchTerm=r.value,this.filteredItems=this.items.filter(o=>o.toLowerCase().includes(this.searchTerm.toLowerCase()))}handleKeyDown(e){const r=this.filteredItems.length;switch(e.key){case"ArrowDown":e.preventDefault(),this.focusedIndex=(this.focusedIndex+1)%r;break;case"ArrowUp":e.preventDefault(),this.focusedIndex=(this.focusedIndex-1+r)%r;break;case"Enter":this.focusedIndex>=0&&this.focusedIndex<r&&(this.selectedValue=this.filteredItems[this.focusedIndex],this.isOpen=!1);break}}handleMouseOver(e,r){e.preventDefault(),this.focusedIndex=r}connectedCallback(){var e,r,o,t;super.connectedCallback(),document.addEventListener("click",this.handleClickOutside.bind(this)),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.addEventListener("focus",()=>{this.isOpen=!0}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.addEventListener("blur",()=>{this.isOpen&&(this.isOpen=!1)})}disconnectedCallback(){var e,r,o,t;super.disconnectedCallback(),document.removeEventListener("click",this.handleClickOutside),(r=(e=this.shadowRoot)==null?void 0:e.querySelector("input"))==null||r.removeEventListener("focus",()=>{}),(t=(o=this.shadowRoot)==null?void 0:o.querySelector("input"))==null||t.removeEventListener("blur",()=>{})}handleClickOutside(e){var s,i;const r=e.target,o=(s=this.shadowRoot)==null?void 0:s.querySelector("[data-hs-combo-box]");if(!this.shadowRoot||!(r instanceof HTMLElement)){console.log("Invalid target or shadow root");return}const t=(i=r.shadowRoot)==null?void 0:i.firstElementChild;if(!t){this.isOpen=!1;return}(!o||!o.contains(t))&&(this.isOpen=!1)}updateFocus(){if(!this.shadowRoot)return;this.shadowRoot.querySelectorAll("rtg-combo-box-item").forEach((r,o)=>{o===this.focusedIndex?r.classList.add("bg-gray-100"):r.classList.remove("bg-gray-100")})}render(){return l.html`
|
3142
3142
|
<div class="relative" data-hs-combo-box="">
|
3143
3143
|
isopen:${this.isOpen}
|
3144
3144
|
<div>
|
@@ -3177,7 +3177,7 @@ body {
|
|
3177
3177
|
<div
|
3178
3178
|
class="flex items-center justify-center px-3 border-b border-gray-300 mb-1"
|
3179
3179
|
>
|
3180
|
-
${
|
3180
|
+
${Gt()}
|
3181
3181
|
<input
|
3182
3182
|
type="text"
|
3183
3183
|
class="w-full px-2 py-2 rounded focus:outline-none"
|
@@ -3265,14 +3265,14 @@ body {
|
|
3265
3265
|
height: 16px;
|
3266
3266
|
display: inline-block;
|
3267
3267
|
}
|
3268
|
-
`,c],K([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=K([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Fn=Object.defineProperty,
|
3268
|
+
`,c],K([d.property({type:String})],a.DropdownMenuRadioItem.prototype,"_id",2),K([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuRadioItem.prototype,"_hidden",2),K([d.property({attribute:"data-value",type:String})],a.DropdownMenuRadioItem.prototype,"value",1),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"selected",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"checked",2),K([d.property({type:Boolean})],a.DropdownMenuRadioItem.prototype,"disabled",2),a.DropdownMenuRadioItem=K([d.customElement("rtg-dropdown-menu-radio-item")],a.DropdownMenuRadioItem);var Fn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,je=(n,e,r,o)=>{for(var t=o>1?void 0:o?qn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Fn(e,r,t),t};a.DropdownMenuSeparator=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden=""}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-list]");return e?this._id=`${e.getAttribute("id")}s${a.DropdownMenuSeparator._counter++}`:this._id=`rtgcmdrxlxs${a.DropdownMenuSeparator._counter++}`,this._id}render(){return l.html`${this._hidden==="true"?l.nothing:l.html`
|
3269
3269
|
<div
|
3270
3270
|
class="${p("-mx-1 h-px bg-border",this.className)}"
|
3271
3271
|
rtgcmd-separator
|
3272
3272
|
role="separator"
|
3273
3273
|
id="${this.identifier}"
|
3274
3274
|
></div>
|
3275
|
-
`}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],je([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=je([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var
|
3275
|
+
`}`}},a.DropdownMenuSeparator._counter=0,a.DropdownMenuSeparator.styles=[l.css``,c],je([d.property({type:String})],a.DropdownMenuSeparator.prototype,"_id",2),je([d.property({attribute:"aria-hidden",type:String})],a.DropdownMenuSeparator.prototype,"_hidden",2),a.DropdownMenuSeparator=je([d.customElement("rtg-dropdown-menu-separator")],a.DropdownMenuSeparator);var Gn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,W=(n,e,r,o)=>{for(var t=o>1?void 0:o?Vn(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&Gn(e,r,t),t};a.DropdownMenuCheckboxItem=class extends l.LitElement{constructor(){super(...arguments),this._id="",this._hidden="",this.selected=!1,this.checked=!1,this.disabled=!1}get identifier(){var r,o;if(this._id!=="")return this._id;const e=(o=(r=this.parentElement)==null?void 0:r.shadowRoot)==null?void 0:o.querySelector("div[rtgcmd-group]");return e?this._id=`${e.getAttribute("id")}li${a.DropdownMenuCheckboxItem._counter++}`:this._id=`rtgcmdrxgxli${a.DropdownMenuCheckboxItem._counter++}`,this._id}get value(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}handleMouseEvent(e){(e.type==="mouseover"||e.type==="focus")&&(this.selected=!0),e.type==="mouseleave"&&(this.selected=!1)}toggleChecked(){this.checked=!this.checked}render(){return l.html`
|
3276
3276
|
<div
|
3277
3277
|
class="${p("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground",this.disabled?"pointer-events-none opacity-50":"",this.className)}"
|
3278
3278
|
@click=${this.toggleChecked}
|
@@ -3513,7 +3513,7 @@ body {
|
|
3513
3513
|
<span
|
3514
3514
|
class="${this.isSelected?"visible":"invisible"} hs-combo-box-selected:block mr-2"
|
3515
3515
|
>
|
3516
|
-
${
|
3516
|
+
${qt()}
|
3517
3517
|
</span>
|
3518
3518
|
<div
|
3519
3519
|
class="flex justify-between items-center w-full text-sm text-gray-500"
|
@@ -3713,7 +3713,7 @@ body {
|
|
3713
3713
|
<div data-orientation="vertical" ${x(n)}>
|
3714
3714
|
<slot name="accordion-item"></slot>
|
3715
3715
|
</div>
|
3716
|
-
`}};ce.styles=[l.css``,c],Kt([d.property({type:String})],ce.prototype,"type",2),ce=Kt([d.customElement("rtg-accordion")],ce);var st=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(st||{}),
|
3716
|
+
`}};ce.styles=[l.css``,c],Kt([d.property({type:String})],ce.prototype,"type",2),ce=Kt([d.customElement("rtg-accordion")],ce);var st=(n=>(n.VERTICAL="vertical",n.HORIZONTAL="horizontal",n))(st||{}),qs=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Wt=(n,e,r,o)=>{for(var t=o>1?void 0:o?Gs(e,r):e,s=n.length-1,i;s>=0;s--)(i=n[s])&&(t=(o?i(e,r,t):i(t))||t);return o&&t&&qs(e,r,t),t};a.Separator=class extends y{constructor(){super(...arguments),this.orientation=st.HORIZONTAL}getAttributesToExclude(){return["variant"]}render(){const e=this.getFilteredAttributes();return this.orientation===st.HORIZONTAL?l.html` <div
|
3717
3717
|
class="${p("shrink-0 bg-border w-full h-[1px] my-4",this.className)}"
|
3718
3718
|
${x(e)}
|
3719
3719
|
role="none"
|
package/package.json
CHANGED