@alfadocs/ui-kit-debug 1.97.0 → 1.99.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/{balance-badge-cell-DaZokVZY.js → balance-badge-cell-C-Rz616n.js} +2 -2
- package/dist/_chunks/{balance-badge-cell-DaZokVZY.js.map → balance-badge-cell-C-Rz616n.js.map} +1 -1
- package/dist/_chunks/{calendar-appointment-editor-dialog-26LEMx0q.js → calendar-appointment-editor-dialog-CUJMnFL7.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-26LEMx0q.js.map → calendar-appointment-editor-dialog-CUJMnFL7.js.map} +1 -1
- package/dist/_chunks/{data-table-C4UT4L9B.js → data-table-C5uN4ato.js} +8 -6
- package/dist/_chunks/data-table-C5uN4ato.js.map +1 -0
- package/dist/_chunks/{file-manager-B4K2j7jB.js → file-manager-CnGBVX_q.js} +2 -2
- package/dist/_chunks/{file-manager-B4K2j7jB.js.map → file-manager-CnGBVX_q.js.map} +1 -1
- package/dist/_chunks/{heatmap-B2Z1_kDn.js → heatmap-Cz0Krieg.js} +666 -650
- package/dist/_chunks/{heatmap-B2Z1_kDn.js.map → heatmap-Cz0Krieg.js.map} +1 -1
- package/dist/_chunks/{info-tip-Do3RFt60.js → info-tip-1Xsq9GLi.js} +110 -96
- package/dist/_chunks/info-tip-1Xsq9GLi.js.map +1 -0
- package/dist/ag-grid.css +4 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/data-table/toolbar.d.ts +1 -0
- package/dist/components/data-table/toolbar.d.ts.map +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/heatmap/heatmap-table-view.d.ts.map +1 -1
- package/dist/components/heatmap/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/info-tip/info-tip.d.ts +11 -3
- package/dist/components/info-tip/info-tip.d.ts.map +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/index.js +6 -6
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +5 -4
- package/package.json +1 -1
- package/dist/_chunks/data-table-C4UT4L9B.js.map +0 -1
- package/dist/_chunks/info-tip-Do3RFt60.js.map +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { P as
|
|
6
|
-
import { L as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as E, useState as F, useRef as o, useEffect as M, useMemo as O } from "react";
|
|
3
|
+
import { c as H } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as V } from "react-i18next";
|
|
5
|
+
import { P as l } from "./popover-CN5IsOeS.js";
|
|
6
|
+
import { L as q } from "./link-DtCfnLnF.js";
|
|
7
|
+
import { S as B } from "./scroll-area-CY5SLYNw.js";
|
|
8
|
+
import { c as G } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
+
import { u as J } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { I as Q } from "./info-CGn22peZ.js";
|
|
11
|
+
const U = {
|
|
11
12
|
id: "info-tip",
|
|
12
13
|
capabilities: ["open", "close"],
|
|
13
14
|
state: {
|
|
@@ -15,7 +16,7 @@ const G = {
|
|
|
15
16
|
type: "boolean",
|
|
16
17
|
descriptionKey: "ui.agent.infoTip.state.isOpen",
|
|
17
18
|
description: "True when the info tip card is currently open.",
|
|
18
|
-
read: (
|
|
19
|
+
read: (n) => n.getIsOpen()
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
actions: {
|
|
@@ -24,8 +25,8 @@ const G = {
|
|
|
24
25
|
idempotent: !0,
|
|
25
26
|
descriptionKey: "ui.agent.infoTip.actions.open",
|
|
26
27
|
description: "Open the info tip card (including its formula and Learn more link, when set).",
|
|
27
|
-
invoke: (
|
|
28
|
-
|
|
28
|
+
invoke: (n) => {
|
|
29
|
+
n.open();
|
|
29
30
|
}
|
|
30
31
|
},
|
|
31
32
|
close: {
|
|
@@ -33,8 +34,8 @@ const G = {
|
|
|
33
34
|
idempotent: !0,
|
|
34
35
|
descriptionKey: "ui.agent.infoTip.actions.close",
|
|
35
36
|
description: "Close the info tip card.",
|
|
36
|
-
invoke: (
|
|
37
|
-
|
|
37
|
+
invoke: (n) => {
|
|
38
|
+
n.close();
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
},
|
|
@@ -50,7 +51,7 @@ const G = {
|
|
|
50
51
|
description: "Sourced from the id prop on InfoTip."
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
|
-
},
|
|
54
|
+
}, W = H(
|
|
54
55
|
[
|
|
55
56
|
"ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center",
|
|
56
57
|
"ds:rounded-[var(--radius-full)]",
|
|
@@ -89,115 +90,128 @@ const G = {
|
|
|
89
90
|
size: "md"
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
),
|
|
93
|
+
), X = E(
|
|
93
94
|
({
|
|
94
|
-
content:
|
|
95
|
-
heading:
|
|
96
|
-
size:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
content: n,
|
|
96
|
+
heading: r,
|
|
97
|
+
size: u = "md",
|
|
98
|
+
cardSize: D,
|
|
99
|
+
side: z = "top",
|
|
100
|
+
align: C = "center",
|
|
101
|
+
"aria-label": L,
|
|
102
|
+
id: g,
|
|
103
|
+
className: S,
|
|
104
|
+
formula: b,
|
|
105
|
+
learnMoreHref: y,
|
|
106
|
+
learnMoreLabel: A,
|
|
105
107
|
onLearnMore: K
|
|
106
|
-
},
|
|
107
|
-
const { t:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
const P =
|
|
108
|
+
}, x) => {
|
|
109
|
+
const { t: m } = V("ui"), [f, p] = F(!1), i = o(f);
|
|
110
|
+
M(() => {
|
|
111
|
+
i.current = f;
|
|
112
|
+
}, [f]);
|
|
113
|
+
const P = O(
|
|
112
114
|
() => ({
|
|
113
|
-
getIsOpen: () =>
|
|
114
|
-
open: () =>
|
|
115
|
-
close: () =>
|
|
115
|
+
getIsOpen: () => i.current,
|
|
116
|
+
open: () => p(!0),
|
|
117
|
+
close: () => p(!1)
|
|
116
118
|
}),
|
|
117
119
|
[]
|
|
118
120
|
);
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
() =>
|
|
124
|
-
[
|
|
125
|
-
),
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
121
|
+
J(U, P, g);
|
|
122
|
+
const v = o(null), T = () => {
|
|
123
|
+
v.current = i.current;
|
|
124
|
+
}, w = y != null, k = o(null), j = O(
|
|
125
|
+
() => G(x, k),
|
|
126
|
+
[x]
|
|
127
|
+
), I = o(null), R = o(null), N = o(null), h = L ?? m("infoTip.triggerLabel", "More information");
|
|
128
|
+
return /* @__PURE__ */ d(l, { openOn: "hover-or-click", open: f, onOpenChange: p, children: [
|
|
129
|
+
/* @__PURE__ */ t(
|
|
130
|
+
l.Trigger,
|
|
129
131
|
{
|
|
130
132
|
ref: j,
|
|
131
|
-
"aria-label":
|
|
132
|
-
className:
|
|
133
|
+
"aria-label": h,
|
|
134
|
+
className: W({ size: u, className: S }),
|
|
133
135
|
"data-component": "info-tip",
|
|
134
|
-
"data-component-id":
|
|
135
|
-
onPointerDown:
|
|
136
|
+
"data-component-id": g,
|
|
137
|
+
onPointerDown: T,
|
|
136
138
|
onKeyDown: (e) => {
|
|
137
|
-
(e.key === "Enter" || e.key === " ") &&
|
|
139
|
+
(e.key === "Enter" || e.key === " ") && T();
|
|
140
|
+
const s = N.current, a = (s == null ? void 0 : s.tabIndex) === 0, c = a ? s : I.current;
|
|
141
|
+
(w || a) && e.key === "Tab" && !e.shiftKey && i.current && c && (e.preventDefault(), c.focus());
|
|
138
142
|
},
|
|
139
143
|
onClick: (e) => {
|
|
140
|
-
const
|
|
141
|
-
|
|
144
|
+
const s = v.current;
|
|
145
|
+
v.current = null, s === !1 && i.current && e.preventDefault();
|
|
142
146
|
},
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
|
|
147
|
+
children: /* @__PURE__ */ t(
|
|
148
|
+
Q,
|
|
145
149
|
{
|
|
146
150
|
"aria-hidden": "true",
|
|
147
|
-
className:
|
|
151
|
+
className: u === "sm" ? "ds:size-5" : "ds:size-6"
|
|
148
152
|
}
|
|
149
153
|
)
|
|
150
154
|
}
|
|
151
155
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
156
|
+
/* @__PURE__ */ d(
|
|
157
|
+
l.Content,
|
|
154
158
|
{
|
|
155
|
-
ref:
|
|
156
|
-
side:
|
|
157
|
-
align:
|
|
158
|
-
size:
|
|
159
|
-
"
|
|
159
|
+
ref: R,
|
|
160
|
+
side: z,
|
|
161
|
+
align: C,
|
|
162
|
+
size: D ?? (u === "sm" ? "sm" : "md"),
|
|
163
|
+
className: "ds:flex ds:flex-col ds:max-h-[var(--radix-popover-content-available-height)]",
|
|
164
|
+
"aria-label": r == null ? h : void 0,
|
|
160
165
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
161
166
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
162
167
|
onEscapeKeyDown: (e) => {
|
|
163
|
-
var
|
|
164
|
-
const
|
|
165
|
-
|
|
168
|
+
var a, c;
|
|
169
|
+
const s = document.activeElement;
|
|
170
|
+
s && ((a = R.current) != null && a.contains(s)) && (e.preventDefault(), (c = k.current) == null || c.focus(), p(!1));
|
|
166
171
|
},
|
|
167
172
|
children: [
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */ t(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
173
|
+
r != null && /* @__PURE__ */ t(l.Heading, { children: r }),
|
|
174
|
+
/* @__PURE__ */ t(l.Description, { className: "ds:flex ds:min-h-0 ds:flex-col", children: /* @__PURE__ */ d(
|
|
175
|
+
B,
|
|
176
|
+
{
|
|
177
|
+
ref: N,
|
|
178
|
+
type: "native",
|
|
179
|
+
"aria-label": typeof r == "string" ? r : h,
|
|
180
|
+
className: "ds:min-h-[3lh]",
|
|
181
|
+
children: [
|
|
182
|
+
n,
|
|
183
|
+
b != null && /* @__PURE__ */ d(
|
|
184
|
+
"div",
|
|
185
|
+
{
|
|
186
|
+
"data-slot": "formula",
|
|
187
|
+
className: "type-body-sm ds:mt-[var(--spacing-sm)] ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[var(--foreground)] ds:tabular-nums",
|
|
188
|
+
children: [
|
|
189
|
+
/* @__PURE__ */ d("span", { className: "ds:sr-only", children: [
|
|
190
|
+
m("infoTip.formula", "Formula"),
|
|
191
|
+
":",
|
|
192
|
+
" "
|
|
193
|
+
] }),
|
|
194
|
+
b
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
)
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
) }),
|
|
201
|
+
w && /* @__PURE__ */ t(
|
|
188
202
|
"div",
|
|
189
203
|
{
|
|
190
204
|
"data-slot": "footer",
|
|
191
205
|
className: "ds:mt-[var(--spacing-sm)] ds:flex ds:justify-end",
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
|
|
206
|
+
children: /* @__PURE__ */ t(
|
|
207
|
+
q,
|
|
194
208
|
{
|
|
195
|
-
ref:
|
|
196
|
-
href:
|
|
209
|
+
ref: I,
|
|
210
|
+
href: y,
|
|
197
211
|
onClick: K,
|
|
198
212
|
weight: "strong",
|
|
199
213
|
className: "type-body-sm",
|
|
200
|
-
children:
|
|
214
|
+
children: A ?? m("infoTip.learnMore", "Learn more")
|
|
201
215
|
}
|
|
202
216
|
)
|
|
203
217
|
}
|
|
@@ -208,9 +222,9 @@ const G = {
|
|
|
208
222
|
] });
|
|
209
223
|
}
|
|
210
224
|
);
|
|
211
|
-
|
|
225
|
+
X.displayName = "InfoTip";
|
|
212
226
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
227
|
+
X as I,
|
|
228
|
+
U as i
|
|
215
229
|
};
|
|
216
|
-
//# sourceMappingURL=info-tip-
|
|
230
|
+
//# sourceMappingURL=info-tip-1Xsq9GLi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"info-tip-1Xsq9GLi.js","sources":["../../src/components/info-tip/info-tip.agent.ts","../../src/components/info-tip/info-tip.tsx"],"sourcesContent":["import type { AgentAdapter } from '../../agent/types';\nimport type { InfoTipHandle } from './info-tip';\n\nexport const infoTipAgent: AgentAdapter<InfoTipHandle> = {\n id: 'info-tip',\n capabilities: ['open', 'close'],\n state: {\n isOpen: {\n type: 'boolean',\n descriptionKey: 'ui.agent.infoTip.state.isOpen',\n description: 'True when the info tip card is currently open.',\n read: (handle) => handle.getIsOpen(),\n },\n },\n actions: {\n open: {\n safety: 'read',\n idempotent: true,\n descriptionKey: 'ui.agent.infoTip.actions.open',\n description:\n 'Open the info tip card (including its formula and Learn more link, when set).',\n invoke: (handle) => {\n handle.open();\n },\n },\n close: {\n safety: 'read',\n idempotent: true,\n descriptionKey: 'ui.agent.infoTip.actions.close',\n description: 'Close the info tip card.',\n invoke: (handle) => {\n handle.close();\n },\n },\n },\n domHooks: {\n root: {\n attr: 'data-component',\n value: 'info-tip',\n description: 'Marks the InfoTip trigger button.',\n },\n instanceId: {\n attr: 'data-component-id',\n sourceProp: 'id',\n description: 'Sourced from the id prop on InfoTip.',\n },\n },\n};\n","import {\n forwardRef,\n useEffect,\n useMemo,\n useRef,\n useState,\n type MouseEvent as ReactMouseEvent,\n type ReactNode,\n} from 'react';\nimport { cva } from 'class-variance-authority';\nimport { useTranslation } from 'react-i18next';\nimport { Info } from 'lucide-react';\nimport { Popover } from '../popover';\nimport { Link } from '../link';\nimport { ScrollArea } from '../scroll-area';\nimport { composeRefs } from '../_shared/compose-refs';\nimport { useAgentRegistration } from '../../agent';\nimport { infoTipAgent } from './info-tip.agent';\n\n/* -------------------------------------------------------------------- */\n/* Trigger — a small circular, branded affordance: card surface inside */\n/* the circle, accent ring + accent \"i\" glyph, and a soft drop shadow. */\n/* The accent alias is safe here: `--accent` resolves to magenta-700 in */\n/* light mode (the AA-safe interactive step) and the dark accent on dark */\n/* surfaces — never reference a raw magenta ramp step. */\n/* -------------------------------------------------------------------- */\n\nconst infoTipTriggerVariants = cva(\n [\n 'ds:relative ds:inline-flex ds:shrink-0 ds:items-center ds:justify-center',\n 'ds:rounded-[var(--radius-full)]',\n 'ds:bg-[var(--card)]',\n 'ds:text-[var(--accent)]',\n // Single ring: the Lucide Info glyph draws its own accent circle, so the\n // trigger carries NO CSS border of its own (a border would read as a\n // second, concentric ring). The white circle comes from `bg-card` showing\n // through the glyph, lifted by the drop shadow.\n 'ds:shadow-[var(--shadow-sm)]',\n 'ds:cursor-pointer',\n 'ds:transition-[color,box-shadow] ds:motion-reduce:transition-none',\n 'ds:hover:text-[var(--accent-hover)] ds:hover:shadow-[var(--shadow-md)]',\n 'ds:data-[state=open]:text-[var(--accent-hover)] ds:data-[state=open]:shadow-[var(--shadow-md)]',\n 'ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]',\n 'ds:forced-colors:focus-visible:outline-[CanvasText]',\n ].join(' '),\n {\n variants: {\n size: {\n // Both diameters sit below `--min-target-size` (44/48px), so each\n // re-uses IconButton's invisible `::before` hit-area expansion to a\n // full touch target on touch / small screens. From the `sm:`\n // breakpoint up the pointer is precise, so the expansion relaxes —\n // but the interactive target must never fall below WCAG 2.5.8's 24px:\n // • md (24px visual) already meets the 24px floor, so its `::before`\n // is hidden on desktop and the 24px circle IS the target.\n // • sm (20px visual) would fall to 20px if hidden — below the floor\n // — so instead of hiding, its `::before` shrinks to a persistent\n // `--spacing-lg` (24px) minimum that holds on desktop too.\n sm: 'ds:w-5 ds:h-5 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[\"\"] ds:sm:before:inset-x-[calc((var(--spacing-lg)-100%)/-2)] ds:sm:before:inset-y-[calc((var(--spacing-lg)-100%)/-2)]',\n md: 'ds:w-6 ds:h-6 ds:before:absolute ds:before:inset-x-[calc((var(--min-target-size)-100%)/-2)] ds:before:inset-y-[calc((var(--min-target-size)-100%)/-2)] ds:before:content-[\"\"] ds:sm:before:hidden',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n },\n);\n\n// Curated agent-readiness handle — see info-tip.agent.ts.\nexport interface InfoTipHandle {\n getIsOpen: () => boolean;\n open: () => void;\n close: () => void;\n}\n\nexport interface InfoTipProps {\n /** Body of the tip — explanatory text shown in the floating card. */\n content: ReactNode;\n /** Optional heading rendered above the body. */\n heading?: ReactNode;\n /**\n * Trigger diameter. Also sets the floating card width unless `cardSize`\n * is given: `sm` → `--popover-size-sm`, `md` → `--popover-size-md`.\n */\n size?: 'sm' | 'md';\n /**\n * Width of the floating card, when it should differ from the trigger size:\n * `sm` → `--popover-size-sm`, `md` → `--popover-size-md`, `lg` →\n * `--popover-size-lg`. Defaults to the width that matches `size`, so a\n * small trigger can open a wider card for a longer explanation.\n */\n cardSize?: 'sm' | 'md' | 'lg';\n /** Logical side the card opens on. Default `'top'`. */\n side?: 'start' | 'top' | 'end' | 'bottom';\n /** Alignment along the side axis. Default `'center'`. */\n align?: 'start' | 'center' | 'end';\n /**\n * Accessible name for the trigger. Defaults to the translated\n * \"More information\" chrome string.\n */\n 'aria-label'?: string;\n /**\n * Opaque instance id — emitted as `data-component-id` on the trigger and\n * used to register the instance with the host agent registry.\n */\n id?: string;\n /** Extra classes merged onto the trigger button. */\n className?: string;\n /**\n * A formula written in words, shown below `content` in a quiet block, e.g.\n * \"Net revenue = invoices issued − credit notes\". It is part of the card's\n * description, so screen readers hear it.\n */\n formula?: ReactNode;\n /**\n * When set, the card gains a footer \"Learn more\" link to this URL and\n * becomes interactive: Tab from the open trigger moves to the link,\n * Shift+Tab returns, Escape closes and refocuses the trigger. Without it the\n * card is explanatory text and focus stays on the trigger, unless the text\n * is long enough to scroll: then Tab reaches the text so it can be scrolled.\n */\n learnMoreHref?: string;\n /** Link text. Defaults to the translated \"Learn more\" chrome string. */\n learnMoreLabel?: string;\n /**\n * Called when the link is activated. An SPA can call `event.preventDefault()`\n * and route client-side; the anchor keeps its real `href` either way.\n */\n onLearnMore?: (event: ReactMouseEvent<HTMLAnchorElement>) => void;\n}\n\n/**\n * InfoTip — a deliberate, branded \"more information\" affordance: a small\n * circular trigger that reveals an explanatory card on hover **and** click\n * (click also serves touch devices). Composes the kit Popover in\n * `openOn=\"hover-or-click\"` mode — hover intent, keyboard focus, Escape and\n * focus-return are all handled by the Popover/Radix layer.\n */\nexport const InfoTip = forwardRef<HTMLButtonElement, InfoTipProps>(\n (\n {\n content,\n heading,\n size = 'md',\n cardSize,\n side = 'top',\n align = 'center',\n 'aria-label': ariaLabelProp,\n id,\n className,\n formula,\n learnMoreHref,\n learnMoreLabel,\n onLearnMore,\n },\n ref,\n ) => {\n const { t } = useTranslation('ui');\n const [open, setOpen] = useState(false);\n\n // Agent handle.\n const openRef = useRef(open);\n useEffect(() => {\n openRef.current = open;\n }, [open]);\n\n const agentHandle = useMemo<InfoTipHandle>(\n () => ({\n getIsOpen: () => openRef.current,\n open: () => setOpen(true),\n close: () => setOpen(false),\n }),\n [],\n );\n useAgentRegistration(infoTipAgent, agentHandle, id);\n\n // Press bookkeeping. In hover-or-click mode the Popover opens as soon as\n // the trigger receives focus — which happens on pointerdown, BEFORE the\n // click event that Radix uses to toggle. Without intervention every\n // click/tap on a closed tip opens it (focus) and instantly toggles it\n // closed again (click). So each press (pointerdown, or Enter/Space)\n // snapshots the open state and the click handler consumes it: if the\n // press itself opened the card, swallow Radix's toggle so the card stays\n // open; if it was already open, let the toggle close it.\n //\n // `null` means \"no press recorded for this click\" — an orphan click\n // (programmatic .click(), or assistive tech dispatching click with no\n // pointer/key event). Those must fall through to Radix's default toggle\n // rather than read a stale snapshot, so the guard treats `null` as\n // \"don't suppress\" and every click clears the snapshot back to `null`.\n const pressStateRef = useRef<boolean | null>(null);\n const handlePressStart = () => {\n pressStateRef.current = openRef.current;\n };\n\n const hasLink = learnMoreHref != null;\n const triggerRef = useRef<HTMLButtonElement | null>(null);\n const composedTriggerRef = useMemo(\n () => composeRefs<HTMLButtonElement>(ref, triggerRef),\n [ref],\n );\n const linkRef = useRef<HTMLAnchorElement | null>(null);\n const contentRef = useRef<HTMLDivElement | null>(null);\n // A long tip is capped at the height the viewport leaves it and its text\n // scrolls in a ScrollArea, which is a tab stop only while it can scroll.\n const scrollRef = useRef<HTMLDivElement | null>(null);\n\n const ariaLabel =\n ariaLabelProp ?? t('infoTip.triggerLabel', 'More information');\n\n return (\n <Popover openOn=\"hover-or-click\" open={open} onOpenChange={setOpen}>\n <Popover.Trigger\n ref={composedTriggerRef}\n aria-label={ariaLabel}\n className={infoTipTriggerVariants({ size, className })}\n data-component=\"info-tip\"\n data-component-id={id}\n onPointerDown={handlePressStart}\n onKeyDown={(event) => {\n if (event.key === 'Enter' || event.key === ' ') {\n handlePressStart();\n }\n // The card is portalled, so native Tab order would skip it. Tab\n // from the open trigger goes to the scrolling text when it\n // overflows, otherwise straight to the link.\n const scroll = scrollRef.current;\n const scrollable = scroll?.tabIndex === 0;\n const next = scrollable ? scroll : linkRef.current;\n if (\n (hasLink || scrollable) &&\n event.key === 'Tab' &&\n !event.shiftKey &&\n openRef.current &&\n next\n ) {\n event.preventDefault();\n next.focus();\n }\n }}\n onClick={(event) => {\n // Consume this click's press snapshot. A genuine pointer/keyboard\n // press recorded `false`/`true` on press-start; an orphan click\n // with no preceding pointerdown/keydown finds `null` and is left\n // to Radix's default toggle.\n const wasOpenAtPressStart = pressStateRef.current;\n pressStateRef.current = null;\n if (wasOpenAtPressStart === false && openRef.current) {\n // This press opened the card via focus — keep it open and\n // skip Radix's click toggle.\n event.preventDefault();\n }\n }}\n >\n <Info\n aria-hidden=\"true\"\n // Fills the circle so the glyph's own ring IS the trigger's\n // visible edge and the drop shadow hugs it.\n className={size === 'sm' ? 'ds:size-5' : 'ds:size-6'}\n />\n </Popover.Trigger>\n <Popover.Content\n ref={contentRef}\n side={side}\n align={align}\n size={cardSize ?? (size === 'sm' ? 'sm' : 'md')}\n // Never taller than the space the viewport leaves; the text scrolls.\n // The card itself does not clip, so its arrow stays visible.\n className=\"ds:flex ds:flex-col ds:max-h-[var(--radix-popover-content-available-height)]\"\n // The card is a Radix `role=\"dialog\"` surface, which axe requires\n // to have an accessible name (aria-dialog-name). With a heading,\n // Popover wires aria-labelledby; without one, fall back to the\n // trigger's label.\n aria-label={heading == null ? ariaLabel : undefined}\n // Toggletip focus contract: the card is explanatory text, never\n // interactive, so focus stays on the trigger for the whole\n // open/close cycle. Preventing the open move also keeps Escape\n // reliable — if Radix pulled focus into the card, closing would\n // refocus the trigger and re-fire the hover-mode focus handler,\n // reopening the card it just closed. Preventing the close move\n // keeps an unhover-close from stealing focus mid-task.\n //\n // With a learn-more link, or text long enough to scroll, the card\n // is interactive, but the same contract holds: focus is never\n // pulled in on open, only Tab moves it to the text or the link. Escape from inside the card is handled below so\n // focus returns to the trigger without re-firing its focus-open.\n onOpenAutoFocus={(event) => event.preventDefault()}\n onCloseAutoFocus={(event) => event.preventDefault()}\n onEscapeKeyDown={(event) => {\n // Focus anywhere inside the card (the link, or the card itself\n // after a click on its text) goes back to the trigger.\n const active = document.activeElement;\n if (active && contentRef.current?.contains(active)) {\n event.preventDefault();\n triggerRef.current?.focus();\n setOpen(false);\n }\n }}\n >\n {heading != null && <Popover.Heading>{heading}</Popover.Heading>}\n <Popover.Description className=\"ds:flex ds:min-h-0 ds:flex-col\">\n <ScrollArea\n ref={scrollRef}\n type=\"native\"\n aria-label={typeof heading === 'string' ? heading : ariaLabel}\n // At high zoom the heading and link keep their height; the text\n // keeps at least three lines rather than collapsing to nothing.\n className=\"ds:min-h-[3lh]\"\n >\n {content}\n {formula != null && (\n <div\n data-slot=\"formula\"\n className=\"type-body-sm ds:mt-[var(--spacing-sm)] ds:rounded-[var(--radius-sm)] ds:bg-[var(--muted)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:text-[var(--foreground)] ds:tabular-nums\"\n >\n <span className=\"ds:sr-only\">\n {t('infoTip.formula', 'Formula')}:{' '}\n </span>\n {formula}\n </div>\n )}\n </ScrollArea>\n </Popover.Description>\n {hasLink && (\n <div\n data-slot=\"footer\"\n className=\"ds:mt-[var(--spacing-sm)] ds:flex ds:justify-end\"\n >\n <Link\n ref={linkRef}\n href={learnMoreHref}\n onClick={onLearnMore}\n weight=\"strong\"\n className=\"type-body-sm\"\n >\n {learnMoreLabel ?? t('infoTip.learnMore', 'Learn more')}\n </Link>\n </div>\n )}\n </Popover.Content>\n </Popover>\n );\n },\n);\n\nInfoTip.displayName = 'InfoTip';\n"],"names":["infoTipAgent","handle","infoTipTriggerVariants","cva","InfoTip","forwardRef","content","heading","size","cardSize","side","align","ariaLabelProp","id","className","formula","learnMoreHref","learnMoreLabel","onLearnMore","ref","t","useTranslation","open","setOpen","useState","openRef","useRef","useEffect","agentHandle","useMemo","useAgentRegistration","pressStateRef","handlePressStart","hasLink","triggerRef","composedTriggerRef","composeRefs","linkRef","contentRef","scrollRef","ariaLabel","Popover","jsx","event","scroll","scrollable","next","wasOpenAtPressStart","Info","jsxs","active","_a","_b","ScrollArea","Link"],"mappings":";;;;;;;;;;AAGO,MAAMA,IAA4C;AAAA,EACvD,IAAI;AAAA,EACJ,cAAc,CAAC,QAAQ,OAAO;AAAA,EAC9B,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,MAAM,CAACC,MAAWA,EAAO,UAAA;AAAA,IAAU;AAAA,EACrC;AAAA,EAEF,SAAS;AAAA,IACP,MAAM;AAAA,MACJ,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,aACE;AAAA,MACF,QAAQ,CAACA,MAAW;AAClB,QAAAA,EAAO,KAAA;AAAA,MACT;AAAA,IAAA;AAAA,IAEF,OAAO;AAAA,MACL,QAAQ;AAAA,MACR,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,aAAa;AAAA,MACb,QAAQ,CAACA,MAAW;AAClB,QAAAA,EAAO,MAAA;AAAA,MACT;AAAA,IAAA;AAAA,EACF;AAAA,EAEF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,OAAO;AAAA,MACP,aAAa;AAAA,IAAA;AAAA,IAEf,YAAY;AAAA,MACV,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ,GCpBMC,IAAyBC;AAAA,EAC7B;AAAA,IACE;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA,IAKA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,EACA,KAAK,GAAG;AAAA,EACV;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;A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AAA;AAAA,gBAAA;AAAA,cACxD;AAAA,YAAA;AAAA,UACF;AAAA,QAAA;AAAA,MAAA;AAAA,IAEJ,GACF;AAAA,EAEJ;AACF;AAEAhB,EAAQ,cAAc;"}
|
package/dist/ag-grid.css
CHANGED
|
@@ -1135,10 +1135,11 @@ ag-grid,ag-grid-angular,ag-grid-ng2,ag-grid-polymer,ag-grid-aurelia{display:bloc
|
|
|
1135
1135
|
@media print{.ag-root-wrapper.ag-layout-print{display:table;container-type:normal}
|
|
1136
1136
|
.ag-root-wrapper.ag-layout-print .ag-root-wrapper-body,.ag-root-wrapper.ag-layout-print .ag-root,.ag-root-wrapper.ag-layout-print .ag-body-viewport,.ag-root-wrapper.ag-layout-print .ag-center-cols-container,.ag-root-wrapper.ag-layout-print .ag-center-cols-viewport,.ag-root-wrapper.ag-layout-print .ag-body-horizontal-scroll-viewport,.ag-root-wrapper.ag-layout-print .ag-virtual-list-viewport{height:auto!important;overflow:hidden!important;display:block!important}
|
|
1137
1137
|
.ag-root-wrapper.ag-layout-print .ag-row,.ag-root-wrapper.ag-layout-print .ag-cell{break-inside:avoid}
|
|
1138
|
-
.ag-theme-alfadocs
|
|
1138
|
+
.ag-theme-alfadocs{color-scheme:light}
|
|
1139
|
+
.ag-theme-alfadocs,.ag-theme-alfadocs *{color:CanvasText!important;background:transparent!important}
|
|
1139
1140
|
.ag-theme-alfadocs .ag-paging-panel,.ag-theme-alfadocs .ag-header-cell-menu-button,.ag-theme-alfadocs .ag-header-cell-filter-button{display:none!important}
|
|
1140
|
-
.ag-theme-alfadocs .ag-root-wrapper{border:var(--border-width-sm) solid
|
|
1141
|
-
.ag-theme-alfadocs .ag-header-cell-text{font-size:var(--font-size-sm);color:
|
|
1141
|
+
.ag-theme-alfadocs .ag-root-wrapper{border:var(--border-width-sm) solid CanvasText}
|
|
1142
|
+
.ag-theme-alfadocs .ag-header-cell-text{font-size:var(--font-size-sm);color:CanvasText}}
|
|
1142
1143
|
|
|
1143
1144
|
[class^=ag-],[class^=ag-]:focus,[class^=ag-]:after,[class^=ag-]:before{box-sizing:border-box;outline:none}
|
|
1144
1145
|
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-
|
|
1
|
+
import { D as r, E as l, T as t, a as s, b as d, c as o, d as n, e as i, f as R, i as C, g as T } from "../../_chunks/data-table-C5uN4ato.js";
|
|
2
2
|
import { B as g, C as D, a as b, E as x, b as c, R as p, T as u, c as f, r as m, u as E, w as h } from "../../_chunks/editable-currency-cell-renderer-BUdFMh67.js";
|
|
3
3
|
import { D as S, a as A, b as I, I as y, L, N, c as P, S as W, d as B, e as U, T as _, f as k, g as v, U as H } from "../../_chunks/link-cell-renderer-DKMgD-2v.js";
|
|
4
4
|
import { A as X, a as j } from "../../_chunks/actions-cell-renderer-BVn3vDTg.js";
|
|
@@ -31,6 +31,7 @@ export interface ExportPdfProps extends ToolbarIconButtonProps {
|
|
|
31
31
|
/** Filename for the generated PDF (default `data-table-export.pdf`). */
|
|
32
32
|
fileName?: string;
|
|
33
33
|
}
|
|
34
|
+
export declare function resolveTokenToRgb(varName: string, fallback?: [number, number, number]): [number, number, number];
|
|
34
35
|
interface DefaultExportPdfOptions {
|
|
35
36
|
fileName: string;
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/data-table/toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAWL,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,OAAO,KAAK,EAA8B,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAuDzE,MAAM,W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C3C,eAAe,EACf,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAC3D;IACC,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAsID,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAC7C,eAAe,EACf,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAC3D;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;oCACgC;IAChC,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AA+LD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,WAAW,EACX,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAChD;IACC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,GAAG,SAAS,KAAK,IAAI,CAAC;IAC5C,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACrC;AA6DD,eAAO,MAAM,OAAO;;;IAGlB,8DAA8D;;IAE9D,8DAA8D;;;QAriC9D,oEAAoE;gBAC5D,MAAM;;;;;sCAyNwC,gBAAgB;;;;;;;;kBAqSnD,MAAM,SAAS,MAAM,GAAG,MAAM,GAAG,OAAO,uCAI1D,gBAAgB,CAAC,MAAM,CAAC;;;oDAoMxB,mBAAmB;;;;CAwWpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap-table-view.d.ts","sourceRoot":"","sources":["../../../src/components/heatmap/heatmap-table-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heatmap-table-view.d.ts","sourceRoot":"","sources":["../../../src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10,10 +10,17 @@ export interface InfoTipProps {
|
|
|
10
10
|
/** Optional heading rendered above the body. */
|
|
11
11
|
heading?: ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* Trigger diameter. Also
|
|
14
|
-
* `sm` → `--popover-size-sm`, `md` → `--popover-size-md`.
|
|
13
|
+
* Trigger diameter. Also sets the floating card width unless `cardSize`
|
|
14
|
+
* is given: `sm` → `--popover-size-sm`, `md` → `--popover-size-md`.
|
|
15
15
|
*/
|
|
16
16
|
size?: 'sm' | 'md';
|
|
17
|
+
/**
|
|
18
|
+
* Width of the floating card, when it should differ from the trigger size:
|
|
19
|
+
* `sm` → `--popover-size-sm`, `md` → `--popover-size-md`, `lg` →
|
|
20
|
+
* `--popover-size-lg`. Defaults to the width that matches `size`, so a
|
|
21
|
+
* small trigger can open a wider card for a longer explanation.
|
|
22
|
+
*/
|
|
23
|
+
cardSize?: 'sm' | 'md' | 'lg';
|
|
17
24
|
/** Logical side the card opens on. Default `'top'`. */
|
|
18
25
|
side?: 'start' | 'top' | 'end' | 'bottom';
|
|
19
26
|
/** Alignment along the side axis. Default `'center'`. */
|
|
@@ -40,7 +47,8 @@ export interface InfoTipProps {
|
|
|
40
47
|
* When set, the card gains a footer "Learn more" link to this URL and
|
|
41
48
|
* becomes interactive: Tab from the open trigger moves to the link,
|
|
42
49
|
* Shift+Tab returns, Escape closes and refocuses the trigger. Without it the
|
|
43
|
-
* card
|
|
50
|
+
* card is explanatory text and focus stays on the trigger, unless the text
|
|
51
|
+
* is long enough to scroll: then Tab reaches the text so it can be scrolled.
|
|
44
52
|
*/
|
|
45
53
|
learnMoreHref?: string;
|
|
46
54
|
/** Link text. Defaults to the translated "Learn more" chrome string. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-tip.d.ts","sourceRoot":"","sources":["../../../src/components/info-tip/info-tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,SAAS,EACf,M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1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-
|
|
1
|
+
import { B as s, C as l, N as n, P as t, a as C, T as i, b as o, g as T, u as p } from "../../_chunks/balance-badge-cell-C-Rz616n.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BalanceBadgeCell,
|
|
4
4
|
l as CarePlanStatusCell,
|