@rhi-zone/rainbow-ui 0.2.0-alpha.0
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/dist/elements.d.ts +95 -0
- package/dist/elements.js +118 -0
- package/dist/elements.test.d.ts +1 -0
- package/dist/form-state.d.ts +173 -0
- package/dist/form-state.js +98 -0
- package/dist/form-state.test.d.ts +1 -0
- package/dist/html-C8SnQjvU.js +238 -0
- package/dist/html.d.ts +499 -0
- package/dist/html.js +90 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +72 -0
- package/dist/keybinds.d.ts +103 -0
- package/dist/widget.d.ts +420 -0
- package/dist/widget.js +347 -0
- package/dist/widget.test.d.ts +7 -0
- package/package.json +44 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
const i = "http://www.w3.org/2000/svg";
|
|
2
|
+
function c(t, s) {
|
|
3
|
+
for (const [n, a] of Object.entries(s))
|
|
4
|
+
a == null || a === !1 || t.setAttribute(n, a === !0 ? "" : String(a));
|
|
5
|
+
}
|
|
6
|
+
function d(t, s) {
|
|
7
|
+
for (const n of s)
|
|
8
|
+
t.appendChild(typeof n == "string" ? document.createTextNode(n) : n.node);
|
|
9
|
+
}
|
|
10
|
+
function e(t) {
|
|
11
|
+
return (s, ...n) => {
|
|
12
|
+
const a = document.createElement(t);
|
|
13
|
+
return c(a, s), d(a, n), { _tag: t, node: a };
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function l(t) {
|
|
17
|
+
return (s) => {
|
|
18
|
+
const n = document.createElement(t);
|
|
19
|
+
return c(n, s), { _tag: t, node: n };
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function o(t) {
|
|
23
|
+
return (s, ...n) => {
|
|
24
|
+
const a = document.createElementNS(i, t);
|
|
25
|
+
return c(a, s), d(a, n), { _tag: t, node: a };
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function r(t) {
|
|
29
|
+
return (s) => {
|
|
30
|
+
const n = document.createElementNS(i, t);
|
|
31
|
+
return c(n, s), { _tag: t, node: n };
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const u = (t, ...s) => e("html")(t, ...s), m = (t, ...s) => e("head")(t, ...s), p = (t, ...s) => e("body")(t, ...s), g = (t) => l("meta")(t), f = (t) => l("link")(t), h = (t, s) => {
|
|
35
|
+
const n = document.createElement("script");
|
|
36
|
+
return c(n, t), s !== void 0 && (n.textContent = s), { _tag: "script", node: n };
|
|
37
|
+
}, b = (t, s) => {
|
|
38
|
+
const n = document.createElement("style");
|
|
39
|
+
return c(n, t), n.textContent = s, { _tag: "style", node: n };
|
|
40
|
+
}, v = (t, s) => {
|
|
41
|
+
const n = document.createElement("title");
|
|
42
|
+
return c(n, t), n.textContent = s, { _tag: "title", node: n };
|
|
43
|
+
}, _ = (t, ...s) => e("div")(t, ...s), y = (t, ...s) => e("section")(t, ...s), x = (t, ...s) => e("article")(t, ...s), E = (t, ...s) => e("aside")(t, ...s), k = (t, ...s) => e("header")(t, ...s), S = (t, ...s) => e("footer")(t, ...s), C = (t, ...s) => e("main")(t, ...s), N = (t, ...s) => e("nav")(t, ...s), j = (t, ...s) => e("h1")(t, ...s), w = (t, ...s) => e("h2")(t, ...s), G = (t, ...s) => e("h3")(t, ...s), O = (t, ...s) => e("h4")(t, ...s), q = (t, ...s) => e("h5")(t, ...s), T = (t, ...s) => e("h6")(t, ...s), P = (t, ...s) => e("p")(t, ...s), A = (t, ...s) => e("a")(t, ...s), V = (t, ...s) => e("span")(t, ...s), z = (t, ...s) => e("em")(t, ...s), I = (t, ...s) => e("strong")(t, ...s), M = (t, ...s) => e("code")(t, ...s), B = (t, ...s) => e("pre")(t, ...s), D = (t, ...s) => e("blockquote")(t, ...s), F = (t, ...s) => e("i")(t, ...s), H = (t, ...s) => e("b")(t, ...s), J = (t, ...s) => e("small")(t, ...s), K = (t, ...s) => e("abbr")(t, ...s), L = () => ({ _tag: "br", node: document.createElement("br") }), Q = (t = {}) => l("hr")(t), R = (t) => l("img")(t), U = (t, ...s) => e("ul")(t, ...s), W = (t, ...s) => e("ol")(t, ...s), X = (t, ...s) => e("li")(t, ...s), Y = (t, ...s) => e("dl")(t, ...s), Z = (t, ...s) => e("dt")(t, ...s), $ = (t, ...s) => e("dd")(t, ...s), tt = (t, ...s) => e("table")(t, ...s), st = (t, ...s) => e("thead")(t, ...s), et = (t, ...s) => e("tbody")(t, ...s), nt = (t, ...s) => e("tfoot")(t, ...s), at = (t, ...s) => e("tr")(t, ...s), ot = (t, ...s) => e("th")(t, ...s), ct = (t, ...s) => e("td")(t, ...s), rt = (t, ...s) => e("form")(t, ...s), lt = (t) => l("input")(t), it = (t, ...s) => e("label")(t, ...s), dt = (t, ...s) => e("fieldset")(t, ...s), ut = (t, ...s) => e("select")(t, ...s), mt = (t, s) => {
|
|
44
|
+
const n = document.createElement("option");
|
|
45
|
+
return c(n, t), s !== void 0 && (n.textContent = s), { _tag: "option", node: n };
|
|
46
|
+
}, pt = (t, s) => {
|
|
47
|
+
const n = document.createElement("textarea");
|
|
48
|
+
return c(n, t), s !== void 0 && (n.textContent = s), { _tag: "textarea", node: n };
|
|
49
|
+
}, gt = (t, ...s) => e("button")(t, ...s), ft = (t) => l("iframe")(t), ht = (t, ...s) => e("video")(t, ...s), bt = (t, ...s) => e("audio")(t, ...s), vt = (t) => l("source")(t), _t = (t) => l("canvas")(t), yt = (t, ...s) => {
|
|
50
|
+
const n = document.createElementNS(i, "svg");
|
|
51
|
+
return c(n, t), d(n, s), { _tag: "svg", node: n };
|
|
52
|
+
}, xt = (t) => r("circle")(t), Et = (t) => r("ellipse")(t), kt = (t) => r("rect")(t), St = (t) => r("line")(t), Ct = (t) => r("polyline")(t), Nt = (t) => r("polygon")(t), jt = (t) => r("path")(t), wt = (t, ...s) => o("text")(t, ...s), Gt = (t, ...s) => o("tspan")(t, ...s), Ot = (t, ...s) => o("g")(t, ...s), qt = (t, ...s) => o("defs")(t, ...s), Tt = (t, ...s) => o("symbol")(t, ...s), Pt = (t) => r("use")(t), At = (t, ...s) => o("clipPath")(t, ...s), Vt = (t, ...s) => o("mask")(t, ...s), zt = (t, ...s) => o("linearGradient")(t, ...s), It = (t, ...s) => o("radialGradient")(t, ...s), Mt = (t) => r("stop")(t), Bt = (t, ...s) => o("pattern")(t, ...s), Dt = (t) => r("image")(t), Ft = (t, ...s) => o("foreignObject")(t, ...s);
|
|
53
|
+
function Ht(t) {
|
|
54
|
+
return t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
55
|
+
}
|
|
56
|
+
function Jt(t) {
|
|
57
|
+
return document.createTextNode(t);
|
|
58
|
+
}
|
|
59
|
+
const Kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
60
|
+
__proto__: null,
|
|
61
|
+
a: A,
|
|
62
|
+
abbr: K,
|
|
63
|
+
article: x,
|
|
64
|
+
aside: E,
|
|
65
|
+
audio: bt,
|
|
66
|
+
b: H,
|
|
67
|
+
blockquote: D,
|
|
68
|
+
body: p,
|
|
69
|
+
br: L,
|
|
70
|
+
button: gt,
|
|
71
|
+
canvas: _t,
|
|
72
|
+
circle: xt,
|
|
73
|
+
clipPath: At,
|
|
74
|
+
code: M,
|
|
75
|
+
dd: $,
|
|
76
|
+
defs: qt,
|
|
77
|
+
div: _,
|
|
78
|
+
dl: Y,
|
|
79
|
+
dt: Z,
|
|
80
|
+
ellipse: Et,
|
|
81
|
+
em: z,
|
|
82
|
+
fieldset: dt,
|
|
83
|
+
footer: S,
|
|
84
|
+
foreignObject: Ft,
|
|
85
|
+
form: rt,
|
|
86
|
+
g: Ot,
|
|
87
|
+
h1: j,
|
|
88
|
+
h2: w,
|
|
89
|
+
h3: G,
|
|
90
|
+
h4: O,
|
|
91
|
+
h5: q,
|
|
92
|
+
h6: T,
|
|
93
|
+
head: m,
|
|
94
|
+
header: k,
|
|
95
|
+
hr: Q,
|
|
96
|
+
htmlEl: u,
|
|
97
|
+
i: F,
|
|
98
|
+
iframe: ft,
|
|
99
|
+
img: R,
|
|
100
|
+
input: lt,
|
|
101
|
+
label: it,
|
|
102
|
+
li: X,
|
|
103
|
+
line: St,
|
|
104
|
+
linearGradient: zt,
|
|
105
|
+
link: f,
|
|
106
|
+
main: C,
|
|
107
|
+
mask: Vt,
|
|
108
|
+
meta: g,
|
|
109
|
+
nav: N,
|
|
110
|
+
ol: W,
|
|
111
|
+
option: mt,
|
|
112
|
+
p: P,
|
|
113
|
+
path: jt,
|
|
114
|
+
pattern: Bt,
|
|
115
|
+
polygon: Nt,
|
|
116
|
+
polyline: Ct,
|
|
117
|
+
pre: B,
|
|
118
|
+
radialGradient: It,
|
|
119
|
+
rect: kt,
|
|
120
|
+
script: h,
|
|
121
|
+
section: y,
|
|
122
|
+
select: ut,
|
|
123
|
+
small: J,
|
|
124
|
+
source: vt,
|
|
125
|
+
span: V,
|
|
126
|
+
stop: Mt,
|
|
127
|
+
strong: I,
|
|
128
|
+
style: b,
|
|
129
|
+
svg: yt,
|
|
130
|
+
svgImage: Dt,
|
|
131
|
+
svgText: wt,
|
|
132
|
+
symbol: Tt,
|
|
133
|
+
table: tt,
|
|
134
|
+
tbody: et,
|
|
135
|
+
td: ct,
|
|
136
|
+
text: Ht,
|
|
137
|
+
textNode: Jt,
|
|
138
|
+
textarea: pt,
|
|
139
|
+
tfoot: nt,
|
|
140
|
+
th: ot,
|
|
141
|
+
thead: st,
|
|
142
|
+
title_: v,
|
|
143
|
+
tr: at,
|
|
144
|
+
tspan: Gt,
|
|
145
|
+
ul: U,
|
|
146
|
+
use: Pt,
|
|
147
|
+
video: ht
|
|
148
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
149
|
+
export {
|
|
150
|
+
W as $,
|
|
151
|
+
dt as A,
|
|
152
|
+
S as B,
|
|
153
|
+
Ft as C,
|
|
154
|
+
rt as D,
|
|
155
|
+
Ot as E,
|
|
156
|
+
j as F,
|
|
157
|
+
w as G,
|
|
158
|
+
G as H,
|
|
159
|
+
O as I,
|
|
160
|
+
q as J,
|
|
161
|
+
T as K,
|
|
162
|
+
m as L,
|
|
163
|
+
k as M,
|
|
164
|
+
Q as N,
|
|
165
|
+
u as O,
|
|
166
|
+
F as P,
|
|
167
|
+
ft as Q,
|
|
168
|
+
R,
|
|
169
|
+
it as S,
|
|
170
|
+
X as T,
|
|
171
|
+
St as U,
|
|
172
|
+
zt as V,
|
|
173
|
+
f as W,
|
|
174
|
+
C as X,
|
|
175
|
+
Vt as Y,
|
|
176
|
+
g as Z,
|
|
177
|
+
N as _,
|
|
178
|
+
A as a,
|
|
179
|
+
P as a0,
|
|
180
|
+
jt as a1,
|
|
181
|
+
Bt as a2,
|
|
182
|
+
Nt as a3,
|
|
183
|
+
Ct as a4,
|
|
184
|
+
B as a5,
|
|
185
|
+
It as a6,
|
|
186
|
+
kt as a7,
|
|
187
|
+
h as a8,
|
|
188
|
+
y as a9,
|
|
189
|
+
J as aa,
|
|
190
|
+
vt as ab,
|
|
191
|
+
V as ac,
|
|
192
|
+
Mt as ad,
|
|
193
|
+
I as ae,
|
|
194
|
+
b as af,
|
|
195
|
+
yt as ag,
|
|
196
|
+
Dt as ah,
|
|
197
|
+
wt as ai,
|
|
198
|
+
Tt as aj,
|
|
199
|
+
tt as ak,
|
|
200
|
+
et as al,
|
|
201
|
+
ct as am,
|
|
202
|
+
Ht as an,
|
|
203
|
+
Jt as ao,
|
|
204
|
+
nt as ap,
|
|
205
|
+
ot as aq,
|
|
206
|
+
st as ar,
|
|
207
|
+
v as as,
|
|
208
|
+
at,
|
|
209
|
+
Gt as au,
|
|
210
|
+
U as av,
|
|
211
|
+
Pt as aw,
|
|
212
|
+
ht as ax,
|
|
213
|
+
K as b,
|
|
214
|
+
x as c,
|
|
215
|
+
E as d,
|
|
216
|
+
bt as e,
|
|
217
|
+
H as f,
|
|
218
|
+
D as g,
|
|
219
|
+
Kt as h,
|
|
220
|
+
lt as i,
|
|
221
|
+
p as j,
|
|
222
|
+
L as k,
|
|
223
|
+
gt as l,
|
|
224
|
+
_t as m,
|
|
225
|
+
xt as n,
|
|
226
|
+
mt as o,
|
|
227
|
+
At as p,
|
|
228
|
+
M as q,
|
|
229
|
+
$ as r,
|
|
230
|
+
ut as s,
|
|
231
|
+
pt as t,
|
|
232
|
+
qt as u,
|
|
233
|
+
_ as v,
|
|
234
|
+
Y as w,
|
|
235
|
+
Z as x,
|
|
236
|
+
Et as y,
|
|
237
|
+
z
|
|
238
|
+
};
|