ranui 0.2.1-alpha.3 → 0.2.1-alpha.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.
Files changed (100) hide show
  1. package/dist/builder.js +1 -1
  2. package/dist/{builtin-BkM0LLof.js → builtin-1lUEp_ro.js} +1 -1
  3. package/dist/{button-D0zcnKnG.js → button-Cj-XSCsd.js} +1 -1
  4. package/dist/button.js +1 -1
  5. package/dist/{card-CygMndQS.js → card-BHN9Xp4S.js} +1 -1
  6. package/dist/card.js +1 -1
  7. package/dist/{checkbox-D5om9aJO.js → checkbox-O_J_n1_W.js} +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/{colorpicker-qWnaTlYX.js → colorpicker-CKA4xN-g.js} +4 -4
  10. package/dist/colorpicker.js +1 -1
  11. package/dist/components/input/index.d.ts +15 -0
  12. package/dist/{content-Rry-U6ir.js → content-YOKzMoc7.js} +1 -1
  13. package/dist/content.js +1 -1
  14. package/dist/{dropdown-DzdAR1nI.js → dropdown-CzGAVWYC.js} +1 -1
  15. package/dist/dropdown.js +1 -1
  16. package/dist/{factory-BkvRcCOx.js → factory-ZNhcQ4tf.js} +127 -127
  17. package/dist/{form-CUJpeQ7Q.js → form-B8afuJlF.js} +1 -1
  18. package/dist/form.js +1 -1
  19. package/dist/{glass-Bj1Zf8Hy.js → glass-BniIptBE.js} +1 -1
  20. package/dist/glass.js +1 -1
  21. package/dist/{icon-CtlZJISZ.js → icon-GZrfSeon.js} +1 -1
  22. package/dist/icon.js +1 -1
  23. package/dist/icons.js +1 -1
  24. package/dist/iife/button.iife.js +1 -1
  25. package/dist/iife/card.iife.js +1 -1
  26. package/dist/iife/checkbox.iife.js +1 -1
  27. package/dist/iife/colorpicker.iife.js +2 -2
  28. package/dist/iife/content.iife.js +1 -1
  29. package/dist/iife/dropdown.iife.js +1 -1
  30. package/dist/iife/form.iife.js +1 -1
  31. package/dist/iife/glass.iife.js +1 -1
  32. package/dist/iife/icon.iife.js +1 -1
  33. package/dist/iife/image.iife.js +1 -1
  34. package/dist/iife/input.iife.js +1 -1
  35. package/dist/iife/loading.iife.js +1 -1
  36. package/dist/iife/math.iife.js +1 -1
  37. package/dist/iife/mermaid.iife.js +1 -1
  38. package/dist/iife/message.iife.js +1 -1
  39. package/dist/iife/modal.iife.js +1 -1
  40. package/dist/iife/player.iife.js +1 -1
  41. package/dist/iife/popover.iife.js +1 -1
  42. package/dist/iife/progress.iife.js +1 -1
  43. package/dist/iife/radar.iife.js +1 -1
  44. package/dist/iife/route.iife.js +1 -1
  45. package/dist/iife/router.iife.js +1 -1
  46. package/dist/iife/scratch.iife.js +1 -1
  47. package/dist/iife/section.iife.js +1 -1
  48. package/dist/iife/select.iife.js +2 -2
  49. package/dist/iife/skeleton.iife.js +1 -1
  50. package/dist/iife/tab.iife.js +1 -1
  51. package/dist/iife/tabpane.iife.js +1 -1
  52. package/dist/iife/theme-switch.iife.js +1 -1
  53. package/dist/{image-ILZNlaGc.js → image-CqoQfJoV.js} +1 -1
  54. package/dist/image.js +1 -1
  55. package/dist/index.cjs +17 -17
  56. package/dist/index.iife.js +204 -204
  57. package/dist/index.js +29 -29
  58. package/dist/{input-CDH6zY9I.js → input-ZY2Wumze.js} +11 -2
  59. package/dist/input.js +1 -1
  60. package/dist/{loading-DJWGih1g.js → loading-M6gWxLbm.js} +1 -1
  61. package/dist/loading.js +1 -1
  62. package/dist/{math-DRmkEDSQ.js → math-8E-45Y8e.js} +1 -1
  63. package/dist/math.js +1 -1
  64. package/dist/{mermaid-CMhm7npE.js → mermaid-C1oQyPE3.js} +2 -2
  65. package/dist/mermaid.js +1 -1
  66. package/dist/{message-BpYJBvYn.js → message-CNdmbeLf.js} +2 -2
  67. package/dist/message.js +1 -1
  68. package/dist/{modal-BeQlDYDP.js → modal-gRagDkTb.js} +1 -1
  69. package/dist/modal.js +1 -1
  70. package/dist/{player-CQ4e3Yeo.js → player-BkkmkqR4.js} +2 -2
  71. package/dist/player.js +1 -1
  72. package/dist/{popover-eZMnL1F3.js → popover-BZKSLe3D.js} +3 -3
  73. package/dist/popover.js +1 -1
  74. package/dist/{progress-DyHgW4Ep.js → progress-vk40tuhm.js} +1 -1
  75. package/dist/progress.js +1 -1
  76. package/dist/{radar-D21Rccap.js → radar-Bg0cexzU.js} +1 -1
  77. package/dist/radar.js +1 -1
  78. package/dist/{route-pR5P4ann.js → route-CGwS0cd_.js} +1 -1
  79. package/dist/route.js +1 -1
  80. package/dist/{router-CewzSH7O.js → router-BK6DEkcN.js} +1 -1
  81. package/dist/router.js +1 -1
  82. package/dist/{scratch-BFVsgl-7.js → scratch-ClF1awGi.js} +1 -1
  83. package/dist/scratch.js +1 -1
  84. package/dist/{section-DSPCsIxv.js → section-BL0V7Kjf.js} +1 -1
  85. package/dist/section.js +1 -1
  86. package/dist/{select-B58nMfB1.js → select-DRKYa3W2.js} +4 -4
  87. package/dist/select.js +1 -1
  88. package/dist/{skeleton-DoHYMsTn.js → skeleton-D7JIbROq.js} +1 -1
  89. package/dist/skeleton.js +1 -1
  90. package/dist/{tab-BRPdZ9Ws.js → tab-DFVtDJb2.js} +1 -1
  91. package/dist/tab.js +1 -1
  92. package/dist/{tabpane-Owf72hw_.js → tabpane-C3qZGN-D.js} +1 -1
  93. package/dist/tabpane.js +1 -1
  94. package/dist/test/ssr/stream.test.d.ts +1 -0
  95. package/dist/{theme-switch-CZDIIonc.js → theme-switch-BXNH5uPD.js} +44 -44
  96. package/dist/theme-switch.js +1 -1
  97. package/dist/utils/builder/core.d.ts +15 -13
  98. package/docs/BUILDER.md +15 -0
  99. package/docs/COMPONENTS.md +42 -6
  100. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { c as h, n as P } from "./mocks-CMGoftIc.js";
2
- var S = 0, O = 1, m = 2, f = null, c = null, v = 0, y = /* @__PURE__ */ new Set(), g = !1;
3
- function A(e, t) {
1
+ import { c as d, n as P } from "./mocks-CMGoftIc.js";
2
+ var S = 0, A = 1, m = 2, f = null, l = null, p = 0, y = /* @__PURE__ */ new Set(), g = !1;
3
+ function B(e, t) {
4
4
  const r = t?.equals ?? Object.is, n = {
5
5
  value: e,
6
6
  observers: /* @__PURE__ */ new Set()
@@ -9,25 +9,25 @@ function A(e, t) {
9
9
  const a = typeof i == "function" ? i(n.value) : i;
10
10
  if (!r(n.value, a)) {
11
11
  n.value = a;
12
- for (const l of n.observers) E(l, m);
13
- v === 0 && j();
12
+ for (const u of n.observers) N(u, m);
13
+ p === 0 && j();
14
14
  }
15
15
  }];
16
16
  }
17
- function I(e, t) {
17
+ function L(e, t) {
18
18
  const r = k(e, !1, t?.equals);
19
- return D(r), () => (r.disposed || (x(r), R(r)), r.value);
19
+ return D(r), () => (r.disposed || (I(r), R(r)), r.value);
20
20
  }
21
21
  function C(e) {
22
22
  const t = k(e, !0);
23
- return D(t), M(t), () => N(t);
23
+ return D(t), M(t), () => O(t);
24
24
  }
25
25
  function Z(e) {
26
- v++;
26
+ p++;
27
27
  try {
28
28
  e();
29
29
  } finally {
30
- v--, v === 0 && j();
30
+ p--, p === 0 && j();
31
31
  }
32
32
  }
33
33
  function ee(e) {
@@ -39,32 +39,32 @@ function ee(e) {
39
39
  f = t;
40
40
  }
41
41
  }
42
- function B(e) {
42
+ function E(e) {
43
43
  const t = {
44
44
  owned: [],
45
45
  cleanups: [],
46
- owner: c
47
- }, r = c, n = f;
48
- c = t, f = null;
46
+ owner: l
47
+ }, r = l, n = f;
48
+ l = t, f = null;
49
49
  try {
50
50
  return e(() => $(t));
51
51
  } finally {
52
- c = r, f = n;
52
+ l = r, f = n;
53
53
  }
54
54
  }
55
- function L(e) {
56
- c && c.cleanups.push(e);
55
+ function x(e) {
56
+ l && l.cleanups.push(e);
57
57
  }
58
58
  function te() {
59
- return c;
59
+ return l;
60
60
  }
61
61
  function re(e, t) {
62
- const r = c, n = f;
63
- c = e, f = null;
62
+ const r = l, n = f;
63
+ l = e, f = null;
64
64
  try {
65
65
  return t();
66
66
  } finally {
67
- c = r, f = n;
67
+ l = r, f = n;
68
68
  }
69
69
  }
70
70
  function k(e, t, r) {
@@ -80,144 +80,144 @@ function k(e, t, r) {
80
80
  equals: r ?? Object.is,
81
81
  owned: [],
82
82
  cleanups: [],
83
- owner: c
83
+ owner: l
84
84
  };
85
85
  }
86
86
  function D(e) {
87
- c && c.owned.push(e);
87
+ l && l.owned.push(e);
88
88
  }
89
89
  function R(e) {
90
90
  f && (f.sources.add(e), e.observers.add(f));
91
91
  }
92
- function E(e, t) {
92
+ function N(e, t) {
93
93
  if (e.disposed || e.state >= t) return;
94
94
  const r = e.state === S;
95
95
  if (e.state = t, e.isEffect) y.add(e);
96
- else if (r) for (const n of e.observers) E(n, O);
96
+ else if (r) for (const n of e.observers) N(n, A);
97
97
  }
98
98
  function j() {
99
- if (!(v > 0 || g)) {
99
+ if (!(p > 0 || g)) {
100
100
  g = !0;
101
101
  try {
102
102
  for (; y.size > 0; ) {
103
103
  const e = [...y];
104
104
  y.clear();
105
- for (const t of e) t.disposed || x(t);
105
+ for (const t of e) t.disposed || I(t);
106
106
  }
107
107
  } finally {
108
108
  g = !1;
109
109
  }
110
110
  }
111
111
  }
112
- function x(e) {
112
+ function I(e) {
113
113
  if (!(e.disposed || e.state === S)) {
114
- if (e.state === O)
115
- for (const t of e.sources) "fn" in t && x(t);
114
+ if (e.state === A)
115
+ for (const t of e.sources) "fn" in t && I(t);
116
116
  e.state === m && M(e), e.state = S;
117
117
  }
118
118
  }
119
119
  function M(e) {
120
120
  if (e.running) throw new Error("ranui reactivity: cyclic dependency detected (a computation triggered itself).");
121
121
  _(e);
122
- const t = f, r = c;
123
- f = e, c = e, e.running = !0, e.state = S;
122
+ const t = f, r = l;
123
+ f = e, l = e, e.running = !0, e.state = S;
124
124
  try {
125
125
  const n = e.fn();
126
126
  if (e.isEffect)
127
127
  typeof n == "function" && e.cleanups.push(n);
128
128
  else {
129
- const o = e.value;
130
- if (e.value = n, e.observers.size > 0 && !e.equals(o, n)) for (const s of e.observers) E(s, m);
129
+ const s = e.value;
130
+ if (e.value = n, e.observers.size > 0 && !e.equals(s, n)) for (const o of e.observers) N(o, m);
131
131
  }
132
132
  } finally {
133
- e.running = !1, f = t, c = r;
133
+ e.running = !1, f = t, l = r;
134
134
  }
135
135
  }
136
136
  function _(e) {
137
- for (const t of e.owned) N(t);
137
+ for (const t of e.owned) O(t);
138
138
  e.owned.length = 0;
139
139
  for (const t of e.cleanups) t();
140
140
  e.cleanups.length = 0;
141
141
  for (const t of e.sources) t.observers.delete(e);
142
142
  e.sources.clear();
143
143
  }
144
- function N(e) {
144
+ function O(e) {
145
145
  e.disposed || (e.disposed = !0, _(e), e.observers.clear());
146
146
  }
147
147
  function $(e) {
148
- for (const t of e.owned) N(t);
148
+ for (const t of e.owned) O(t);
149
149
  e.owned.length = 0;
150
150
  for (const t of e.cleanups) t();
151
151
  e.cleanups.length = 0;
152
152
  }
153
- var ne = () => ({ current: null }), w = (e) => e.reduce((t, r) => Array.isArray(r) ? t.concat(w(r)) : t.concat(r), []), d = (e) => e == null ? null : e instanceof F ? e.build() : typeof e == "string" ? h ? e : document.createTextNode(e) : e, K = (e, t) => {
154
- if (h) {
155
- w([t()]).forEach((o) => {
156
- const s = d(o);
157
- s != null && e.appendChild(s);
158
- });
153
+ var ne = () => ({ current: null }), z = (e) => e.reduce((t, r) => Array.isArray(r) ? t.concat(z(r)) : t.concat(r), []), v = (e) => e == null ? null : e instanceof q ? e.build() : typeof e == "string" ? d ? e : document.createTextNode(e) : e, K = (e, t) => {
154
+ if (d) {
155
+ w(e, [t()]);
159
156
  return;
160
157
  }
161
- const r = document.createComment("");
162
- e.appendChild(r);
163
- let n = [];
164
- C(() => {
165
- const o = w([t()]);
166
- for (const a of n) a.parentNode?.removeChild(a);
167
- const s = [];
168
- let i = r;
169
- for (const a of o) {
170
- const l = d(a);
171
- l != null && (i.after(l), i = l, s.push(l));
158
+ const r = document.createComment(""), n = document.createComment("");
159
+ e.appendChild(r), e.appendChild(n);
160
+ let s = null;
161
+ const o = () => {
162
+ s?.(), s = null;
163
+ let i = r.nextSibling;
164
+ for (; i && i !== n; ) {
165
+ const a = i.nextSibling;
166
+ i.parentNode?.removeChild(i), i = a;
172
167
  }
173
- n = s;
174
- });
175
- }, z = "__ranFor";
168
+ };
169
+ C(() => {
170
+ const i = t();
171
+ o();
172
+ const a = document.createDocumentFragment();
173
+ s = E((u) => (w(a, [i]), u)), n.parentNode?.insertBefore(a, n);
174
+ }), x(() => s?.());
175
+ }, F = "__ranFor";
176
176
  function se(e) {
177
177
  return {
178
178
  ...e,
179
- [z]: !0
179
+ [F]: !0
180
180
  };
181
181
  }
182
- var V = (e) => typeof e == "object" && e !== null && e[z] === !0;
182
+ var V = (e) => typeof e == "object" && e !== null && e[F] === !0;
183
183
  function oe(e) {
184
- const t = I(() => !!e.when()), r = () => e.when();
184
+ const t = L(() => !!e.when()), r = () => e.when();
185
185
  return () => t() ? e.children(r) : e.fallback?.() ?? null;
186
186
  }
187
187
  function ie(e) {
188
188
  return e;
189
189
  }
190
190
  function ae(e) {
191
- const t = e.children, r = I(() => t.findIndex((n) => !!n.when()));
191
+ const t = e.children, r = L(() => t.findIndex((n) => !!n.when()));
192
192
  return () => {
193
193
  const n = r();
194
194
  if (n < 0) return e.fallback?.() ?? null;
195
- const o = t[n];
196
- return o.children(() => o.when());
195
+ const s = t[n];
196
+ return s.children(() => s.when());
197
197
  };
198
198
  }
199
199
  var W = (e, t, r) => {
200
- const [n, o] = A(t);
201
- let s = null;
202
- const i = B((a) => {
203
- const l = d(r(e, n));
204
- return s = typeof l == "string" ? document.createTextNode(l) : l, a;
200
+ const [n, s] = B(t);
201
+ let o = null;
202
+ const i = E((a) => {
203
+ const u = v(r(e, n));
204
+ return o = typeof u == "string" ? document.createTextNode(u) : u, a;
205
205
  });
206
206
  return {
207
- node: s,
208
- index: o,
207
+ node: o,
208
+ index: s,
209
209
  dispose: i
210
210
  };
211
211
  }, H = (e, t) => {
212
212
  const r = e.parentNode;
213
213
  if (!r) return;
214
214
  let n = e;
215
- for (const o of t)
216
- n.nextSibling !== o && r.insertBefore(o, n.nextSibling), n = o;
215
+ for (const s of t)
216
+ n.nextSibling !== s && r.insertBefore(s, n.nextSibling), n = s;
217
217
  }, U = (e, t) => {
218
- if (h) {
219
- (t.each() ?? []).forEach((o, s) => {
220
- const i = d(t.render(o, () => s));
218
+ if (d) {
219
+ (t.each() ?? []).forEach((s, o) => {
220
+ const i = v(t.render(s, () => o));
221
221
  i != null && e.appendChild(i);
222
222
  });
223
223
  return;
@@ -225,20 +225,20 @@ var W = (e, t, r) => {
225
225
  const r = document.createComment("");
226
226
  e.appendChild(r);
227
227
  let n = /* @__PURE__ */ new Map();
228
- L(() => {
229
- for (const o of n.values()) o.dispose();
228
+ x(() => {
229
+ for (const s of n.values()) s.dispose();
230
230
  n.clear();
231
231
  }), C(() => {
232
- const o = t.each() ?? [], s = /* @__PURE__ */ new Map(), i = [];
233
- o.forEach((a, l) => {
234
- const b = t.key(a, l);
235
- if (s.has(b)) return;
236
- let p = n.get(b);
237
- p ? (n.delete(b), p.index(l)) : p = W(a, l, t.render), s.set(b, p), p.node && i.push(p.node);
232
+ const s = t.each() ?? [], o = /* @__PURE__ */ new Map(), i = [];
233
+ s.forEach((a, u) => {
234
+ const b = t.key(a, u);
235
+ if (o.has(b)) return;
236
+ let h = n.get(b);
237
+ h ? (n.delete(b), h.index(u)) : h = W(a, u, t.render), o.set(b, h), h.node && i.push(h.node);
238
238
  });
239
239
  for (const a of n.values())
240
240
  a.node?.parentNode?.removeChild(a.node), a.dispose();
241
- H(r, i), n = s;
241
+ H(r, i), n = o;
242
242
  });
243
243
  }, T = "__ranIndex";
244
244
  function le(e) {
@@ -248,21 +248,21 @@ function le(e) {
248
248
  };
249
249
  }
250
250
  var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r) => {
251
- const [n, o] = A(e);
252
- let s = null;
253
- const i = B((a) => {
254
- const l = d(r(n, t));
255
- return s = typeof l == "string" ? document.createTextNode(l) : l, a;
251
+ const [n, s] = B(e);
252
+ let o = null;
253
+ const i = E((a) => {
254
+ const u = v(r(n, t));
255
+ return o = typeof u == "string" ? document.createTextNode(u) : u, a;
256
256
  });
257
257
  return {
258
- node: s,
259
- setItem: o,
258
+ node: o,
259
+ setItem: s,
260
260
  dispose: i
261
261
  };
262
262
  }, G = (e, t) => {
263
- if (h) {
264
- (t.each() ?? []).forEach((o, s) => {
265
- const i = d(t.render(() => o, s));
263
+ if (d) {
264
+ (t.each() ?? []).forEach((s, o) => {
265
+ const i = v(t.render(() => s, o));
266
266
  i != null && e.appendChild(i);
267
267
  });
268
268
  return;
@@ -270,20 +270,20 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
270
270
  const r = document.createComment("");
271
271
  e.appendChild(r);
272
272
  let n = [];
273
- L(() => {
274
- for (const o of n) o.dispose();
273
+ x(() => {
274
+ for (const s of n) s.dispose();
275
275
  n = [];
276
276
  }), C(() => {
277
- const o = t.each() ?? [];
278
- for (let s = 0; s < o.length; s++) s < n.length ? n[s].setItem(o[s]) : n.push(Y(o[s], s, t.render));
279
- for (let s = n.length - 1; s >= o.length; s--) {
280
- const { node: i } = n[s];
281
- i?.parentNode?.removeChild(i), n[s].dispose(), n.pop();
277
+ const s = t.each() ?? [];
278
+ for (let o = 0; o < s.length; o++) o < n.length ? n[o].setItem(s[o]) : n.push(Y(s[o], o, t.render));
279
+ for (let o = n.length - 1; o >= s.length; o--) {
280
+ const { node: i } = n[o];
281
+ i?.parentNode?.removeChild(i), n[o].dispose(), n.pop();
282
282
  }
283
- H(r, n.map((s) => s.node).filter((s) => s != null));
283
+ H(r, n.map((o) => o.node).filter((o) => o != null));
284
284
  });
285
- }, q = (e, t) => {
286
- w(t).forEach((r) => {
285
+ }, w = (e, t) => {
286
+ z(t).forEach((r) => {
287
287
  if (V(r)) {
288
288
  U(e, r);
289
289
  return;
@@ -296,13 +296,13 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
296
296
  K(e, r);
297
297
  return;
298
298
  }
299
- const n = d(r);
299
+ const n = v(r);
300
300
  n != null && e.appendChild(n);
301
301
  });
302
- }, F = class {
302
+ }, q = class {
303
303
  el;
304
304
  constructor(e) {
305
- this.el = h ? new P(e) : document.createElement(e);
305
+ this.el = d ? new P(e) : document.createElement(e);
306
306
  }
307
307
  id(e) {
308
308
  return this.el.setAttribute("id", e), this;
@@ -312,7 +312,7 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
312
312
  }
313
313
  class(e) {
314
314
  return this.bind(e, (t) => {
315
- h ? this.el.attributes.set("class", t) : this.el.className = t;
315
+ d ? this.el.attributes.set("class", t) : this.el.className = t;
316
316
  }), this;
317
317
  }
318
318
  addClass(...e) {
@@ -374,14 +374,14 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
374
374
  listen(e, t, r, n) {
375
375
  return e.on(this.el, t, r, n), this;
376
376
  }
377
- delegate(e, t, r, n, o) {
378
- return e.delegate(this.el, t, r, n, o), this;
377
+ delegate(e, t, r, n, s) {
378
+ return e.delegate(this.el, t, r, n, s), this;
379
379
  }
380
380
  children(...e) {
381
- return q(this.el, e), this;
381
+ return w(this.el, e), this;
382
382
  }
383
383
  replaceChildren(...e) {
384
- if (h) {
384
+ if (d) {
385
385
  const t = this.el;
386
386
  t.childrenList = [];
387
387
  } else this.el.replaceChildren();
@@ -403,7 +403,7 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
403
403
  return this.el;
404
404
  }
405
405
  serialize() {
406
- if (h) return this.el.serialize();
406
+ if (d) return this.el.serialize();
407
407
  const e = document.createElement("div");
408
408
  return e.appendChild(this.el.cloneNode(!0)), e.innerHTML;
409
409
  }
@@ -415,13 +415,13 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
415
415
  this.hostEl = e, this.root = t, this.options = r;
416
416
  }
417
417
  children(...e) {
418
- return q(this.root, e), this;
418
+ return w(this.root, e), this;
419
419
  }
420
420
  adoptSheet(...e) {
421
421
  return this.root.adoptedStyleSheets = [...this.root.adoptedStyleSheets, ...e], this;
422
422
  }
423
423
  css(e) {
424
- if (h)
424
+ if (d)
425
425
  return this.root.adoptedStyleSheets.push(e), this;
426
426
  if (typeof CSSStyleSheet < "u") try {
427
427
  const r = new CSSStyleSheet();
@@ -438,24 +438,24 @@ var X = (e) => typeof e == "object" && e !== null && e[T] === !0, Y = (e, t, r)
438
438
  };
439
439
  }
440
440
  serialize() {
441
- return h ? this.root.serialize() : this.root.innerHTML;
441
+ return d ? this.root.serialize() : this.root.innerHTML;
442
442
  }
443
- }, u = (e) => new F(e), ce = () => u("div"), ue = () => u("span"), fe = () => u("slot"), he = () => u("button"), de = () => u("input"), pe = () => u("style"), ve = () => u("label"), be = () => u("ul"), ye = () => u("li"), Se = () => u("section"), we = () => u("article"), me = () => u("nav"), Ce = () => u("header"), ge = () => u("footer"), Ee = () => u("main"), xe = (e = "open", t = !1) => {
444
- const r = u("template");
443
+ }, c = (e) => new q(e), ce = () => c("div"), ue = () => c("span"), fe = () => c("slot"), de = () => c("button"), he = () => c("input"), pe = () => c("style"), ve = () => c("label"), be = () => c("ul"), ye = () => c("li"), Se = () => c("section"), we = () => c("article"), me = () => c("nav"), Ce = () => c("header"), ge = () => c("footer"), Ee = () => c("main"), xe = (e = "open", t = !1) => {
444
+ const r = c("template");
445
445
  return r.attr("shadowrootmode", e), t && r.attr("shadowrootdelegatesfocus", ""), r;
446
446
  };
447
447
  export {
448
448
  te as A,
449
449
  oe as C,
450
- I as D,
450
+ L as D,
451
451
  Z as E,
452
452
  re as M,
453
- A as N,
453
+ B as N,
454
454
  C as O,
455
455
  ee as P,
456
456
  J as S,
457
457
  ne as T,
458
- u as _,
458
+ c as _,
459
459
  ge as a,
460
460
  le as b,
461
461
  ve as c,
@@ -464,18 +464,18 @@ export {
464
464
  be as g,
465
465
  pe as h,
466
466
  ce as i,
467
- L as j,
468
- B as k,
467
+ x as j,
468
+ E as k,
469
469
  ye as l,
470
470
  ue as m,
471
- he as n,
471
+ de as n,
472
472
  Ce as o,
473
473
  fe as p,
474
474
  xe as r,
475
- de as s,
475
+ he as s,
476
476
  we as t,
477
477
  Ee as u,
478
- F as v,
478
+ q as v,
479
479
  ae as w,
480
480
  ie as x,
481
481
  se as y
@@ -1,5 +1,5 @@
1
1
  import { a, n as o, o as i, r as n, t as h } from "./utils-D1iZnChu.js";
2
- import { _ as l, p as m } from "./factory-BkvRcCOx.js";
2
+ import { _ as l, p as m } from "./factory-ZNhcQ4tf.js";
3
3
  import { a as u, n as f } from "./ssr-DSGwPtEd.js";
4
4
  var c = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}", d = class extends f {
5
5
  _form;
package/dist/form.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as r } from "./form-CUJpeQ7Q.js";
1
+ import { t as r } from "./form-B8afuJlF.js";
2
2
  export {
3
3
  r as Form,
4
4
  r as default
@@ -1,5 +1,5 @@
1
1
  import { a, n as o, r as e, t as u } from "./utils-D1iZnChu.js";
2
- import { i, p as h } from "./factory-BkvRcCOx.js";
2
+ import { i, p as h } from "./factory-ZNhcQ4tf.js";
3
3
  import { a as d, n as g } from "./ssr-DSGwPtEd.js";
4
4
  var c = '.remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-glass-display, inline-block);position:var(--ran-glass-position, relative);border-radius:var(--ran-glass-radius, 20px);isolation:isolate;-webkit-tap-highlight-color:transparent}.ran-glass-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.ran-glass{position:relative;box-sizing:border-box;min-width:var(--ran-glass-min-width, 0);min-height:var(--ran-glass-min-height, 0);padding:var(--ran-glass-padding, 0);border-radius:inherit;overflow:hidden;color:inherit;-webkit-backdrop-filter:blur(var(--ran-glass-blur, 16px)) saturate(var(--ran-glass-saturate, 180%)) brightness(var(--ran-glass-brightness, 1.05));backdrop-filter:blur(var(--ran-glass-blur, 16px)) saturate(var(--ran-glass-saturate, 180%)) brightness(var(--ran-glass-brightness, 1.05)) var(--ran-glass-refraction, url(#ran-glass-filter));background:var(--ran-glass-tint, rgba(255, 255, 255, .14));border:var(--ran-glass-border, 1px solid rgba(255, 255, 255, .35));box-shadow:var(--ran-glass-shadow, inset 0 1px 1px rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 -20px 40px rgba(255, 255, 255, .04), 0 24px 60px -18px rgba(0, 0, 0, .5));transition:var(--ran-glass-transition, transform var(--ran-motion-duration-base, .2s) var(--ran-motion-ease-spring, cubic-bezier(.34, 1.26, .5, 1)))}.ran-glass-specular{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:var(--ran-glass-specular-opacity, 1);background:var(--ran-glass-specular, linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 34%), radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .18), transparent 60%))}.ran-glass-specular:after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.4) 50%,transparent 58%);transform:translate(-130%);opacity:0}:host([sheen]) .ran-glass-specular:after{opacity:.7;animation:ran-glass-sheen var(--ran-glass-sheen-duration, 6s) ease-in-out infinite}@keyframes ran-glass-sheen{50%{transform:translate(130%)}}.ran-glass ::slotted(*){position:relative;z-index:1}:host([interactive]) .ran-glass{cursor:pointer}:host([interactive]:hover) .ran-glass{transform:translateY(-2px)}:host([interactive]:active) .ran-glass{transform:translateY(0) scale(.98);transition-duration:var(--ran-motion-duration-fast, .15s)}@media(prefers-reduced-motion:reduce){:host([sheen]) .ran-glass-specular:after{animation:none;opacity:0}.ran-glass{transition:none}}', p = 0, b = class n extends g {
5
5
  _shadowDom;
package/dist/glass.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as s } from "./glass-Bj1Zf8Hy.js";
1
+ import { t as s } from "./glass-BniIptBE.js";
2
2
  export {
3
3
  s as Glass,
4
4
  s as default
@@ -1,6 +1,6 @@
1
1
  import { a as c, n as h, o as d, r as n, t as u } from "./utils-D1iZnChu.js";
2
2
  import { t as v } from "./events-C59wGdni.js";
3
- import { _ as g, i as f } from "./factory-BkvRcCOx.js";
3
+ import { _ as g, i as f } from "./factory-ZNhcQ4tf.js";
4
4
  import { a as p, n as m } from "./ssr-DSGwPtEd.js";
5
5
  var w = ".remove-wap-active-focus{outline:0;-webkit-tap-highlight-color:transparent}.remove-wap-active-focus:active,.remove-wap-active-focus:focus{outline:0;-webkit-tap-highlight-color:transparent}:host{display:var(--ran-icon-host-display, inline-flex)}:host([spin]){animation-name:var(--ran-icon-host-spin-animation-name, rotate);animation-duration:var(--ran-icon-host-spin-animation-name, 1.4s);animation-timing-function:linear;animation-iteration-count:var(--ran-icon-host-spin-animation-name, infinite)}.ran-icon{display:var(--ran-icon-display, flex);align-items:var(--ran-icon-align-items, center);justify-content:var(--ran-icon-justify-content, center);color:var(--ran-icon-color, inherit);font-size:var(--ran-icon-font-size, 1em);margin:var(--ran-icon-margin, 0)}.ran-icon svg{width:var(--ran-icon-svg-width, 1em);height:var(--ran-icon-svg-height, 1em);fill:var(--ran-icon-svg-fill, currentColor);stroke:var(--ran-icon-svg-stroke, currentColor)}@keyframes rotate{to{transform:var(--ran-icon-keyframes-to-transform, rotate(360deg))}}", y = {
6
6
  success: !0,
package/dist/icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as s, n as o, r as e, t } from "./icon-CtlZJISZ.js";
1
+ import { i as s, n as o, r as e, t } from "./icon-GZrfSeon.js";
2
2
  export {
3
3
  t as Icon,
4
4
  o as RAN_ICON_NAMES,
package/dist/icons.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as t, t as i } from "./builtin-BkM0LLof.js";
1
+ import { n as t, t as i } from "./builtin-1lUEp_ro.js";
2
2
  export {
3
3
  i as BUILTIN_ICON_NAMES,
4
4
  t as registerBuiltinIcons