@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.
@@ -1,13 +1,14 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as A, useState as S, useRef as r, useEffect as E, useMemo as R } from "react";
3
- import { c as F } from "./index-D2ZczOXr.js";
4
- import { useTranslation as M } from "react-i18next";
5
- import { P as i } from "./popover-CN5IsOeS.js";
6
- import { L as H } from "./link-DtCfnLnF.js";
7
- import { c as V } from "./compose-refs-C0k0tdqF.js";
8
- import { u as q } from "./registry-DvAUVLHh.js";
9
- import { I as B } from "./info-CGn22peZ.js";
10
- const G = {
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: (s) => s.getIsOpen()
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: (s) => {
28
- s.open();
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: (s) => {
37
- s.close();
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
- }, J = F(
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
- ), Q = A(
93
+ ), W = j(
93
94
  ({
94
- content: s,
95
- heading: l,
96
- size: f = "md",
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: v,
101
+ id: g,
101
102
  className: L,
102
- formula: g,
103
- learnMoreHref: h,
104
- learnMoreLabel: N,
105
- onLearnMore: K
106
- }, b) => {
107
- const { t: p } = M("ui"), [a, c] = S(!1), n = r(a);
108
- E(() => {
109
- n.current = a;
110
- }, [a]);
111
- const P = R(
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: () => n.current,
114
- open: () => c(!0),
115
- close: () => c(!1)
114
+ getIsOpen: () => i.current,
115
+ open: () => p(!0),
116
+ close: () => p(!1)
116
117
  }),
117
118
  []
118
119
  );
119
- q(G, P, v);
120
- const u = r(null), y = () => {
121
- u.current = n.current;
122
- }, T = h != null, w = r(null), j = R(
123
- () => V(b, w),
124
- [b]
125
- ), m = r(null), x = r(null), k = C ?? p("infoTip.triggerLabel", "More information");
126
- return /* @__PURE__ */ t(i, { openOn: "hover-or-click", open: a, onOpenChange: c, children: [
127
- /* @__PURE__ */ o(
128
- i.Trigger,
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: j,
131
- "aria-label": k,
132
- className: J({ size: f, className: L }),
131
+ ref: P,
132
+ "aria-label": h,
133
+ className: U({ size: u, className: L }),
133
134
  "data-component": "info-tip",
134
- "data-component-id": v,
135
- onPointerDown: y,
135
+ "data-component-id": g,
136
+ onPointerDown: T,
136
137
  onKeyDown: (e) => {
137
- (e.key === "Enter" || e.key === " ") && y(), T && e.key === "Tab" && !e.shiftKey && n.current && m.current && (e.preventDefault(), m.current.focus());
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 d = u.current;
141
- u.current = null, d === !1 && n.current && e.preventDefault();
143
+ const s = v.current;
144
+ v.current = null, s === !1 && i.current && e.preventDefault();
142
145
  },
143
- children: /* @__PURE__ */ o(
144
- B,
146
+ children: /* @__PURE__ */ t(
147
+ J,
145
148
  {
146
149
  "aria-hidden": "true",
147
- className: f === "sm" ? "ds:size-5" : "ds:size-6"
150
+ className: u === "sm" ? "ds:size-5" : "ds:size-6"
148
151
  }
149
152
  )
150
153
  }
151
154
  ),
152
- /* @__PURE__ */ t(
153
- i.Content,
155
+ /* @__PURE__ */ d(
156
+ l.Content,
154
157
  {
155
- ref: x,
158
+ ref: R,
156
159
  side: D,
157
160
  align: z,
158
- size: f === "sm" ? "sm" : "md",
159
- "aria-label": l == null ? k : void 0,
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 I, O;
164
- const d = document.activeElement;
165
- d && ((I = x.current) != null && I.contains(d)) && (e.preventDefault(), (O = w.current) == null || O.focus(), c(!1));
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
- l != null && /* @__PURE__ */ o(i.Heading, { children: l }),
169
- /* @__PURE__ */ t(i.Description, { children: [
170
- s,
171
- g != null && /* @__PURE__ */ t(
172
- "div",
173
- {
174
- "data-slot": "formula",
175
- 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",
176
- children: [
177
- /* @__PURE__ */ t("span", { className: "ds:sr-only", children: [
178
- p("infoTip.formula", "Formula"),
179
- ":",
180
- " "
181
- ] }),
182
- g
183
- ]
184
- }
185
- )
186
- ] }),
187
- T && /* @__PURE__ */ o(
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__ */ o(
193
- H,
205
+ children: /* @__PURE__ */ t(
206
+ V,
194
207
  {
195
- ref: m,
196
- href: h,
197
- onClick: K,
208
+ ref: I,
209
+ href: y,
210
+ onClick: A,
198
211
  weight: "strong",
199
212
  className: "type-body-sm",
200
- children: N ?? p("infoTip.learnMore", "Learn more")
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
- Q.displayName = "InfoTip";
224
+ W.displayName = "InfoTip";
212
225
  export {
213
- Q as I,
214
- G as i
226
+ W as I,
227
+ Q as i
215
228
  };
216
- //# sourceMappingURL=info-tip-Do3RFt60.js.map
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,.ag-theme-alfadocs *{color:var(--foreground)!important;background:transparent!important}
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 var(--foreground)}
1141
- .ag-theme-alfadocs .ag-header-cell-text{font-size:var(--font-size-sm);color:var(--foreground)}}
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
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.97.0",
3
+ "packageVersion": "1.98.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -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-C4UT4L9B.js";
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,4 +1,4 @@
1
- import { F as r, f } from "../../_chunks/file-manager-B4K2j7jB.js";
1
+ import { F as r, f } from "../../_chunks/file-manager-CnGBVX_q.js";
2
2
  export {
3
3
  r as FileManager,
4
4
  f as fileManagerAgent
@@ -1,4 +1,4 @@
1
- import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-B2Z1_kDn.js";
1
+ import { H as t, a as p, b as m, h as o } from "../../_chunks/heatmap-Cz0Krieg.js";
2
2
  export {
3
3
  t as Heatmap,
4
4
  p as HeatmapLegend,
@@ -1,4 +1,4 @@
1
- import { I as f, i as n } from "../../_chunks/info-tip-Do3RFt60.js";
1
+ import { I as f, i as n } from "../../_chunks/info-tip-CG-DEfkd.js";
2
2
  export {
3
3
  f as InfoTip,
4
4
  n as infoTipAgent
@@ -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 stays explanatory text only and focus never leaves the trigger.
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-DaZokVZY.js";
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,