@alfadocs/ui-kit 1.110.0 → 1.112.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/{kit-extensions-BOnTM4Yf.js → kit-extensions-VaJ-u44J.js} +47 -22
- package/dist/_chunks/muscle-scheme-C2B6v14o.js +3276 -0
- 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 -9
- 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/muscle-scheme/index.d.ts +3 -3
- package/dist/components/muscle-scheme/index.js +14 -12
- package/dist/components/muscle-scheme/muscle-fibres.d.ts +3 -0
- package/dist/components/muscle-scheme/muscle-outlines.d.ts +19 -0
- package/dist/components/muscle-scheme/muscle-scheme-data.d.ts +96 -2
- package/dist/components/muscle-scheme/muscle-scheme.d.ts +39 -3
- package/dist/components/muscle-scheme/reproductive-female.d.ts +3 -0
- package/dist/components/muscle-scheme/reproductive-male.d.ts +3 -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 +2 -2
- 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-compat.css +9 -1
- package/dist/host-legacy.css +17 -1
- package/dist/i18n/locales/ar.d.ts +140 -0
- package/dist/i18n/locales/ar.js +100 -2
- package/dist/i18n/locales/de.d.ts +140 -0
- package/dist/i18n/locales/de.js +91 -2
- package/dist/i18n/locales/el.d.ts +140 -0
- package/dist/i18n/locales/el.js +106 -2
- package/dist/i18n/locales/en.d.ts +140 -0
- package/dist/i18n/locales/en.js +82 -2
- package/dist/i18n/locales/es.d.ts +140 -0
- package/dist/i18n/locales/es.js +97 -2
- package/dist/i18n/locales/fr.d.ts +140 -0
- package/dist/i18n/locales/fr.js +88 -2
- package/dist/i18n/locales/hi.d.ts +140 -0
- package/dist/i18n/locales/hi.js +85 -2
- package/dist/i18n/locales/it.d.ts +140 -0
- package/dist/i18n/locales/it.js +100 -2
- package/dist/i18n/locales/ja.d.ts +140 -0
- package/dist/i18n/locales/ja.js +58 -2
- package/dist/i18n/locales/nl.d.ts +140 -0
- package/dist/i18n/locales/nl.js +82 -2
- package/dist/i18n/locales/pl.d.ts +140 -0
- package/dist/i18n/locales/pl.js +106 -2
- package/dist/i18n/locales/pt.d.ts +140 -0
- package/dist/i18n/locales/pt.js +97 -2
- package/dist/i18n/locales/ro.d.ts +140 -0
- package/dist/i18n/locales/ro.js +97 -2
- package/dist/i18n/locales/ru.d.ts +140 -0
- package/dist/i18n/locales/ru.js +121 -2
- package/dist/i18n/locales/sq.d.ts +140 -0
- package/dist/i18n/locales/sq.js +100 -2
- package/dist/i18n/locales/sv.d.ts +140 -0
- package/dist/i18n/locales/sv.js +76 -2
- package/dist/i18n/locales/tr.d.ts +140 -0
- package/dist/i18n/locales/tr.js +76 -2
- package/dist/i18n/locales/zh.d.ts +140 -0
- package/dist/i18n/locales/zh.js +58 -2
- package/dist/index.js +984 -979
- package/dist/locales/ar.json +142 -2
- package/dist/locales/de.json +142 -2
- package/dist/locales/el.json +142 -2
- package/dist/locales/en.json +142 -2
- package/dist/locales/es.json +142 -2
- package/dist/locales/fr.json +142 -2
- package/dist/locales/hi.json +142 -2
- package/dist/locales/it.json +142 -2
- package/dist/locales/ja.json +142 -2
- package/dist/locales/nl.json +142 -2
- package/dist/locales/pl.json +142 -2
- package/dist/locales/pt.json +142 -2
- package/dist/locales/ro.json +142 -2
- package/dist/locales/ru.json +142 -2
- package/dist/locales/sq.json +142 -2
- package/dist/locales/sv.json +142 -2
- package/dist/locales/tr.json +142 -2
- package/dist/locales/zh.json +142 -2
- 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
- package/dist/_chunks/muscle-scheme-CznhrQlo.js +0 -1706
|
@@ -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
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { createElement as e } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import { P as o } from "./pregnancy-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { B as i } from "./bmi-calculator-NMkXc079.js";
|
|
3
|
+
import { P as o } from "./pregnancy-dating-D6dLkMpl.js";
|
|
4
|
+
import { P as r } from "./pregnancy-weight-gain-B_Zldlzq.js";
|
|
5
|
+
import { G as c } from "./gestational-age-calculator-AnaH00nk.js";
|
|
6
|
+
import { C as s } from "./cycle-calculator-ZMDvToIm.js";
|
|
7
|
+
import { F as d } from "./fetal-weight-CkIwJgiH.js";
|
|
8
|
+
import { c as n } from "./createLucideIcon-DhHxpK9K.js";
|
|
9
|
+
import { B as a } from "./baby-Dku-Xvg9.js";
|
|
10
|
+
import { H as l } from "./heart--qCA4ffe.js";
|
|
10
11
|
/**
|
|
11
12
|
* @license lucide-react v1.22.0 - ISC
|
|
12
13
|
*
|
|
13
14
|
* This source code is licensed under the ISC license.
|
|
14
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
15
16
|
*/
|
|
16
|
-
const
|
|
17
|
+
const k = [
|
|
17
18
|
[
|
|
18
19
|
"path",
|
|
19
20
|
{ d: "M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125", key: "vxdnp4" }
|
|
@@ -28,20 +29,44 @@ const l = [
|
|
|
28
29
|
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
29
30
|
["path", { d: "M3 10h18", key: "8toen8" }],
|
|
30
31
|
["path", { d: "M8 2v4", key: "1cmpym" }]
|
|
31
|
-
], p =
|
|
32
|
+
], p = n("calendar-heart", k);
|
|
32
33
|
/**
|
|
33
34
|
* @license lucide-react v1.22.0 - ISC
|
|
34
35
|
*
|
|
35
36
|
* This source code is licensed under the ISC license.
|
|
36
37
|
* See the LICENSE file in the root directory of this source tree.
|
|
37
38
|
*/
|
|
38
|
-
const
|
|
39
|
+
const m = [
|
|
39
40
|
["path", { d: "M12 3v18", key: "108xh3" }],
|
|
40
41
|
["path", { d: "m19 8 3 8a5 5 0 0 1-6 0zV7", key: "zcdpyk" }],
|
|
41
42
|
["path", { d: "M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1", key: "1yorad" }],
|
|
42
43
|
["path", { d: "m5 8 3 8a5 5 0 0 1-6 0zV7", key: "eua70x" }],
|
|
43
44
|
["path", { d: "M7 21h10", key: "1b0cd5" }]
|
|
44
|
-
], g =
|
|
45
|
+
], g = n("scale", m);
|
|
46
|
+
/**
|
|
47
|
+
* @license lucide-react v1.22.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/
|
|
52
|
+
const h = [
|
|
53
|
+
["circle", { cx: "12", cy: "5", r: "3", key: "rqqgnr" }],
|
|
54
|
+
[
|
|
55
|
+
"path",
|
|
56
|
+
{
|
|
57
|
+
d: "M6.5 8a2 2 0 0 0-1.905 1.46L2.1 18.5A2 2 0 0 0 4 21h16a2 2 0 0 0 1.925-2.54L19.4 9.5A2 2 0 0 0 17.48 8Z",
|
|
58
|
+
key: "56o5sh"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
], y = n("weight", h), w = [
|
|
62
|
+
{
|
|
63
|
+
id: "bmi-calculator",
|
|
64
|
+
label: "insert.title.bmi",
|
|
65
|
+
icon: e(y),
|
|
66
|
+
kind: "panel",
|
|
67
|
+
source: { kind: "kit" },
|
|
68
|
+
render: ({ insert: t }) => e(i, { onInsert: t })
|
|
69
|
+
},
|
|
45
70
|
{
|
|
46
71
|
id: "pregnancy-dating",
|
|
47
72
|
label: "insert.title.pregnancyDating",
|
|
@@ -49,34 +74,34 @@ const k = [
|
|
|
49
74
|
kind: "panel",
|
|
50
75
|
contexts: ["note", "diagnosis"],
|
|
51
76
|
source: { kind: "kit" },
|
|
52
|
-
render: ({ insert: t }) => e(
|
|
77
|
+
render: ({ insert: t }) => e(o, { onInsert: t })
|
|
53
78
|
},
|
|
54
79
|
{
|
|
55
80
|
id: "pregnancy-weight-gain",
|
|
56
81
|
label: "insert.title.weightGain",
|
|
57
|
-
icon: e(
|
|
82
|
+
icon: e(a),
|
|
58
83
|
kind: "panel",
|
|
59
84
|
contexts: ["note", "diagnosis"],
|
|
60
85
|
source: { kind: "kit" },
|
|
61
|
-
render: ({ insert: t }) => e(
|
|
86
|
+
render: ({ insert: t }) => e(r, { onInsert: t })
|
|
62
87
|
},
|
|
63
88
|
{
|
|
64
89
|
id: "gestational-age-calculator",
|
|
65
90
|
label: "insert.title.gestationalAge",
|
|
66
|
-
icon: e(
|
|
91
|
+
icon: e(a),
|
|
67
92
|
kind: "panel",
|
|
68
93
|
contexts: ["note", "diagnosis"],
|
|
69
94
|
source: { kind: "kit" },
|
|
70
|
-
render: ({ insert: t }) => e(
|
|
95
|
+
render: ({ insert: t }) => e(c, { onInsert: t })
|
|
71
96
|
},
|
|
72
97
|
{
|
|
73
98
|
id: "cycle-calculator",
|
|
74
99
|
label: "insert.title.cycle",
|
|
75
|
-
icon: e(
|
|
100
|
+
icon: e(l),
|
|
76
101
|
kind: "panel",
|
|
77
102
|
contexts: ["note", "diagnosis"],
|
|
78
103
|
source: { kind: "kit" },
|
|
79
|
-
render: ({ insert: t }) => e(
|
|
104
|
+
render: ({ insert: t }) => e(s, { onInsert: t })
|
|
80
105
|
},
|
|
81
106
|
{
|
|
82
107
|
id: "fetal-weight",
|
|
@@ -85,10 +110,10 @@ const k = [
|
|
|
85
110
|
kind: "panel",
|
|
86
111
|
contexts: ["note", "diagnosis"],
|
|
87
112
|
source: { kind: "kit" },
|
|
88
|
-
render: ({ insert: t }) => e(
|
|
113
|
+
render: ({ insert: t }) => e(d, { onInsert: t })
|
|
89
114
|
}
|
|
90
115
|
];
|
|
91
116
|
export {
|
|
92
|
-
|
|
117
|
+
w as k
|
|
93
118
|
};
|
|
94
|
-
//# sourceMappingURL=kit-extensions-
|
|
119
|
+
//# sourceMappingURL=kit-extensions-VaJ-u44J.js.map
|