@alfadocs/ui-kit 1.97.0 → 1.98.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/{calendar-appointment-editor-dialog-26LEMx0q.js → calendar-appointment-editor-dialog-CUJMnFL7.js} +2 -2
- package/dist/_chunks/{data-table-C4UT4L9B.js → data-table-C5uN4ato.js} +8 -6
- package/dist/_chunks/{file-manager-B4K2j7jB.js → file-manager-CnGBVX_q.js} +2 -2
- package/dist/_chunks/{heatmap-B2Z1_kDn.js → heatmap-Cz0Krieg.js} +666 -650
- package/dist/_chunks/{info-tip-Do3RFt60.js → info-tip-CG-DEfkd.js} +106 -93
- 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/file-manager/index.js +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 +2 -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
|
@@ -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 j, useState as E, useRef as o, useEffect as F, useMemo as O } from "react";
|
|
3
|
+
import { c as M } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as H } from "react-i18next";
|
|
5
|
+
import { P as l } from "./popover-CN5IsOeS.js";
|
|
6
|
+
import { L as V } from "./link-DtCfnLnF.js";
|
|
7
|
+
import { S as q } from "./scroll-area-CY5SLYNw.js";
|
|
8
|
+
import { c as B } from "./compose-refs-C0k0tdqF.js";
|
|
9
|
+
import { u as G } from "./registry-DvAUVLHh.js";
|
|
10
|
+
import { I as J } from "./info-CGn22peZ.js";
|
|
11
|
+
const Q = {
|
|
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
|
+
}, U = M(
|
|
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,127 @@ const G = {
|
|
|
89
90
|
size: "md"
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
),
|
|
93
|
+
), W = j(
|
|
93
94
|
({
|
|
94
|
-
content:
|
|
95
|
-
heading:
|
|
96
|
-
size:
|
|
95
|
+
content: n,
|
|
96
|
+
heading: r,
|
|
97
|
+
size: u = "md",
|
|
97
98
|
side: D = "top",
|
|
98
99
|
align: z = "center",
|
|
99
100
|
"aria-label": C,
|
|
100
|
-
id:
|
|
101
|
+
id: g,
|
|
101
102
|
className: L,
|
|
102
|
-
formula:
|
|
103
|
-
learnMoreHref:
|
|
104
|
-
learnMoreLabel:
|
|
105
|
-
onLearnMore:
|
|
106
|
-
},
|
|
107
|
-
const { t:
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
const
|
|
103
|
+
formula: b,
|
|
104
|
+
learnMoreHref: y,
|
|
105
|
+
learnMoreLabel: S,
|
|
106
|
+
onLearnMore: A
|
|
107
|
+
}, x) => {
|
|
108
|
+
const { t: m } = H("ui"), [f, p] = E(!1), i = o(f);
|
|
109
|
+
F(() => {
|
|
110
|
+
i.current = f;
|
|
111
|
+
}, [f]);
|
|
112
|
+
const K = O(
|
|
112
113
|
() => ({
|
|
113
|
-
getIsOpen: () =>
|
|
114
|
-
open: () =>
|
|
115
|
-
close: () =>
|
|
114
|
+
getIsOpen: () => i.current,
|
|
115
|
+
open: () => p(!0),
|
|
116
|
+
close: () => p(!1)
|
|
116
117
|
}),
|
|
117
118
|
[]
|
|
118
119
|
);
|
|
119
|
-
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
() =>
|
|
124
|
-
[
|
|
125
|
-
),
|
|
126
|
-
return /* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
|
|
120
|
+
G(Q, K, g);
|
|
121
|
+
const v = o(null), T = () => {
|
|
122
|
+
v.current = i.current;
|
|
123
|
+
}, w = y != null, k = o(null), P = O(
|
|
124
|
+
() => B(x, k),
|
|
125
|
+
[x]
|
|
126
|
+
), I = o(null), R = o(null), N = o(null), h = C ?? m("infoTip.triggerLabel", "More information");
|
|
127
|
+
return /* @__PURE__ */ d(l, { openOn: "hover-or-click", open: f, onOpenChange: p, children: [
|
|
128
|
+
/* @__PURE__ */ t(
|
|
129
|
+
l.Trigger,
|
|
129
130
|
{
|
|
130
|
-
ref:
|
|
131
|
-
"aria-label":
|
|
132
|
-
className:
|
|
131
|
+
ref: P,
|
|
132
|
+
"aria-label": h,
|
|
133
|
+
className: U({ size: u, className: L }),
|
|
133
134
|
"data-component": "info-tip",
|
|
134
|
-
"data-component-id":
|
|
135
|
-
onPointerDown:
|
|
135
|
+
"data-component-id": g,
|
|
136
|
+
onPointerDown: T,
|
|
136
137
|
onKeyDown: (e) => {
|
|
137
|
-
(e.key === "Enter" || e.key === " ") &&
|
|
138
|
+
(e.key === "Enter" || e.key === " ") && T();
|
|
139
|
+
const s = N.current, a = (s == null ? void 0 : s.tabIndex) === 0, c = a ? s : I.current;
|
|
140
|
+
(w || a) && e.key === "Tab" && !e.shiftKey && i.current && c && (e.preventDefault(), c.focus());
|
|
138
141
|
},
|
|
139
142
|
onClick: (e) => {
|
|
140
|
-
const
|
|
141
|
-
|
|
143
|
+
const s = v.current;
|
|
144
|
+
v.current = null, s === !1 && i.current && e.preventDefault();
|
|
142
145
|
},
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
|
|
146
|
+
children: /* @__PURE__ */ t(
|
|
147
|
+
J,
|
|
145
148
|
{
|
|
146
149
|
"aria-hidden": "true",
|
|
147
|
-
className:
|
|
150
|
+
className: u === "sm" ? "ds:size-5" : "ds:size-6"
|
|
148
151
|
}
|
|
149
152
|
)
|
|
150
153
|
}
|
|
151
154
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
|
|
155
|
+
/* @__PURE__ */ d(
|
|
156
|
+
l.Content,
|
|
154
157
|
{
|
|
155
|
-
ref:
|
|
158
|
+
ref: R,
|
|
156
159
|
side: D,
|
|
157
160
|
align: z,
|
|
158
|
-
size:
|
|
159
|
-
"
|
|
161
|
+
size: u === "sm" ? "sm" : "md",
|
|
162
|
+
className: "ds:flex ds:flex-col ds:max-h-[var(--radix-popover-content-available-height)]",
|
|
163
|
+
"aria-label": r == null ? h : void 0,
|
|
160
164
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
161
165
|
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
162
166
|
onEscapeKeyDown: (e) => {
|
|
163
|
-
var
|
|
164
|
-
const
|
|
165
|
-
|
|
167
|
+
var a, c;
|
|
168
|
+
const s = document.activeElement;
|
|
169
|
+
s && ((a = R.current) != null && a.contains(s)) && (e.preventDefault(), (c = k.current) == null || c.focus(), p(!1));
|
|
166
170
|
},
|
|
167
171
|
children: [
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */ t(
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
172
|
+
r != null && /* @__PURE__ */ t(l.Heading, { children: r }),
|
|
173
|
+
/* @__PURE__ */ t(l.Description, { className: "ds:flex ds:min-h-0 ds:flex-col", children: /* @__PURE__ */ d(
|
|
174
|
+
q,
|
|
175
|
+
{
|
|
176
|
+
ref: N,
|
|
177
|
+
type: "native",
|
|
178
|
+
"aria-label": typeof r == "string" ? r : h,
|
|
179
|
+
className: "ds:min-h-[3lh]",
|
|
180
|
+
children: [
|
|
181
|
+
n,
|
|
182
|
+
b != null && /* @__PURE__ */ d(
|
|
183
|
+
"div",
|
|
184
|
+
{
|
|
185
|
+
"data-slot": "formula",
|
|
186
|
+
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",
|
|
187
|
+
children: [
|
|
188
|
+
/* @__PURE__ */ d("span", { className: "ds:sr-only", children: [
|
|
189
|
+
m("infoTip.formula", "Formula"),
|
|
190
|
+
":",
|
|
191
|
+
" "
|
|
192
|
+
] }),
|
|
193
|
+
b
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
)
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
) }),
|
|
200
|
+
w && /* @__PURE__ */ t(
|
|
188
201
|
"div",
|
|
189
202
|
{
|
|
190
203
|
"data-slot": "footer",
|
|
191
204
|
className: "ds:mt-[var(--spacing-sm)] ds:flex ds:justify-end",
|
|
192
|
-
children: /* @__PURE__ */
|
|
193
|
-
|
|
205
|
+
children: /* @__PURE__ */ t(
|
|
206
|
+
V,
|
|
194
207
|
{
|
|
195
|
-
ref:
|
|
196
|
-
href:
|
|
197
|
-
onClick:
|
|
208
|
+
ref: I,
|
|
209
|
+
href: y,
|
|
210
|
+
onClick: A,
|
|
198
211
|
weight: "strong",
|
|
199
212
|
className: "type-body-sm",
|
|
200
|
-
children:
|
|
213
|
+
children: S ?? m("infoTip.learnMore", "Learn more")
|
|
201
214
|
}
|
|
202
215
|
)
|
|
203
216
|
}
|
|
@@ -208,9 +221,9 @@ const G = {
|
|
|
208
221
|
] });
|
|
209
222
|
}
|
|
210
223
|
);
|
|
211
|
-
|
|
224
|
+
W.displayName = "InfoTip";
|
|
212
225
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
226
|
+
W as I,
|
|
227
|
+
Q as i
|
|
215
228
|
};
|
|
216
|
-
//# sourceMappingURL=info-tip-
|
|
229
|
+
//# sourceMappingURL=info-tip-CG-DEfkd.js.map
|
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
|
}
|
|
@@ -40,7 +40,8 @@ export interface InfoTipProps {
|
|
|
40
40
|
* When set, the card gains a footer "Learn more" link to this URL and
|
|
41
41
|
* becomes interactive: Tab from the open trigger moves to the link,
|
|
42
42
|
* Shift+Tab returns, Escape closes and refocuses the trigger. Without it the
|
|
43
|
-
* card
|
|
43
|
+
* card is explanatory text and focus stays on the trigger, unless the text
|
|
44
|
+
* is long enough to scroll: then Tab reaches the text so it can be scrolled.
|
|
44
45
|
*/
|
|
45
46
|
learnMoreHref?: string;
|
|
46
47
|
/** Link text. Defaults to the translated "Learn more" chrome string. */
|
|
@@ -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,
|