@alfadocs/ui-kit 0.93.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-B_AxGC_h.js +72 -0
- package/dist/_chunks/chart-DR68TJD5.js +705 -0
- package/dist/_chunks/{date-range-picker-Cc4DLAL2.js → date-range-picker-pEG3Ln3i.js} +315 -290
- package/dist/_chunks/{link-cell-renderer-DQjZeoAr.js → link-cell-renderer-flfZh2qY.js} +2 -2
- package/dist/_chunks/{patient-table-DU_zFZoq.js → patient-table-CvZTIM2R.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-rnrQZtK3.js → radiograph-panel.agent-AsXJBr1p.js} +2 -2
- package/dist/_chunks/{sparkline-iOXYgvJe.js → sparkline-DcXqRZoq.js} +2 -2
- package/dist/agent-catalog.json +9 -1
- package/dist/components/chart/chart.d.ts +27 -0
- 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 +22 -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 +22 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/apexcharts-theme-BJigns_V.js +0 -53
- package/dist/_chunks/chart-CNaLgvx4.js +0 -633
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { useEffect as u } from "react";
|
|
2
|
+
const s = [
|
|
3
|
+
"a[href]",
|
|
4
|
+
"button",
|
|
5
|
+
"input",
|
|
6
|
+
"select",
|
|
7
|
+
"textarea",
|
|
8
|
+
'[tabindex]:not([tabindex="-1"])'
|
|
9
|
+
].join(",");
|
|
10
|
+
function d(t) {
|
|
11
|
+
u(() => {
|
|
12
|
+
const e = t.current;
|
|
13
|
+
if (!e) return;
|
|
14
|
+
const o = () => {
|
|
15
|
+
e.querySelectorAll('[aria-hidden="true"]').forEach((n) => {
|
|
16
|
+
n.querySelectorAll(s).forEach((c) => {
|
|
17
|
+
c.setAttribute("tabindex", "-1");
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
o();
|
|
22
|
+
const r = new MutationObserver(o);
|
|
23
|
+
return r.observe(e, {
|
|
24
|
+
childList: !0,
|
|
25
|
+
subtree: !0,
|
|
26
|
+
attributes: !0,
|
|
27
|
+
attributeFilter: ["aria-hidden", "tabindex"]
|
|
28
|
+
}), () => r.disconnect();
|
|
29
|
+
}, [t]);
|
|
30
|
+
}
|
|
31
|
+
function a(t) {
|
|
32
|
+
if (typeof document > "u" || !t) return t;
|
|
33
|
+
const e = document.createElement("span");
|
|
34
|
+
e.style.backgroundColor = t, document.documentElement.appendChild(e);
|
|
35
|
+
const o = getComputedStyle(e).backgroundColor;
|
|
36
|
+
return e.remove(), o || t;
|
|
37
|
+
}
|
|
38
|
+
function l() {
|
|
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();
|
|
50
|
+
return {
|
|
51
|
+
theme: { mode: document.documentElement.classList.contains("theme-dark") ? "dark" : "light" },
|
|
52
|
+
colors: [
|
|
53
|
+
e("--primary"),
|
|
54
|
+
e("--accent"),
|
|
55
|
+
e("--success"),
|
|
56
|
+
e("--warning")
|
|
57
|
+
],
|
|
58
|
+
chart: {
|
|
59
|
+
background: e("--background"),
|
|
60
|
+
foreColor: e("--foreground"),
|
|
61
|
+
fontFamily: e("--font-sans")
|
|
62
|
+
},
|
|
63
|
+
grid: { borderColor: e("--border") }
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
l as a,
|
|
68
|
+
p as g,
|
|
69
|
+
m as r,
|
|
70
|
+
d as u
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=apexcharts-theme-B_AxGC_h.js.map
|