@algorisys/zen-ui-solid 13.8.0 → 13.8.1
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/components/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/form/radio/radio-group.d.ts.map +1 -1
- package/dist/components/form/slider/slider.d.ts.map +1 -1
- package/dist/components/form/switch/switch.d.ts.map +1 -1
- package/dist/index208.js +13 -13
- package/dist/index209.js +2 -2
- package/dist/index210.js +5 -5
- package/dist/index211.js +12 -12
- package/dist/index212.js +13 -13
- package/dist/index213.js +10 -10
- package/dist/index214.js +10 -10
- package/dist/index215.js +9 -9
- package/dist/index216.js +9 -9
- package/dist/index218.js +14 -14
- package/dist/index219.js +14 -14
- package/dist/index220.js +13 -13
- package/dist/index221.js +1 -1
- package/dist/index222.js +5 -5
- package/dist/index223.js +9 -9
- package/dist/index224.js +24 -24
- package/dist/index225.js +5 -5
- package/dist/index226.js +3 -3
- package/dist/index249.js +10 -10
- package/dist/index250.js +3 -3
- package/dist/index252.js +2 -2
- package/dist/index257.js +1 -1
- package/dist/index258.js +1 -1
- package/dist/index271.js +5 -5
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +3 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +17 -16
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +16 -3
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +3 -3
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +3 -26
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +26 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +10 -7
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +8 -49
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +49 -13
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +12 -6
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +7 -4
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +4 -5
- package/dist/index284.js.map +1 -1
- package/dist/index286.js +6 -260
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +105 -64
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +67 -19
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +72 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +22 -15
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +58 -7
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +3 -384
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +16 -35
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +384 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +92 -19
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +34 -391
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +6 -118
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +17 -48
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +62 -16
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +48 -58
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +31 -62
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +16 -20
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +58 -56
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +20 -10
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +10 -117
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +920 -20
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +37 -19
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +256 -18
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +114 -71
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +556 -891
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +121 -36
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +17 -114
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +363 -560
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +85 -118
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +16 -112
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +115 -67
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +21 -16
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +19 -91
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +20 -87
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +71 -16
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +118 -32
- package/dist/index321.js.map +1 -1
- package/dist/index323.js +1 -1
- package/dist/index324.js +93 -63
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +5 -116
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +38 -7
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +44 -7
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +2 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +65 -7
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +115 -3
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +608 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +295 -4
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +88 -5
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +11 -95
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +20 -5
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +62 -38
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +33 -43
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +7 -2
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +6 -608
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +11 -294
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +6 -88
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +3 -10
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +3 -19
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +4 -61
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +5 -33
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +3 -466
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +9 -125
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +33 -134
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +21 -3
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +5 -5
- package/dist/index351.js +2 -2
- package/dist/index357.js +464 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +126 -33
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +133 -20
- package/dist/index359.js.map +1 -1
- package/dist/index53.js +21 -15
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +15 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +20 -14
- package/dist/index55.js.map +1 -1
- package/dist/index62.js +42 -22
- package/dist/index62.js.map +1 -1
- package/dist/server/index.js +50 -12
- package/package.json +1 -1
package/dist/index301.js
CHANGED
|
@@ -1,67 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
e < 0 || t.splice(e, 1);
|
|
31
|
-
}
|
|
32
|
-
function v() {
|
|
33
|
-
for (const {
|
|
34
|
-
node: n
|
|
35
|
-
} of t)
|
|
36
|
-
n.style.pointerEvents = u(n) ? "none" : "auto";
|
|
37
|
-
}
|
|
38
|
-
function p(n) {
|
|
39
|
-
if (i() && !r) {
|
|
40
|
-
const e = s(n);
|
|
41
|
-
c = document.body.style.pointerEvents, e.body.style.pointerEvents = "none", r = !0;
|
|
1
|
+
import { visuallyHiddenStyles as s } from "./index294.js";
|
|
2
|
+
var r = 7e3, o = null, l = "data-live-announcer";
|
|
3
|
+
function c(e, t = "assertive", n = r) {
|
|
4
|
+
o || (o = new d()), o.announce(e, t, n);
|
|
5
|
+
}
|
|
6
|
+
var d = class {
|
|
7
|
+
node;
|
|
8
|
+
assertiveLog;
|
|
9
|
+
politeLog;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, s), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node);
|
|
12
|
+
}
|
|
13
|
+
createLog(e) {
|
|
14
|
+
const t = document.createElement("div");
|
|
15
|
+
return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;
|
|
16
|
+
}
|
|
17
|
+
destroy() {
|
|
18
|
+
this.node && (document.body.removeChild(this.node), this.node = null);
|
|
19
|
+
}
|
|
20
|
+
announce(e, t = "assertive", n = r) {
|
|
21
|
+
if (!this.node)
|
|
22
|
+
return;
|
|
23
|
+
const i = document.createElement("div");
|
|
24
|
+
i.textContent = e, t === "assertive" ? this.assertiveLog.appendChild(i) : this.politeLog.appendChild(i), e !== "" && setTimeout(() => {
|
|
25
|
+
i.remove();
|
|
26
|
+
}, n);
|
|
27
|
+
}
|
|
28
|
+
clear(e) {
|
|
29
|
+
this.node && ((!e || e === "assertive") && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && (this.politeLog.innerHTML = ""));
|
|
42
30
|
}
|
|
43
|
-
}
|
|
44
|
-
function B(n) {
|
|
45
|
-
if (i())
|
|
46
|
-
return;
|
|
47
|
-
const e = s(n);
|
|
48
|
-
e.body.style.pointerEvents = c, e.body.style.length === 0 && e.body.removeAttribute("style"), r = !1;
|
|
49
|
-
}
|
|
50
|
-
var b = {
|
|
51
|
-
layers: t,
|
|
52
|
-
isTopMostLayer: y,
|
|
53
|
-
hasPointerBlockingLayer: i,
|
|
54
|
-
isBelowPointerBlockingLayer: u,
|
|
55
|
-
addLayer: f,
|
|
56
|
-
removeLayer: g,
|
|
57
|
-
indexOf: o,
|
|
58
|
-
find: l,
|
|
59
|
-
assignPointerEventToLayers: v,
|
|
60
|
-
disableBodyPointerEvents: p,
|
|
61
|
-
restoreBodyPointerEvents: B
|
|
62
31
|
};
|
|
63
32
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
33
|
+
l as DATA_LIVE_ANNOUNCER_ATTR,
|
|
34
|
+
c as announce
|
|
66
35
|
};
|
|
67
36
|
//# sourceMappingURL=index301.js.map
|
package/dist/index301.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index301.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/
|
|
1
|
+
{"version":3,"file":"index301.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/JHMNWOLY.jsx"],"sourcesContent":["// src/live-announcer/live-announcer.tsx\nimport { visuallyHiddenStyles } from \"@kobalte/utils\";\nvar LIVEREGION_TIMEOUT_DELAY = 7e3;\nvar liveAnnouncer = null;\nvar DATA_LIVE_ANNOUNCER_ATTR = \"data-live-announcer\";\nfunction announce(message, assertiveness = \"assertive\", timeout = LIVEREGION_TIMEOUT_DELAY) {\n if (!liveAnnouncer) {\n liveAnnouncer = new LiveAnnouncer();\n }\n liveAnnouncer.announce(message, assertiveness, timeout);\n}\nfunction clearAnnouncer(assertiveness) {\n if (liveAnnouncer) {\n liveAnnouncer.clear(assertiveness);\n }\n}\nfunction destroyAnnouncer() {\n if (liveAnnouncer) {\n liveAnnouncer.destroy();\n liveAnnouncer = null;\n }\n}\nvar LiveAnnouncer = class {\n node;\n assertiveLog;\n politeLog;\n constructor() {\n this.node = document.createElement(\"div\");\n this.node.dataset.liveAnnouncer = \"true\";\n Object.assign(this.node.style, visuallyHiddenStyles);\n this.assertiveLog = this.createLog(\"assertive\");\n this.node.appendChild(this.assertiveLog);\n this.politeLog = this.createLog(\"polite\");\n this.node.appendChild(this.politeLog);\n document.body.prepend(this.node);\n }\n createLog(ariaLive) {\n const node = document.createElement(\"div\");\n node.setAttribute(\"role\", \"log\");\n node.setAttribute(\"aria-live\", ariaLive);\n node.setAttribute(\"aria-relevant\", \"additions\");\n return node;\n }\n destroy() {\n if (!this.node) {\n return;\n }\n document.body.removeChild(this.node);\n this.node = null;\n }\n announce(message, assertiveness = \"assertive\", timeout = LIVEREGION_TIMEOUT_DELAY) {\n if (!this.node) {\n return;\n }\n const node = document.createElement(\"div\");\n node.textContent = message;\n if (assertiveness === \"assertive\") {\n this.assertiveLog.appendChild(node);\n } else {\n this.politeLog.appendChild(node);\n }\n if (message !== \"\") {\n setTimeout(() => {\n node.remove();\n }, timeout);\n }\n }\n clear(assertiveness) {\n if (!this.node) {\n return;\n }\n if (!assertiveness || assertiveness === \"assertive\") {\n this.assertiveLog.innerHTML = \"\";\n }\n if (!assertiveness || assertiveness === \"polite\") {\n this.politeLog.innerHTML = \"\";\n }\n }\n};\n\nexport {\n DATA_LIVE_ANNOUNCER_ATTR,\n announce,\n clearAnnouncer,\n destroyAnnouncer\n};\n"],"names":["LIVEREGION_TIMEOUT_DELAY","liveAnnouncer","DATA_LIVE_ANNOUNCER_ATTR","announce","message","assertiveness","timeout","LiveAnnouncer","node","assertiveLog","politeLog","constructor","document","createElement","dataset","Object","assign","style","visuallyHiddenStyles","createLog","appendChild","body","prepend","ariaLive","setAttribute","destroy","removeChild","textContent","setTimeout","remove","clear","innerHTML"],"mappings":";AAEA,IAAIA,IAA2B,KAC3BC,IAAgB,MAChBC,IAA2B;AAC/B,SAASC,EAASC,GAASC,IAAgB,aAAaC,IAAUN,GAA0B;AAC1F,EAAKC,MACHA,IAAgB,IAAIM,EAAAA,IAEtBN,EAAcE,SAASC,GAASC,GAAeC,CAAO;AACxD;AAYA,IAAIC,IAAgB,MAAM;AAAA,EACxBC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,cAAc;AACZ,SAAKH,OAAOI,SAASC,cAAc,KAAK,GACxC,KAAKL,KAAKM,QAAQb,gBAAgB,QAClCc,OAAOC,OAAO,KAAKR,KAAKS,OAAOC,CAAoB,GACnD,KAAKT,eAAe,KAAKU,UAAU,WAAW,GAC9C,KAAKX,KAAKY,YAAY,KAAKX,YAAY,GACvC,KAAKC,YAAY,KAAKS,UAAU,QAAQ,GACxC,KAAKX,KAAKY,YAAY,KAAKV,SAAS,GACpCE,SAASS,KAAKC,QAAQ,KAAKd,IAAI;AAAA,EACjC;AAAA,EACAW,UAAUI,GAAU;AAClB,UAAMf,IAAOI,SAASC,cAAc,KAAK;AACzCL,WAAAA,EAAKgB,aAAa,QAAQ,KAAK,GAC/BhB,EAAKgB,aAAa,aAAaD,CAAQ,GACvCf,EAAKgB,aAAa,iBAAiB,WAAW,GACvChB;AAAAA,EACT;AAAA,EACAiB,UAAU;AACR,IAAK,KAAKjB,SAGVI,SAASS,KAAKK,YAAY,KAAKlB,IAAI,GACnC,KAAKA,OAAO;AAAA,EACd;AAAA,EACAL,SAASC,GAASC,IAAgB,aAAaC,IAAUN,GAA0B;AACjF,QAAI,CAAC,KAAKQ;AACR;AAEF,UAAMA,IAAOI,SAASC,cAAc,KAAK;AACzCL,IAAAA,EAAKmB,cAAcvB,GACfC,MAAkB,cACpB,KAAKI,aAAaW,YAAYZ,CAAI,IAElC,KAAKE,UAAUU,YAAYZ,CAAI,GAE7BJ,MAAY,MACdwB,WAAW,MAAM;AACfpB,MAAAA,EAAKqB,OAAAA;AAAAA,IACP,GAAGvB,CAAO;AAAA,EAEd;AAAA,EACAwB,MAAMzB,GAAe;AACnB,IAAK,KAAKG,UAGN,CAACH,KAAiBA,MAAkB,iBACtC,KAAKI,aAAasB,YAAY,MAE5B,CAAC1B,KAAiBA,MAAkB,cACtC,KAAKK,UAAUqB,YAAY;AAAA,EAE/B;AACF;","x_google_ignoreList":[0]}
|
package/dist/index302.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { getDocument as t, EventKey as r } from "./index294.js";
|
|
2
|
+
import { createEffect as c, onCleanup as i } from "solid-js";
|
|
3
|
+
import { isServer as m } from "solid-js/web";
|
|
4
|
+
import { access as a } from "./index300.js";
|
|
5
|
+
function y(n) {
|
|
6
|
+
const o = (e) => {
|
|
7
|
+
e.key === r.Escape && n.onEscapeKeyDown?.(e);
|
|
8
|
+
};
|
|
9
|
+
c(() => {
|
|
10
|
+
if (m || a(n.isDisabled))
|
|
11
|
+
return;
|
|
12
|
+
const e = n.ownerDocument?.() ?? t();
|
|
13
|
+
e.addEventListener("keydown", o), i(() => {
|
|
14
|
+
e.removeEventListener("keydown", o);
|
|
9
15
|
});
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
function m(e) {
|
|
13
|
-
const [t, a] = r(e);
|
|
14
|
-
return [() => t() ?? !1, a];
|
|
15
|
-
}
|
|
16
|
-
function C(e) {
|
|
17
|
-
const [t, a] = r(e);
|
|
18
|
-
return [() => t() ?? [], a];
|
|
16
|
+
});
|
|
19
17
|
}
|
|
20
18
|
export {
|
|
21
|
-
|
|
22
|
-
m as createControllableBooleanSignal,
|
|
23
|
-
r as createControllableSignal
|
|
19
|
+
y as createEscapeKeyDown
|
|
24
20
|
};
|
|
25
21
|
//# sourceMappingURL=index302.js.map
|
package/dist/index302.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index302.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/
|
|
1
|
+
{"version":3,"file":"index302.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/IGYOA2ZZ.jsx"],"sourcesContent":["// src/primitives/create-escape-key-down/create-escape-key-down.ts\nimport {\n EventKey,\n access,\n getDocument\n} from \"@kobalte/utils\";\nimport { createEffect, onCleanup } from \"solid-js\";\nimport { isServer } from \"solid-js/web\";\nfunction createEscapeKeyDown(props) {\n const handleKeyDown = (event) => {\n if (event.key === EventKey.Escape) {\n props.onEscapeKeyDown?.(event);\n }\n };\n createEffect(() => {\n if (isServer) {\n return;\n }\n if (access(props.isDisabled)) {\n return;\n }\n const document = props.ownerDocument?.() ?? getDocument();\n document.addEventListener(\"keydown\", handleKeyDown);\n onCleanup(() => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n });\n });\n}\n\nexport {\n createEscapeKeyDown\n};\n"],"names":["createEscapeKeyDown","props","handleKeyDown","event","key","EventKey","Escape","onEscapeKeyDown","createEffect","isServer","access","isDisabled","document","ownerDocument","getDocument","addEventListener","onCleanup","removeEventListener"],"mappings":";;;;AAQA,SAASA,EAAoBC,GAAO;AAClC,QAAMC,IAAiBC,CAAAA,MAAU;AAC/B,IAAIA,EAAMC,QAAQC,EAASC,UACzBL,EAAMM,kBAAkBJ,CAAK;AAAA,EAEjC;AACAK,EAAAA,EAAa,MAAM;AAIjB,QAHIC,KAGAC,EAAOT,EAAMU,UAAU;AACzB;AAEF,UAAMC,IAAWX,EAAMY,gBAAAA,KAAqBC,EAAAA;AAC5CF,IAAAA,EAASG,iBAAiB,WAAWb,CAAa,GAClDc,EAAU,MAAM;AACdJ,MAAAA,EAASK,oBAAoB,WAAWf,CAAa;AAAA,IACvD,CAAC;AAAA,EACH,CAAC;AACH;","x_google_ignoreList":[0]}
|
package/dist/index303.js
CHANGED
|
@@ -1,61 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
as: "button",
|
|
31
|
-
ref(n) {
|
|
32
|
-
var m = T((b) => e = b, t.ref);
|
|
33
|
-
typeof m == "function" && m(n);
|
|
34
|
-
},
|
|
35
|
-
get type() {
|
|
36
|
-
return p(() => !!(o() || a()))() ? t.type : void 0;
|
|
37
|
-
},
|
|
38
|
-
get role() {
|
|
39
|
-
return !o() && !s() ? "button" : void 0;
|
|
40
|
-
},
|
|
41
|
-
get tabIndex() {
|
|
42
|
-
return !o() && !s() && !t.disabled ? 0 : void 0;
|
|
43
|
-
},
|
|
44
|
-
get disabled() {
|
|
45
|
-
return p(() => !!(o() || a()))() ? t.disabled : void 0;
|
|
46
|
-
},
|
|
47
|
-
get "aria-disabled"() {
|
|
48
|
-
return !o() && !a() && t.disabled ? !0 : void 0;
|
|
49
|
-
},
|
|
50
|
-
get "data-disabled"() {
|
|
51
|
-
return t.disabled ? "" : void 0;
|
|
1
|
+
import { DATA_TOP_LAYER_ATTR as p } from "./index299.js";
|
|
2
|
+
import { noop as L, getDocument as g, isCtrlKey as I, contains as v, composeEventHandlers as m } from "./index294.js";
|
|
3
|
+
import { createEffect as _, onCleanup as h } from "solid-js";
|
|
4
|
+
import { isServer as C } from "solid-js/web";
|
|
5
|
+
import { access as P } from "./index300.js";
|
|
6
|
+
var O = "interactOutside.pointerDownOutside", w = "interactOutside.focusOutside";
|
|
7
|
+
function S(o, s) {
|
|
8
|
+
let u, a = L;
|
|
9
|
+
const n = () => g(s()), D = (e) => o.onPointerDownOutside?.(e), T = (e) => o.onFocusOutside?.(e), d = (e) => o.onInteractOutside?.(e), l = (e) => {
|
|
10
|
+
const t = e.target;
|
|
11
|
+
return !(t instanceof Element) || t.closest(`[${p}]`) || !v(n(), t) || v(s(), t) ? !1 : !o.shouldExcludeElement?.(t);
|
|
12
|
+
}, E = (e) => {
|
|
13
|
+
function t() {
|
|
14
|
+
const r = s(), i = e.target;
|
|
15
|
+
if (!r || !i || !l(e))
|
|
16
|
+
return;
|
|
17
|
+
const c = m([D, d]);
|
|
18
|
+
i.addEventListener(O, c, {
|
|
19
|
+
once: !0
|
|
20
|
+
});
|
|
21
|
+
const b = new CustomEvent(O, {
|
|
22
|
+
bubbles: !1,
|
|
23
|
+
cancelable: !0,
|
|
24
|
+
detail: {
|
|
25
|
+
originalEvent: e,
|
|
26
|
+
isContextMenu: e.button === 2 || I(e) && e.button === 0
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
i.dispatchEvent(b);
|
|
52
30
|
}
|
|
53
|
-
|
|
31
|
+
e.pointerType === "touch" ? (n().removeEventListener("click", t), a = t, n().addEventListener("click", t, {
|
|
32
|
+
once: !0
|
|
33
|
+
})) : t();
|
|
34
|
+
}, f = (e) => {
|
|
35
|
+
const t = s(), r = e.target;
|
|
36
|
+
if (!t || !r || !l(e))
|
|
37
|
+
return;
|
|
38
|
+
const i = m([T, d]);
|
|
39
|
+
r.addEventListener(w, i, {
|
|
40
|
+
once: !0
|
|
41
|
+
});
|
|
42
|
+
const c = new CustomEvent(w, {
|
|
43
|
+
bubbles: !1,
|
|
44
|
+
cancelable: !0,
|
|
45
|
+
detail: {
|
|
46
|
+
originalEvent: e,
|
|
47
|
+
isContextMenu: !1
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
r.dispatchEvent(c);
|
|
51
|
+
};
|
|
52
|
+
_(() => {
|
|
53
|
+
C || P(o.isDisabled) || (u = window.setTimeout(() => {
|
|
54
|
+
n().addEventListener("pointerdown", E, !0);
|
|
55
|
+
}, 0), n().addEventListener("focusin", f, !0), h(() => {
|
|
56
|
+
window.clearTimeout(u), n().removeEventListener("click", a), n().removeEventListener("pointerdown", E, !0), n().removeEventListener("focusin", f, !0);
|
|
57
|
+
}));
|
|
58
|
+
});
|
|
54
59
|
}
|
|
55
|
-
var I = d;
|
|
56
60
|
export {
|
|
57
|
-
|
|
58
|
-
d as ButtonRoot,
|
|
59
|
-
_ as button_exports
|
|
61
|
+
S as createInteractOutside
|
|
60
62
|
};
|
|
61
63
|
//# sourceMappingURL=index303.js.map
|
package/dist/index303.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index303.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/
|
|
1
|
+
{"version":3,"file":"index303.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/ZG3NR5OC.jsx"],"sourcesContent":["import {\n DATA_TOP_LAYER_ATTR\n} from \"./3DLZMX4Z.jsx\";\n\n// src/primitives/create-interact-outside/create-interact-outside.ts\nimport {\n access,\n composeEventHandlers,\n contains,\n getDocument,\n isCtrlKey,\n noop\n} from \"@kobalte/utils\";\nimport { createEffect, onCleanup } from \"solid-js\";\nimport { isServer } from \"solid-js/web\";\nvar POINTER_DOWN_OUTSIDE_EVENT = \"interactOutside.pointerDownOutside\";\nvar FOCUS_OUTSIDE_EVENT = \"interactOutside.focusOutside\";\nfunction createInteractOutside(props, ref) {\n let pointerDownTimeoutId;\n let clickHandler = noop;\n const ownerDocument = () => getDocument(ref());\n const onPointerDownOutside = (e) => props.onPointerDownOutside?.(e);\n const onFocusOutside = (e) => props.onFocusOutside?.(e);\n const onInteractOutside = (e) => props.onInteractOutside?.(e);\n const isEventOutside = (e) => {\n const target = e.target;\n if (!(target instanceof Element)) {\n return false;\n }\n if (target.closest(`[${DATA_TOP_LAYER_ATTR}]`)) {\n return false;\n }\n if (!contains(ownerDocument(), target)) {\n return false;\n }\n if (contains(ref(), target)) {\n return false;\n }\n return !props.shouldExcludeElement?.(target);\n };\n const onPointerDown = (e) => {\n function handler() {\n const container = ref();\n const target = e.target;\n if (!container || !target || !isEventOutside(e)) {\n return;\n }\n const handler2 = composeEventHandlers([\n onPointerDownOutside,\n onInteractOutside\n ]);\n target.addEventListener(POINTER_DOWN_OUTSIDE_EVENT, handler2, {\n once: true\n });\n const pointerDownOutsideEvent = new CustomEvent(\n POINTER_DOWN_OUTSIDE_EVENT,\n {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: e,\n isContextMenu: e.button === 2 || isCtrlKey(e) && e.button === 0\n }\n }\n );\n target.dispatchEvent(pointerDownOutsideEvent);\n }\n if (e.pointerType === \"touch\") {\n ownerDocument().removeEventListener(\"click\", handler);\n clickHandler = handler;\n ownerDocument().addEventListener(\"click\", handler, { once: true });\n } else {\n handler();\n }\n };\n const onFocusIn = (e) => {\n const container = ref();\n const target = e.target;\n if (!container || !target || !isEventOutside(e)) {\n return;\n }\n const handler = composeEventHandlers([\n onFocusOutside,\n onInteractOutside\n ]);\n target.addEventListener(FOCUS_OUTSIDE_EVENT, handler, { once: true });\n const focusOutsideEvent = new CustomEvent(FOCUS_OUTSIDE_EVENT, {\n bubbles: false,\n cancelable: true,\n detail: {\n originalEvent: e,\n isContextMenu: false\n }\n });\n target.dispatchEvent(focusOutsideEvent);\n };\n createEffect(() => {\n if (isServer) {\n return;\n }\n if (access(props.isDisabled)) {\n return;\n }\n pointerDownTimeoutId = window.setTimeout(() => {\n ownerDocument().addEventListener(\"pointerdown\", onPointerDown, true);\n }, 0);\n ownerDocument().addEventListener(\"focusin\", onFocusIn, true);\n onCleanup(() => {\n window.clearTimeout(pointerDownTimeoutId);\n ownerDocument().removeEventListener(\"click\", clickHandler);\n ownerDocument().removeEventListener(\"pointerdown\", onPointerDown, true);\n ownerDocument().removeEventListener(\"focusin\", onFocusIn, true);\n });\n });\n}\n\nexport {\n createInteractOutside\n};\n"],"names":["POINTER_DOWN_OUTSIDE_EVENT","FOCUS_OUTSIDE_EVENT","createInteractOutside","props","ref","pointerDownTimeoutId","clickHandler","noop","ownerDocument","getDocument","onPointerDownOutside","e","onFocusOutside","onInteractOutside","isEventOutside","target","Element","closest","DATA_TOP_LAYER_ATTR","contains","shouldExcludeElement","onPointerDown","handler","container","handler2","composeEventHandlers","addEventListener","once","pointerDownOutsideEvent","CustomEvent","bubbles","cancelable","detail","originalEvent","isContextMenu","button","isCtrlKey","dispatchEvent","pointerType","removeEventListener","onFocusIn","focusOutsideEvent","createEffect","isServer","access","isDisabled","window","setTimeout","onCleanup","clearTimeout"],"mappings":";;;;;AAeA,IAAIA,IAA6B,sCAC7BC,IAAsB;AAC1B,SAASC,EAAsBC,GAAOC,GAAK;AACzC,MAAIC,GACAC,IAAeC;AACnB,QAAMC,IAAgBA,MAAMC,EAAYL,GAAK,GACvCM,IAAwBC,CAAAA,MAAMR,EAAMO,uBAAuBC,CAAC,GAC5DC,IAAkBD,CAAAA,MAAMR,EAAMS,iBAAiBD,CAAC,GAChDE,IAAqBF,CAAAA,MAAMR,EAAMU,oBAAoBF,CAAC,GACtDG,IAAkBH,CAAAA,MAAM;AAC5B,UAAMI,IAASJ,EAAEI;AAUjB,WATI,EAAEA,aAAkBC,YAGpBD,EAAOE,QAAQ,IAAIC,CAAmB,GAAG,KAGzC,CAACC,EAASX,EAAAA,GAAiBO,CAAM,KAGjCI,EAASf,KAAOW,CAAM,IACjB,KAEF,CAACZ,EAAMiB,uBAAuBL,CAAM;AAAA,EAC7C,GACMM,IAAiBV,CAAAA,MAAM;AAC3B,aAASW,IAAU;AACjB,YAAMC,IAAYnB,EAAAA,GACZW,IAASJ,EAAEI;AACjB,UAAI,CAACQ,KAAa,CAACR,KAAU,CAACD,EAAeH,CAAC;AAC5C;AAEF,YAAMa,IAAWC,EAAqB,CACpCf,GACAG,CAAiB,CAClB;AACDE,MAAAA,EAAOW,iBAAiB1B,GAA4BwB,GAAU;AAAA,QAC5DG,MAAM;AAAA,MAAA,CACP;AACD,YAAMC,IAA0B,IAAIC,YAClC7B,GACA;AAAA,QACE8B,SAAS;AAAA,QACTC,YAAY;AAAA,QACZC,QAAQ;AAAA,UACNC,eAAetB;AAAAA,UACfuB,eAAevB,EAAEwB,WAAW,KAAKC,EAAUzB,CAAC,KAAKA,EAAEwB,WAAW;AAAA,QAAA;AAAA,MAChE,CAEJ;AACApB,MAAAA,EAAOsB,cAAcT,CAAuB;AAAA,IAC9C;AACA,IAAIjB,EAAE2B,gBAAgB,WACpB9B,IAAgB+B,oBAAoB,SAASjB,CAAO,GACpDhB,IAAegB,GACfd,IAAgBkB,iBAAiB,SAASJ,GAAS;AAAA,MAAEK,MAAM;AAAA,IAAA,CAAM,KAEjEL,EAAAA;AAAAA,EAEJ,GACMkB,IAAa7B,CAAAA,MAAM;AACvB,UAAMY,IAAYnB,EAAAA,GACZW,IAASJ,EAAEI;AACjB,QAAI,CAACQ,KAAa,CAACR,KAAU,CAACD,EAAeH,CAAC;AAC5C;AAEF,UAAMW,IAAUG,EAAqB,CACnCb,GACAC,CAAiB,CAClB;AACDE,IAAAA,EAAOW,iBAAiBzB,GAAqBqB,GAAS;AAAA,MAAEK,MAAM;AAAA,IAAA,CAAM;AACpE,UAAMc,IAAoB,IAAIZ,YAAY5B,GAAqB;AAAA,MAC7D6B,SAAS;AAAA,MACTC,YAAY;AAAA,MACZC,QAAQ;AAAA,QACNC,eAAetB;AAAAA,QACfuB,eAAe;AAAA,MAAA;AAAA,IACjB,CACD;AACDnB,IAAAA,EAAOsB,cAAcI,CAAiB;AAAA,EACxC;AACAC,EAAAA,EAAa,MAAM;AACjB,IAAIC,KAGAC,EAAOzC,EAAM0C,UAAU,MAG3BxC,IAAuByC,OAAOC,WAAW,MAAM;AAC7CvC,MAAAA,EAAAA,EAAgBkB,iBAAiB,eAAeL,GAAe,EAAI;AAAA,IACrE,GAAG,CAAC,GACJb,EAAAA,EAAgBkB,iBAAiB,WAAWc,GAAW,EAAI,GAC3DQ,EAAU,MAAM;AACdF,aAAOG,aAAa5C,CAAoB,GACxCG,IAAgB+B,oBAAoB,SAASjC,CAAY,GACzDE,EAAAA,EAAgB+B,oBAAoB,eAAelB,GAAe,EAAI,GACtEb,EAAAA,EAAgB+B,oBAAoB,WAAWC,GAAW,EAAI;AAAA,IAChE,CAAC;AAAA,EACH,CAAC;AACH;","x_google_ignoreList":[0]}
|
package/dist/index304.js
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
function f(e, t) {
|
|
4
|
-
const [n, o] = i(r(t?.()));
|
|
5
|
-
return m(() => {
|
|
6
|
-
o(e()?.tagName.toLowerCase() || r(t?.()));
|
|
7
|
-
}), n;
|
|
8
|
-
}
|
|
1
|
+
import { createSignal as s, createMemo as u, untrack as i } from "solid-js";
|
|
2
|
+
import { accessWith as v } from "./index300.js";
|
|
9
3
|
function r(e) {
|
|
10
|
-
|
|
4
|
+
const [t, a] = s(e.defaultValue?.()), l = u(() => e.value?.() !== void 0), o = u(() => l() ? e.value?.() : t());
|
|
5
|
+
return [o, (c) => {
|
|
6
|
+
i(() => {
|
|
7
|
+
const n = v(c, o());
|
|
8
|
+
return Object.is(n, o()) || (l() || a(n), e.onChange?.(n)), n;
|
|
9
|
+
});
|
|
10
|
+
}];
|
|
11
|
+
}
|
|
12
|
+
function m(e) {
|
|
13
|
+
const [t, a] = r(e);
|
|
14
|
+
return [() => t() ?? !1, a];
|
|
15
|
+
}
|
|
16
|
+
function C(e) {
|
|
17
|
+
const [t, a] = r(e);
|
|
18
|
+
return [() => t() ?? [], a];
|
|
11
19
|
}
|
|
12
20
|
export {
|
|
13
|
-
|
|
21
|
+
C as createControllableArraySignal,
|
|
22
|
+
m as createControllableBooleanSignal,
|
|
23
|
+
r as createControllableSignal
|
|
14
24
|
};
|
|
15
25
|
//# sourceMappingURL=index304.js.map
|
package/dist/index304.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index304.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/
|
|
1
|
+
{"version":3,"file":"index304.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/FN6EICGO.jsx"],"sourcesContent":["// src/primitives/create-controllable-signal/create-controllable-signal.ts\nimport { accessWith } from \"@kobalte/utils\";\nimport { createMemo, createSignal, untrack } from \"solid-js\";\nfunction createControllableSignal(props) {\n const [_value, _setValue] = createSignal(props.defaultValue?.());\n const isControlled = createMemo(() => props.value?.() !== void 0);\n const value = createMemo(() => isControlled() ? props.value?.() : _value());\n const setValue = (next) => {\n untrack(() => {\n const nextValue = accessWith(next, value());\n if (!Object.is(nextValue, value())) {\n if (!isControlled()) {\n _setValue(nextValue);\n }\n props.onChange?.(nextValue);\n }\n return nextValue;\n });\n };\n return [value, setValue];\n}\nfunction createControllableBooleanSignal(props) {\n const [_value, setValue] = createControllableSignal(props);\n const value = () => _value() ?? false;\n return [value, setValue];\n}\nfunction createControllableArraySignal(props) {\n const [_value, setValue] = createControllableSignal(props);\n const value = () => _value() ?? [];\n return [value, setValue];\n}\nfunction createControllableSetSignal(props) {\n const [_value, setValue] = createControllableSignal(props);\n const value = () => _value() ?? /* @__PURE__ */ new Set();\n return [value, setValue];\n}\n\nexport {\n createControllableSignal,\n createControllableBooleanSignal,\n createControllableArraySignal,\n createControllableSetSignal\n};\n"],"names":["createControllableSignal","props","_value","_setValue","createSignal","defaultValue","isControlled","createMemo","value","next","untrack","nextValue","accessWith","Object","is","onChange","createControllableBooleanSignal","setValue","createControllableArraySignal"],"mappings":";;AAGA,SAASA,EAAyBC,GAAO;AACvC,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAaH,EAAMI,gBAAgB,GACzDC,IAAeC,EAAW,MAAMN,EAAMO,QAAAA,MAAc,MAAM,GAC1DA,IAAQD,EAAW,MAAMD,EAAAA,IAAiBL,EAAMO,QAAAA,IAAYN,GAAQ;AAa1E,SAAO,CAACM,GAZUC,CAAAA,MAAS;AACzBC,IAAAA,EAAQ,MAAM;AACZ,YAAMC,IAAYC,EAAWH,GAAMD,EAAAA,CAAO;AAC1C,aAAKK,OAAOC,GAAGH,GAAWH,EAAAA,CAAO,MAC1BF,OACHH,EAAUQ,CAAS,GAErBV,EAAMc,WAAWJ,CAAS,IAErBA;AAAAA,IACT,CAAC;AAAA,EACH,CACuB;AACzB;AACA,SAASK,EAAgCf,GAAO;AAC9C,QAAM,CAACC,GAAQe,CAAQ,IAAIjB,EAAyBC,CAAK;AAEzD,SAAO,CADOO,MAAMN,EAAAA,KAAY,IACjBe,CAAQ;AACzB;AACA,SAASC,EAA8BjB,GAAO;AAC5C,QAAM,CAACC,GAAQe,CAAQ,IAAIjB,EAAyBC,CAAK;AAEzD,SAAO,CADOO,MAAMN,EAAAA,KAAY,CAAA,GACjBe,CAAQ;AACzB;","x_google_ignoreList":[0]}
|
package/dist/index305.js
CHANGED
|
@@ -1,122 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var g = k();
|
|
9
|
-
function m() {
|
|
10
|
-
const r = R(g);
|
|
11
|
-
if (r === void 0)
|
|
12
|
-
throw new Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");
|
|
13
|
-
return r;
|
|
1
|
+
import { isString as a } from "./index294.js";
|
|
2
|
+
import { createSignal as i, createEffect as m } from "solid-js";
|
|
3
|
+
function f(e, t) {
|
|
4
|
+
const [n, o] = i(r(t?.()));
|
|
5
|
+
return m(() => {
|
|
6
|
+
o(e()?.tagName.toLowerCase() || r(t?.()));
|
|
7
|
+
}), n;
|
|
14
8
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
return a(o, l({
|
|
18
|
-
as: "div",
|
|
19
|
-
get style() {
|
|
20
|
-
return T({
|
|
21
|
-
"--kb-meter-fill-width": t.meterFillWidth()
|
|
22
|
-
}, n.style);
|
|
23
|
-
}
|
|
24
|
-
}, () => t.dataset(), e));
|
|
9
|
+
function r(e) {
|
|
10
|
+
return a(e) ? e : void 0;
|
|
25
11
|
}
|
|
26
|
-
function $(r) {
|
|
27
|
-
const t = m(), n = f({
|
|
28
|
-
id: t.generateId("label")
|
|
29
|
-
}, r), [e, i] = s(n, ["id"]);
|
|
30
|
-
return w(() => F(t.registerLabelId(e.id))), a(o, l({
|
|
31
|
-
as: "span",
|
|
32
|
-
get id() {
|
|
33
|
-
return e.id;
|
|
34
|
-
}
|
|
35
|
-
}, () => t.dataset(), i));
|
|
36
|
-
}
|
|
37
|
-
function j(r) {
|
|
38
|
-
const t = `meter-${y()}`, n = f({
|
|
39
|
-
id: t,
|
|
40
|
-
value: 0,
|
|
41
|
-
minValue: 0,
|
|
42
|
-
maxValue: 100,
|
|
43
|
-
role: "meter",
|
|
44
|
-
indeterminate: !1
|
|
45
|
-
}, r), [e, i] = s(n, ["value", "minValue", "maxValue", "getValueLabel", "role", "aria-valuetext", "aria-labelledby", "aria-valuemax", "aria-valuemin", "aria-valuenow", "indeterminate"]), [d, x] = P(), p = M(() => ({
|
|
46
|
-
style: "percent"
|
|
47
|
-
})), u = () => S(e.value, e.minValue, e.maxValue), c = () => (u() - e.minValue) / (e.maxValue - e.minValue), v = () => {
|
|
48
|
-
if (!e.indeterminate)
|
|
49
|
-
return e.getValueLabel ? e.getValueLabel({
|
|
50
|
-
value: u(),
|
|
51
|
-
min: e.minValue,
|
|
52
|
-
max: e.maxValue
|
|
53
|
-
}) : p().format(c());
|
|
54
|
-
}, V = () => `${c() * 100}%`, b = C(() => ({})), L = {
|
|
55
|
-
dataset: b,
|
|
56
|
-
value: u,
|
|
57
|
-
valuePercent: c,
|
|
58
|
-
valueLabel: v,
|
|
59
|
-
labelId: d,
|
|
60
|
-
meterFillWidth: V,
|
|
61
|
-
generateId: E(() => i.id),
|
|
62
|
-
registerLabelId: I(x)
|
|
63
|
-
};
|
|
64
|
-
return a(g.Provider, {
|
|
65
|
-
value: L,
|
|
66
|
-
get children() {
|
|
67
|
-
return a(o, l({
|
|
68
|
-
as: "div",
|
|
69
|
-
get role() {
|
|
70
|
-
return e.role || "meter";
|
|
71
|
-
},
|
|
72
|
-
get "aria-valuenow"() {
|
|
73
|
-
return h(() => !!e.indeterminate)() ? void 0 : u();
|
|
74
|
-
},
|
|
75
|
-
get "aria-valuemin"() {
|
|
76
|
-
return e.minValue;
|
|
77
|
-
},
|
|
78
|
-
get "aria-valuemax"() {
|
|
79
|
-
return e.maxValue;
|
|
80
|
-
},
|
|
81
|
-
get "aria-valuetext"() {
|
|
82
|
-
return v();
|
|
83
|
-
},
|
|
84
|
-
get "aria-labelledby"() {
|
|
85
|
-
return d();
|
|
86
|
-
}
|
|
87
|
-
}, b, i));
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function q(r) {
|
|
92
|
-
const t = m();
|
|
93
|
-
return a(o, l({
|
|
94
|
-
as: "div"
|
|
95
|
-
}, () => t.dataset(), r));
|
|
96
|
-
}
|
|
97
|
-
function D(r) {
|
|
98
|
-
const t = m();
|
|
99
|
-
return a(o, l({
|
|
100
|
-
as: "div"
|
|
101
|
-
}, () => t.dataset(), r, {
|
|
102
|
-
get children() {
|
|
103
|
-
return t.valueLabel();
|
|
104
|
-
}
|
|
105
|
-
}));
|
|
106
|
-
}
|
|
107
|
-
var H = Object.assign(j, {
|
|
108
|
-
Fill: W,
|
|
109
|
-
Label: $,
|
|
110
|
-
Track: q,
|
|
111
|
-
ValueLabel: D
|
|
112
|
-
});
|
|
113
12
|
export {
|
|
114
|
-
|
|
115
|
-
W as MeterFill,
|
|
116
|
-
$ as MeterLabel,
|
|
117
|
-
j as MeterRoot,
|
|
118
|
-
q as MeterTrack,
|
|
119
|
-
D as MeterValueLabel,
|
|
120
|
-
m as useMeterContext
|
|
13
|
+
f as createTagName
|
|
121
14
|
};
|
|
122
15
|
//# sourceMappingURL=index305.js.map
|
package/dist/index305.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index305.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/
|
|
1
|
+
{"version":3,"file":"index305.js","sources":["../../../node_modules/.bun/@kobalte+core@0.13.12+ee58d66d663bac7b/node_modules/@kobalte/core/dist/chunk/OYES4GOP.jsx"],"sourcesContent":["// src/primitives/create-tag-name/create-tag-name.ts\nimport { isString } from \"@kobalte/utils\";\nimport {\n createEffect,\n createSignal\n} from \"solid-js\";\nfunction createTagName(ref, fallback) {\n const [tagName, setTagName] = createSignal(stringOrUndefined(fallback?.()));\n createEffect(() => {\n setTagName(ref()?.tagName.toLowerCase() || stringOrUndefined(fallback?.()));\n });\n return tagName;\n}\nfunction stringOrUndefined(value) {\n return isString(value) ? value : void 0;\n}\n\nexport {\n createTagName\n};\n"],"names":["createTagName","ref","fallback","tagName","setTagName","createSignal","stringOrUndefined","createEffect","toLowerCase","value","isString"],"mappings":";;AAMA,SAASA,EAAcC,GAAKC,GAAU;AACpC,QAAM,CAACC,GAASC,CAAU,IAAIC,EAAaC,EAAkBJ,IAAAA,CAAY,CAAC;AAC1EK,SAAAA,EAAa,MAAM;AACjBH,IAAAA,EAAWH,EAAAA,GAAOE,QAAQK,YAAAA,KAAiBF,EAAkBJ,IAAAA,CAAY,CAAC;AAAA,EAC5E,CAAC,GACMC;AACT;AACA,SAASG,EAAkBG,GAAO;AAChC,SAAOC,EAASD,CAAK,IAAIA,IAAQ;AACnC;","x_google_ignoreList":[0]}
|