@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.
@@ -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 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: (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
+ }, 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
- ), Q = A(
93
+ ), X = E(
93
94
  ({
94
- content: s,
95
- heading: l,
96
- size: f = "md",
97
- side: D = "top",
98
- align: z = "center",
99
- "aria-label": C,
100
- id: v,
101
- className: L,
102
- formula: g,
103
- learnMoreHref: h,
104
- learnMoreLabel: N,
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
- }, 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(
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: () => n.current,
114
- open: () => c(!0),
115
- close: () => c(!1)
115
+ getIsOpen: () => i.current,
116
+ open: () => p(!0),
117
+ close: () => p(!1)
116
118
  }),
117
119
  []
118
120
  );
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,
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": k,
132
- className: J({ size: f, className: L }),
133
+ "aria-label": h,
134
+ className: W({ size: u, className: S }),
133
135
  "data-component": "info-tip",
134
- "data-component-id": v,
135
- onPointerDown: y,
136
+ "data-component-id": g,
137
+ onPointerDown: T,
136
138
  onKeyDown: (e) => {
137
- (e.key === "Enter" || e.key === " ") && y(), T && e.key === "Tab" && !e.shiftKey && n.current && m.current && (e.preventDefault(), m.current.focus());
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 d = u.current;
141
- u.current = null, d === !1 && n.current && e.preventDefault();
144
+ const s = v.current;
145
+ v.current = null, s === !1 && i.current && e.preventDefault();
142
146
  },
143
- children: /* @__PURE__ */ o(
144
- B,
147
+ children: /* @__PURE__ */ t(
148
+ Q,
145
149
  {
146
150
  "aria-hidden": "true",
147
- className: f === "sm" ? "ds:size-5" : "ds:size-6"
151
+ className: u === "sm" ? "ds:size-5" : "ds:size-6"
148
152
  }
149
153
  )
150
154
  }
151
155
  ),
152
- /* @__PURE__ */ t(
153
- i.Content,
156
+ /* @__PURE__ */ d(
157
+ l.Content,
154
158
  {
155
- ref: x,
156
- side: D,
157
- align: z,
158
- size: f === "sm" ? "sm" : "md",
159
- "aria-label": l == null ? k : void 0,
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 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));
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
- 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(
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__ */ o(
193
- H,
206
+ children: /* @__PURE__ */ t(
207
+ q,
194
208
  {
195
- ref: m,
196
- href: h,
209
+ ref: I,
210
+ href: y,
197
211
  onClick: K,
198
212
  weight: "strong",
199
213
  className: "type-body-sm",
200
- children: N ?? p("infoTip.learnMore", "Learn more")
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
- Q.displayName = "InfoTip";
225
+ X.displayName = "InfoTip";
212
226
  export {
213
- Q as I,
214
- G as i
227
+ X as I,
228
+ U as i
215
229
  };
216
- //# sourceMappingURL=info-tip-Do3RFt60.js.map
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,.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.99.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-1Xsq9GLi.js";
2
2
  export {
3
3
  f as InfoTip,
4
4
  n as infoTipAgent
@@ -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 maps the floating card width:
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 stays explanatory text only and focus never leaves the trigger.
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-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,