@alfadocs/ui-kit 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/{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-1Xsq9GLi.js} +110 -96
- 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 +11 -3
- 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 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
|
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
|
}
|
|
@@ -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,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,
|