@alfadocs/ui-kit 0.94.0 → 0.95.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/_chunks/{apexcharts-theme-fAQXLIMW.js → apexcharts-theme-B_AxGC_h.js} +25 -20
- package/dist/_chunks/chart-DR68TJD5.js +705 -0
- package/dist/_chunks/{date-range-picker-Cfv4Sr63.js → date-range-picker-pEG3Ln3i.js} +314 -297
- package/dist/_chunks/{link-cell-renderer-_LDZhY4r.js → link-cell-renderer-flfZh2qY.js} +2 -2
- package/dist/_chunks/{patient-table-CFM92QqU.js → patient-table-CvZTIM2R.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DDnDGVpN.js → radiograph-panel.agent-AsXJBr1p.js} +2 -2
- package/dist/_chunks/{sparkline-o6JH4O66.js → sparkline-DcXqRZoq.js} +2 -2
- package/dist/agent-catalog.json +1 -1
- package/dist/components/chart/chart.d.ts +12 -5
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +10 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/tokens/apexcharts-theme.d.ts +19 -33
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/chart-DqxVCm1I.js +0 -664
|
@@ -7,36 +7,46 @@ const s = [
|
|
|
7
7
|
"textarea",
|
|
8
8
|
'[tabindex]:not([tabindex="-1"])'
|
|
9
9
|
].join(",");
|
|
10
|
-
function
|
|
10
|
+
function d(t) {
|
|
11
11
|
u(() => {
|
|
12
12
|
const e = t.current;
|
|
13
13
|
if (!e) return;
|
|
14
|
-
const
|
|
14
|
+
const o = () => {
|
|
15
15
|
e.querySelectorAll('[aria-hidden="true"]').forEach((n) => {
|
|
16
16
|
n.querySelectorAll(s).forEach((c) => {
|
|
17
17
|
c.setAttribute("tabindex", "-1");
|
|
18
18
|
});
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
return
|
|
21
|
+
o();
|
|
22
|
+
const r = new MutationObserver(o);
|
|
23
|
+
return r.observe(e, {
|
|
24
24
|
childList: !0,
|
|
25
25
|
subtree: !0,
|
|
26
26
|
attributes: !0,
|
|
27
27
|
attributeFilter: ["aria-hidden", "tabindex"]
|
|
28
|
-
}), () =>
|
|
28
|
+
}), () => r.disconnect();
|
|
29
29
|
}, [t]);
|
|
30
30
|
}
|
|
31
31
|
function a(t) {
|
|
32
32
|
if (typeof document > "u" || !t) return t;
|
|
33
33
|
const e = document.createElement("span");
|
|
34
34
|
e.style.backgroundColor = t, document.documentElement.appendChild(e);
|
|
35
|
-
const
|
|
36
|
-
return e.remove(),
|
|
35
|
+
const o = getComputedStyle(e).backgroundColor;
|
|
36
|
+
return e.remove(), o || t;
|
|
37
37
|
}
|
|
38
38
|
function l() {
|
|
39
|
-
|
|
39
|
+
if (typeof document > "u") return 0.18;
|
|
40
|
+
const t = getComputedStyle(document.documentElement).getPropertyValue("--chart-compare-fill-opacity").trim(), e = parseFloat(t);
|
|
41
|
+
return Number.isFinite(e) ? e : 0.18;
|
|
42
|
+
}
|
|
43
|
+
function m(t) {
|
|
44
|
+
if (typeof document > "u" || !t) return t;
|
|
45
|
+
const e = getComputedStyle(document.documentElement), o = parseFloat(e.getPropertyValue("--chart-compare-fill-opacity")) || 0.18, r = Math.round(o * 100), n = e.getPropertyValue("--background").trim();
|
|
46
|
+
return a(`color-mix(in srgb, ${t} ${r}%, ${n})`);
|
|
47
|
+
}
|
|
48
|
+
function p() {
|
|
49
|
+
const t = getComputedStyle(document.documentElement), e = (r) => t.getPropertyValue(r).trim();
|
|
40
50
|
return {
|
|
41
51
|
theme: { mode: document.documentElement.classList.contains("theme-dark") ? "dark" : "light" },
|
|
42
52
|
colors: [
|
|
@@ -50,18 +60,13 @@ function l() {
|
|
|
50
60
|
foreColor: e("--foreground"),
|
|
51
61
|
fontFamily: e("--font-sans")
|
|
52
62
|
},
|
|
53
|
-
grid: { borderColor: e("--border") }
|
|
54
|
-
compare: {
|
|
55
|
-
// `--muted-foreground` is a plain `var(--color-blue-*)` chain — already a
|
|
56
|
-
// usable colour, so no probe is needed.
|
|
57
|
-
mark: e("--muted-foreground"),
|
|
58
|
-
// `--calendar-compare-fill` is a `color-mix()` string — resolve it.
|
|
59
|
-
wash: a(e("--calendar-compare-fill"))
|
|
60
|
-
}
|
|
63
|
+
grid: { borderColor: e("--border") }
|
|
61
64
|
};
|
|
62
65
|
}
|
|
63
66
|
export {
|
|
64
|
-
l as
|
|
65
|
-
|
|
67
|
+
l as a,
|
|
68
|
+
p as g,
|
|
69
|
+
m as r,
|
|
70
|
+
d as u
|
|
66
71
|
};
|
|
67
|
-
//# sourceMappingURL=apexcharts-theme-
|
|
72
|
+
//# sourceMappingURL=apexcharts-theme-B_AxGC_h.js.map
|