@alfadocs/ui-kit 1.110.0 → 1.111.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/{anamnesis-summary-rows-QhbDdY7b.js → anamnesis-summary-rows-BrTx7diS.js} +2 -2
- package/dist/_chunks/{calculator-dialog-BsVVb8cT.js → calculator-dialog-D4TyJwqy.js} +2 -2
- package/dist/_chunks/{calendar-appointment-editor-dialog-D8DblVjW.js → calendar-appointment-editor-dialog-Oc3Df8O3.js} +4 -4
- package/dist/_chunks/data-grid.agent-CASyEAnb.js +1773 -0
- package/dist/_chunks/{dialog-C7RWaH08.js → dialog-BTjSQjdY.js} +17 -16
- package/dist/_chunks/{file-manager-BDKe59sg.js → file-manager-CVxBE4yy.js} +2 -2
- package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js} +2 -2
- package/dist/_chunks/{notes-panel-SlzUL8in.js → notes-panel-Cz621DWV.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js} +2 -2
- package/dist/_chunks/{rich-text-editor-C3nANKZt.js → rich-text-editor-BLS2cK-u.js} +2 -2
- package/dist/_chunks/{signature-request-opW0fQ5P.js → signature-request-DJwdPji_.js} +2 -2
- package/dist/_chunks/{task-editor-CmXcj6cC.js → task-editor-jqRf2JP6.js} +2 -2
- package/dist/_chunks/{widget-picker-DNYIqRT1.js → widget-picker-U4JsEhQE.js} +2 -2
- package/dist/ag-grid.css +0 -10
- package/dist/agent-catalog.json +66 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/data-grid/data-grid.agent.d.ts +3 -0
- package/dist/components/data-grid/data-grid.d.ts +28 -0
- package/dist/components/data-grid/index.d.ts +4 -0
- package/dist/components/data-grid/index.js +6 -0
- package/dist/components/dialog/dialog.d.ts +2 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/core.css +1 -1
- package/dist/host-legacy.css +17 -1
- package/dist/index.js +982 -979
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +1 -6
- package/package.json +6 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { useRef as S, useEffect as V, useMemo as
|
|
1
|
+
import { jsx as t, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useEffect as V, useMemo as D, forwardRef as i, useContext as A, createContext as z } from "react";
|
|
3
3
|
import * as s from "@radix-ui/react-dialog";
|
|
4
4
|
import { c as b } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { useTranslation as F } from "react-i18next";
|
|
@@ -72,6 +72,7 @@ const P = {
|
|
|
72
72
|
sm: "ds-dialog__surface--sm",
|
|
73
73
|
md: "",
|
|
74
74
|
lg: "ds-dialog__surface--lg",
|
|
75
|
+
xl: "ds-dialog__surface--xl",
|
|
75
76
|
fullscreen: "ds-dialog__surface--fullscreen"
|
|
76
77
|
},
|
|
77
78
|
// `body` pins the header and footer and scrolls only `Dialog.Body` once
|
|
@@ -93,20 +94,20 @@ const P = {
|
|
|
93
94
|
children: e,
|
|
94
95
|
id: o,
|
|
95
96
|
open: a,
|
|
96
|
-
defaultOpen:
|
|
97
|
+
defaultOpen: l,
|
|
97
98
|
onOpenChange: g,
|
|
98
|
-
modal:
|
|
99
|
+
modal: r = !0,
|
|
99
100
|
...m
|
|
100
101
|
}) => {
|
|
101
102
|
const [c, d] = I({
|
|
102
103
|
value: a,
|
|
103
|
-
defaultValue:
|
|
104
|
+
defaultValue: l ?? !1,
|
|
104
105
|
onChange: g
|
|
105
106
|
}), n = c ?? !1, p = S(n);
|
|
106
107
|
V(() => {
|
|
107
108
|
p.current = n;
|
|
108
109
|
}, [n]);
|
|
109
|
-
const u =
|
|
110
|
+
const u = D(
|
|
110
111
|
() => ({
|
|
111
112
|
getIsOpen: () => p.current,
|
|
112
113
|
open: () => d(!0),
|
|
@@ -115,13 +116,13 @@ const P = {
|
|
|
115
116
|
[d]
|
|
116
117
|
);
|
|
117
118
|
w(P, u, o);
|
|
118
|
-
const f =
|
|
119
|
+
const f = D(() => ({ id: o, modal: r }), [o, r]);
|
|
119
120
|
return /* @__PURE__ */ t(h.Provider, { value: f, children: /* @__PURE__ */ t(
|
|
120
121
|
s.Root,
|
|
121
122
|
{
|
|
122
123
|
open: n,
|
|
123
124
|
onOpenChange: d,
|
|
124
|
-
modal:
|
|
125
|
+
modal: r,
|
|
125
126
|
...m,
|
|
126
127
|
children: e
|
|
127
128
|
}
|
|
@@ -137,15 +138,15 @@ const x = i(
|
|
|
137
138
|
size: e = "md",
|
|
138
139
|
variant: o = "default",
|
|
139
140
|
scroll: a = "surface",
|
|
140
|
-
flush:
|
|
141
|
+
flush: l = !1,
|
|
141
142
|
hideCloseButton: g,
|
|
142
|
-
className:
|
|
143
|
+
className: r,
|
|
143
144
|
children: m,
|
|
144
145
|
onKeyDown: c,
|
|
145
146
|
...d
|
|
146
147
|
}, n) => {
|
|
147
148
|
const { t: p } = F("ui"), { id: u, modal: f } = A(h), B = L(!f), E = o === "alert" ? { role: "alertdialog" } : {}, H = g ?? o !== "default";
|
|
148
|
-
return /* @__PURE__ */
|
|
149
|
+
return /* @__PURE__ */ _(s.Portal, { children: [
|
|
149
150
|
/* @__PURE__ */ t(
|
|
150
151
|
s.Overlay,
|
|
151
152
|
{
|
|
@@ -153,14 +154,14 @@ const x = i(
|
|
|
153
154
|
className: K
|
|
154
155
|
}
|
|
155
156
|
),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ _(
|
|
157
158
|
s.Content,
|
|
158
159
|
{
|
|
159
160
|
ref: n,
|
|
160
161
|
...E,
|
|
161
162
|
"data-component": "dialog",
|
|
162
163
|
"data-component-id": u,
|
|
163
|
-
className: X({ size: e, scroll: a, flush:
|
|
164
|
+
className: X({ size: e, scroll: a, flush: l, className: r }),
|
|
164
165
|
...d,
|
|
165
166
|
onKeyDown: (v) => {
|
|
166
167
|
c == null || c(v), B(v);
|
|
@@ -245,10 +246,10 @@ const Y = b(
|
|
|
245
246
|
defaultVariants: { divider: !1 }
|
|
246
247
|
}
|
|
247
248
|
), k = i(
|
|
248
|
-
({ className: e, divider: o = !1, ...a },
|
|
249
|
+
({ className: e, divider: o = !1, ...a }, l) => /* @__PURE__ */ t(
|
|
249
250
|
"div",
|
|
250
251
|
{
|
|
251
|
-
ref:
|
|
252
|
+
ref: l,
|
|
252
253
|
className: Y({ divider: o, className: e }),
|
|
253
254
|
...a
|
|
254
255
|
}
|
|
@@ -270,4 +271,4 @@ export {
|
|
|
270
271
|
oe as D,
|
|
271
272
|
P as d
|
|
272
273
|
};
|
|
273
|
-
//# sourceMappingURL=dialog-
|
|
274
|
+
//# sourceMappingURL=dialog-BTjSQjdY.js.map
|
|
@@ -8,7 +8,7 @@ import { S as he } from "./skeleton-tTWJpvAq.js";
|
|
|
8
8
|
import { u as Ct } from "./use-controllable-state-BiY4xTzM.js";
|
|
9
9
|
import { u as wt } from "./registry-DvAUVLHh.js";
|
|
10
10
|
import { B as Z } from "./button-DohK_Ak_.js";
|
|
11
|
-
import { D as m } from "./dialog-
|
|
11
|
+
import { D as m } from "./dialog-BTjSQjdY.js";
|
|
12
12
|
import { a as St, F as xt } from "./file-upload-CxjCs7TX.js";
|
|
13
13
|
import { S as We } from "./state-backed-text-input-DVETOhSS.js";
|
|
14
14
|
import { F as Ge } from "./folder-BghC8_S2.js";
|
|
@@ -1744,4 +1744,4 @@ export {
|
|
|
1744
1744
|
hn as F,
|
|
1745
1745
|
Gt as f
|
|
1746
1746
|
};
|
|
1747
|
-
//# sourceMappingURL=file-manager-
|
|
1747
|
+
//# sourceMappingURL=file-manager-CVxBE4yy.js.map
|
package/dist/_chunks/{help-me-write-templates-YmceSxf5.js → help-me-write-templates-CWxgjDZl.js}
RENAMED
|
@@ -6,7 +6,7 @@ import { A as Z } from "./alert-C4WKViaS.js";
|
|
|
6
6
|
import { A as de } from "./ai-credits-exhausted-notice-Lws3113e.js";
|
|
7
7
|
import { B as I } from "./button-DohK_Ak_.js";
|
|
8
8
|
import { I as L } from "./icon-button-S8_weU3g.js";
|
|
9
|
-
import { D as W } from "./dialog-
|
|
9
|
+
import { D as W } from "./dialog-BTjSQjdY.js";
|
|
10
10
|
import { E as me } from "./editor-overlay-Dc8uVxEp.js";
|
|
11
11
|
import { E as pe } from "./empty-state-DwJ5YNzz.js";
|
|
12
12
|
import { F as X } from "./form-field-CyHfOVKF.js";
|
|
@@ -684,4 +684,4 @@ export {
|
|
|
684
684
|
Ie as b,
|
|
685
685
|
nr as u
|
|
686
686
|
};
|
|
687
|
-
//# sourceMappingURL=help-me-write-templates-
|
|
687
|
+
//# sourceMappingURL=help-me-write-templates-CWxgjDZl.js.map
|
|
@@ -5,7 +5,7 @@ import { useTranslation as kn } from "react-i18next";
|
|
|
5
5
|
import { g as mt, h as Rt } from "./handled-rejection-6gqCf5vt.js";
|
|
6
6
|
import { u as zn } from "./registry-DvAUVLHh.js";
|
|
7
7
|
import { C as Hn } from "./clinical-note-card-BVkxGiGl.js";
|
|
8
|
-
import { R as Mn } from "./rich-text-editor-
|
|
8
|
+
import { R as Mn } from "./rich-text-editor-BLS2cK-u.js";
|
|
9
9
|
import { T as Wn } from "./text-area-COMVJ1yE.js";
|
|
10
10
|
import { A as j } from "./alert-C4WKViaS.js";
|
|
11
11
|
import { B as te } from "./button-DohK_Ak_.js";
|
|
@@ -14,7 +14,7 @@ import { S as $n } from "./switch-DO6uC4HJ.js";
|
|
|
14
14
|
import { T as Bn } from "./tooltip-uEBdD1-5.js";
|
|
15
15
|
import { C as yt } from "./card-C85_Ndhb.js";
|
|
16
16
|
import { C as Kn, S as ve } from "./skeleton-tTWJpvAq.js";
|
|
17
|
-
import { D as L } from "./dialog-
|
|
17
|
+
import { D as L } from "./dialog-BTjSQjdY.js";
|
|
18
18
|
import { P as In } from "./panel-header-CbtlTe85.js";
|
|
19
19
|
import { a as Yn, u as Gn, R as Jn } from "./use-list-reflow-C7O4Uqnl.js";
|
|
20
20
|
import { u as Qn } from "./use-isomorphic-layout-effect-BGfaCOP1.js";
|
|
@@ -1109,4 +1109,4 @@ const jr = qn(
|
|
|
1109
1109
|
export {
|
|
1110
1110
|
jr as N
|
|
1111
1111
|
};
|
|
1112
|
-
//# sourceMappingURL=notes-panel-
|
|
1112
|
+
//# sourceMappingURL=notes-panel-Cz621DWV.js.map
|
package/dist/_chunks/{radiograph-panel.agent-0ngF2sGS.js → radiograph-panel.agent-CXah49KM.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as c, Fragment as j, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as X, useState as h, useRef as ee, useImperativeHandle as ae, useMemo as re, useCallback as _, useEffect as ie } from "react";
|
|
3
3
|
import { useTranslation as S } from "react-i18next";
|
|
4
|
-
import { D as y } from "./dialog-
|
|
4
|
+
import { D as y } from "./dialog-BTjSQjdY.js";
|
|
5
5
|
import { B as T } from "./button-DohK_Ak_.js";
|
|
6
6
|
import { I as v } from "./icon-button-S8_weU3g.js";
|
|
7
7
|
import { B as L } from "./badge-BUk4RjTS.js";
|
|
@@ -533,4 +533,4 @@ export {
|
|
|
533
533
|
qe as R,
|
|
534
534
|
Ae as r
|
|
535
535
|
};
|
|
536
|
-
//# sourceMappingURL=radiograph-panel.agent-
|
|
536
|
+
//# sourceMappingURL=radiograph-panel.agent-CXah49KM.js.map
|
|
@@ -25,7 +25,7 @@ import { u as ca, f as da } from "./non-modal-tab-exit-j3CPOuE3.js";
|
|
|
25
25
|
import { V as Xr } from "./variables-menu-DQl8H4Gh.js";
|
|
26
26
|
import { a as Fn } from "./tooltip-uEBdD1-5.js";
|
|
27
27
|
import { P as ne } from "./popover-CN5IsOeS.js";
|
|
28
|
-
import { D as ie } from "./dialog-
|
|
28
|
+
import { D as ie } from "./dialog-BTjSQjdY.js";
|
|
29
29
|
import { C as jn } from "./color-picker-AcaWuKah.js";
|
|
30
30
|
import { S as nn } from "./state-backed-text-input-DVETOhSS.js";
|
|
31
31
|
import { C as ua } from "./checkbox-a7Sh-dXb.js";
|
|
@@ -4145,4 +4145,4 @@ export {
|
|
|
4145
4145
|
Ii as r,
|
|
4146
4146
|
Ts as w
|
|
4147
4147
|
};
|
|
4148
|
-
//# sourceMappingURL=rich-text-editor-
|
|
4148
|
+
//# sourceMappingURL=rich-text-editor-BLS2cK-u.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n, jsxs as u, Fragment as ge } from "react/jsx-runtime";
|
|
2
2
|
import { useState as _, useRef as oe, useEffect as je, useId as B, forwardRef as Mi, useLayoutEffect as Qt } from "react";
|
|
3
3
|
import { useTranslation as Fn } from "react-i18next";
|
|
4
|
-
import { D as q } from "./dialog-
|
|
4
|
+
import { D as q } from "./dialog-BTjSQjdY.js";
|
|
5
5
|
import { Q as $i } from "./qr-code-DHEma21c.js";
|
|
6
6
|
import { S as zi } from "./spinner-CoflYlEx.js";
|
|
7
7
|
import { S as Ie } from "./skeleton-tTWJpvAq.js";
|
|
@@ -2787,4 +2787,4 @@ Or.displayName = "SignatureRequestModal";
|
|
|
2787
2787
|
export {
|
|
2788
2788
|
Or as S
|
|
2789
2789
|
};
|
|
2790
|
-
//# sourceMappingURL=signature-request-
|
|
2790
|
+
//# sourceMappingURL=signature-request-DJwdPji_.js.map
|
|
@@ -6,7 +6,7 @@ import { A as M } from "./alert-C4WKViaS.js";
|
|
|
6
6
|
import { B as Me } from "./button-DohK_Ak_.js";
|
|
7
7
|
import { I as We } from "./icon-button-S8_weU3g.js";
|
|
8
8
|
import { C as Qe } from "./combobox-duuDRI1t.js";
|
|
9
|
-
import { D as ce } from "./dialog-
|
|
9
|
+
import { D as ce } from "./dialog-BTjSQjdY.js";
|
|
10
10
|
import { D as Bt } from "./date-picker-CdhXlgVI.js";
|
|
11
11
|
import { F as H } from "./form-field-CyHfOVKF.js";
|
|
12
12
|
import { I as Ft } from "./icon-button-group-mXvYDaba.js";
|
|
@@ -1239,4 +1239,4 @@ export {
|
|
|
1239
1239
|
vn as T,
|
|
1240
1240
|
ln as t
|
|
1241
1241
|
};
|
|
1242
|
-
//# sourceMappingURL=task-editor-
|
|
1242
|
+
//# sourceMappingURL=task-editor-jqRf2JP6.js.map
|
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as _, useState as p, useEffect as N, useMemo as v, useCallback as j, useImperativeHandle as B } from "react";
|
|
3
3
|
import { c as C } from "./index-D2ZczOXr.js";
|
|
4
4
|
import { useTranslation as H } from "react-i18next";
|
|
5
|
-
import { D as u } from "./dialog-
|
|
5
|
+
import { D as u } from "./dialog-BTjSQjdY.js";
|
|
6
6
|
import { S as A } from "./state-backed-text-input-DVETOhSS.js";
|
|
7
7
|
import { B as I } from "./badge-BUk4RjTS.js";
|
|
8
8
|
import { u as D } from "./registry-DvAUVLHh.js";
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
E as W,
|
|
214
214
|
K as w
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=widget-picker-
|
|
216
|
+
//# sourceMappingURL=widget-picker-U4JsEhQE.js.map
|
package/dist/ag-grid.css
CHANGED
|
@@ -2728,16 +2728,6 @@ button.ag-side-button-button:focus{box-shadow:none}
|
|
|
2728
2728
|
.ag-theme-alfadocs .ag-row-selected{color:HighlightText}
|
|
2729
2729
|
.ag-theme-alfadocs .data-table-row-success,.ag-theme-alfadocs .data-table-row-warning,.ag-theme-alfadocs .data-table-row-error,.ag-theme-alfadocs .data-table-row-archived,.ag-theme-alfadocs .ag-row.ds-data-table-expanded-row{background-color:Canvas;color:CanvasText}}
|
|
2730
2730
|
|
|
2731
|
-
:root,.theme-light{--data-grid-border-mix: 50%;--data-grid-eyebrow-size: var(--font-size-xs);--data-grid-group-size: var(--font-size-sm);--data-grid-selected-mix: 10%;--data-grid-eyebrow-ink: var(--foreground);--data-grid-header-surface: var(--muted)}
|
|
2732
|
-
|
|
2733
|
-
.theme-dark{--data-grid-eyebrow-ink: var(--muted-foreground);--data-grid-header-surface: color-mix( in srgb, var(--foreground) 6%, transparent )}
|
|
2734
|
-
|
|
2735
|
-
.theme-accessible{--data-grid-border-mix: 35%;--data-grid-eyebrow-size: var(--font-size-sm);--data-grid-group-size: var(--font-size-base);--data-grid-eyebrow-ink: var(--muted-foreground)}
|
|
2736
|
-
|
|
2737
|
-
.theme-light.theme-accessible{--data-grid-header-surface: color-mix( in srgb, var(--foreground) 4%, transparent )}
|
|
2738
|
-
|
|
2739
|
-
.theme-dark.theme-accessible{--data-grid-selected-mix: 18%}
|
|
2740
|
-
|
|
2741
2731
|
.ag-theme-alfadocs .sr-only-th .ag-header-cell-text{position:absolute!important;inline-size:1px!important;block-size:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
|
|
2742
2732
|
|
|
2743
2733
|
.ag-theme-alfadocs .ag-body-horizontal-scroll-viewport,.ag-theme-alfadocs .ag-body-vertical-scroll-viewport{scrollbar-width:thin;scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track)}
|
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.111.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -3471,6 +3471,20 @@
|
|
|
3471
3471
|
}
|
|
3472
3472
|
}
|
|
3473
3473
|
},
|
|
3474
|
+
{
|
|
3475
|
+
"kind": "component",
|
|
3476
|
+
"id": "data-grid",
|
|
3477
|
+
"capabilities": [],
|
|
3478
|
+
"state": [],
|
|
3479
|
+
"actions": [],
|
|
3480
|
+
"domHooks": {
|
|
3481
|
+
"root": {
|
|
3482
|
+
"attr": "data-component",
|
|
3483
|
+
"value": "data-grid",
|
|
3484
|
+
"description": "Marks the element as a kit DataGrid."
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3487
|
+
},
|
|
3474
3488
|
{
|
|
3475
3489
|
"kind": "component",
|
|
3476
3490
|
"id": "data-table",
|
|
@@ -19583,6 +19597,57 @@
|
|
|
19583
19597
|
}
|
|
19584
19598
|
]
|
|
19585
19599
|
},
|
|
19600
|
+
{
|
|
19601
|
+
"kind": "pattern",
|
|
19602
|
+
"id": "care-plan-margin",
|
|
19603
|
+
"composes": [
|
|
19604
|
+
{
|
|
19605
|
+
"component": "dialog",
|
|
19606
|
+
"as": "marginDialog"
|
|
19607
|
+
},
|
|
19608
|
+
{
|
|
19609
|
+
"component": "form-field",
|
|
19610
|
+
"as": "discountField"
|
|
19611
|
+
},
|
|
19612
|
+
{
|
|
19613
|
+
"component": "number-input",
|
|
19614
|
+
"as": "discount"
|
|
19615
|
+
},
|
|
19616
|
+
{
|
|
19617
|
+
"component": "data-grid",
|
|
19618
|
+
"as": "marginGrid"
|
|
19619
|
+
},
|
|
19620
|
+
{
|
|
19621
|
+
"component": "transaction-chip",
|
|
19622
|
+
"as": "amount"
|
|
19623
|
+
},
|
|
19624
|
+
{
|
|
19625
|
+
"component": "info-tip",
|
|
19626
|
+
"as": "columnHelp"
|
|
19627
|
+
},
|
|
19628
|
+
{
|
|
19629
|
+
"component": "money",
|
|
19630
|
+
"as": "hourCost"
|
|
19631
|
+
},
|
|
19632
|
+
{
|
|
19633
|
+
"component": "card",
|
|
19634
|
+
"as": "hoursCard"
|
|
19635
|
+
},
|
|
19636
|
+
{
|
|
19637
|
+
"component": "form-field",
|
|
19638
|
+
"as": "hoursField"
|
|
19639
|
+
},
|
|
19640
|
+
{
|
|
19641
|
+
"component": "number-input",
|
|
19642
|
+
"as": "yearlyHours"
|
|
19643
|
+
},
|
|
19644
|
+
{
|
|
19645
|
+
"component": "button",
|
|
19646
|
+
"as": "saveHours"
|
|
19647
|
+
}
|
|
19648
|
+
],
|
|
19649
|
+
"workflows": []
|
|
19650
|
+
},
|
|
19586
19651
|
{
|
|
19587
19652
|
"kind": "pattern",
|
|
19588
19653
|
"id": "care-plans",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type HTMLAttributes, type ReactNode } from 'react';
|
|
2
|
+
export interface DataGridColumn<TData> {
|
|
3
|
+
/** Unique within the grid. */
|
|
4
|
+
id: string;
|
|
5
|
+
header: ReactNode;
|
|
6
|
+
/** The column's plain name, when `header` holds more than text, such as an
|
|
7
|
+
* InfoTip. Without it, the tip's name joins every cell's announcement. */
|
|
8
|
+
headerLabel?: string;
|
|
9
|
+
/** What this column shows for a row. */
|
|
10
|
+
cell: (row: TData) => ReactNode;
|
|
11
|
+
/** This column's cell in the totals row. The row appears when any column
|
|
12
|
+
* has a footer. */
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
/** Amounts go `end`, so a column lines up on the decimal. */
|
|
15
|
+
align?: 'start' | 'end';
|
|
16
|
+
/** Keeps the column in view while the others scroll sideways. */
|
|
17
|
+
pin?: 'start' | 'end';
|
|
18
|
+
}
|
|
19
|
+
export interface DataGridProps<TData> extends Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'dir'> {
|
|
20
|
+
columns: DataGridColumn<TData>[];
|
|
21
|
+
rows: TData[];
|
|
22
|
+
getRowId: (row: TData) => string;
|
|
23
|
+
/** Names the table for screen readers. Pass a translated string. */
|
|
24
|
+
caption: string;
|
|
25
|
+
}
|
|
26
|
+
/** The first column is the row header, so name each row with it. */
|
|
27
|
+
export declare function DataGrid<TData extends object>({ columns, rows, getRowId, caption, className, ...rest }: DataGridProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=data-grid.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { type ComponentPropsWithoutRef, type HTMLAttributes, type ReactNode } fr
|
|
|
2
2
|
import * as RadixDialog from '@radix-ui/react-dialog';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const contentVariants: (props?: ({
|
|
5
|
-
size?: "sm" | "md" | "lg" | "fullscreen" | null | undefined;
|
|
5
|
+
size?: "sm" | "md" | "lg" | "xl" | "fullscreen" | null | undefined;
|
|
6
6
|
scroll?: "body" | "surface" | null | undefined;
|
|
7
7
|
flush?: boolean | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -16,7 +16,7 @@ export interface DialogRootProps extends ComponentPropsWithoutRef<typeof RadixDi
|
|
|
16
16
|
id?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface DialogContentProps extends Omit<ComponentPropsWithoutRef<typeof RadixDialog.Content>, 'role'>, VariantProps<typeof contentVariants> {
|
|
19
|
-
size?: 'sm' | 'md' | 'lg' | 'fullscreen';
|
|
19
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'fullscreen';
|
|
20
20
|
variant?: 'default' | 'alert' | 'confirmation';
|
|
21
21
|
/**
|
|
22
22
|
* Hide the top-right dismiss "X". The default is **variant-aware**: the X is
|
|
@@ -76,6 +76,7 @@ export * from './carousel';
|
|
|
76
76
|
export * from './connection-status';
|
|
77
77
|
export * from './contact-card';
|
|
78
78
|
export * from './counter';
|
|
79
|
+
export * from './data-grid';
|
|
79
80
|
export * from './data-table';
|
|
80
81
|
export * from './data-table-tabs';
|
|
81
82
|
export * from './clinical-note-card';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-
|
|
1
|
+
import { R as i, r as o, w as a } from "../../_chunks/rich-text-editor-BLS2cK-u.js";
|
|
2
2
|
import { k as s } from "../../_chunks/kit-extensions-BOnTM4Yf.js";
|
|
3
3
|
export {
|
|
4
4
|
i as RichTextEditor,
|