@ryanhelsing/ry-ui 1.0.4 → 1.0.5
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.
- package/AGENT.md +30 -1
- package/dist/components/ry-card.d.ts +17 -0
- package/dist/components/ry-card.d.ts.map +1 -0
- package/dist/css/ry-structure.css +17 -0
- package/dist/css/ry-theme.css +12 -0
- package/dist/css/ry-ui.css +29 -0
- package/dist/ry-ui.d.ts +1 -0
- package/dist/ry-ui.d.ts.map +1 -1
- package/dist/ry-ui.js +125 -110
- package/dist/ry-ui.js.map +1 -1
- package/docs/components/layout.md +26 -1
- package/package.json +1 -1
package/dist/ry-ui.js
CHANGED
|
@@ -603,6 +603,20 @@ class q extends u {
|
|
|
603
603
|
}
|
|
604
604
|
customElements.define("ry-theme-toggle", q);
|
|
605
605
|
class z extends u {
|
|
606
|
+
setup() {
|
|
607
|
+
this.hasAttribute("interactive") && (this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.setAttribute("role", "link"), this.on(this, "click", this.#t), this.on(this, "keydown", this.#e));
|
|
608
|
+
}
|
|
609
|
+
#t = (t) => {
|
|
610
|
+
if (t.target.closest("a, button, ry-button")) return;
|
|
611
|
+
const s = this.getAttribute("href");
|
|
612
|
+
s && (window.location.href = s), this.emit("click", { originalEvent: t });
|
|
613
|
+
};
|
|
614
|
+
#e = (t) => {
|
|
615
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), this.click());
|
|
616
|
+
};
|
|
617
|
+
}
|
|
618
|
+
customElements.define("ry-card", z);
|
|
619
|
+
class U extends u {
|
|
606
620
|
setup() {
|
|
607
621
|
this.#t();
|
|
608
622
|
const t = this.$("[close]");
|
|
@@ -622,8 +636,8 @@ class z extends u {
|
|
|
622
636
|
}, 200), this.emit("close");
|
|
623
637
|
}
|
|
624
638
|
}
|
|
625
|
-
customElements.define("ry-alert",
|
|
626
|
-
class
|
|
639
|
+
customElements.define("ry-alert", U);
|
|
640
|
+
class V extends u {
|
|
627
641
|
static get observedAttributes() {
|
|
628
642
|
return ["label", "error", "hint"];
|
|
629
643
|
}
|
|
@@ -676,9 +690,9 @@ class U extends u {
|
|
|
676
690
|
e && (e.textContent = t ?? "");
|
|
677
691
|
}
|
|
678
692
|
}
|
|
679
|
-
customElements.define("ry-field",
|
|
680
|
-
let
|
|
681
|
-
class
|
|
693
|
+
customElements.define("ry-field", V);
|
|
694
|
+
let W = 0;
|
|
695
|
+
class Y extends u {
|
|
682
696
|
#t = null;
|
|
683
697
|
static observedAttributes = ["checked", "disabled"];
|
|
684
698
|
setup() {
|
|
@@ -686,7 +700,7 @@ class W extends u {
|
|
|
686
700
|
}
|
|
687
701
|
#e() {
|
|
688
702
|
if (this.$('[data-ry-target="track"]')) return;
|
|
689
|
-
const t = `ry-switch-${++
|
|
703
|
+
const t = `ry-switch-${++W}`, e = this.getAttribute("name") ?? "", s = this.hasAttribute("checked"), i = this.hasAttribute("disabled"), r = this.textContent?.trim() ?? "";
|
|
690
704
|
this.innerHTML = `
|
|
691
705
|
<label data-ry-target="wrapper" class="ry-switch__wrapper" for="${t}">
|
|
692
706
|
<input
|
|
@@ -731,14 +745,14 @@ class W extends u {
|
|
|
731
745
|
this.#t && (this.#t.value = t);
|
|
732
746
|
}
|
|
733
747
|
}
|
|
734
|
-
customElements.define("ry-switch",
|
|
735
|
-
let
|
|
736
|
-
class
|
|
748
|
+
customElements.define("ry-switch", Y);
|
|
749
|
+
let X = 0;
|
|
750
|
+
class G extends u {
|
|
737
751
|
#t = null;
|
|
738
752
|
#e = null;
|
|
739
753
|
#i = null;
|
|
740
754
|
setup() {
|
|
741
|
-
this.#i = `ry-tooltip-${++
|
|
755
|
+
this.#i = `ry-tooltip-${++X}`, this.#s();
|
|
742
756
|
const t = this.firstElementChild;
|
|
743
757
|
t && (t.setAttribute("aria-describedby", this.#i), this.on(t, "mouseenter", this.#r), this.on(t, "mouseleave", this.#o), this.on(t, "focusin", this.#r), this.on(t, "focusout", this.#o)), this.on(document, "keydown", this.#c);
|
|
744
758
|
}
|
|
@@ -764,8 +778,8 @@ class X extends u {
|
|
|
764
778
|
this.#t && clearTimeout(this.#t);
|
|
765
779
|
}
|
|
766
780
|
}
|
|
767
|
-
customElements.define("ry-tooltip",
|
|
768
|
-
class
|
|
781
|
+
customElements.define("ry-tooltip", G);
|
|
782
|
+
class J extends u {
|
|
769
783
|
#t = null;
|
|
770
784
|
#e = 0;
|
|
771
785
|
setup() {
|
|
@@ -810,8 +824,8 @@ class G extends u {
|
|
|
810
824
|
this.state === "open" ? this.close() : this.open();
|
|
811
825
|
}
|
|
812
826
|
}
|
|
813
|
-
customElements.define("ry-drawer",
|
|
814
|
-
const
|
|
827
|
+
customElements.define("ry-drawer", J);
|
|
828
|
+
const Z = 4e3;
|
|
815
829
|
class f extends u {
|
|
816
830
|
#t = null;
|
|
817
831
|
static observedAttributes = ["variant", "duration"];
|
|
@@ -841,7 +855,7 @@ class f extends u {
|
|
|
841
855
|
this.#s();
|
|
842
856
|
const t = this.$("[close]");
|
|
843
857
|
t && this.on(t, "click", () => this.dismiss());
|
|
844
|
-
const e = parseInt(this.getAttribute("duration") ?? String(
|
|
858
|
+
const e = parseInt(this.getAttribute("duration") ?? String(Z), 10);
|
|
845
859
|
e > 0 && (this.#t = setTimeout(() => this.dismiss(), e)), requestAnimationFrame(() => {
|
|
846
860
|
this.state = "visible";
|
|
847
861
|
});
|
|
@@ -947,17 +961,17 @@ const w = {
|
|
|
947
961
|
function p(h) {
|
|
948
962
|
return w[h] ?? "";
|
|
949
963
|
}
|
|
950
|
-
function
|
|
964
|
+
function It(h, t) {
|
|
951
965
|
w[h] = t;
|
|
952
966
|
}
|
|
953
|
-
function
|
|
967
|
+
function Ht(h) {
|
|
954
968
|
Object.assign(w, h);
|
|
955
969
|
}
|
|
956
|
-
function
|
|
970
|
+
function Bt() {
|
|
957
971
|
return Object.keys(w);
|
|
958
972
|
}
|
|
959
|
-
let
|
|
960
|
-
class
|
|
973
|
+
let Q = 0;
|
|
974
|
+
class tt extends u {
|
|
961
975
|
#t = null;
|
|
962
976
|
#e = -1;
|
|
963
977
|
#i = "";
|
|
@@ -970,7 +984,7 @@ class Q extends u {
|
|
|
970
984
|
}
|
|
971
985
|
static observedAttributes = ["value", "disabled"];
|
|
972
986
|
setup() {
|
|
973
|
-
this.#t = `ry-select-${++
|
|
987
|
+
this.#t = `ry-select-${++Q}`, this.#o(), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.on(this, "click", this.#c), this.on(this, "keydown", this.#h), this.on(document, "click", this.#d), this.#a && this.on(this, "ry:remove", this.#n), this.hasAttribute("data-ry-state") || (this.state = "closed");
|
|
974
988
|
const t = this.getAttribute("value");
|
|
975
989
|
if (t)
|
|
976
990
|
if (this.#a)
|
|
@@ -1244,11 +1258,11 @@ class Q extends u {
|
|
|
1244
1258
|
this.#s && clearTimeout(this.#s);
|
|
1245
1259
|
}
|
|
1246
1260
|
}
|
|
1247
|
-
class
|
|
1261
|
+
class et extends HTMLElement {
|
|
1248
1262
|
}
|
|
1249
|
-
customElements.define("ry-option",
|
|
1250
|
-
customElements.define("ry-select",
|
|
1251
|
-
class
|
|
1263
|
+
customElements.define("ry-option", et);
|
|
1264
|
+
customElements.define("ry-select", tt);
|
|
1265
|
+
class st extends u {
|
|
1252
1266
|
#t = "";
|
|
1253
1267
|
static get observedAttributes() {
|
|
1254
1268
|
return ["language", "title", "line-numbers"];
|
|
@@ -1547,8 +1561,8 @@ class et extends u {
|
|
|
1547
1561
|
this.#t = t, this.#e();
|
|
1548
1562
|
}
|
|
1549
1563
|
}
|
|
1550
|
-
customElements.define("ry-code",
|
|
1551
|
-
class
|
|
1564
|
+
customElements.define("ry-code", st);
|
|
1565
|
+
class it extends u {
|
|
1552
1566
|
setup() {
|
|
1553
1567
|
const t = this.$("template");
|
|
1554
1568
|
if (!t) return;
|
|
@@ -1592,8 +1606,8 @@ class st extends u {
|
|
|
1592
1606
|
`).trim();
|
|
1593
1607
|
}
|
|
1594
1608
|
}
|
|
1595
|
-
customElements.define("ry-example",
|
|
1596
|
-
class
|
|
1609
|
+
customElements.define("ry-example", it);
|
|
1610
|
+
class rt extends u {
|
|
1597
1611
|
static get observedAttributes() {
|
|
1598
1612
|
return ["name", "size", "label"];
|
|
1599
1613
|
}
|
|
@@ -1626,24 +1640,24 @@ class it extends u {
|
|
|
1626
1640
|
this.setAttribute("size", String(t));
|
|
1627
1641
|
}
|
|
1628
1642
|
}
|
|
1629
|
-
customElements.define("ry-icon",
|
|
1630
|
-
const
|
|
1631
|
-
function
|
|
1643
|
+
customElements.define("ry-icon", rt);
|
|
1644
|
+
const at = ["form", "section", "fieldset", "ry-section"], m = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Set();
|
|
1645
|
+
function nt(h) {
|
|
1632
1646
|
let t = h.parentElement;
|
|
1633
1647
|
for (; t; ) {
|
|
1634
|
-
if (
|
|
1648
|
+
if (at.some((e) => t.matches(e)))
|
|
1635
1649
|
return t;
|
|
1636
1650
|
t = t.parentElement;
|
|
1637
1651
|
}
|
|
1638
1652
|
return null;
|
|
1639
1653
|
}
|
|
1640
|
-
function
|
|
1654
|
+
function ot(h) {
|
|
1641
1655
|
if (E.has(h)) return;
|
|
1642
1656
|
const t = m.get(h);
|
|
1643
1657
|
if (!t || t.size < 2) return;
|
|
1644
1658
|
const e = /* @__PURE__ */ new Map();
|
|
1645
1659
|
for (const s of t) {
|
|
1646
|
-
const i =
|
|
1660
|
+
const i = nt(s), r = e.get(i) ?? [];
|
|
1647
1661
|
r.push(s), e.set(i, r);
|
|
1648
1662
|
}
|
|
1649
1663
|
if (e.size > 1) {
|
|
@@ -1659,7 +1673,7 @@ function nt(h) {
|
|
|
1659
1673
|
), E.add(h);
|
|
1660
1674
|
}
|
|
1661
1675
|
}
|
|
1662
|
-
class
|
|
1676
|
+
class ht extends u {
|
|
1663
1677
|
static observedAttributes = ["pressed", "disabled", "name", "value"];
|
|
1664
1678
|
#t = !1;
|
|
1665
1679
|
setup() {
|
|
@@ -1670,7 +1684,7 @@ class ot extends u {
|
|
|
1670
1684
|
}
|
|
1671
1685
|
#e() {
|
|
1672
1686
|
const t = this.name;
|
|
1673
|
-
t && (m.has(t) || m.set(t, /* @__PURE__ */ new Set()), m.get(t).add(this), this.#t = !0, queueMicrotask(() =>
|
|
1687
|
+
t && (m.has(t) || m.set(t, /* @__PURE__ */ new Set()), m.get(t).add(this), this.#t = !0, queueMicrotask(() => ot(t)));
|
|
1674
1688
|
}
|
|
1675
1689
|
#i() {
|
|
1676
1690
|
if (!this.#t) return;
|
|
@@ -1731,8 +1745,8 @@ class ot extends u {
|
|
|
1731
1745
|
this.setAttribute("icon", t);
|
|
1732
1746
|
}
|
|
1733
1747
|
}
|
|
1734
|
-
customElements.define("ry-toggle-button",
|
|
1735
|
-
class
|
|
1748
|
+
customElements.define("ry-toggle-button", ht);
|
|
1749
|
+
class lt extends u {
|
|
1736
1750
|
#t = !1;
|
|
1737
1751
|
#e = null;
|
|
1738
1752
|
#i = null;
|
|
@@ -1937,8 +1951,8 @@ class ht extends u {
|
|
|
1937
1951
|
t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
1938
1952
|
}
|
|
1939
1953
|
}
|
|
1940
|
-
customElements.define("ry-slider",
|
|
1941
|
-
class
|
|
1954
|
+
customElements.define("ry-slider", lt);
|
|
1955
|
+
class ct extends u {
|
|
1942
1956
|
#t = !1;
|
|
1943
1957
|
#e = 0;
|
|
1944
1958
|
#i = 0;
|
|
@@ -2085,9 +2099,9 @@ class lt extends u {
|
|
|
2085
2099
|
t ? this.setAttribute("disabled", "") : this.removeAttribute("disabled");
|
|
2086
2100
|
}
|
|
2087
2101
|
}
|
|
2088
|
-
customElements.define("ry-knob",
|
|
2102
|
+
customElements.define("ry-knob", ct);
|
|
2089
2103
|
const S = 15, T = 3;
|
|
2090
|
-
class
|
|
2104
|
+
class dt extends u {
|
|
2091
2105
|
#t = null;
|
|
2092
2106
|
#e = null;
|
|
2093
2107
|
#i = null;
|
|
@@ -2347,7 +2361,7 @@ class ct extends u {
|
|
|
2347
2361
|
this.#l();
|
|
2348
2362
|
}
|
|
2349
2363
|
}
|
|
2350
|
-
customElements.define("ry-number-select",
|
|
2364
|
+
customElements.define("ry-number-select", dt);
|
|
2351
2365
|
function v(h) {
|
|
2352
2366
|
const t = h.h / 360, e = h.s / 100, s = h.v / 100;
|
|
2353
2367
|
let i = 0, r = 0, a = 0;
|
|
@@ -2408,7 +2422,7 @@ function L(h) {
|
|
|
2408
2422
|
l: Math.round(s * 100)
|
|
2409
2423
|
};
|
|
2410
2424
|
}
|
|
2411
|
-
function
|
|
2425
|
+
function ut(h) {
|
|
2412
2426
|
const t = h.s / 100, e = h.l / 100, s = e + t * Math.min(e, 1 - e), i = s === 0 ? 0 : 2 * (1 - e / s);
|
|
2413
2427
|
return {
|
|
2414
2428
|
h: h.h,
|
|
@@ -2420,7 +2434,7 @@ function D(h) {
|
|
|
2420
2434
|
const t = (e) => e.toString(16).padStart(2, "0");
|
|
2421
2435
|
return `#${t(h.r)}${t(h.g)}${t(h.b)}`;
|
|
2422
2436
|
}
|
|
2423
|
-
function
|
|
2437
|
+
function pt(h) {
|
|
2424
2438
|
const t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(h);
|
|
2425
2439
|
if (!t) {
|
|
2426
2440
|
const e = /^#?([a-f\d])([a-f\d])([a-f\d])$/i.exec(h);
|
|
@@ -2448,7 +2462,7 @@ function A(h) {
|
|
|
2448
2462
|
}, n = parseInt(i[4], 16) / 255;
|
|
2449
2463
|
return { hsv: $(a), alpha: Math.round(n * 100) };
|
|
2450
2464
|
}
|
|
2451
|
-
const r =
|
|
2465
|
+
const r = pt(t);
|
|
2452
2466
|
return r ? { hsv: $(r), alpha: 100 } : null;
|
|
2453
2467
|
}
|
|
2454
2468
|
const e = /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)$/.exec(t);
|
|
@@ -2467,11 +2481,11 @@ function A(h) {
|
|
|
2467
2481
|
s: parseFloat(s[2]),
|
|
2468
2482
|
l: parseFloat(s[3])
|
|
2469
2483
|
}, r = s[4] ? parseFloat(s[4]) * 100 : 100;
|
|
2470
|
-
return { hsv:
|
|
2484
|
+
return { hsv: ut(i), alpha: r };
|
|
2471
2485
|
}
|
|
2472
2486
|
return null;
|
|
2473
2487
|
}
|
|
2474
|
-
class
|
|
2488
|
+
class gt extends u {
|
|
2475
2489
|
#t = 0;
|
|
2476
2490
|
#e = 100;
|
|
2477
2491
|
#i = 100;
|
|
@@ -2832,8 +2846,8 @@ class pt extends u {
|
|
|
2832
2846
|
return this.format = e, s;
|
|
2833
2847
|
}
|
|
2834
2848
|
}
|
|
2835
|
-
customElements.define("ry-color-picker",
|
|
2836
|
-
class
|
|
2849
|
+
customElements.define("ry-color-picker", gt);
|
|
2850
|
+
class ft extends u {
|
|
2837
2851
|
#t = null;
|
|
2838
2852
|
#e = null;
|
|
2839
2853
|
#i = null;
|
|
@@ -2984,7 +2998,7 @@ class gt extends u {
|
|
|
2984
2998
|
return this.#s?.hsv ?? { h: 0, s: 0, v: 0 };
|
|
2985
2999
|
}
|
|
2986
3000
|
}
|
|
2987
|
-
customElements.define("ry-color-input",
|
|
3001
|
+
customElements.define("ry-color-input", ft);
|
|
2988
3002
|
function x(h) {
|
|
2989
3003
|
const t = h.trim().toLowerCase();
|
|
2990
3004
|
if (t.startsWith("#")) {
|
|
@@ -3017,19 +3031,19 @@ function x(h) {
|
|
|
3017
3031
|
}
|
|
3018
3032
|
return null;
|
|
3019
3033
|
}
|
|
3020
|
-
function
|
|
3034
|
+
function yt(h) {
|
|
3021
3035
|
const t = (e) => Math.max(0, Math.min(255, e)).toString(16).padStart(2, "0");
|
|
3022
3036
|
return `#${t(h.r)}${t(h.g)}${t(h.b)}`;
|
|
3023
3037
|
}
|
|
3024
|
-
function
|
|
3038
|
+
function bt(h, t, e) {
|
|
3025
3039
|
return {
|
|
3026
3040
|
r: Math.round(h.r + (t.r - h.r) * e),
|
|
3027
3041
|
g: Math.round(h.g + (t.g - h.g) * e),
|
|
3028
3042
|
b: Math.round(h.b + (t.b - h.b) * e)
|
|
3029
3043
|
};
|
|
3030
3044
|
}
|
|
3031
|
-
const I = "linear-gradient(90deg, #000000 0%, #ffffff 100%)",
|
|
3032
|
-
class
|
|
3045
|
+
const I = "linear-gradient(90deg, #000000 0%, #ffffff 100%)", mt = 50;
|
|
3046
|
+
class vt extends u {
|
|
3033
3047
|
#t = "linear";
|
|
3034
3048
|
#e = 90;
|
|
3035
3049
|
#i = "circle";
|
|
@@ -3208,7 +3222,7 @@ class mt extends u {
|
|
|
3208
3222
|
const s = Math.max(0, Math.min(1, (t.clientX - this.#h.left) / this.#h.width));
|
|
3209
3223
|
e.position = Math.round(s * 100);
|
|
3210
3224
|
const i = this.#h.top + this.#h.height / 2, r = Math.abs(t.clientY - i);
|
|
3211
|
-
this.#c = r >
|
|
3225
|
+
this.#c = r > mt && this.#s.length > 2;
|
|
3212
3226
|
const a = this.#n?.querySelector(`[data-stop-id="${e.id}"]`);
|
|
3213
3227
|
a && (a.style.left = this.#f(e.position), this.#c ? (a.style.opacity = "0.3", a.style.transform = "translate(-50%, -50%) scale(0.7)") : (a.style.opacity = "", a.style.transform = "")), this.#$(), this.#N(), this.#H(), this.#w(), this.#D();
|
|
3214
3228
|
};
|
|
@@ -3304,7 +3318,7 @@ class mt extends u {
|
|
|
3304
3318
|
const r = i.position - s.position;
|
|
3305
3319
|
if (r === 0) return s.color;
|
|
3306
3320
|
const a = (t - s.position) / r, n = x(s.color), o = x(i.color);
|
|
3307
|
-
return !n || !o ? s.color :
|
|
3321
|
+
return !n || !o ? s.color : yt(bt(n, o, a));
|
|
3308
3322
|
}
|
|
3309
3323
|
// ───────────────────────────────────────────────────────────────────────────
|
|
3310
3324
|
// Update methods
|
|
@@ -3434,9 +3448,9 @@ class mt extends u {
|
|
|
3434
3448
|
return e && (this.#w(), this.#S(), this.#B()), e;
|
|
3435
3449
|
}
|
|
3436
3450
|
}
|
|
3437
|
-
customElements.define("ry-gradient-picker",
|
|
3438
|
-
let
|
|
3439
|
-
const
|
|
3451
|
+
customElements.define("ry-gradient-picker", vt);
|
|
3452
|
+
let At = 0;
|
|
3453
|
+
const kt = 5;
|
|
3440
3454
|
function _(h) {
|
|
3441
3455
|
return p(h).replace(/width="24"/g, 'width="16"').replace(/height="24"/g, 'height="16"').replace(/viewBox/, 'class="ry-tree__icon" viewBox');
|
|
3442
3456
|
}
|
|
@@ -3482,7 +3496,7 @@ class k extends u {
|
|
|
3482
3496
|
(o) => o.tagName === "RY-TREE-ITEM"
|
|
3483
3497
|
);
|
|
3484
3498
|
if (a.length > 0) {
|
|
3485
|
-
const o = `ry-tree-${++
|
|
3499
|
+
const o = `ry-tree-${++At}`, l = document.createElement("input");
|
|
3486
3500
|
l.type = "checkbox", l.id = o, l.className = "ry-tree__toggle", i && (l.checked = !0);
|
|
3487
3501
|
const c = document.createElement("label");
|
|
3488
3502
|
c.htmlFor = o, c.className = "ry-tree__label", c.setAttribute("data-ry-target", "folder"), c.dataset.ryLabel = s, c.innerHTML = `
|
|
@@ -3559,7 +3573,7 @@ class k extends u {
|
|
|
3559
3573
|
if (!this.#t && !this.#e) return;
|
|
3560
3574
|
if (this.#t && !this.#e) {
|
|
3561
3575
|
const c = t.clientX - this.#i, d = t.clientY - this.#s;
|
|
3562
|
-
if (Math.hypot(c, d) <
|
|
3576
|
+
if (Math.hypot(c, d) < kt) return;
|
|
3563
3577
|
this.#t = !1, this.#e = !0, this.#l(t);
|
|
3564
3578
|
}
|
|
3565
3579
|
if (!this.#e || !this.#a) return;
|
|
@@ -3635,12 +3649,12 @@ class k extends u {
|
|
|
3635
3649
|
return e?.dataset.ryLabel ?? s?.dataset.ryLabel ?? "";
|
|
3636
3650
|
}
|
|
3637
3651
|
}
|
|
3638
|
-
class
|
|
3652
|
+
class wt extends u {
|
|
3639
3653
|
// Declarative container consumed by RyTree#build
|
|
3640
3654
|
}
|
|
3641
3655
|
customElements.define("ry-tree", k);
|
|
3642
|
-
customElements.define("ry-tree-item",
|
|
3643
|
-
class
|
|
3656
|
+
customElements.define("ry-tree-item", wt);
|
|
3657
|
+
class $t extends u {
|
|
3644
3658
|
setup() {
|
|
3645
3659
|
this.#t();
|
|
3646
3660
|
}
|
|
@@ -3661,8 +3675,8 @@ class wt extends u {
|
|
|
3661
3675
|
return this.$('[data-ry-target="label"]')?.textContent?.trim() ?? "";
|
|
3662
3676
|
}
|
|
3663
3677
|
}
|
|
3664
|
-
customElements.define("ry-tag",
|
|
3665
|
-
class
|
|
3678
|
+
customElements.define("ry-tag", $t);
|
|
3679
|
+
class xt extends u {
|
|
3666
3680
|
#t = [];
|
|
3667
3681
|
setup() {
|
|
3668
3682
|
this.#e(), this.#i();
|
|
@@ -3741,11 +3755,11 @@ class $t extends u {
|
|
|
3741
3755
|
return [...this.#t];
|
|
3742
3756
|
}
|
|
3743
3757
|
}
|
|
3744
|
-
customElements.define("ry-tag-input",
|
|
3745
|
-
class xt extends u {
|
|
3746
|
-
}
|
|
3747
|
-
customElements.define("ry-hero", xt);
|
|
3758
|
+
customElements.define("ry-tag-input", xt);
|
|
3748
3759
|
class _t extends u {
|
|
3760
|
+
}
|
|
3761
|
+
customElements.define("ry-hero", _t);
|
|
3762
|
+
class Mt extends u {
|
|
3749
3763
|
setup() {
|
|
3750
3764
|
this.#t();
|
|
3751
3765
|
}
|
|
@@ -3758,8 +3772,8 @@ class _t extends u {
|
|
|
3758
3772
|
`;
|
|
3759
3773
|
}
|
|
3760
3774
|
}
|
|
3761
|
-
customElements.define("ry-stat",
|
|
3762
|
-
class
|
|
3775
|
+
customElements.define("ry-stat", Mt);
|
|
3776
|
+
class Et extends u {
|
|
3763
3777
|
setup() {
|
|
3764
3778
|
this.#t();
|
|
3765
3779
|
}
|
|
@@ -3773,17 +3787,17 @@ class Mt extends u {
|
|
|
3773
3787
|
s.setAttribute("data-ry-target", "icon"), s.className = "ry-feature__icon", s.innerHTML = e, this.insertBefore(s, this.firstChild);
|
|
3774
3788
|
}
|
|
3775
3789
|
}
|
|
3776
|
-
class Et extends u {
|
|
3777
|
-
}
|
|
3778
|
-
customElements.define("ry-feature", Mt);
|
|
3779
|
-
customElements.define("ry-feature-grid", Et);
|
|
3780
3790
|
class Ct extends u {
|
|
3781
3791
|
}
|
|
3792
|
+
customElements.define("ry-feature", Et);
|
|
3793
|
+
customElements.define("ry-feature-grid", Ct);
|
|
3782
3794
|
class St extends u {
|
|
3783
3795
|
}
|
|
3784
|
-
customElements.define("ry-pricing", Ct);
|
|
3785
|
-
customElements.define("ry-pricing-card", St);
|
|
3786
3796
|
class Tt extends u {
|
|
3797
|
+
}
|
|
3798
|
+
customElements.define("ry-pricing", St);
|
|
3799
|
+
customElements.define("ry-pricing-card", Tt);
|
|
3800
|
+
class Lt extends u {
|
|
3787
3801
|
#t = 0;
|
|
3788
3802
|
#e = 0;
|
|
3789
3803
|
#i = null;
|
|
@@ -3863,52 +3877,53 @@ class Tt extends u {
|
|
|
3863
3877
|
this.#p();
|
|
3864
3878
|
}
|
|
3865
3879
|
}
|
|
3866
|
-
customElements.define("ry-carousel",
|
|
3880
|
+
customElements.define("ry-carousel", Lt);
|
|
3867
3881
|
window.RyToast = f;
|
|
3868
3882
|
console.log("ry-ui loaded");
|
|
3869
3883
|
export {
|
|
3870
3884
|
R as RyAccordion,
|
|
3871
|
-
|
|
3885
|
+
U as RyAlert,
|
|
3872
3886
|
N as RyButton,
|
|
3873
3887
|
O as RyButtonGroup,
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3888
|
+
z as RyCard,
|
|
3889
|
+
Lt as RyCarousel,
|
|
3890
|
+
st as RyCode,
|
|
3891
|
+
ft as RyColorInput,
|
|
3892
|
+
gt as RyColorPicker,
|
|
3893
|
+
J as RyDrawer,
|
|
3879
3894
|
j as RyDropdown,
|
|
3880
3895
|
u as RyElement,
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3896
|
+
it as RyExample,
|
|
3897
|
+
Et as RyFeature,
|
|
3898
|
+
Ct as RyFeatureGrid,
|
|
3899
|
+
V as RyField,
|
|
3900
|
+
vt as RyGradientPicker,
|
|
3901
|
+
_t as RyHero,
|
|
3902
|
+
rt as RyIcon,
|
|
3903
|
+
ct as RyKnob,
|
|
3889
3904
|
P as RyModal,
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3905
|
+
dt as RyNumberSelect,
|
|
3906
|
+
St as RyPricing,
|
|
3907
|
+
Tt as RyPricingCard,
|
|
3908
|
+
tt as RySelect,
|
|
3909
|
+
lt as RySlider,
|
|
3895
3910
|
K as RySplit,
|
|
3896
|
-
|
|
3897
|
-
|
|
3911
|
+
Mt as RyStat,
|
|
3912
|
+
Y as RySwitch,
|
|
3898
3913
|
F as RyTabs,
|
|
3899
|
-
|
|
3900
|
-
|
|
3914
|
+
$t as RyTag,
|
|
3915
|
+
xt as RyTagInput,
|
|
3901
3916
|
q as RyThemeToggle,
|
|
3902
3917
|
f as RyToast,
|
|
3903
|
-
|
|
3904
|
-
|
|
3918
|
+
ht as RyToggleButton,
|
|
3919
|
+
G as RyTooltip,
|
|
3905
3920
|
k as RyTree,
|
|
3906
|
-
|
|
3921
|
+
wt as RyTreeItem,
|
|
3907
3922
|
p as getIcon,
|
|
3908
|
-
|
|
3923
|
+
Bt as getIconNames,
|
|
3909
3924
|
C as processTransforms,
|
|
3910
|
-
|
|
3911
|
-
|
|
3925
|
+
It as registerIcon,
|
|
3926
|
+
Ht as registerIcons,
|
|
3912
3927
|
M as transform
|
|
3913
3928
|
};
|
|
3914
3929
|
//# sourceMappingURL=ry-ui.js.map
|