@vokril/ui-solid 0.8.0 → 0.9.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/CHANGELOG.md +18 -0
- package/README.md +5 -5
- package/dist/IconPicker-9tjEtmqt.cjs +1 -0
- package/dist/IconPicker-CXbFmJ3y.js +179 -0
- package/dist/_internal/app/icons/iconSetRegistry.d.cts +2 -2
- package/dist/_internal/app/icons/iconSetRegistry.d.ts +2 -2
- package/dist/_internal/app/platform/electronBridge.d.cts +9 -3
- package/dist/_internal/app/platform/electronBridge.d.ts +9 -3
- package/dist/{createResizableSidebar-B22SKv9b.js → createResizableSidebar-2TgiFZp1.js} +11 -12
- package/dist/createResizableSidebar-pDoO-7q9.cjs +1 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +314 -317
- package/dist/layout/PageHeaderIcon.d.cts +1 -1
- package/dist/layout/PageHeaderIcon.d.ts +1 -1
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +1 -1
- package/dist/navigation/pageHeaderContract.d.cts +1 -1
- package/dist/navigation/pageHeaderContract.d.ts +1 -1
- package/dist/notifications/notificationOverlayChannel.d.cts +3 -3
- package/dist/notifications/notificationOverlayChannel.d.ts +3 -3
- package/dist/server/CommandPalette-39UA8MVn.cjs +1 -0
- package/dist/server/{CommandPalette-4RCiBlmz.js → CommandPalette-DIlbFrNy.js} +76 -78
- package/dist/server/{DateRangePicker-TW0Dy4u6.js → DateRangePicker-QV6U1adB.js} +1 -1
- package/dist/server/{GuidedTour-DvMqeZIU.cjs → GuidedTour-CMLjHh-y.cjs} +9 -9
- package/dist/server/{GuidedTour-Bc7SqDXY.js → GuidedTour-bV_r4vSt.js} +29 -30
- package/dist/server/IconPicker-B4wK1LxJ.js +162 -0
- package/dist/server/IconPicker-DoWUHbst.cjs +1 -0
- package/dist/server/Modal-BJqeQWr2.js +415 -0
- package/dist/server/Modal-Bt5zABLw.cjs +1 -0
- package/dist/server/Popover-BSHOd_RH.cjs +1 -0
- package/dist/server/{Popover-BRU2E-ek.js → Popover-DOl2Wob7.js} +103 -88
- package/dist/server/{StatusBarNotificationBell-Bk9ETGFK.js → StatusBarNotificationBell-5QIZhWif.js} +26 -27
- package/dist/server/{StatusBarNotificationBell-t7B7rSrd.cjs → StatusBarNotificationBell-BA53G1Rm.cjs} +3 -3
- package/dist/server/{Stepper-CJIoTXSv.js → Stepper-DPIaVHC2.js} +20 -21
- package/dist/server/Stepper-lTAo7tM9.cjs +1 -0
- package/dist/server/ToggleButton-BSOdOzjN.cjs +1 -0
- package/dist/server/{ToggleButton-BAhucFQT.js → ToggleButton-Cd8Dmcuj.js} +61 -62
- package/dist/server/VpArrowUp-9_PfEqFt.js +46 -0
- package/dist/server/VpArrowUp-D9ZUNPyn.cjs +1 -0
- package/dist/server/{VpChevronLeft-YI8H4bUq.js → VpChevronLeft-Dop81HaK.js} +2 -2
- package/dist/server/{VpTerminal-Bouc2jnT.js → VpTerminal-Bpw-d9wD.js} +12 -12
- package/dist/server/{VpTrash-B9HkM5Nj.js → VpTrash-DVBfts9_.js} +8 -8
- package/dist/server/{VpUpload-D3hgzJbk.js → VpUpload-_n-qdj9q.js} +5 -5
- package/dist/server/{createResizableSidebar-IcXBM-BE.js → createResizableSidebar-94M9e5Oc.js} +9 -10
- package/dist/server/createResizableSidebar-BriIvZzI.cjs +1 -0
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +3 -3
- package/dist/server/{VpWorkspaceTrusted-DiZC21WF.js → index-BqIOYH6R.js} +1140 -1063
- package/dist/server/index-DwEHhkL-.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +769 -1146
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +2 -2
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +4 -4
- package/dist/solid/_internal/app/icons/iconSetRegistry.js +1 -1
- package/dist/solid/desktop/menu/MenuPanel.jsx +2 -2
- package/dist/solid/feedback/Chip.jsx +1 -1
- package/dist/solid/feedback/InlineError.jsx +1 -1
- package/dist/solid/forms/Combobox.jsx +1 -1
- package/dist/solid/forms/CopyButton.jsx +1 -1
- package/dist/solid/forms/DatePicker.jsx +1 -1
- package/dist/solid/forms/Dropzone.jsx +1 -1
- package/dist/solid/forms/FormField.jsx +1 -1
- package/dist/solid/forms/MultiSearchableSelect.jsx +1 -1
- package/dist/solid/forms/NumberInput.jsx +1 -1
- package/dist/solid/forms/PasswordInput.jsx +1 -1
- package/dist/solid/forms/SearchInput.jsx +1 -1
- package/dist/solid/forms/SearchableSelect.jsx +1 -1
- package/dist/solid/forms/SplitButton.jsx +1 -1
- package/dist/solid/forms/TagInput.jsx +1 -1
- package/dist/solid/forms/date-range-picker/CalendarGrid.jsx +1 -1
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +1 -1
- package/dist/solid/grid/AttributeGrid.jsx +1 -1
- package/dist/solid/grid/ToolbarSearchField.jsx +1 -1
- package/dist/solid/index.js +0 -1
- package/dist/solid/layout/PageHeader.jsx +1 -1
- package/dist/solid/navigation/Accordion.jsx +1 -1
- package/dist/solid/navigation/Breadcrumb.jsx +1 -1
- package/dist/solid/navigation/Stepper.jsx +1 -1
- package/dist/solid/navigation/Tabs.jsx +1 -1
- package/dist/solid/notifications/NotificationItem.jsx +1 -1
- package/dist/solid/notifications/NotificationPanel.jsx +1 -1
- package/dist/solid/notifications/NotificationsCenter.jsx +2 -2
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +1 -1
- package/dist/solid/notifications/notificationOverlayChannel.js +1 -1
- package/dist/solid/overlay/Disclosure.jsx +1 -1
- package/dist/solid/overlay/Drawer.jsx +1 -1
- package/dist/solid/overlay/DropdownMenu.jsx +1 -1
- package/dist/solid/overlay/FloatingWindow.jsx +1 -1
- package/dist/solid/overlay/Modal.jsx +1 -1
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +1 -1
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +1 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +1 -1
- package/dist/solid/overlay/popover/PopoverPanel.jsx +1 -1
- package/dist/solid/tree/TreeRow.jsx +1 -1
- package/dist/solid/tree/TreeSurface.jsx +1 -1
- package/dist/solid/widgets/SettingsField.jsx +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.css +1 -1
- package/package.json +3 -26
- package/dist/IconPicker-D2dZK0n3.cjs +0 -1
- package/dist/IconPicker-Fd2IE2Dm.js +0 -154
- package/dist/createResizableSidebar-C3I0HSwo.cjs +0 -1
- package/dist/iconSetRegistry-CMUqn1IQ.cjs +0 -1
- package/dist/iconSetRegistry-r8c82MmK.js +0 -28
- package/dist/icons/index.cjs +0 -1
- package/dist/icons/index.d.cts +0 -2
- package/dist/icons/index.d.ts +0 -2
- package/dist/icons/index.js +0 -6
- package/dist/icons/types.d.cts +0 -1
- package/dist/icons/types.d.ts +0 -1
- package/dist/server/CommandPalette-Dd8AW-WZ.cjs +0 -1
- package/dist/server/IconPicker-Bat7VYeo.cjs +0 -1
- package/dist/server/IconPicker-Dw4tbosO.js +0 -141
- package/dist/server/Modal-Jf89av-C.js +0 -373
- package/dist/server/Modal-W2cb3Xrx.cjs +0 -1
- package/dist/server/Popover-C2VwtQyu.cjs +0 -1
- package/dist/server/Stepper-RFkjF_fm.cjs +0 -1
- package/dist/server/ToggleButton-D9IXRIdl.cjs +0 -1
- package/dist/server/VpChevronDown-BMhGcdqG.cjs +0 -1
- package/dist/server/VpChevronDown-Ce6ZneQr.js +0 -18
- package/dist/server/VpExternalLink-C19K-ISd.cjs +0 -1
- package/dist/server/VpExternalLink-OGnThGLH.js +0 -46
- package/dist/server/VpWorkspaceTrusted-CPcushZ9.cjs +0 -1
- package/dist/server/createResizableSidebar-BymQA2Fs.cjs +0 -1
- package/dist/server/iconSetRegistry-u0H4_7nI.cjs +0 -1
- package/dist/server/iconSetRegistry-yPeAzzz7.js +0 -24
- package/dist/server/icons/index.cjs +0 -1
- package/dist/server/icons/index.js +0 -380
- package/dist/solid/icons/index.jsx +0 -2
- package/dist/solid/icons/types.js +0 -1
|
@@ -16,19 +16,18 @@ import { t as ae, b as $o, l as zn } from "./i18n-CYq-dVvv.js";
|
|
|
16
16
|
import { d as Vo } from "./rendererLogging-Edo4ALXU.js";
|
|
17
17
|
import { D as Wo } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
18
18
|
import { f as Yo } from "./windowRegistry-Bk5lXIVd.js";
|
|
19
|
-
import { b as yr, A as kr } from "./Popover-
|
|
20
|
-
import { E as
|
|
19
|
+
import { b as yr, A as kr, V as Xo } from "./Popover-DOl2Wob7.js";
|
|
20
|
+
import { E as qo } from "./EmptyState-Csydyy_7.js";
|
|
21
21
|
import { i as $n } from "./iconScale.module-C3O0bxfp.js";
|
|
22
22
|
import { g as Lr } from "./announcerService-B7yicxvU.js";
|
|
23
|
-
import {
|
|
24
|
-
import { V as
|
|
23
|
+
import { e as Ko, V as Zo, f as jo, g as Jo, h as Qo, i as ec, j as uc, k as tc, l as nc, b as rc, c as ic, d as oc, a as cc } from "./VpTerminal-Bpw-d9wD.js";
|
|
24
|
+
import { V as sc } from "./VpAlertTriangle-BX9COr3k.js";
|
|
25
25
|
import { V as Mr } from "./VpClose-1RAQ20H9.js";
|
|
26
|
-
import { V as sc } from "./VpChevronDown-Ce6ZneQr.js";
|
|
27
26
|
import { A as ac, F as Zu, a as lc, c as fc } from "./builtins-XOM9gfIx.js";
|
|
28
27
|
import { i as au } from "./keys-B2nlkpqc.js";
|
|
29
28
|
import { r as dc } from "./displayOwner-B_ezJv-O.js";
|
|
30
29
|
import { V as Ec } from "./VpChevronRight-CwRCE60O.js";
|
|
31
|
-
import { M as _c } from "./Modal-
|
|
30
|
+
import { M as _c } from "./Modal-BJqeQWr2.js";
|
|
32
31
|
const hc = "acknowledgment-required";
|
|
33
32
|
function bc(e) {
|
|
34
33
|
return e.filter((u) => u.priority !== hc).map((u) => u.id);
|
|
@@ -9358,7 +9357,7 @@ function El(e) {
|
|
|
9358
9357
|
const _l = { sql: j0, pgsql: J0, javascript: nl, typescript: il, json: sl, xml: al, bash: ll, python: fl, yaml: dl, plaintext: El };
|
|
9359
9358
|
for (const [e, u] of Object.entries(_l)) tn.registerLanguage(e, u);
|
|
9360
9359
|
const So = [];
|
|
9361
|
-
function
|
|
9360
|
+
function D1(e, u) {
|
|
9362
9361
|
So.push({ aliases: e, languageName: u }), tn.registerAliases([...e], { languageName: u });
|
|
9363
9362
|
}
|
|
9364
9363
|
let cr = null;
|
|
@@ -9663,7 +9662,7 @@ function lf(e) {
|
|
|
9663
9662
|
});
|
|
9664
9663
|
}
|
|
9665
9664
|
function ff(e) {
|
|
9666
|
-
return Ae(Co, Z("class", g(fu.emptyFill, !0), !1), g(G(
|
|
9665
|
+
return Ae(Co, Z("class", g(fu.emptyFill, !0), !1), g(G(qo, e)));
|
|
9667
9666
|
}
|
|
9668
9667
|
function df(e) {
|
|
9669
9668
|
return Ae(nf, `${g(fu.footer, !0)} ${g(e.class ?? "", !0)}`, g(e.children));
|
|
@@ -9721,20 +9720,20 @@ function Yf(e) {
|
|
|
9721
9720
|
}
|
|
9722
9721
|
}
|
|
9723
9722
|
const Xf = {
|
|
9724
|
-
info:
|
|
9725
|
-
warning:
|
|
9726
|
-
error:
|
|
9727
|
-
success:
|
|
9723
|
+
info: oc,
|
|
9724
|
+
warning: sc,
|
|
9725
|
+
error: ic,
|
|
9726
|
+
success: rc
|
|
9728
9727
|
}, Ni = {
|
|
9729
|
-
plug:
|
|
9730
|
-
key:
|
|
9731
|
-
cloud:
|
|
9732
|
-
database:
|
|
9733
|
-
"git-merge":
|
|
9734
|
-
terminal:
|
|
9735
|
-
rocket:
|
|
9736
|
-
bell:
|
|
9737
|
-
lock:
|
|
9728
|
+
plug: nc,
|
|
9729
|
+
key: tc,
|
|
9730
|
+
cloud: uc,
|
|
9731
|
+
database: ec,
|
|
9732
|
+
"git-merge": Qo,
|
|
9733
|
+
terminal: Jo,
|
|
9734
|
+
rocket: jo,
|
|
9735
|
+
bell: Zo,
|
|
9736
|
+
lock: Ko
|
|
9738
9737
|
}, Ri = (e) => {
|
|
9739
9738
|
const u = Tc(), t = lr(Wo), [n, r] = Me(!1);
|
|
9740
9739
|
let i;
|
|
@@ -9949,7 +9948,7 @@ const Xf = {
|
|
|
9949
9948
|
},
|
|
9950
9949
|
onClick: c,
|
|
9951
9950
|
get children() {
|
|
9952
|
-
return G(
|
|
9951
|
+
return G(Xo, {
|
|
9953
9952
|
get class() {
|
|
9954
9953
|
return `${$n.iconMd} ${pe.chevron}`;
|
|
9955
9954
|
}
|
|
@@ -9975,7 +9974,7 @@ const Xf = {
|
|
|
9975
9974
|
onMouseDown: (M) => M.stopPropagation(),
|
|
9976
9975
|
onClick: ie,
|
|
9977
9976
|
get children() {
|
|
9978
|
-
return G(
|
|
9977
|
+
return G(cc, {
|
|
9979
9978
|
get class() {
|
|
9980
9979
|
return $n.iconMd;
|
|
9981
9980
|
}
|
|
@@ -10503,7 +10502,7 @@ const pd = "vk_host_-dTTD", Ad = "vk_scrollArea_FaEtH", gd = "vk_stack_4LHtI", m
|
|
|
10503
10502
|
ackQueueHint: Rd
|
|
10504
10503
|
};
|
|
10505
10504
|
var Sd = ["<div", ">", "</div>"], Cd = ["<p", ">", "</p>"], Id = ["<div", ' role="alertdialog" aria-modal="true" aria-labelledby="', '"', "><div", ' id="', '">', "", "</div></div>"];
|
|
10506
|
-
const
|
|
10505
|
+
const y1 = (e) => {
|
|
10507
10506
|
var X;
|
|
10508
10507
|
const u = Mo().window, t = dc(u);
|
|
10509
10508
|
Ye(t.dispose);
|
|
@@ -10754,7 +10753,7 @@ const k1 = (e) => {
|
|
|
10754
10753
|
body: vd
|
|
10755
10754
|
};
|
|
10756
10755
|
var Fd = ['<span class="', '">', "</span>"], Pd = ["<div", ">", "</div>"], Ud = ["<div", ' class="', '">', "</div>"], Bd = ['<div class="', '"><div class="', '"><button type="button" class="', '"', ">", "", '<span class="', '">', "</span>", "</button>", "</div>", "</div>"];
|
|
10757
|
-
function
|
|
10756
|
+
function k1(e) {
|
|
10758
10757
|
const u = () => e.open !== void 0, [t, n] = Me(e.defaultOpen ?? !0), r = () => u() ? e.open === !0 : t(), i = Oo();
|
|
10759
10758
|
return Ae(Bd, `${g(vu.disclosure, !0)} ${g(e.class ?? "", !0)}`, `${g(vu.header, !0)} ${g(e.headerClass ?? "", !0)}`, `${g(vu.toggle, !0)} ${g(e.toggleClass ?? "", !0)}`, Z("aria-expanded", r() ? "true" : "false", !1) + Z("aria-controls", g(i, !0), !1) + Z("aria-label", g(e["aria-label"], !0), !1), g(G(Ec, {
|
|
10760
10759
|
get class() {
|
|
@@ -10809,7 +10808,7 @@ const Hd = "vk_backdrop_CQkAS", zd = "vk_spotlight_zHC0Q", $d = "vk_footer_NYv6Q
|
|
|
10809
10808
|
announcement: Xd
|
|
10810
10809
|
};
|
|
10811
10810
|
var qd = ["<div", ' aria-live="polite" aria-atomic="true"><p>', "</p><span", ">", ": ", "</span></div>"], Kd = ["<div", ' aria-hidden="true"></div>'], Zd = ["<div", ' aria-hidden="true" style="', '"></div>'], jd = ["<div", "><div", ">", "<span>", " / ", "</span></div><div", ">", "", "", "", "</div></div>"], Jd = ["<span", "></span>"];
|
|
10812
|
-
function
|
|
10811
|
+
function L1(e) {
|
|
10813
10812
|
const [u, t] = Me(null), [n, r] = Me({
|
|
10814
10813
|
left: 16,
|
|
10815
10814
|
top: 64
|
|
@@ -10963,12 +10962,12 @@ function M1(e) {
|
|
|
10963
10962
|
export {
|
|
10964
10963
|
Si as A,
|
|
10965
10964
|
Ci as C,
|
|
10966
|
-
|
|
10967
|
-
|
|
10965
|
+
k1 as D,
|
|
10966
|
+
L1 as G,
|
|
10968
10967
|
ar as H,
|
|
10969
10968
|
Jf as N,
|
|
10970
10969
|
Ef as P,
|
|
10971
|
-
|
|
10970
|
+
y1 as a,
|
|
10972
10971
|
Ri as b,
|
|
10973
10972
|
Qf as c,
|
|
10974
10973
|
bc as d,
|
|
@@ -10978,5 +10977,5 @@ export {
|
|
|
10978
10977
|
Cl as h,
|
|
10979
10978
|
fu as i,
|
|
10980
10979
|
Gd as p,
|
|
10981
|
-
|
|
10980
|
+
D1 as r
|
|
10982
10981
|
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { createComponent as n, ssr as f, ssrAttribute as p, escape as r, Dynamic as R } from "solid-js/web";
|
|
2
|
+
import { createSignal as B, createResource as L, createMemo as _, Show as k, For as W } from "solid-js";
|
|
3
|
+
import { I as A, P as x } from "./Input-DaEN2JJd.js";
|
|
4
|
+
import { M as E } from "./Modal-BJqeQWr2.js";
|
|
5
|
+
import { E as M } from "./EmptyState-Csydyy_7.js";
|
|
6
|
+
import { S } from "./Button-BhqhjFpY.js";
|
|
7
|
+
import { t as a } from "./i18n-CYq-dVvv.js";
|
|
8
|
+
let g = null, m = null;
|
|
9
|
+
async function P() {
|
|
10
|
+
if (g) return g;
|
|
11
|
+
if (m) return m;
|
|
12
|
+
const e = import("./index-BqIOYH6R.js").then(
|
|
13
|
+
(o) => {
|
|
14
|
+
const c = {};
|
|
15
|
+
for (const [l, h] of Object.entries(o))
|
|
16
|
+
l.startsWith("Vp") && typeof h == "function" && (c[l] = h);
|
|
17
|
+
return g = c, m = null, c;
|
|
18
|
+
},
|
|
19
|
+
(o) => {
|
|
20
|
+
throw m = null, o;
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
return m = e, e;
|
|
24
|
+
}
|
|
25
|
+
function H(e) {
|
|
26
|
+
return (g == null ? void 0 : g[e]) ?? null;
|
|
27
|
+
}
|
|
28
|
+
const j = "vk_searchRow_WTVh9 vk_rowCenter_saaBE", $ = "vk_searchInput_ddYx3", z = "vk_metaRow_XveRw", D = "vk_gridWrap_F1DFD", F = "vk_grid_Q8et0", T = "vk_iconBtn_V5eGe", V = "vk_iconBtnActive_P-jgj", i = {
|
|
29
|
+
searchRow: j,
|
|
30
|
+
searchInput: $,
|
|
31
|
+
metaRow: z,
|
|
32
|
+
gridWrap: D,
|
|
33
|
+
grid: F,
|
|
34
|
+
iconBtn: T,
|
|
35
|
+
iconBtnActive: V
|
|
36
|
+
};
|
|
37
|
+
var w = ["<div", ">", "</div>"], N = ["<span>", "</span>"];
|
|
38
|
+
const y = 500;
|
|
39
|
+
function J(e) {
|
|
40
|
+
const [o, c] = B(""), [l] = L(() => !!e.open(), async () => P()), h = _(() => {
|
|
41
|
+
const t = l();
|
|
42
|
+
return t ? Object.entries(t) : [];
|
|
43
|
+
}), v = _(() => {
|
|
44
|
+
const t = o().trim().toLowerCase(), s = h();
|
|
45
|
+
if (!t) return s.slice(0, y);
|
|
46
|
+
const u = [];
|
|
47
|
+
for (const d of s)
|
|
48
|
+
if (d[0].toLowerCase().includes(t) && (u.push(d), u.length >= y))
|
|
49
|
+
break;
|
|
50
|
+
return u;
|
|
51
|
+
}), b = _(() => {
|
|
52
|
+
const t = o().trim().toLowerCase(), s = h();
|
|
53
|
+
if (!t) return s.length;
|
|
54
|
+
let u = 0;
|
|
55
|
+
for (const d of s)
|
|
56
|
+
d[0].toLowerCase().includes(t) && u++;
|
|
57
|
+
return u;
|
|
58
|
+
}), C = () => {
|
|
59
|
+
c(""), e.onClose();
|
|
60
|
+
}, I = (t) => {
|
|
61
|
+
e.onSelect(t), c("");
|
|
62
|
+
};
|
|
63
|
+
return n(E, {
|
|
64
|
+
get open() {
|
|
65
|
+
return e.open;
|
|
66
|
+
},
|
|
67
|
+
onClose: C,
|
|
68
|
+
get title() {
|
|
69
|
+
return e.title ?? a("Change icon");
|
|
70
|
+
},
|
|
71
|
+
maxWidth: "32rem",
|
|
72
|
+
get children() {
|
|
73
|
+
return [f(w, p("class", r(i.searchRow, !0), !1), r(n(A, {
|
|
74
|
+
type: "text",
|
|
75
|
+
get class() {
|
|
76
|
+
return i.searchInput;
|
|
77
|
+
},
|
|
78
|
+
get placeholder() {
|
|
79
|
+
return a("Search icons…");
|
|
80
|
+
},
|
|
81
|
+
get "aria-label"() {
|
|
82
|
+
return a("Search icons");
|
|
83
|
+
},
|
|
84
|
+
get value() {
|
|
85
|
+
return o();
|
|
86
|
+
},
|
|
87
|
+
onInput: (t) => c(t.currentTarget.value),
|
|
88
|
+
autofocus: !0
|
|
89
|
+
}))), f(w, p("class", r(i.metaRow, !0), !1), r(n(k, {
|
|
90
|
+
get when() {
|
|
91
|
+
return l.loading;
|
|
92
|
+
},
|
|
93
|
+
get fallback() {
|
|
94
|
+
return f(N, r(a("{shown} of {total} icons", {
|
|
95
|
+
shown: String(v().length),
|
|
96
|
+
total: String(b())
|
|
97
|
+
})));
|
|
98
|
+
},
|
|
99
|
+
get children() {
|
|
100
|
+
return n(S, {
|
|
101
|
+
size: "sm",
|
|
102
|
+
get label() {
|
|
103
|
+
return a("Loading icons…");
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}))), f(w, p("class", r(i.gridWrap, !0), !1), r(n(k, {
|
|
108
|
+
get when() {
|
|
109
|
+
return !l.loading;
|
|
110
|
+
},
|
|
111
|
+
get fallback() {
|
|
112
|
+
return n(S, {
|
|
113
|
+
size: "md",
|
|
114
|
+
get label() {
|
|
115
|
+
return a("Loading icons…");
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
get children() {
|
|
120
|
+
return n(k, {
|
|
121
|
+
get when() {
|
|
122
|
+
return v().length > 0;
|
|
123
|
+
},
|
|
124
|
+
get fallback() {
|
|
125
|
+
return n(M, {
|
|
126
|
+
size: "sm",
|
|
127
|
+
get title() {
|
|
128
|
+
return a("No icons match your search.");
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
},
|
|
132
|
+
get children() {
|
|
133
|
+
return f(w, p("class", r(i.grid, !0), !1), r(n(W, {
|
|
134
|
+
get each() {
|
|
135
|
+
return v();
|
|
136
|
+
},
|
|
137
|
+
children: ([t, s]) => n(x, {
|
|
138
|
+
type: "button",
|
|
139
|
+
get class() {
|
|
140
|
+
return `${i.iconBtn} ${e.currentIconName === t ? i.iconBtnActive : ""}`;
|
|
141
|
+
},
|
|
142
|
+
title: t,
|
|
143
|
+
onClick: () => I(t),
|
|
144
|
+
get children() {
|
|
145
|
+
return n(R, {
|
|
146
|
+
component: s
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
})));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
})))];
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
export {
|
|
159
|
+
J as I,
|
|
160
|
+
H as g,
|
|
161
|
+
P as l
|
|
162
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("solid-js/web"),r=require("solid-js"),w=require("./Input-CjvD8w18.cjs"),y=require("./Modal-Bt5zABLw.cjs"),I=require("./EmptyState-BnAHklc5.cjs"),C=require("./Button-CFOM8pOv.cjs"),a=require("./i18n-B9ccWgcR.cjs");let g=null,p=null;async function v(){if(g)return g;if(p)return p;const n=Promise.resolve().then(()=>require("./index-DwEHhkL-.cjs")).then(o=>{const c={};for(const[l,h]of Object.entries(o))l.startsWith("Vp")&&typeof h=="function"&&(c[l]=h);return g=c,p=null,c},o=>{throw p=null,o});return p=n,n}function R(n){return(g==null?void 0:g[n])??null}const B="vk_searchRow_WTVh9 vk_rowCenter_saaBE",A="vk_searchInput_ddYx3",q="vk_metaRow_XveRw",L="vk_gridWrap_F1DFD",M="vk_grid_Q8et0",W="vk_iconBtn_V5eGe",P="vk_iconBtnActive_P-jgj",i={searchRow:B,searchInput:A,metaRow:q,gridWrap:L,grid:M,iconBtn:W,iconBtnActive:P};var m=["<div",">","</div>"],E=["<span>","</span>"];const S=500;function j(n){const[o,c]=r.createSignal(""),[l]=r.createResource(()=>!!n.open(),async()=>v()),h=r.createMemo(()=>{const t=l();return t?Object.entries(t):[]}),f=r.createMemo(()=>{const t=o().trim().toLowerCase(),s=h();if(!t)return s.slice(0,S);const u=[];for(const d of s)if(d[0].toLowerCase().includes(t)&&(u.push(d),u.length>=S))break;return u}),_=r.createMemo(()=>{const t=o().trim().toLowerCase(),s=h();if(!t)return s.length;let u=0;for(const d of s)d[0].toLowerCase().includes(t)&&u++;return u}),k=()=>{c(""),n.onClose()},b=t=>{n.onSelect(t),c("")};return e.createComponent(y.Modal,{get open(){return n.open},onClose:k,get title(){return n.title??a.t("Change icon")},maxWidth:"32rem",get children(){return[e.ssr(m,e.ssrAttribute("class",e.escape(i.searchRow,!0),!1),e.escape(e.createComponent(w.Input,{type:"text",get class(){return i.searchInput},get placeholder(){return a.t("Search icons…")},get"aria-label"(){return a.t("Search icons")},get value(){return o()},onInput:t=>c(t.currentTarget.value),autofocus:!0}))),e.ssr(m,e.ssrAttribute("class",e.escape(i.metaRow,!0),!1),e.escape(e.createComponent(r.Show,{get when(){return l.loading},get fallback(){return e.ssr(E,e.escape(a.t("{shown} of {total} icons",{shown:String(f().length),total:String(_())})))},get children(){return e.createComponent(C.Spinner,{size:"sm",get label(){return a.t("Loading icons…")}})}}))),e.ssr(m,e.ssrAttribute("class",e.escape(i.gridWrap,!0),!1),e.escape(e.createComponent(r.Show,{get when(){return!l.loading},get fallback(){return e.createComponent(C.Spinner,{size:"md",get label(){return a.t("Loading icons…")}})},get children(){return e.createComponent(r.Show,{get when(){return f().length>0},get fallback(){return e.createComponent(I.EmptyState,{size:"sm",get title(){return a.t("No icons match your search.")}})},get children(){return e.ssr(m,e.ssrAttribute("class",e.escape(i.grid,!0),!1),e.escape(e.createComponent(r.For,{get each(){return f()},children:([t,s])=>e.createComponent(w.PressableSurface,{type:"button",get class(){return`${i.iconBtn} ${n.currentIconName===t?i.iconBtnActive:""}`},title:t,onClick:()=>b(t),get children(){return e.createComponent(e.Dynamic,{component:s})}})})))}})}})))]}})}exports.IconPicker=j;exports.getIconSync=R;exports.loadIconSet=v;
|