@alfadocs/ui-kit-debug 0.94.0 → 0.96.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/apexcharts-theme-B_AxGC_h.js.map +1 -0
- package/dist/_chunks/chart-DR68TJD5.js +705 -0
- package/dist/_chunks/chart-DR68TJD5.js.map +1 -0
- package/dist/_chunks/{date-range-picker-Cfv4Sr63.js → date-range-picker-pEG3Ln3i.js} +314 -297
- package/dist/_chunks/date-range-picker-pEG3Ln3i.js.map +1 -0
- package/dist/_chunks/{link-cell-renderer-_LDZhY4r.js → link-cell-renderer-flfZh2qY.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-_LDZhY4r.js.map → link-cell-renderer-flfZh2qY.js.map} +1 -1
- package/dist/_chunks/{patient-table-CFM92QqU.js → patient-table-CvZTIM2R.js} +2 -2
- package/dist/_chunks/{patient-table-CFM92QqU.js.map → patient-table-CvZTIM2R.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-DDnDGVpN.js → radiograph-panel.agent-AsXJBr1p.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-DDnDGVpN.js.map → radiograph-panel.agent-AsXJBr1p.js.map} +1 -1
- package/dist/_chunks/signature-request-BzXTV_RH.js +403 -0
- package/dist/_chunks/signature-request-BzXTV_RH.js.map +1 -0
- package/dist/_chunks/{sparkline-o6JH4O66.js → sparkline-DcXqRZoq.js} +2 -2
- package/dist/_chunks/{sparkline-o6JH4O66.js.map → sparkline-DcXqRZoq.js.map} +1 -1
- package/dist/agent-catalog.json +10 -6
- package/dist/agent-i18n/en.json +1 -1
- package/dist/components/chart/chart.d.ts +12 -5
- package/dist/components/chart/chart.d.ts.map +1 -1
- 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/date-range-picker.d.ts.map +1 -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/i18n/locales/ar.d.ts +3 -1
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +3 -1
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +3 -1
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +3 -1
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +3 -1
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +3 -1
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +3 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +3 -1
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +3 -1
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +3 -1
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +3 -1
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +3 -1
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +3 -1
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +3 -1
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +3 -1
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +3 -1
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +3 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +3 -1
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +3 -1
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +3 -1
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +3 -1
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +3 -1
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +3 -1
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +3 -1
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +3 -1
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +3 -1
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +3 -1
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +3 -1
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +3 -1
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +3 -1
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +3 -1
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +3 -1
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +3 -1
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +3 -1
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +3 -1
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +3 -1
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/locales/ar.json +3 -1
- package/dist/locales/de.json +3 -1
- package/dist/locales/el.json +3 -1
- package/dist/locales/en.json +3 -1
- package/dist/locales/es.json +3 -1
- package/dist/locales/fr.json +3 -1
- package/dist/locales/hi.json +3 -1
- package/dist/locales/it.json +3 -1
- package/dist/locales/ja.json +3 -1
- package/dist/locales/nl.json +3 -1
- package/dist/locales/pl.json +3 -1
- package/dist/locales/pt.json +3 -1
- package/dist/locales/ro.json +3 -1
- package/dist/locales/ru.json +3 -1
- package/dist/locales/sq.json +3 -1
- package/dist/locales/sv.json +3 -1
- package/dist/locales/tr.json +3 -1
- package/dist/locales/zh.json +3 -1
- package/dist/patterns/signature-request/index.d.ts +1 -1
- package/dist/patterns/signature-request/index.d.ts.map +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/patterns/signature-request/signature-request.d.ts +30 -3
- package/dist/patterns/signature-request/signature-request.d.ts.map +1 -1
- package/dist/tokens/apexcharts-theme.d.ts +19 -33
- package/dist/tokens/apexcharts-theme.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/apexcharts-theme-fAQXLIMW.js.map +0 -1
- package/dist/_chunks/chart-DqxVCm1I.js +0 -664
- package/dist/_chunks/chart-DqxVCm1I.js.map +0 -1
- package/dist/_chunks/date-range-picker-Cfv4Sr63.js.map +0 -1
- package/dist/_chunks/signature-request-D_6jgDZd.js +0 -324
- package/dist/_chunks/signature-request-D_6jgDZd.js.map +0 -1
|
@@ -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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apexcharts-theme-B_AxGC_h.js","sources":["../../src/components/_shared/use-neutralize-hidden-focus.ts","../../src/tokens/apexcharts-theme.ts"],"sourcesContent":["import { useEffect, type RefObject } from 'react';\n\n/* -------------------------------------------------------------------- */\n/* useNeutraliseHiddenFocus */\n/* */\n/* axe's `aria-hidden-focus` rule (correctly) flags focusable */\n/* descendants of `aria-hidden=\"true\"` subtrees. Several DS components */\n/* embed third-party renders (ApexCharts, FullCalendar) that inject */\n/* focusable elements (canvases with tabindex, anchor wrappers) inside */\n/* a wrapper that we deliberately mark `aria-hidden` because the outer */\n/* element carries the accessible name (`role=\"img\"` + `aria-label`). */\n/* */\n/* This hook walks the ref tree on mount and on subtree mutation, and */\n/* sets `tabindex=\"-1\"` on focusable descendants of any aria-hidden */\n/* ancestor. Cheaper than forking the third-party render and keeps the */\n/* fix scoped to the component using it. */\n/* -------------------------------------------------------------------- */\n\nconst FOCUSABLE_SELECTOR = [\n 'a[href]',\n 'button',\n 'input',\n 'select',\n 'textarea',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\n\nexport function useNeutraliseHiddenFocus<T extends HTMLElement>(\n containerRef: RefObject<T | null>,\n): void {\n useEffect(() => {\n const root = containerRef.current;\n if (!root) return undefined;\n\n const neutralise = () => {\n root\n .querySelectorAll<HTMLElement>('[aria-hidden=\"true\"]')\n .forEach((hidden) => {\n hidden\n .querySelectorAll<HTMLElement>(FOCUSABLE_SELECTOR)\n .forEach((el) => {\n el.setAttribute('tabindex', '-1');\n });\n });\n };\n\n neutralise();\n const observer = new MutationObserver(neutralise);\n observer.observe(root, {\n childList: true,\n subtree: true,\n attributes: true,\n attributeFilter: ['aria-hidden', 'tabindex'],\n });\n return () => observer.disconnect();\n }, [containerRef]);\n}\n","import type ApexCharts from 'apexcharts';\n\n/** The theme-bridge output. */\nexport type ApexChartsTheme = ApexCharts.ApexOptions;\n\n/**\n * Resolve a colour-accepting token value the ApexCharts way: set it on a real\n * colour property of a detached probe appended to `document.documentElement`\n * (which carries the active `theme-*` class, so a per-theme `color-mix()`\n * resolves to the correct colour), read the computed value back, then remove the\n * probe. Returns the input untouched when there is no DOM (SSR) or when the\n * browser rejected the value.\n *\n * The probe mutates only `documentElement`'s child list, never its `class`\n * attribute, so it does not trip the chart's class-only MutationObserver.\n */\nfunction resolveColour(value: string): string {\n if (typeof document === 'undefined' || !value) return value;\n const probe = document.createElement('span');\n probe.style.backgroundColor = value;\n document.documentElement.appendChild(probe);\n const resolved = getComputedStyle(probe).backgroundColor;\n probe.remove();\n return resolved || value;\n}\n\n/**\n * Compare fill opacity from the `--chart-compare-fill-opacity` token. Drives\n * the per-series `fill.opacity` of a compare bar / area overlay (see\n * `ChartSeries.role` in `src/components/chart/chart.tsx`). Theme-invariant —\n * the token value itself does not shift between themes; the resulting COLOUR\n * retints because it is mixed from the theme-shifting primary and background\n * (see `resolveCompareTint`). Falls back to 0.18 outside a browser.\n */\nexport function getCompareFillOpacity(): number {\n if (typeof document === 'undefined') return 0.18;\n const v = getComputedStyle(document.documentElement)\n .getPropertyValue('--chart-compare-fill-opacity')\n .trim();\n const parsed = parseFloat(v);\n return Number.isFinite(parsed) ? parsed : 0.18;\n}\n\n/**\n * Resolve a compare TINT: the paired primary mixed OVER the surface at the\n * compare opacity, so it is an opaque lighter shade of the same hue — used for\n * the legend swatch (and anywhere the tint is needed as a solid colour).\n * `primary` is an already-resolved colour (the k-th primary's colour). Uses the\n * same detached probe the bridge uses for `color-mix`, so it retints per theme\n * with no new observer and no hex literal in component code. Returns `primary`\n * untouched outside a browser.\n */\nexport function resolveCompareTint(primary: string): string {\n if (typeof document === 'undefined' || !primary) return primary;\n const styles = getComputedStyle(document.documentElement);\n const opacity =\n parseFloat(styles.getPropertyValue('--chart-compare-fill-opacity')) || 0.18;\n const pct = Math.round(opacity * 100);\n const bg = styles.getPropertyValue('--background').trim();\n return resolveColour(`color-mix(in srgb, ${primary} ${pct}%, ${bg})`);\n}\n\nexport function getApexChartsTheme(): ApexChartsTheme {\n const styles = getComputedStyle(document.documentElement);\n const get = (v: string) => styles.getPropertyValue(v).trim();\n const isDark = document.documentElement.classList.contains('theme-dark');\n return {\n theme: { mode: isDark ? 'dark' : 'light' },\n colors: [\n get('--primary'),\n get('--accent'),\n get('--success'),\n get('--warning'),\n ],\n chart: {\n background: get('--background'),\n foreColor: get('--foreground'),\n fontFamily: get('--font-sans'),\n },\n grid: { borderColor: get('--border') },\n };\n}\n"],"names":["FOCUSABLE_SELECTOR","useNeutraliseHiddenFocus","containerRef","useEffect","root","neutralise","hidden","el","observer","resolveColour","value","probe","resolved","getCompareFillOpacity","v","parsed","resolveCompareTint","primary","styles","opacity","pct","bg","getApexChartsTheme","get"],"mappings":";AAkBA,MAAMA,IAAqB;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,EAAE,KAAK,GAAG;AAEH,SAASC,EACdC,GACM;AACN,EAAAC,EAAU,MAAM;AACd,UAAMC,IAAOF,EAAa;AAC1B,QAAI,CAACE,EAAM;AAE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