melonykit 0.10.1 → 0.11.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/browser.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as e } from "./functions-ytrrWBDV.js";
1
+ import { r as e } from "./functions-P-iB52B8.js";
2
2
  import { signal as t } from "@preact/signals";
3
3
  import { useEffect as n, useMemo as r } from "preact/hooks";
4
4
  //#region src/browser/_route-to.js
@@ -41,7 +41,7 @@ function s({ endpoint: i, event: a }) {
41
41
  }, [o, a]), o;
42
42
  }
43
43
  function c() {
44
- return o ||= new EventSource("/api/events"), o;
44
+ return o ||= new EventSource("/api/client-events"), o;
45
45
  }
46
46
  function l(e, t) {
47
47
  let n = c();
@@ -26,14 +26,66 @@ function n(t, n) {
26
26
  return `#${r.map((e) => Math.round(e * i)).map((e) => e.toString(16).padStart(2, "0")).join("")}`;
27
27
  }
28
28
  //#endregion
29
- //#region src/functions/_format-date.js
29
+ //#region src/functions/checks/_is-array.js
30
30
  function r(e) {
31
- return Object.prototype.toString.call(e) === "[object Date]" && !isNaN(e);
31
+ return Array.isArray(e);
32
32
  }
33
+ //#endregion
34
+ //#region src/functions/checks/_is-empty-array.js
33
35
  function i(e) {
36
+ return r(e) && e.length === 0;
37
+ }
38
+ //#endregion
39
+ //#region src/functions/checks/_is-nil.js
40
+ function a(e) {
41
+ return e == null;
42
+ }
43
+ //#endregion
44
+ //#region src/functions/checks/_is-object.js
45
+ function o(e) {
46
+ return !a(e) && typeof e == "object" && !r(e);
47
+ }
48
+ //#endregion
49
+ //#region src/functions/checks/_is-empty-object.js
50
+ function s(e) {
51
+ return o(e) && Reflect.ownKeys(e).every((t) => !Object.prototype.propertyIsEnumerable.call(e, t));
52
+ }
53
+ //#endregion
54
+ //#region src/functions/checks/_is-string.js
55
+ function c(e) {
34
56
  return typeof e == "string";
35
57
  }
36
- var a = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, o = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, s = /[^-+\dA-Z]/g, c = (e, t = 2) => String(e).padStart(t, "0"), l = {
58
+ //#endregion
59
+ //#region src/functions/checks/_is-empty-string.js
60
+ function l(e) {
61
+ return c(e) && e.trim().length === 0;
62
+ }
63
+ //#endregion
64
+ //#region src/functions/checks/_is-function.js
65
+ function u(e) {
66
+ return typeof e == "function";
67
+ }
68
+ //#endregion
69
+ //#region src/functions/checks/_is-number.js
70
+ function d(e) {
71
+ return typeof e == "number" && Number.isFinite(e);
72
+ }
73
+ //#endregion
74
+ //#region src/functions/checks/_is-negative-number.js
75
+ function f(e) {
76
+ return d(e) && e < 0;
77
+ }
78
+ //#endregion
79
+ //#region src/functions/checks/_is-positive-number.js
80
+ function p(e) {
81
+ return d(e) && e > 0;
82
+ }
83
+ //#endregion
84
+ //#region src/functions/_format-date.js
85
+ function m(e) {
86
+ return Object.prototype.toString.call(e) === "[object Date]" && !isNaN(e);
87
+ }
88
+ var h = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g, g = /\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g, _ = /[^-+\dA-Z]/g, v = (e, t = 2) => String(e).padStart(t, "0"), y = {
37
89
  dayNames: [
38
90
  "So",
39
91
  "Mo",
@@ -87,64 +139,64 @@ var a = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'
87
139
  "PM"
88
140
  ]
89
141
  };
90
- function u(e, t = "dd.mm.yyyy", n, o) {
91
- if (!r(e) || !i(t)) return "";
92
- let s = () => n ? "getUTC" : "get", u = () => e[s() + "Date"](), h = () => e[s() + "Day"](), g = () => e[s() + "Month"](), _ = () => e[s() + "FullYear"](), v = () => e[s() + "Hours"](), y = () => e[s() + "Minutes"](), b = () => e[s() + "Seconds"](), x = () => e[s() + "Milliseconds"](), S = () => n ? 0 : e.getTimezoneOffset(), C = () => d(e), w = () => f(e), T = {
93
- d: () => u(),
94
- dd: () => c(u()),
95
- ddd: () => l.dayNames[h()],
96
- DDD: () => m({
97
- y: _(),
98
- m: g(),
99
- d: u(),
100
- _: s(),
101
- dayName: l.dayNames[h()],
142
+ function b(e, t = "dd.mm.yyyy", n, r) {
143
+ if (!m(e) || !c(t)) return "";
144
+ let i = () => n ? "getUTC" : "get", a = () => e[i() + "Date"](), o = () => e[i() + "Day"](), s = () => e[i() + "Month"](), l = () => e[i() + "FullYear"](), u = () => e[i() + "Hours"](), d = () => e[i() + "Minutes"](), f = () => e[i() + "Seconds"](), p = () => e[i() + "Milliseconds"](), g = () => n ? 0 : e.getTimezoneOffset(), _ = () => x(e), b = () => S(e), T = {
145
+ d: () => a(),
146
+ dd: () => v(a()),
147
+ ddd: () => y.dayNames[o()],
148
+ DDD: () => w({
149
+ y: l(),
150
+ m: s(),
151
+ d: a(),
152
+ _: i(),
153
+ dayName: y.dayNames[o()],
102
154
  short: !0
103
155
  }),
104
- dddd: () => l.dayNames[h() + 7],
105
- DDDD: () => m({
106
- y: _(),
107
- m: g(),
108
- d: u(),
109
- _: s(),
110
- dayName: l.dayNames[h() + 7]
156
+ dddd: () => y.dayNames[o() + 7],
157
+ DDDD: () => w({
158
+ y: l(),
159
+ m: s(),
160
+ d: a(),
161
+ _: i(),
162
+ dayName: y.dayNames[o() + 7]
111
163
  }),
112
- m: () => g() + 1,
113
- mm: () => c(g() + 1),
114
- mmm: () => l.monthNames[g()],
115
- mmmm: () => l.monthNames[g() + 12],
116
- yy: () => String(_()).slice(2),
117
- yyyy: () => c(_(), 4),
118
- h: () => v() % 12 || 12,
119
- hh: () => c(v() % 12 || 12),
120
- H: () => v(),
121
- HH: () => c(v()),
122
- M: () => y(),
123
- MM: () => c(y()),
124
- s: () => b(),
125
- ss: () => c(b()),
126
- l: () => c(x(), 3),
127
- L: () => c(Math.floor(x() / 10)),
128
- t: () => v() < 12 ? l.timeNames[0] : l.timeNames[1],
129
- tt: () => v() < 12 ? l.timeNames[2] : l.timeNames[3],
130
- T: () => v() < 12 ? l.timeNames[4] : l.timeNames[5],
131
- TT: () => v() < 12 ? l.timeNames[6] : l.timeNames[7],
132
- Z: () => o ? "GMT" : n ? "UTC" : p(e),
133
- o: () => (S() > 0 ? "-" : "+") + c(Math.floor(Math.abs(S()) / 60) * 100 + Math.abs(S()) % 60, 4),
134
- p: () => (S() > 0 ? "-" : "+") + c(Math.floor(Math.abs(S()) / 60), 2) + ":" + c(Math.floor(Math.abs(S()) % 60), 2),
164
+ m: () => s() + 1,
165
+ mm: () => v(s() + 1),
166
+ mmm: () => y.monthNames[s()],
167
+ mmmm: () => y.monthNames[s() + 12],
168
+ yy: () => String(l()).slice(2),
169
+ yyyy: () => v(l(), 4),
170
+ h: () => u() % 12 || 12,
171
+ hh: () => v(u() % 12 || 12),
172
+ H: () => u(),
173
+ HH: () => v(u()),
174
+ M: () => d(),
175
+ MM: () => v(d()),
176
+ s: () => f(),
177
+ ss: () => v(f()),
178
+ l: () => v(p(), 3),
179
+ L: () => v(Math.floor(p() / 10)),
180
+ t: () => u() < 12 ? y.timeNames[0] : y.timeNames[1],
181
+ tt: () => u() < 12 ? y.timeNames[2] : y.timeNames[3],
182
+ T: () => u() < 12 ? y.timeNames[4] : y.timeNames[5],
183
+ TT: () => u() < 12 ? y.timeNames[6] : y.timeNames[7],
184
+ Z: () => r ? "GMT" : n ? "UTC" : C(e),
185
+ o: () => (g() > 0 ? "-" : "+") + v(Math.floor(Math.abs(g()) / 60) * 100 + Math.abs(g()) % 60, 4),
186
+ p: () => (g() > 0 ? "-" : "+") + v(Math.floor(Math.abs(g()) / 60), 2) + ":" + v(Math.floor(Math.abs(g()) % 60), 2),
135
187
  S: () => [
136
188
  "th",
137
189
  "st",
138
190
  "nd",
139
191
  "rd"
140
- ][u() % 10 > 3 ? 0 : (u() % 100 - u() % 10 != 10) * u() % 10],
141
- W: () => C(),
142
- WW: () => c(C()),
143
- N: () => w()
192
+ ][a() % 10 > 3 ? 0 : (a() % 100 - a() % 10 != 10) * a() % 10],
193
+ W: () => _(),
194
+ WW: () => v(_()),
195
+ N: () => b()
144
196
  };
145
- return t.replace(a, (e) => e in T ? T[e]() : e.slice(1, e.length - 1));
197
+ return t.replace(h, (e) => e in T ? T[e]() : e.slice(1, e.length - 1));
146
198
  }
147
- var d = (e) => {
199
+ var x = (e) => {
148
200
  let t = new Date(e.getFullYear(), e.getMonth(), e.getDate());
149
201
  t.setDate(t.getDate() - (t.getDay() + 6) % 7 + 3);
150
202
  let n = new Date(t.getFullYear(), 0, 4);
@@ -153,23 +205,18 @@ var d = (e) => {
153
205
  t.setHours(t.getHours() - r);
154
206
  let i = (t - n) / 6048e5;
155
207
  return 1 + Math.floor(i);
156
- }, f = (e) => {
208
+ }, S = (e) => {
157
209
  let t = e.getDay();
158
210
  return t === 0 && (t = 7), t;
159
- }, p = (e) => (String(e).match(o) || [""]).pop().replace(s, "").replace(/GMT\+0000/g, "UTC"), m = ({ y: e, m: t, d: n, _: r, dayName: i, short: a = !1 }) => {
211
+ }, C = (e) => (String(e).match(g) || [""]).pop().replace(_, "").replace(/GMT\+0000/g, "UTC"), w = ({ y: e, m: t, d: n, _: r, dayName: i, short: a = !1 }) => {
160
212
  let o = /* @__PURE__ */ new Date(), s = /* @__PURE__ */ new Date();
161
213
  s.setDate(s[r + "Date"]() - 1);
162
214
  let c = /* @__PURE__ */ new Date();
163
215
  return c.setDate(c[r + "Date"]() + 1), o[r + "FullYear"]() === e && o[r + "Month"]() === t && o[r + "Date"]() === n ? a ? "Tdy" : "Today" : s[r + "FullYear"]() === e && s[r + "Month"]() === t && s[r + "Date"]() === n ? a ? "Ysd" : "Yesterday" : c[r + "FullYear"]() === e && c[r + "Month"]() === t && c[r + "Date"]() === n ? a ? "Tmw" : "Tomorrow" : i;
164
216
  };
165
217
  //#endregion
166
- //#region src/functions/_is-empty.js
167
- function h(e) {
168
- return e == null ? !0 : typeof e == "function" ? !1 : typeof e == "number" ? !Number.isFinite(e) : typeof e == "string" ? e.trim().length === 0 : Array.isArray(e) ? e.length === 0 : typeof e != "object" || Object.keys(e).length === 0 && Object.getOwnPropertySymbols(e).length === 0;
169
- }
170
- //#endregion
171
218
  //#region src/functions/_request.js
172
- async function g({ url: e, body: t, method: n = "POST", headers: r = {} } = {}) {
219
+ async function T({ url: e, body: t, method: n = "POST", headers: r = {} } = {}) {
173
220
  let i = n !== "GET" && t !== void 0 ? JSON.stringify(t) : void 0, a = await fetch(e, {
174
221
  method: n,
175
222
  headers: {
@@ -190,12 +237,12 @@ async function g({ url: e, body: t, method: n = "POST", headers: r = {} } = {})
190
237
  }
191
238
  //#endregion
192
239
  //#region src/functions/_size.js
193
- function _(e) {
240
+ function E(e) {
194
241
  return e == null ? 0 : Array.isArray(e) || typeof e == "string" ? e.length : typeof e == "object" || typeof e == "function" ? Object.keys(e).length : 0;
195
242
  }
196
243
  //#endregion
197
244
  //#region src/functions/_to-number.js
198
- function v(e, t = null) {
245
+ function D(e, t = null) {
199
246
  let n = typeof e == "number" ? e : typeof e == "string" && e.trim() !== "" ? Number(e) : NaN;
200
247
  if (!Number.isFinite(n)) return null;
201
248
  if (t == null) return n;
@@ -203,4 +250,4 @@ function v(e, t = null) {
203
250
  return Math.round(n * r) / r;
204
251
  }
205
252
  //#endregion
206
- export { u as a, h as i, _ as n, n as o, g as r, t as s, v as t };
253
+ export { t as _, p as a, u as c, s as d, o as f, n as g, r as h, b as i, l, i as m, E as n, f as o, a as p, T as r, d as s, D as t, c as u };
package/dist/functions.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, s as a, t as o } from "./functions-ytrrWBDV.js";
2
- export { a as convertHexToRgba, r as darkenHexColor, e as formatDate, t as isEmpty, i as request, n as size, o as toNumber };
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./functions-P-iB52B8.js";
2
+ export { e as convertHexToRgba, a as darkenHexColor, s as formatDate, o as isArray, l as isEmptyArray, r as isEmptyObject, c as isEmptyString, n as isFunction, d as isNegativeNumber, f as isNil, m as isNumber, i as isObject, t as isPositiveNumber, g as isString, p as request, u as size, h as toNumber };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as e, o as t } from "./functions-ytrrWBDV.js";
1
+ import { g as e, l as t } from "./functions-P-iB52B8.js";
2
2
  import { useSignal as n } from "@preact/signals";
3
3
  import { useEffect as r, useId as i, useRef as a } from "preact/hooks";
4
4
  import { Fragment as o, jsx as s, jsxs as c } from "preact/jsx-runtime";
@@ -735,7 +735,7 @@ var Xe = q.injectGlobal, Ze = q.keyframes, Y = q.css;
735
735
  q.sheet, q.cache;
736
736
  //#endregion
737
737
  //#region \0virtual:svg-sprite
738
- var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;width:0;height:0;\" id=\"svg-sprite\"><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-bars-corner\" viewBox=\"0 0 24 24\"><path d=\"M7 15v1a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M7 8v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M3 3v10c0 3.771 0 5.657 1.172 6.828S7.229 21 11 21h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-check\" viewBox=\"0 0 24 24\"><path d=\"m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-down\" viewBox=\"0 0 24 24\"><path d=\"M18 9s-4.419 6-6 6-6-6-6-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-exclamation-triangle\" viewBox=\"0 0 24 24\"><path d=\"M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21\"/><path d=\"M12 9v4\"/><path d=\"M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye-close\" viewBox=\"0 0 24 24\"><path d=\"M22 8c-2.202 3.023-5.86 5-10 5S4.202 11.023 2 8\"/><path d=\"m15 13 1.5 3\"/><path d=\"m20 11 2 2.5\"/><path d=\"M2 13.5 4 11\"/><path d=\"m9 13-1.5 3\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-home\" viewBox=\"0 0 24 24\"><path d=\"M3 11.99v2.51c0 3.3 0 4.95 1.025 5.975S6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.975-1.025S21 17.8 21 14.5v-2.51c0-1.682 0-2.522-.356-3.25s-1.02-1.244-2.346-2.276l-2-1.555C14.233 3.303 13.2 2.5 12 2.5s-2.233.803-4.298 2.409l-2 1.555C4.375 7.496 3.712 8.012 3.356 8.74S3 10.308 3 11.99\"/><path d=\"M15 17c-.8.622-1.85 1-3 1s-2.2-.378-3-1\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-hourglass\" viewBox=\"0 0 24 24\"><path d=\"M4 3h16\"/><path d=\"M5.5 3v2.03A4 4 0 0 0 7.061 8.2L12 12l4.939-3.8A4 4 0 0 0 18.5 5.03V3\"/><path d=\"M5.5 21v-2.03a4 4 0 0 1 1.561-3.17L12 12l4.939 3.8a4 4 0 0 1 1.561 3.17V21\"/><path d=\"M4 21h16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-menu\" viewBox=\"0 0 24 24\"><path d=\"M4 9h16\"/><path d=\"M4 15h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-plus\" viewBox=\"0 0 24 24\"><path d=\"M11.992 4v16m8-8h-16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-terminal\" viewBox=\"0 0 24 24\"><path d=\"M7.492 7.5 8.72 8.557c.515.445.773.667.773.943s-.258.498-.773.943L7.492 11.5\"/><path d=\"M11.492 12.5h4\"/><path d=\"M11.992 21c3.75 0 5.625 0 6.94-.955a5 5 0 0 0 1.105-1.106c.955-1.314.955-3.19.955-6.939s0-5.625-.955-6.939a5 5 0 0 0-1.106-1.106C17.617 3 15.741 3 11.992 3s-5.624 0-6.939.955A5 5 0 0 0 3.947 5.06c-.955 1.314-.955 3.19-.955 6.939s0 5.625.955 6.939a5 5 0 0 0 1.106 1.106c1.315.955 3.19.955 6.94.955\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-x\" viewBox=\"0 0 24 24\"><path d=\"m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-trash\" viewBox=\"0 0 24 24\"><path d=\"m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5\"/><path d=\"M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5\"/><path d=\"M9.5 16.5v-6\"/><path d=\"M14.5 16.5v-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-award\" viewBox=\"0 0 24 24\"><path d=\"M9.426 3.063C10.684 2.354 11.312 2 12 2s1.316.354 2.574 1.063l1.75.986c1.305.735 1.958 1.103 2.317 1.718S19 7.132 19 8.632v1.736c0 1.5 0 2.25-.36 2.865-.358.615-1.01.983-2.316 1.718l-1.75.986C13.316 16.646 12.688 17 12 17s-1.316-.354-2.574-1.063l-1.75-.986c-1.305-.735-1.958-1.103-2.317-1.718S5 11.868 5 10.368V8.632c0-1.5 0-2.25.36-2.865.358-.615 1.01-.983 2.316-1.718z\"/><path stroke-linecap=\"round\" d=\"m16.883 15 .67 3.21c.43 2.062.646 3.093.203 3.582-.442.489-1.21.069-2.746-.772l-2.274-1.245c-.363-.198-.544-.298-.736-.298s-.373.1-.736.298L8.99 21.02c-1.536.84-2.304 1.261-2.746.772s-.227-1.52.203-3.582l.67-3.21\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-list-play\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" d=\"M3 5h18\"/><path stroke-linecap=\"round\" d=\"M3 12h6\"/><path d=\"M20.945 15.451c-.176.716-1.012 1.223-2.682 2.235-1.615.979-2.422 1.468-3.073 1.271a1.6 1.6 0 0 1-.712-.448C14 17.994 14 16.996 14 15s0-2.994.478-3.509c.198-.212.443-.367.712-.448.65-.197 1.458.293 3.073 1.271 1.67 1.012 2.506 1.518 2.682 2.235a1.9 1.9 0 0 1 0 .902Z\"/><path stroke-linecap=\"round\" d=\"M3 19h6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-play\" viewBox=\"0 0 24 24\"><path d=\"M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye\" viewBox=\"0 0 24 24\"><path d=\"M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z\"/><path d=\"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sliders\" viewBox=\"0 0 24 24\"><path stroke-linejoin=\"round\" d=\"M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12Z\"/><path d=\"M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z\"/><path d=\"M15.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/><path stroke-linecap=\"round\" d=\"M10 8.5h7\"/><path stroke-linecap=\"round\" d=\"M14 15.5H7\"/></symbol></svg>", $e = !1, et = new URL("./assets/manrope.woff2", import.meta.url).href ?? "/fonts/manrope.woff2", X = {
738
+ var Qe = "<svg xmlns=\"http://www.w3.org/2000/svg\" style=\"position:absolute;width:0;height:0;\" id=\"svg-sprite\"><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-bars-corner\" viewBox=\"0 0 24 24\"><path d=\"M7 15v1a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M7 8v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1\"/><path d=\"M3 3v10c0 3.771 0 5.657 1.172 6.828S7.229 21 11 21h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-check\" viewBox=\"0 0 24 24\"><path d=\"m5 13.26 2.586 2.697C8.252 16.652 8.586 17 9 17s.748-.348 1.414-1.043L19 7\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-down\" viewBox=\"0 0 24 24\"><path d=\"M18 9s-4.419 6-6 6-6-6-6-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-exclamation-triangle\" viewBox=\"0 0 24 24\"><path d=\"M13.925 21h-3.85c-4.63 0-6.945 0-7.799-1.506-.853-1.506.331-3.503 2.7-7.495L6.9 8.753C9.176 4.918 10.313 3 12 3s2.824 1.918 5.1 5.753L19.023 12c2.369 3.992 3.553 5.989 2.7 7.495C20.87 21 18.555 21 13.924 21\"/><path d=\"M12 9v4\"/><path d=\"M12.125 16.75H12m.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye-close\" viewBox=\"0 0 24 24\"><path d=\"M22 8c-2.202 3.023-5.86 5-10 5S4.202 11.023 2 8\"/><path d=\"m15 13 1.5 3\"/><path d=\"m20 11 2 2.5\"/><path d=\"M2 13.5 4 11\"/><path d=\"m9 13-1.5 3\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-home\" viewBox=\"0 0 24 24\"><path d=\"M3 11.99v2.51c0 3.3 0 4.95 1.025 5.975S6.7 21.5 10 21.5h4c3.3 0 4.95 0 5.975-1.025S21 17.8 21 14.5v-2.51c0-1.682 0-2.522-.356-3.25s-1.02-1.244-2.346-2.276l-2-1.555C14.233 3.303 13.2 2.5 12 2.5s-2.233.803-4.298 2.409l-2 1.555C4.375 7.496 3.712 8.012 3.356 8.74S3 10.308 3 11.99\"/><path d=\"M15 17c-.8.622-1.85 1-3 1s-2.2-.378-3-1\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-hourglass\" viewBox=\"0 0 24 24\"><path d=\"M4 3h16\"/><path d=\"M5.5 3v2.03A4 4 0 0 0 7.061 8.2L12 12l4.939-3.8A4 4 0 0 0 18.5 5.03V3\"/><path d=\"M5.5 21v-2.03a4 4 0 0 1 1.561-3.17L12 12l4.939 3.8a4 4 0 0 1 1.561 3.17V21\"/><path d=\"M4 21h16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-menu\" viewBox=\"0 0 24 24\"><path d=\"M4 9h16\"/><path d=\"M4 15h10\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-plus\" viewBox=\"0 0 24 24\"><path d=\"M11.992 4v16m8-8h-16\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-terminal\" viewBox=\"0 0 24 24\"><path d=\"M7.492 7.5 8.72 8.557c.515.445.773.667.773.943s-.258.498-.773.943L7.492 11.5\"/><path d=\"M11.492 12.5h4\"/><path d=\"M11.992 21c3.75 0 5.625 0 6.94-.955a5 5 0 0 0 1.105-1.106c.955-1.314.955-3.19.955-6.939s0-5.625-.955-6.939a5 5 0 0 0-1.106-1.106C17.617 3 15.741 3 11.992 3s-5.624 0-6.939.955A5 5 0 0 0 3.947 5.06c-.955 1.314-.955 3.19-.955 6.939s0 5.625.955 6.939a5 5 0 0 0 1.106 1.106c1.315.955 3.19.955 6.94.955\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-x\" viewBox=\"0 0 24 24\"><path d=\"m18 6-6 6m0 0-6 6m6-6 6 6m-6-6L6 6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-trash\" viewBox=\"0 0 24 24\"><path d=\"m19.5 5.5-.62 10.025c-.158 2.561-.237 3.842-.88 4.763a4 4 0 0 1-1.2 1.128c-.957.584-2.24.584-4.806.584-2.57 0-3.855 0-4.814-.585a4 4 0 0 1-1.2-1.13c-.642-.922-.72-2.205-.874-4.77L4.5 5.5\"/><path d=\"M3 5.5h18m-4.944 0-.683-1.408c-.453-.936-.68-1.403-1.071-1.695a2 2 0 0 0-.275-.172C13.594 2 13.074 2 12.035 2c-1.066 0-1.599 0-2.04.234a2 2 0 0 0-.278.18c-.395.303-.616.788-1.058 1.757L8.053 5.5\"/><path d=\"M9.5 16.5v-6\"/><path d=\"M14.5 16.5v-6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-award\" viewBox=\"0 0 24 24\"><path d=\"M9.426 3.063C10.684 2.354 11.312 2 12 2s1.316.354 2.574 1.063l1.75.986c1.305.735 1.958 1.103 2.317 1.718S19 7.132 19 8.632v1.736c0 1.5 0 2.25-.36 2.865-.358.615-1.01.983-2.316 1.718l-1.75.986C13.316 16.646 12.688 17 12 17s-1.316-.354-2.574-1.063l-1.75-.986c-1.305-.735-1.958-1.103-2.317-1.718S5 11.868 5 10.368V8.632c0-1.5 0-2.25.36-2.865.358-.615 1.01-.983 2.316-1.718z\"/><path stroke-linecap=\"round\" d=\"m16.883 15 .67 3.21c.43 2.062.646 3.093.203 3.582-.442.489-1.21.069-2.746-.772l-2.274-1.245c-.363-.198-.544-.298-.736-.298s-.373.1-.736.298L8.99 21.02c-1.536.84-2.304 1.261-2.746.772s-.227-1.52.203-3.582l.67-3.21\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-list-play\" viewBox=\"0 0 24 24\"><path stroke-linecap=\"round\" d=\"M3 5h18\"/><path stroke-linecap=\"round\" d=\"M3 12h6\"/><path d=\"M20.945 15.451c-.176.716-1.012 1.223-2.682 2.235-1.615.979-2.422 1.468-3.073 1.271a1.6 1.6 0 0 1-.712-.448C14 17.994 14 16.996 14 15s0-2.994.478-3.509c.198-.212.443-.367.712-.448.65-.197 1.458.293 3.073 1.271 1.67 1.012 2.506 1.518 2.682 2.235a1.9 1.9 0 0 1 0 .902Z\"/><path stroke-linecap=\"round\" d=\"M3 19h6\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-play\" viewBox=\"0 0 24 24\"><path d=\"M18.89 12.846c-.353 1.343-2.023 2.292-5.364 4.19-3.23 1.835-4.845 2.752-6.146 2.384a3.25 3.25 0 0 1-1.424-.841C5 17.614 5 15.743 5 12s0-5.614.956-6.579a3.25 3.25 0 0 1 1.424-.84c1.301-.37 2.916.548 6.146 2.383 3.34 1.898 5.011 2.847 5.365 4.19a3.3 3.3 0 0 1 0 1.692Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-linejoin=\"round\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sparkles\" viewBox=\"0 0 24 24\"><path d=\"m15 2 .539 2.392a5.39 5.39 0 0 0 4.07 4.07L22 9l-2.392.539a5.39 5.39 0 0 0-4.07 4.07L15 16l-.539-2.392a5.39 5.39 0 0 0-4.07-4.07L8 9l2.392-.539a5.39 5.39 0 0 0 4.07-4.07z\"/><path d=\"m7 12 .385 1.708a3.85 3.85 0 0 0 2.907 2.907L12 17l-1.708.385a3.85 3.85 0 0 0-2.907 2.907L7 22l-.385-1.708a3.85 3.85 0 0 0-2.907-2.907L2 17l1.708-.385a3.85 3.85 0 0 0 2.907-2.907z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-eye\" viewBox=\"0 0 24 24\"><path d=\"M21.544 11.045c.304.426.456.64.456.955 0 .316-.152.529-.456.955C20.178 14.871 16.689 19 12 19c-4.69 0-8.178-4.13-9.544-6.045C2.152 12.529 2 12.315 2 12c0-.316.152-.529.456-.955C3.822 9.129 7.311 5 12 5c4.69 0 8.178 4.13 9.544 6.045Z\"/><path d=\"M15 12a3 3 0 1 0-6 0 3 3 0 0 0 6 0Z\"/></symbol><symbol xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" color=\"currentColor\" id=\"icon-sliders\" viewBox=\"0 0 24 24\"><path stroke-linejoin=\"round\" d=\"M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12Z\"/><path d=\"M8.5 10a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3Z\"/><path d=\"M15.5 17a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z\"/><path stroke-linecap=\"round\" d=\"M10 8.5h7\"/><path stroke-linecap=\"round\" d=\"M14 15.5H7\"/></symbol></svg>", $e = !1, et = new URL("./assets/manrope.woff2", import.meta.url).href ?? "/fonts/manrope.woff2", X = {
739
739
  fontFamily: "Manrope",
740
740
  zIndex: {
741
741
  front: 1,
@@ -916,15 +916,15 @@ var nt = {
916
916
  transition: width .3s ease;
917
917
  `,
918
918
  normal: Y`
919
- border: solid 1px ${t(X.colors.primary, .3)};
919
+ border: solid 1px ${e(X.colors.primary, .3)};
920
920
  background-color: ${X.colors.primary};
921
921
  `,
922
922
  warn: Y`
923
- border: solid 1px ${t(X.colors.secondary, .2)};
923
+ border: solid 1px ${e(X.colors.secondary, .2)};
924
924
  background-color: ${X.colors.secondary};
925
925
  `,
926
926
  danger: Y`
927
- border: solid 1px ${t(X.colors.danger, .3)};
927
+ border: solid 1px ${e(X.colors.danger, .3)};
928
928
  background-color: ${X.colors.danger};
929
929
  `
930
930
  };
@@ -1076,13 +1076,13 @@ var lt = Ze`
1076
1076
  &[has-icon] { padding-left: 2rem; }
1077
1077
  `,
1078
1078
  primary: Y`
1079
- color: ${t(X.colors.primary, .5)};
1080
- border-bottom: solid 3px ${t(X.colors.primary, .25)};
1079
+ color: ${e(X.colors.primary, .5)};
1080
+ border-bottom: solid 3px ${e(X.colors.primary, .25)};
1081
1081
  background-color: ${X.colors.primary};
1082
1082
  `,
1083
1083
  secondary: Y`
1084
- color: ${t(X.colors.secondary, .5)};
1085
- border-bottom: solid 3px ${t(X.colors.secondary, .25)};
1084
+ color: ${e(X.colors.secondary, .5)};
1085
+ border-bottom: solid 3px ${e(X.colors.secondary, .25)};
1086
1086
  background-color: ${X.colors.secondary};
1087
1087
  `,
1088
1088
  ripple: Y`
@@ -1554,10 +1554,10 @@ var Dt = {
1554
1554
  };
1555
1555
  //#endregion
1556
1556
  //#region src/components/_tag.jsx
1557
- function Ot({ className: t, variant: n = "normal", iconName: r, label: i }) {
1557
+ function Ot({ className: e, variant: n = "normal", iconName: r = "", label: i }) {
1558
1558
  return /* @__PURE__ */ s(o, { children: /* @__PURE__ */ c("div", {
1559
- className: J(kt.base, kt[n] ?? kt.normal, t),
1560
- "has-icon": !e(r),
1559
+ className: J(kt.base, kt[n] ?? kt.normal, e),
1560
+ "has-icon": !t(r),
1561
1561
  children: [r && /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(Z, {
1562
1562
  className: Y`
1563
1563
  ${X.extends.verticalCenter}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Vadim Hermann",
3
3
  "name": "melonykit",
4
- "version": "0.10.1",
4
+ "version": "0.11.0",
5
5
  "type": "module",
6
6
  "description": "Preact based ui and utility functions toolkit",
7
7
  "main": "./dist/index.js",