@alfadocs/ui-kit 0.65.0 → 0.66.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/{ai-tools-rail-JnlTqfS4.js → ai-tools-rail-DAfaW8eA.js} +64 -55
- package/dist/_chunks/{bishop-score-x2fNqbuZ.js → bishop-score-DPN4Ched.js} +2 -2
- package/dist/_chunks/{bmi-calculator-C3roxbqD.js → bmi-calculator-DuUneHuZ.js} +2 -2
- package/dist/_chunks/columns-2-BTOBZbep.js +15 -0
- package/dist/_chunks/{cycle-calculator-DrVXbIB4.js → cycle-calculator-D6LTmtQt.js} +2 -2
- package/dist/_chunks/{due-date-calculator-D4K1BnE2.js → due-date-calculator-CIG194vq.js} +2 -2
- package/dist/_chunks/{editable-currency-cell-renderer-CFqQc56y.js → editable-currency-cell-renderer-f3d0Rhue.js} +330 -340
- package/dist/_chunks/{fetal-weight-B_pBjlO7.js → fetal-weight-Xf8-ZoDy.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-BETQAVkA.js → gestational-age-calculator-BGsZaWXW.js} +2 -2
- package/dist/_chunks/{hcg-doubling-8zXCJgAQ.js → hcg-doubling-LH5i6oM7.js} +2 -2
- package/dist/_chunks/{type-DZ5OMRA2.js → image-C6RM5hfF.js} +4 -16
- package/dist/_chunks/{insert-result-DIAG3ltJ.js → insert-result-njqBthzT.js} +68 -57
- package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Cou6XnMJ.js} +2 -2
- package/dist/_chunks/{patient-shell-CF_qon7C.js → patient-shell-Tgpv0HND.js} +2 -2
- package/dist/_chunks/{pregnancy-dating-BuzLTwjy.js → pregnancy-dating-f9aJbiAk.js} +2 -2
- package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-BMRBeA8V.js} +2 -2
- package/dist/_chunks/rich-text-editor-B5XQNxe8.js +1586 -0
- package/dist/_chunks/{sidebar-DPEHzxLZ.js → sidebar-BFwbx74W.js} +12 -1
- package/dist/_chunks/trash-2-rPAKaRgB.js +18 -0
- package/dist/_chunks/{unit-converter-CHN2cZ4b.js → unit-converter-C1V3ACM9.js} +2 -2
- package/dist/_chunks/{workflow-map-BX3JY1Bu.js → workflow-map-Bt4Of5dT.js} +136 -148
- package/dist/agent-catalog.json +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +12 -2
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +16 -0
- package/dist/i18n/locales/ar.js +16 -0
- package/dist/i18n/locales/de.d.ts +16 -0
- package/dist/i18n/locales/de.js +16 -0
- package/dist/i18n/locales/el.d.ts +16 -0
- package/dist/i18n/locales/el.js +16 -0
- package/dist/i18n/locales/en.d.ts +16 -0
- package/dist/i18n/locales/en.js +16 -0
- package/dist/i18n/locales/es.d.ts +16 -0
- package/dist/i18n/locales/es.js +16 -0
- package/dist/i18n/locales/fr.d.ts +16 -0
- package/dist/i18n/locales/fr.js +16 -0
- package/dist/i18n/locales/hi.d.ts +16 -0
- package/dist/i18n/locales/hi.js +16 -0
- package/dist/i18n/locales/it.d.ts +16 -0
- package/dist/i18n/locales/it.js +16 -0
- package/dist/i18n/locales/ja.d.ts +16 -0
- package/dist/i18n/locales/ja.js +16 -0
- package/dist/i18n/locales/nl.d.ts +16 -0
- package/dist/i18n/locales/nl.js +16 -0
- package/dist/i18n/locales/pl.d.ts +16 -0
- package/dist/i18n/locales/pl.js +16 -0
- package/dist/i18n/locales/pt.d.ts +16 -0
- package/dist/i18n/locales/pt.js +16 -0
- package/dist/i18n/locales/ro.d.ts +16 -0
- package/dist/i18n/locales/ro.js +16 -0
- package/dist/i18n/locales/ru.d.ts +16 -0
- package/dist/i18n/locales/ru.js +16 -0
- package/dist/i18n/locales/sq.d.ts +16 -0
- package/dist/i18n/locales/sq.js +16 -0
- package/dist/i18n/locales/sv.d.ts +16 -0
- package/dist/i18n/locales/sv.js +16 -0
- package/dist/i18n/locales/tr.d.ts +16 -0
- package/dist/i18n/locales/tr.js +16 -0
- package/dist/i18n/locales/zh.d.ts +16 -0
- package/dist/i18n/locales/zh.js +16 -0
- package/dist/index.js +18 -18
- package/dist/locales/ar.json +16 -0
- package/dist/locales/de.json +16 -0
- package/dist/locales/el.json +16 -0
- package/dist/locales/en.json +16 -0
- package/dist/locales/es.json +16 -0
- package/dist/locales/fr.json +16 -0
- package/dist/locales/hi.json +16 -0
- package/dist/locales/it.json +16 -0
- package/dist/locales/ja.json +16 -0
- package/dist/locales/nl.json +16 -0
- package/dist/locales/pl.json +16 -0
- package/dist/locales/pt.json +16 -0
- package/dist/locales/ro.json +16 -0
- package/dist/locales/ru.json +16 -0
- package/dist/locales/sq.json +16 -0
- package/dist/locales/sv.json +16 -0
- package/dist/locales/tr.json +16 -0
- package/dist/locales/zh.json +16 -0
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +0 -1190
|
@@ -6,7 +6,7 @@ import { F as D } from "./form-field-BOm9hK35.js";
|
|
|
6
6
|
import { N as E } from "./number-input-Dj5L3pXK.js";
|
|
7
7
|
import { C as N } from "./card-DPmk26CL.js";
|
|
8
8
|
import { B as H } from "./badge-zsf5i5bH.js";
|
|
9
|
-
import { I as S } from "./insert-result-
|
|
9
|
+
import { I as S } from "./insert-result-njqBthzT.js";
|
|
10
10
|
function h(l) {
|
|
11
11
|
return typeof l == "number" && Number.isFinite(l) && l > 0 ? l / 10 : null;
|
|
12
12
|
}
|
|
@@ -119,4 +119,4 @@ export {
|
|
|
119
119
|
G as F,
|
|
120
120
|
q as e
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=fetal-weight-
|
|
122
|
+
//# sourceMappingURL=fetal-weight-Xf8-ZoDy.js.map
|
|
@@ -10,7 +10,7 @@ import { S as le } from "./select-CEtRcon5.js";
|
|
|
10
10
|
import { S as se } from "./switch-BJ6HD3Mn.js";
|
|
11
11
|
import { C as R } from "./card-DPmk26CL.js";
|
|
12
12
|
import { B as T } from "./badge-zsf5i5bH.js";
|
|
13
|
-
import { I as ie } from "./insert-result-
|
|
13
|
+
import { I as ie } from "./insert-result-njqBthzT.js";
|
|
14
14
|
import { c as ne, g as oe, e as re, f as de, A as ce, h as me, i as ge, G as ue } from "./antenatal-schedule-timeline-BfzFjEyb.js";
|
|
15
15
|
import { s as he } from "./subDays-BcYv1Lxi.js";
|
|
16
16
|
import { i as pe } from "./date-picker-variants-DAcSLTua.js";
|
|
@@ -308,4 +308,4 @@ ve.displayName = "GestationalAgeCalculator";
|
|
|
308
308
|
export {
|
|
309
309
|
ve as G
|
|
310
310
|
};
|
|
311
|
-
//# sourceMappingURL=gestational-age-calculator-
|
|
311
|
+
//# sourceMappingURL=gestational-age-calculator-BGsZaWXW.js.map
|
|
@@ -7,7 +7,7 @@ import { N as L } from "./number-input-Dj5L3pXK.js";
|
|
|
7
7
|
import { D as M } from "./date-time-picker-Ze1My59T.js";
|
|
8
8
|
import { C as _ } from "./card-DPmk26CL.js";
|
|
9
9
|
import { B as A } from "./badge-zsf5i5bH.js";
|
|
10
|
-
import { I as C } from "./insert-result-
|
|
10
|
+
import { I as C } from "./insert-result-njqBthzT.js";
|
|
11
11
|
const O = 1e3 * 60 * 60, z = 35;
|
|
12
12
|
function G(D) {
|
|
13
13
|
const { hcg1: r, hcg2: s, date1: d, date2: o } = D;
|
|
@@ -167,4 +167,4 @@ export {
|
|
|
167
167
|
z as M,
|
|
168
168
|
G as a
|
|
169
169
|
};
|
|
170
|
-
//# sourceMappingURL=hcg-doubling-
|
|
170
|
+
//# sourceMappingURL=hcg-doubling-LH5i6oM7.js.map
|
|
@@ -5,24 +5,12 @@ import { c as e } from "./createLucideIcon-CrFbzy84.js";
|
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
8
|
+
const c = [
|
|
9
9
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
10
10
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
11
11
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
12
|
-
],
|
|
13
|
-
/**
|
|
14
|
-
* @license lucide-react v1.8.0 - ISC
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the ISC license.
|
|
17
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
const a = [
|
|
20
|
-
["path", { d: "M12 4v16", key: "1654pz" }],
|
|
21
|
-
["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2", key: "e0r10z" }],
|
|
22
|
-
["path", { d: "M9 20h6", key: "s66wpe" }]
|
|
23
|
-
], y = e("type", a);
|
|
12
|
+
], a = e("image", c);
|
|
24
13
|
export {
|
|
25
|
-
|
|
26
|
-
y as T
|
|
14
|
+
a as I
|
|
27
15
|
};
|
|
28
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=image-C6RM5hfF.js.map
|
|
@@ -4,9 +4,20 @@ import { useTranslation as Dt } from "react-i18next";
|
|
|
4
4
|
import { c as Nt } from "./index-D2ZczOXr.js";
|
|
5
5
|
import { B as Gt } from "./button-DD_0Xdmr.js";
|
|
6
6
|
import { L as Ht } from "./layers-pzGcbLPj.js";
|
|
7
|
-
import { I as Rt
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
import { I as Rt } from "./image-C6RM5hfF.js";
|
|
8
|
+
import { c as Pt } from "./createLucideIcon-CrFbzy84.js";
|
|
9
|
+
/**
|
|
10
|
+
* @license lucide-react v1.8.0 - ISC
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the ISC license.
|
|
13
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
const Ft = [
|
|
16
|
+
["path", { d: "M12 4v16", key: "1654pz" }],
|
|
17
|
+
["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2", key: "e0r10z" }],
|
|
18
|
+
["path", { d: "M9 20h6", key: "s66wpe" }]
|
|
19
|
+
], Ot = Pt("type", Ft), Ut = 15, at = 40, zt = [18.5, 25, 30];
|
|
20
|
+
function Mn() {
|
|
10
21
|
return {
|
|
11
22
|
bands: [
|
|
12
23
|
{ upTo: 18.5, colorToken: "--info" },
|
|
@@ -14,19 +25,19 @@ function Tn() {
|
|
|
14
25
|
{ upTo: 30, colorToken: "--warning-readable" },
|
|
15
26
|
{ upTo: at, colorToken: "--destructive" }
|
|
16
27
|
],
|
|
17
|
-
min:
|
|
28
|
+
min: Ut,
|
|
18
29
|
max: at,
|
|
19
|
-
ticks: [...
|
|
30
|
+
ticks: [...zt]
|
|
20
31
|
};
|
|
21
32
|
}
|
|
22
|
-
const V = 14, j = 12,
|
|
33
|
+
const V = 14, j = 12, Wt = j / 2, ot = 18, Xt = 12, Vt = 16;
|
|
23
34
|
function N(t, n, i, a, o) {
|
|
24
35
|
if (i <= n) return a;
|
|
25
36
|
const r = (t - n) / (i - n);
|
|
26
37
|
return a + r * (o - a);
|
|
27
38
|
}
|
|
28
39
|
function pt(t, { width: n, height: i }) {
|
|
29
|
-
const a = V, o = n - V, r = ot +
|
|
40
|
+
const a = V, o = n - V, r = ot + Xt, e = ot, c = r + j + Vt;
|
|
30
41
|
let u = t.min;
|
|
31
42
|
const d = t.bands.map((l) => {
|
|
32
43
|
const T = Math.max(t.min, Math.min(u, t.max)), y = Math.max(t.min, Math.min(l.upTo, t.max));
|
|
@@ -44,7 +55,7 @@ function pt(t, { width: n, height: i }) {
|
|
|
44
55
|
barEnd: o,
|
|
45
56
|
barY: r,
|
|
46
57
|
barH: j,
|
|
47
|
-
barRadius:
|
|
58
|
+
barRadius: Wt,
|
|
48
59
|
bands: d,
|
|
49
60
|
marker: {
|
|
50
61
|
x: k,
|
|
@@ -67,7 +78,7 @@ function bt(t, n, i, a, o, r) {
|
|
|
67
78
|
c - r
|
|
68
79
|
)} ${d} H${s(t + o)} ${f} V${s(n + o)} ${b} Z`;
|
|
69
80
|
}
|
|
70
|
-
function
|
|
81
|
+
function jt(t, n) {
|
|
71
82
|
const { resolve: i, font: a, fg: o, muted: r, track: e } = n, c = M(a), u = `<rect x="${s(t.barStart)}" y="${s(
|
|
72
83
|
t.barY
|
|
73
84
|
)}" width="${s(t.barEnd - t.barStart)}" height="${t.barH}" rx="${t.barRadius}" fill="${e}"/>`, d = t.bands.length, f = t.bands.map((m, x) => {
|
|
@@ -126,12 +137,12 @@ function Xt(t, n) {
|
|
|
126
137
|
t.ariaLabel
|
|
127
138
|
)}">${D}${u}${f}${h}${y}${E}${w}${B}${S}</g>`;
|
|
128
139
|
}
|
|
129
|
-
const
|
|
130
|
-
function
|
|
140
|
+
const Kt = 260, Q = 64;
|
|
141
|
+
function Zt(t) {
|
|
131
142
|
return `var(${t})`;
|
|
132
143
|
}
|
|
133
|
-
const
|
|
134
|
-
function({ model: n, width: i =
|
|
144
|
+
const qt = ht(
|
|
145
|
+
function({ model: n, width: i = Kt, height: a = Q, className: o }, r) {
|
|
135
146
|
const e = pt(n, { width: i, height: a }), c = e.barY + e.barH, u = c + 4, d = e.barY - 3, f = e.barY + e.barH + 3, b = e.barY - 4, k = e.bands.length, h = e.barY + e.barH / 2;
|
|
136
147
|
return /* @__PURE__ */ P(
|
|
137
148
|
"svg",
|
|
@@ -169,7 +180,7 @@ const Kt = ht(
|
|
|
169
180
|
l === 0 ? e.barRadius : 0,
|
|
170
181
|
l === k - 1 ? e.barRadius : 0
|
|
171
182
|
),
|
|
172
|
-
fill:
|
|
183
|
+
fill: Zt($.colorToken)
|
|
173
184
|
},
|
|
174
185
|
`${$.colorToken}-${l}`
|
|
175
186
|
)),
|
|
@@ -271,8 +282,8 @@ const Kt = ht(
|
|
|
271
282
|
);
|
|
272
283
|
}
|
|
273
284
|
);
|
|
274
|
-
|
|
275
|
-
const
|
|
285
|
+
qt.displayName = "BandedGauge";
|
|
286
|
+
const Jt = 24, mt = 18, G = 12, gt = {
|
|
276
287
|
activity: '<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>',
|
|
277
288
|
scale: '<path d="M12 3v18"/><path d="m19 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1"/><path d="m5 8 3 8a5 5 0 0 1-6 0zV7"/><path d="M7 21h10"/>',
|
|
278
289
|
ruler: '<path d="M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z"/><path d="m14.5 12.5 2-2"/><path d="m11.5 9.5 2-2"/><path d="m8.5 6.5 2-2"/><path d="m17.5 15.5 2-2"/>',
|
|
@@ -291,14 +302,14 @@ function xt(t) {
|
|
|
291
302
|
}
|
|
292
303
|
function rt(t, n, i, a, o) {
|
|
293
304
|
if (!xt(t)) return "";
|
|
294
|
-
const r = o /
|
|
305
|
+
const r = o / Jt;
|
|
295
306
|
return `<g transform="translate(${i} ${a}) scale(${r})" fill="none" color="${n}" stroke="${n}" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${gt[t]}</g>`;
|
|
296
307
|
}
|
|
297
308
|
function Y(t) {
|
|
298
309
|
return t.variant === "banded";
|
|
299
310
|
}
|
|
300
|
-
const
|
|
301
|
-
function
|
|
311
|
+
const Qt = ["fg", "muted", "accent", "border", "bg"], tt = "--primary", F = 380, vt = (t) => t.trim().replace(/^--/, "");
|
|
312
|
+
function tn(t) {
|
|
302
313
|
return `ds:text-[color:var(${t})]`;
|
|
303
314
|
}
|
|
304
315
|
function kt(t) {
|
|
@@ -368,8 +379,8 @@ function Lt(t) {
|
|
|
368
379
|
const n = t.fields.map((a) => `<li>${v(a.label)}: ${v(a.value)}</li>`).join(""), i = t.highlight ? `<p><strong>${v(t.highlight)}</strong></p>` : "";
|
|
369
380
|
return `<p><strong>${v(t.title)}</strong></p>${i}<ul>${n}</ul>`;
|
|
370
381
|
}
|
|
371
|
-
const L = 20, _ = L + 18, H = 22,
|
|
372
|
-
function
|
|
382
|
+
const L = 20, _ = L + 18, H = 22, nn = 10, wt = 22, st = 16, it = 12, en = 12, Tt = 34, Z = 9, q = (Tt + Z) * 2, an = 16, lt = mt, on = 6, R = L + G + on, X = F - L - R, ct = 13, Et = 14, It = 13, J = 16;
|
|
383
|
+
function rn(t) {
|
|
373
384
|
return t >= 4352 && t <= 4447 || // Hangul Jamo
|
|
374
385
|
t >= 11904 && t <= 42191 || // CJK radicals … Yi
|
|
375
386
|
t >= 44032 && t <= 55203 || // Hangul syllables
|
|
@@ -381,10 +392,10 @@ function an(t) {
|
|
|
381
392
|
function A(t, n) {
|
|
382
393
|
let i = 0;
|
|
383
394
|
for (const a of t)
|
|
384
|
-
i +=
|
|
395
|
+
i += rn(a.codePointAt(0) ?? 0) ? 1 : 0.62;
|
|
385
396
|
return i * n;
|
|
386
397
|
}
|
|
387
|
-
function
|
|
398
|
+
function sn(t, n, i) {
|
|
388
399
|
const a = [];
|
|
389
400
|
let o = "";
|
|
390
401
|
for (const r of t)
|
|
@@ -395,7 +406,7 @@ function ut(t, n, i) {
|
|
|
395
406
|
const a = [];
|
|
396
407
|
let o = "";
|
|
397
408
|
const r = (e) => {
|
|
398
|
-
const c =
|
|
409
|
+
const c = sn(e, n, i);
|
|
399
410
|
for (let u = 0; u < c.length - 1; u += 1) a.push(c[u]);
|
|
400
411
|
o = c[c.length - 1];
|
|
401
412
|
};
|
|
@@ -428,14 +439,14 @@ function nt(t, n) {
|
|
|
428
439
|
const i = n !== void 0 ? n : t.brand;
|
|
429
440
|
return typeof i == "string" ? i : !1;
|
|
430
441
|
}
|
|
431
|
-
function
|
|
442
|
+
function ln(t) {
|
|
432
443
|
if (typeof t.fraction == "number")
|
|
433
444
|
return Math.min(1, Math.max(0, t.fraction));
|
|
434
445
|
const n = parseFloat(t.value);
|
|
435
446
|
return Number.isFinite(n) && typeof t.max == "number" && t.max > 0 ? Math.min(1, Math.max(0, n / t.max)) : 1;
|
|
436
447
|
}
|
|
437
448
|
function _t(t, n) {
|
|
438
|
-
const i = !!t.highlight, a = _ +
|
|
449
|
+
const i = !!t.highlight, a = _ + nn, o = (i ? a + H + st : _ + st) + wt - 6, r = o + Mt(t).endDy, e = t.gauge && Y(t.gauge), d = t.gauge && !Y(t.gauge) ? (i ? a : _) + q : 0, f = e ? r + an : null, b = f !== null ? f + Q : 0, k = Math.max(r, d, b), h = n ? k + it + en - 4 : k, $ = Math.round(h + (n ? it : L));
|
|
439
450
|
return {
|
|
440
451
|
hasChip: i,
|
|
441
452
|
chipY: a,
|
|
@@ -449,8 +460,8 @@ function _t(t, n) {
|
|
|
449
460
|
function At(t, n) {
|
|
450
461
|
return _t(t, n !== !1).height;
|
|
451
462
|
}
|
|
452
|
-
function
|
|
453
|
-
const r = Tt, e = 2 * Math.PI * r, c =
|
|
463
|
+
function cn(t, n, i, a, o) {
|
|
464
|
+
const r = Tt, e = 2 * Math.PI * r, c = ln(t), u = O(n, t.colorToken, n.accent), d = typeof t.segments == "number" && t.segments > 1 ? t.segments : 0, f = d ? 3 : 0, b = d ? e / d - f : e, k = d ? `${b} ${f}` : "", h = `${e * c} ${e}`, $ = `transform="rotate(-90 ${a} ${o})"`, l = v(
|
|
454
465
|
t.label ? `${t.value} — ${t.label}` : t.value
|
|
455
466
|
), T = `<circle cx="${a}" cy="${o}" r="${r}" fill="none" stroke="${n.border}" stroke-width="${Z}"${k ? ` stroke-dasharray="${k}"` : ""} ${$}/>`, y = `<circle cx="${a}" cy="${o}" r="${r}" fill="none" stroke="${u}" stroke-width="${Z}" stroke-linecap="round" stroke-dasharray="${h}" ${$}/>`, p = `<text x="${a}" y="${o + 1}" text-anchor="middle" dominant-baseline="middle" font-family="${i}" font-size="16" font-weight="700" fill="${n.fg}">${v(
|
|
456
467
|
t.value
|
|
@@ -459,7 +470,7 @@ function sn(t, n, i, a, o) {
|
|
|
459
470
|
)}</text>` : "";
|
|
460
471
|
return `<g role="img" aria-label="${l}"><title>${l}</title>${T}${y}${p}${E}</g>`;
|
|
461
472
|
}
|
|
462
|
-
function
|
|
473
|
+
function un(t, n, i, a) {
|
|
463
474
|
const o = L - V, r = i - 2 * o, e = pt(
|
|
464
475
|
{
|
|
465
476
|
value: t.value,
|
|
@@ -473,7 +484,7 @@ function ln(t, n, i, a) {
|
|
|
473
484
|
ticks: t.ticks
|
|
474
485
|
},
|
|
475
486
|
{ width: r, height: Q }
|
|
476
|
-
), c =
|
|
487
|
+
), c = jt(e, {
|
|
477
488
|
resolve: (u) => O(n, u, n.accent),
|
|
478
489
|
// Raw theme font — buildBandedGaugeSvgString escapes it once. Passing the
|
|
479
490
|
// card's already-escaped `font` here would double-escape and break it.
|
|
@@ -495,14 +506,14 @@ function ft([t, n, i]) {
|
|
|
495
506
|
};
|
|
496
507
|
return 0.2126 * a(t) + 0.7152 * a(n) + 0.0722 * a(i);
|
|
497
508
|
}
|
|
498
|
-
function
|
|
509
|
+
function dn(t, n) {
|
|
499
510
|
const i = dt(t), a = dt(n);
|
|
500
511
|
if (!i || !a) return 0;
|
|
501
512
|
const o = ft(i), r = ft(a);
|
|
502
513
|
return (Math.max(o, r) + 0.05) / (Math.min(o, r) + 0.05);
|
|
503
514
|
}
|
|
504
|
-
function
|
|
505
|
-
const o = t.highlight, r = t.highlightToken ?? tt, e = O(n, r, n.accent), c =
|
|
515
|
+
function fn(t, n, i, a) {
|
|
516
|
+
const o = t.highlight, r = t.highlightToken ?? tt, e = O(n, r, n.accent), c = dn(n.bg, e) >= 3 ? n.bg : n.fg, u = Math.round(o.length * 7.2 + 28), d = L + u / 2, f = a + H / 2 + 1;
|
|
506
517
|
return `<rect x="${L}" y="${a}" width="${u}" height="${H}" rx="${H / 2}" fill="${e}"/><text x="${d}" y="${f}" text-anchor="middle" dominant-baseline="middle" font-family="${i}" font-size="12" font-weight="600" fill="${c}">${v(
|
|
507
518
|
o
|
|
508
519
|
)}</text>`;
|
|
@@ -537,9 +548,9 @@ function et(t, n, i = !1) {
|
|
|
537
548
|
)}</text>`;
|
|
538
549
|
}).join("");
|
|
539
550
|
return `${x}${C}`;
|
|
540
|
-
}).join(""), k = o.hasChip ?
|
|
551
|
+
}).join(""), k = o.hasChip ? fn(t, n, e, o.chipY) : "";
|
|
541
552
|
let h = "";
|
|
542
|
-
t.gauge && (Y(t.gauge) && o.bandedGaugeY !== null ? h =
|
|
553
|
+
t.gauge && (Y(t.gauge) && o.bandedGaugeY !== null ? h = un(t.gauge, n, a, o.bandedGaugeY) : Y(t.gauge) || (h = cn(
|
|
543
554
|
t.gauge,
|
|
544
555
|
n,
|
|
545
556
|
e,
|
|
@@ -555,7 +566,7 @@ function et(t, n, i = !1) {
|
|
|
555
566
|
t.title
|
|
556
567
|
)}">${T}${l}${d}${k}${h}${b}${$}${y}</svg>`;
|
|
557
568
|
}
|
|
558
|
-
function
|
|
569
|
+
function $n() {
|
|
559
570
|
var t;
|
|
560
571
|
return typeof navigator < "u" && typeof ((t = navigator.clipboard) == null ? void 0 : t.write) == "function" && typeof ClipboardItem < "u";
|
|
561
572
|
}
|
|
@@ -580,7 +591,7 @@ function Ct() {
|
|
|
580
591
|
const t = typeof window < "u" && typeof window.devicePixelRatio == "number" ? window.devicePixelRatio : 1;
|
|
581
592
|
return Math.max(2, t);
|
|
582
593
|
}
|
|
583
|
-
async function
|
|
594
|
+
async function _n(t, n = {}) {
|
|
584
595
|
return (await Yt(t, n)).dataUri;
|
|
585
596
|
}
|
|
586
597
|
async function Yt(t, n = {}) {
|
|
@@ -589,15 +600,15 @@ async function Yt(t, n = {}) {
|
|
|
589
600
|
Math.round(u * a),
|
|
590
601
|
Math.round(d * a)
|
|
591
602
|
);
|
|
592
|
-
return { dataUri: await
|
|
603
|
+
return { dataUri: await hn(f), width: u, height: d };
|
|
593
604
|
}
|
|
594
|
-
function
|
|
605
|
+
function hn(t) {
|
|
595
606
|
return new Promise((n, i) => {
|
|
596
607
|
const a = new FileReader();
|
|
597
608
|
a.onload = () => n(String(a.result)), a.onerror = () => i(a.error ?? new Error("FileReader error")), a.readAsDataURL(t);
|
|
598
609
|
});
|
|
599
610
|
}
|
|
600
|
-
async function
|
|
611
|
+
async function pn(t, n, i) {
|
|
601
612
|
const a = yt(n), o = new Blob([a], { type: "text/plain" });
|
|
602
613
|
if (t === "text")
|
|
603
614
|
return new ClipboardItem({ "text/plain": o });
|
|
@@ -615,7 +626,7 @@ async function $n(t, n, i) {
|
|
|
615
626
|
"text/plain": o
|
|
616
627
|
});
|
|
617
628
|
}
|
|
618
|
-
const
|
|
629
|
+
const bn = Nt(
|
|
619
630
|
"ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]",
|
|
620
631
|
{
|
|
621
632
|
variants: {
|
|
@@ -626,8 +637,8 @@ const hn = Nt(
|
|
|
626
637
|
},
|
|
627
638
|
defaultVariants: { variant: "insert" }
|
|
628
639
|
}
|
|
629
|
-
),
|
|
630
|
-
text: /* @__PURE__ */ g(
|
|
640
|
+
), mn = ["text", "image", "text-image"], gn = {
|
|
641
|
+
text: /* @__PURE__ */ g(Ot, { "aria-hidden": !0 }),
|
|
631
642
|
image: /* @__PURE__ */ g(Rt, { "aria-hidden": !0 }),
|
|
632
643
|
"text-image": /* @__PURE__ */ g(Ht, { "aria-hidden": !0 })
|
|
633
644
|
}, $t = {
|
|
@@ -641,7 +652,7 @@ const hn = Nt(
|
|
|
641
652
|
image: "insert.copyImage",
|
|
642
653
|
"text-image": "insert.copyTextImage"
|
|
643
654
|
}
|
|
644
|
-
},
|
|
655
|
+
}, xn = ht(
|
|
645
656
|
function({
|
|
646
657
|
card: n,
|
|
647
658
|
variant: i = "insert",
|
|
@@ -657,7 +668,7 @@ const hn = Nt(
|
|
|
657
668
|
const w = l === "text" ? null : K(f.current, W(n));
|
|
658
669
|
return w && (p = et(n, w, nt(n, void 0)), E = `data:image/svg+xml,${encodeURIComponent(p)}`), { mode: l, text: T, html: y, svg: p, imageDataUri: E, pngDataUri: () => w ? Yt(n, { colours: w }) : Promise.resolve({ dataUri: "", width: 0, height: 0 }) };
|
|
659
670
|
}, $ = i === "copy" ? (l) => {
|
|
660
|
-
if (
|
|
671
|
+
if (!$n()) {
|
|
661
672
|
r == null || r(new Error("Clipboard write unavailable in this context"));
|
|
662
673
|
return;
|
|
663
674
|
}
|
|
@@ -667,7 +678,7 @@ const hn = Nt(
|
|
|
667
678
|
);
|
|
668
679
|
(async () => {
|
|
669
680
|
try {
|
|
670
|
-
const y = await
|
|
681
|
+
const y = await pn(l, n, T);
|
|
671
682
|
await navigator.clipboard.write([y]), o == null || o(l);
|
|
672
683
|
} catch (y) {
|
|
673
684
|
r == null || r(y);
|
|
@@ -682,10 +693,10 @@ const hn = Nt(
|
|
|
682
693
|
ref: u,
|
|
683
694
|
"data-component": "insert-result",
|
|
684
695
|
"data-variant": i,
|
|
685
|
-
className:
|
|
696
|
+
className: bn({ variant: i }),
|
|
686
697
|
children: [
|
|
687
698
|
/* @__PURE__ */ P("span", { ref: f, "aria-hidden": !0, className: "ds:sr-only", children: [
|
|
688
|
-
|
|
699
|
+
Qt.map((l) => /* @__PURE__ */ g(
|
|
689
700
|
"span",
|
|
690
701
|
{
|
|
691
702
|
"data-k": l,
|
|
@@ -697,18 +708,18 @@ const hn = Nt(
|
|
|
697
708
|
"span",
|
|
698
709
|
{
|
|
699
710
|
"data-token": vt(l),
|
|
700
|
-
className:
|
|
711
|
+
className: tn(l)
|
|
701
712
|
},
|
|
702
713
|
l
|
|
703
714
|
))
|
|
704
715
|
] }),
|
|
705
|
-
|
|
716
|
+
mn.map((l) => /* @__PURE__ */ g(
|
|
706
717
|
Gt,
|
|
707
718
|
{
|
|
708
719
|
type: "button",
|
|
709
720
|
intent: c,
|
|
710
721
|
size: e,
|
|
711
|
-
startIcon:
|
|
722
|
+
startIcon: gn[l],
|
|
712
723
|
"aria-label": d($t[i][l]),
|
|
713
724
|
onClick: () => $(l),
|
|
714
725
|
children: d($t[i][l])
|
|
@@ -720,12 +731,12 @@ const hn = Nt(
|
|
|
720
731
|
);
|
|
721
732
|
}
|
|
722
733
|
);
|
|
723
|
-
|
|
734
|
+
xn.displayName = "InsertButton";
|
|
724
735
|
export {
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
736
|
+
qt as B,
|
|
737
|
+
xn as I,
|
|
738
|
+
_n as a,
|
|
739
|
+
Mn as b,
|
|
729
740
|
Yt as s
|
|
730
741
|
};
|
|
731
|
-
//# sourceMappingURL=insert-result-
|
|
742
|
+
//# sourceMappingURL=insert-result-njqBthzT.js.map
|
package/dist/_chunks/{marketplace-app-shell-BXfRMiRk.js → marketplace-app-shell-Cou6XnMJ.js}
RENAMED
|
@@ -11,7 +11,7 @@ import { T as F } from "./tab-bar-Xetknddo.js";
|
|
|
11
11
|
import { a as S, H as q, g as G, f as A, e as J, c as K, d as Q } from "./header-CNszv2WQ.js";
|
|
12
12
|
import { H as U } from "./header-settings-CNOqIhoW.js";
|
|
13
13
|
import { S as X } from "./sign-in-with-alfadocs-button-LppxjlFt.js";
|
|
14
|
-
import { S as Y, a as Z, j as _, k as aa, i as ea, h as z } from "./sidebar-
|
|
14
|
+
import { S as Y, a as Z, j as _, k as aa, i as ea, h as z } from "./sidebar-BFwbx74W.js";
|
|
15
15
|
import { T as sa } from "./theme-root-BOO73p5t.js";
|
|
16
16
|
import { a as ta } from "./tooltip-DvmfrNvB.js";
|
|
17
17
|
import { u as ra } from "./use-theme-CAuo6EYT.js";
|
|
@@ -510,4 +510,4 @@ export {
|
|
|
510
510
|
va as M,
|
|
511
511
|
g as P
|
|
512
512
|
};
|
|
513
|
-
//# sourceMappingURL=marketplace-app-shell-
|
|
513
|
+
//# sourceMappingURL=marketplace-app-shell-Cou6XnMJ.js.map
|
|
@@ -6,7 +6,7 @@ import { I as H } from "./icon-button-LqoiKcUN.js";
|
|
|
6
6
|
import { D as n } from "./dropdown-menu-DwwPovMZ.js";
|
|
7
7
|
import { H as B, g as N, f as T, e as k, a as x, c as M, d as O } from "./header-CNszv2WQ.js";
|
|
8
8
|
import { L as P } from "./logo-1FuSGx0n.js";
|
|
9
|
-
import { S as W, a as R, h as j, j as z, k as D, i as E } from "./sidebar-
|
|
9
|
+
import { S as W, a as R, h as j, j as z, k as D, i as E } from "./sidebar-BFwbx74W.js";
|
|
10
10
|
import { T as _ } from "./theme-root-BOO73p5t.js";
|
|
11
11
|
import { a as F } from "./tooltip-DvmfrNvB.js";
|
|
12
12
|
import { u as U } from "./use-theme-CAuo6EYT.js";
|
|
@@ -159,4 +159,4 @@ Y.displayName = "PatientShell";
|
|
|
159
159
|
export {
|
|
160
160
|
Y as P
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=patient-shell-
|
|
162
|
+
//# sourceMappingURL=patient-shell-Tgpv0HND.js.map
|
|
@@ -11,7 +11,7 @@ import { S as xe } from "./select-CEtRcon5.js";
|
|
|
11
11
|
import { S as Ne } from "./switch-BJ6HD3Mn.js";
|
|
12
12
|
import { C as M } from "./card-DPmk26CL.js";
|
|
13
13
|
import { B as j } from "./badge-zsf5i5bH.js";
|
|
14
|
-
import { I as Se } from "./insert-result-
|
|
14
|
+
import { I as Se } from "./insert-result-njqBthzT.js";
|
|
15
15
|
import { D as k, r as Ae, c as Le, g as ke, e as Ce, f as we, A as Te, h as Ee, i as Re, j as P, G as Fe } from "./antenatal-schedule-timeline-BfzFjEyb.js";
|
|
16
16
|
import { s as C } from "./subDays-BcYv1Lxi.js";
|
|
17
17
|
import { i as Ie } from "./date-picker-variants-DAcSLTua.js";
|
|
@@ -418,4 +418,4 @@ je.displayName = "PregnancyDating";
|
|
|
418
418
|
export {
|
|
419
419
|
je as P
|
|
420
420
|
};
|
|
421
|
-
//# sourceMappingURL=pregnancy-dating-
|
|
421
|
+
//# sourceMappingURL=pregnancy-dating-f9aJbiAk.js.map
|
package/dist/_chunks/{pregnancy-weight-gain-aicn7qs7.js → pregnancy-weight-gain-BMRBeA8V.js}
RENAMED
|
@@ -8,7 +8,7 @@ import { F as $ } from "./form-field-BOm9hK35.js";
|
|
|
8
8
|
import { N as R } from "./number-input-Dj5L3pXK.js";
|
|
9
9
|
import { C as P } from "./card-DPmk26CL.js";
|
|
10
10
|
import { B as k } from "./badge-zsf5i5bH.js";
|
|
11
|
-
import { I as X } from "./insert-result-
|
|
11
|
+
import { I as X } from "./insert-result-njqBthzT.js";
|
|
12
12
|
import { b as Y, e as Z } from "./bmi-BxD-tFzU.js";
|
|
13
13
|
const ee = {
|
|
14
14
|
underweight: { min: 12.5, max: 18 },
|
|
@@ -319,4 +319,4 @@ export {
|
|
|
319
319
|
ie as a,
|
|
320
320
|
te as r
|
|
321
321
|
};
|
|
322
|
-
//# sourceMappingURL=pregnancy-weight-gain-
|
|
322
|
+
//# sourceMappingURL=pregnancy-weight-gain-BMRBeA8V.js.map
|