@alfadocs/ui-kit 0.36.0 → 0.37.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/{ar-CEpIJtcO.js → ar-D1RwVZFj.js} +2 -2
- package/dist/_chunks/bmi-calculator-DQD5_nE-.js +214 -0
- package/dist/_chunks/{booking-eM0y0NIR.js → booking-DqXsd1Mv.js} +4 -4
- package/dist/_chunks/chart-DnHvmiDX.js +312 -0
- package/dist/_chunks/{date-picker-B94HAV4A.js → date-picker-CXFpu-qY.js} +2 -2
- package/dist/_chunks/{date-range-picker-D8CHNYQT.js → date-range-picker-I-q5rifj.js} +3 -3
- package/dist/_chunks/{date-time-picker-D1GEzf8p.js → date-time-picker-CqpGPlcH.js} +2 -2
- package/dist/_chunks/{de-Dfbeau59.js → de-HTQ4b4-J.js} +2 -2
- package/dist/_chunks/due-date-calculator-kf9U_g7O.js +173 -0
- package/dist/_chunks/{editable-currency-cell-renderer-CZcVWBPo.js → editable-currency-cell-renderer-DnjwZNZP.js} +2 -2
- package/dist/_chunks/{el-Dro3J7CP.js → el-Dr1pjuDq.js} +2 -2
- package/dist/_chunks/{es-Dvg8u70B.js → es-CvyTjLS0.js} +2 -2
- package/dist/_chunks/{fr-VOGjBSPP.js → fr-CS7aqaFR.js} +2 -2
- package/dist/_chunks/{hi-BSDxWU_y.js → hi-3uy8KpsH.js} +2 -2
- package/dist/_chunks/{isSameWeek-Dfzu29cW.js → isSameWeek-DRpMibi9.js} +2 -2
- package/dist/_chunks/{it-CuonvcI_.js → it-B_RF5VSw.js} +3 -3
- package/dist/_chunks/{ja-DO57gIOT.js → ja-C1mEYy35.js} +2 -2
- package/dist/_chunks/{nl-DjPaaWaW.js → nl-Dl7lO2t3.js} +2 -2
- package/dist/_chunks/{pl-Cl4lOx2N.js → pl-Dgsogljx.js} +3 -3
- package/dist/_chunks/{pt-D7qO5CzD.js → pt-Dm2JF4bc.js} +2 -2
- package/dist/_chunks/{react-day-picker-DsjfS7uI.js → react-day-picker-DYDdR8Vv.js} +22 -22
- package/dist/_chunks/{ro-CP2-VJ_O.js → ro-BXFZ_xIX.js} +2 -2
- package/dist/_chunks/{ru-RPn9_Lpq.js → ru-BPQkNRRV.js} +3 -3
- package/dist/_chunks/{sq-AQvefouo.js → sq-ChTlGFcJ.js} +2 -2
- package/dist/_chunks/subDays-D-WYRpdW.js +8 -0
- package/dist/_chunks/{sv-zkx9eBtD.js → sv-Do_gs6ir.js} +2 -2
- package/dist/_chunks/{tr-Dmr412Ac.js → tr-da_UnkYH.js} +2 -2
- package/dist/_chunks/{zh-CN-DxVt64Zk.js → zh-CN-C9qi5oak.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/bmi-calculator/bmi-calculator.d.ts +24 -0
- package/dist/components/bmi-calculator/bmi.d.ts +37 -0
- package/dist/components/bmi-calculator/index.d.ts +4 -0
- package/dist/components/bmi-calculator/index.js +14 -0
- package/dist/components/booking/index.js +1 -1
- package/dist/components/chart/chart.d.ts +7 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +18 -0
- package/dist/components/due-date-calculator/gestation.d.ts +44 -0
- package/dist/components/due-date-calculator/index.d.ts +4 -0
- package/dist/components/due-date-calculator/index.js +10 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.d.ts +1 -1
- package/dist/i18n/locales/ar.d.ts +64 -0
- package/dist/i18n/locales/ar.js +58 -0
- package/dist/i18n/locales/de.d.ts +64 -0
- package/dist/i18n/locales/de.js +58 -0
- package/dist/i18n/locales/el.d.ts +64 -0
- package/dist/i18n/locales/el.js +58 -0
- package/dist/i18n/locales/en.d.ts +64 -0
- package/dist/i18n/locales/en.js +58 -0
- package/dist/i18n/locales/es.d.ts +64 -0
- package/dist/i18n/locales/es.js +58 -0
- package/dist/i18n/locales/fr.d.ts +64 -0
- package/dist/i18n/locales/fr.js +58 -0
- package/dist/i18n/locales/hi.d.ts +64 -0
- package/dist/i18n/locales/hi.js +58 -0
- package/dist/i18n/locales/it.d.ts +64 -0
- package/dist/i18n/locales/it.js +58 -0
- package/dist/i18n/locales/ja.d.ts +64 -0
- package/dist/i18n/locales/ja.js +58 -0
- package/dist/i18n/locales/nl.d.ts +64 -0
- package/dist/i18n/locales/nl.js +58 -0
- package/dist/i18n/locales/pl.d.ts +64 -0
- package/dist/i18n/locales/pl.js +58 -0
- package/dist/i18n/locales/pt.d.ts +64 -0
- package/dist/i18n/locales/pt.js +58 -0
- package/dist/i18n/locales/ro.d.ts +64 -0
- package/dist/i18n/locales/ro.js +58 -0
- package/dist/i18n/locales/ru.d.ts +64 -0
- package/dist/i18n/locales/ru.js +58 -0
- package/dist/i18n/locales/sq.d.ts +64 -0
- package/dist/i18n/locales/sq.js +58 -0
- package/dist/i18n/locales/sv.d.ts +64 -0
- package/dist/i18n/locales/sv.js +58 -0
- package/dist/i18n/locales/tr.d.ts +64 -0
- package/dist/i18n/locales/tr.js +58 -0
- package/dist/i18n/locales/zh.d.ts +64 -0
- package/dist/i18n/locales/zh.js +58 -0
- package/dist/index.js +532 -514
- package/dist/locales/ar.json +64 -0
- package/dist/locales/de.json +64 -0
- package/dist/locales/el.json +64 -0
- package/dist/locales/en.json +64 -0
- package/dist/locales/es.json +64 -0
- package/dist/locales/fr.json +64 -0
- package/dist/locales/hi.json +64 -0
- package/dist/locales/it.json +64 -0
- package/dist/locales/ja.json +64 -0
- package/dist/locales/nl.json +64 -0
- package/dist/locales/pl.json +64 -0
- package/dist/locales/pt.json +64 -0
- package/dist/locales/ro.json +64 -0
- package/dist/locales/ru.json +64 -0
- package/dist/locales/sq.json +64 -0
- package/dist/locales/sv.json +64 -0
- package/dist/locales/tr.json +64 -0
- package/dist/locales/zh.json +64 -0
- package/dist/tokens.css +1 -1
- package/package.json +9 -1
- package/dist/_chunks/chart-DLkVn_ex.js +0 -292
- package/dist/_chunks/subDays-CANHP9hz.js +0 -8
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as I, useState as g, useMemo as C, useEffect as M } from "react";
|
|
3
|
+
import { c as O } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as k } from "react-i18next";
|
|
5
|
+
import { R as i } from "./radio-TWf9Q-mp.js";
|
|
6
|
+
import { R as A } from "./radio-group-BcF92GEF.js";
|
|
7
|
+
import { F as E } from "./form-field-BOm9hK35.js";
|
|
8
|
+
import { D as $ } from "./date-picker-CXFpu-qY.js";
|
|
9
|
+
import { N as G } from "./number-input-Dj5L3pXK.js";
|
|
10
|
+
import { B as R } from "./badge-zsf5i5bH.js";
|
|
11
|
+
import { a as b, d as Y } from "./react-day-picker-DYDdR8Vv.js";
|
|
12
|
+
import { s as x } from "./subDays-D-WYRpdW.js";
|
|
13
|
+
const B = 280, L = 14, T = 266, D = 28;
|
|
14
|
+
function V(s) {
|
|
15
|
+
if (s < 0) return "preconception";
|
|
16
|
+
const l = Math.floor(s / 7);
|
|
17
|
+
return l < 14 ? "first" : l < 28 ? "second" : l < 42 ? "third" : "postterm";
|
|
18
|
+
}
|
|
19
|
+
function z(s, l) {
|
|
20
|
+
const { method: u, date: d } = s;
|
|
21
|
+
let c, n;
|
|
22
|
+
if (u === "lmp") {
|
|
23
|
+
const r = s.cycleLength ?? D;
|
|
24
|
+
c = d, n = b(d, B + (r - D));
|
|
25
|
+
} else if (u === "conception")
|
|
26
|
+
c = x(d, L), n = b(d, T);
|
|
27
|
+
else {
|
|
28
|
+
const r = s.embryoAge ?? 5, f = x(d, r);
|
|
29
|
+
c = x(f, L), n = b(f, T);
|
|
30
|
+
}
|
|
31
|
+
const e = Y(l, c), m = e < 0 ? null : {
|
|
32
|
+
weeks: Math.floor(e / 7),
|
|
33
|
+
days: e % 7,
|
|
34
|
+
totalDays: e
|
|
35
|
+
};
|
|
36
|
+
return {
|
|
37
|
+
dueDate: n,
|
|
38
|
+
gestationalStart: c,
|
|
39
|
+
gestationalAge: m,
|
|
40
|
+
trimester: V(e)
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const P = O("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
44
|
+
variants: {
|
|
45
|
+
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: { width: "full" }
|
|
48
|
+
}), j = {
|
|
49
|
+
preconception: "neutral",
|
|
50
|
+
first: "info",
|
|
51
|
+
second: "success",
|
|
52
|
+
third: "warning",
|
|
53
|
+
postterm: "error"
|
|
54
|
+
}, H = {
|
|
55
|
+
lmp: "dueDateCalculator.lmpDate",
|
|
56
|
+
conception: "dueDateCalculator.conceptionDate",
|
|
57
|
+
ivf: "dueDateCalculator.transferDate"
|
|
58
|
+
}, K = I(({ defaultMethod: s = "lmp", onResultChange: l, id: u, width: d, className: c }, n) => {
|
|
59
|
+
const { t: e, i18n: m } = k(), [r, f] = g(s), [p, w] = g(void 0), [h, _] = g(
|
|
60
|
+
D
|
|
61
|
+
), [y, F] = g(5), a = C(() => p ? z(
|
|
62
|
+
{
|
|
63
|
+
method: r,
|
|
64
|
+
date: p,
|
|
65
|
+
cycleLength: h ?? D,
|
|
66
|
+
embryoAge: y
|
|
67
|
+
},
|
|
68
|
+
/* @__PURE__ */ new Date()
|
|
69
|
+
) : null, [r, p, h, y]), N = C(
|
|
70
|
+
() => new Intl.DateTimeFormat(m.language, { dateStyle: "long" }),
|
|
71
|
+
[m.language]
|
|
72
|
+
);
|
|
73
|
+
M(() => {
|
|
74
|
+
l == null || l(a);
|
|
75
|
+
}, [a, l]);
|
|
76
|
+
const S = C(() => /* @__PURE__ */ new Date(), []);
|
|
77
|
+
return /* @__PURE__ */ o(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
ref: n,
|
|
81
|
+
"data-component": "due-date-calculator",
|
|
82
|
+
"data-component-id": u,
|
|
83
|
+
className: P({ width: d, className: c }),
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ o(
|
|
86
|
+
A,
|
|
87
|
+
{
|
|
88
|
+
label: e("dueDateCalculator.method.label"),
|
|
89
|
+
variant: "horizontal",
|
|
90
|
+
value: r,
|
|
91
|
+
onValueChange: (v) => f(v),
|
|
92
|
+
children: [
|
|
93
|
+
/* @__PURE__ */ t(i, { label: e("dueDateCalculator.method.lmp"), value: "lmp" }),
|
|
94
|
+
/* @__PURE__ */ t(
|
|
95
|
+
i,
|
|
96
|
+
{
|
|
97
|
+
label: e("dueDateCalculator.method.conception"),
|
|
98
|
+
value: "conception"
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ t(i, { label: e("dueDateCalculator.method.ivf"), value: "ivf" })
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ o("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
106
|
+
/* @__PURE__ */ t(E, { label: e(H[r]), children: /* @__PURE__ */ t($, { value: p, onChange: w, maxDate: S }) }),
|
|
107
|
+
r === "lmp" && /* @__PURE__ */ t(
|
|
108
|
+
E,
|
|
109
|
+
{
|
|
110
|
+
label: e("dueDateCalculator.cycleLength"),
|
|
111
|
+
description: e("dueDateCalculator.cycleLengthHint"),
|
|
112
|
+
children: /* @__PURE__ */ t(
|
|
113
|
+
G,
|
|
114
|
+
{
|
|
115
|
+
mode: "integer",
|
|
116
|
+
min: 20,
|
|
117
|
+
max: 45,
|
|
118
|
+
value: h,
|
|
119
|
+
onChange: _
|
|
120
|
+
}
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
),
|
|
124
|
+
r === "ivf" && /* @__PURE__ */ o(
|
|
125
|
+
A,
|
|
126
|
+
{
|
|
127
|
+
label: e("dueDateCalculator.embryoAge"),
|
|
128
|
+
variant: "horizontal",
|
|
129
|
+
value: String(y),
|
|
130
|
+
onValueChange: (v) => F(Number(v)),
|
|
131
|
+
children: [
|
|
132
|
+
/* @__PURE__ */ t(i, { label: e("dueDateCalculator.day3"), value: "3" }),
|
|
133
|
+
/* @__PURE__ */ t(i, { label: e("dueDateCalculator.day5"), value: "5" })
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ t("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: a ? `${e("dueDateCalculator.result.dueDateLabel")}: ${N.format(
|
|
139
|
+
a.dueDate
|
|
140
|
+
)}. ${e("dueDateCalculator.result.trimesterLabel")}: ${e(
|
|
141
|
+
`dueDateCalculator.trimester.${a.trimester}`
|
|
142
|
+
)}.` : "" }),
|
|
143
|
+
a ? /* @__PURE__ */ o("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-3", children: [
|
|
144
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
145
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.dueDateLabel") }),
|
|
146
|
+
/* @__PURE__ */ t("dd", { className: "type-metric ds:text-foreground", children: N.format(a.dueDate) })
|
|
147
|
+
] }),
|
|
148
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
149
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.gestationLabel") }),
|
|
150
|
+
/* @__PURE__ */ t("dd", { className: "type-body ds:text-foreground", children: a.gestationalAge ? e("dueDateCalculator.result.gestation", {
|
|
151
|
+
weeks: a.gestationalAge.weeks,
|
|
152
|
+
days: a.gestationalAge.days
|
|
153
|
+
}) : "—" })
|
|
154
|
+
] }),
|
|
155
|
+
/* @__PURE__ */ o("div", { className: "ds:flex ds:flex-col ds:items-start ds:gap-[var(--spacing-xs)]", children: [
|
|
156
|
+
/* @__PURE__ */ t("dt", { className: "type-label ds:text-muted-foreground", children: e("dueDateCalculator.result.trimesterLabel") }),
|
|
157
|
+
/* @__PURE__ */ t("dd", { children: /* @__PURE__ */ t(R, { variant: j[a.trimester], size: "lg", children: e(`dueDateCalculator.trimester.${a.trimester}`) }) })
|
|
158
|
+
] })
|
|
159
|
+
] }) : /* @__PURE__ */ t("p", { className: "type-body ds:text-muted-foreground", children: e("dueDateCalculator.empty") })
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
});
|
|
164
|
+
K.displayName = "DueDateCalculator";
|
|
165
|
+
export {
|
|
166
|
+
D,
|
|
167
|
+
B as G,
|
|
168
|
+
T,
|
|
169
|
+
K as a,
|
|
170
|
+
z as c,
|
|
171
|
+
V as t
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=due-date-calculator-kf9U_g7O.js.map
|
|
@@ -26,7 +26,7 @@ import { S as Ie } from "./select-hsCaJSX3.js";
|
|
|
26
26
|
import { u as zt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
27
27
|
import { u as At } from "./use-theme-C2dHKUAN.js";
|
|
28
28
|
import { u as Pt } from "./registry-nPAVE19X.js";
|
|
29
|
-
import { D as ze } from "./date-range-picker-
|
|
29
|
+
import { D as ze } from "./date-range-picker-I-q5rifj.js";
|
|
30
30
|
import { M as Ot } from "./multi-select-DOLO3K_z.js";
|
|
31
31
|
import { A as Ae } from "./autocomplete-DIgdhCGJ.js";
|
|
32
32
|
import { N as ee } from "./number-input-Dj5L3pXK.js";
|
|
@@ -2332,4 +2332,4 @@ export {
|
|
|
2332
2332
|
Be as q,
|
|
2333
2333
|
xn as u
|
|
2334
2334
|
};
|
|
2335
|
-
//# sourceMappingURL=editable-currency-cell-renderer-
|
|
2335
|
+
//# sourceMappingURL=editable-currency-cell-renderer-DnjwZNZP.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as i, r as o, v as d } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as i, r as o, v as d } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "λιγότερο από ένα δευτερόλεπτο",
|
|
@@ -370,4 +370,4 @@ const u = {
|
|
|
370
370
|
export {
|
|
371
371
|
O as el
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=el-
|
|
373
|
+
//# sourceMappingURL=el-Dr1pjuDq.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as d, q as o, r, v as s } from "./react-day-picker-
|
|
1
|
+
import { o as d, q as o, r, v as s } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de un segundo",
|
|
@@ -370,4 +370,4 @@ const m = {
|
|
|
370
370
|
export {
|
|
371
371
|
q as es
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=es-
|
|
373
|
+
//# sourceMappingURL=es-CvyTjLS0.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as m, q as r, r as o, v as d } from "./react-day-picker-
|
|
1
|
+
import { o as m, q as r, r as o, v as d } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "moins d’une seconde",
|
|
@@ -335,4 +335,4 @@ const u = {
|
|
|
335
335
|
export {
|
|
336
336
|
q as fr
|
|
337
337
|
};
|
|
338
|
-
//# sourceMappingURL=fr-
|
|
338
|
+
//# sourceMappingURL=fr-CS7aqaFR.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as o, o as s, r, v as u } from "./react-day-picker-
|
|
1
|
+
import { q as o, o as s, r, v as u } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const d = {
|
|
3
3
|
locale: {
|
|
4
4
|
1: "१",
|
|
@@ -430,4 +430,4 @@ const y = {
|
|
|
430
430
|
export {
|
|
431
431
|
H as hi
|
|
432
432
|
};
|
|
433
|
-
//# sourceMappingURL=hi-
|
|
433
|
+
//# sourceMappingURL=hi-3uy8KpsH.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as l } from "./isSameDay-DUEiAT0G.js";
|
|
2
|
-
import { s as r } from "./react-day-picker-
|
|
2
|
+
import { s as r } from "./react-day-picker-DYDdR8Vv.js";
|
|
3
3
|
function i(a, m, e) {
|
|
4
4
|
const [t, f] = l(
|
|
5
5
|
e == null ? void 0 : e.in,
|
|
@@ -11,4 +11,4 @@ function i(a, m, e) {
|
|
|
11
11
|
export {
|
|
12
12
|
i
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=isSameWeek-
|
|
14
|
+
//# sourceMappingURL=isSameWeek-DRpMibi9.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as s, q as i, r, v as l } from "./react-day-picker-
|
|
2
|
-
import { i as d } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as i, r, v as l } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
|
+
import { i as d } from "./isSameWeek-DRpMibi9.js";
|
|
3
3
|
const c = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: "meno di un secondo",
|
|
@@ -398,4 +398,4 @@ const P = {
|
|
|
398
398
|
export {
|
|
399
399
|
I as it
|
|
400
400
|
};
|
|
401
|
-
//# sourceMappingURL=it-
|
|
401
|
+
//# sourceMappingURL=it-B_RF5VSw.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as o, r as i, v as d } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as o, r as i, v as d } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const u = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "1秒未満",
|
|
@@ -363,4 +363,4 @@ const u = {
|
|
|
363
363
|
export {
|
|
364
364
|
L as ja
|
|
365
365
|
};
|
|
366
|
-
//# sourceMappingURL=ja-
|
|
366
|
+
//# sourceMappingURL=ja-C1mEYy35.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as d, q as n, r, v as s } from "./react-day-picker-
|
|
1
|
+
import { o as d, q as n, r, v as s } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "minder dan een seconde",
|
|
@@ -323,4 +323,4 @@ const m = {
|
|
|
323
323
|
export {
|
|
324
324
|
S as nl
|
|
325
325
|
};
|
|
326
|
-
//# sourceMappingURL=nl-
|
|
326
|
+
//# sourceMappingURL=nl-Dl7lO2t3.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as s, q as a, r, v as l } from "./react-day-picker-
|
|
2
|
-
import { i as p } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as a, r, v as l } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
|
+
import { i as p } from "./isSameWeek-DRpMibi9.js";
|
|
3
3
|
const w = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: {
|
|
@@ -511,4 +511,4 @@ const I = {
|
|
|
511
511
|
export {
|
|
512
512
|
Z as pl
|
|
513
513
|
};
|
|
514
|
-
//# sourceMappingURL=pl-
|
|
514
|
+
//# sourceMappingURL=pl-Dgsogljx.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as i, r, v as d } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as i, r, v as d } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de um segundo",
|
|
@@ -367,4 +367,4 @@ const m = {
|
|
|
367
367
|
export {
|
|
368
368
|
N as pt
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=pt-
|
|
370
|
+
//# sourceMappingURL=pt-Dm2JF4bc.js.map
|
|
@@ -3000,23 +3000,23 @@ function qo(e) {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
const Ot = {
|
|
3002
3002
|
en: () => Promise.resolve().then(() => Pr).then((e) => e.enUS),
|
|
3003
|
-
it: () => import("./it-
|
|
3004
|
-
de: () => import("./de-
|
|
3005
|
-
es: () => import("./es-
|
|
3006
|
-
fr: () => import("./fr-
|
|
3007
|
-
pt: () => import("./pt-
|
|
3008
|
-
nl: () => import("./nl-
|
|
3009
|
-
pl: () => import("./pl-
|
|
3010
|
-
ro: () => import("./ro-
|
|
3011
|
-
ru: () => import("./ru-
|
|
3012
|
-
sv: () => import("./sv-
|
|
3013
|
-
el: () => import("./el-
|
|
3014
|
-
ja: () => import("./ja-
|
|
3015
|
-
zh: () => import("./zh-CN-
|
|
3016
|
-
hi: () => import("./hi-
|
|
3017
|
-
ar: () => import("./ar-
|
|
3018
|
-
tr: () => import("./tr-
|
|
3019
|
-
sq: () => import("./sq-
|
|
3003
|
+
it: () => import("./it-B_RF5VSw.js").then((e) => e.it),
|
|
3004
|
+
de: () => import("./de-HTQ4b4-J.js").then((e) => e.de),
|
|
3005
|
+
es: () => import("./es-CvyTjLS0.js").then((e) => e.es),
|
|
3006
|
+
fr: () => import("./fr-CS7aqaFR.js").then((e) => e.fr),
|
|
3007
|
+
pt: () => import("./pt-Dm2JF4bc.js").then((e) => e.pt),
|
|
3008
|
+
nl: () => import("./nl-Dl7lO2t3.js").then((e) => e.nl),
|
|
3009
|
+
pl: () => import("./pl-Dgsogljx.js").then((e) => e.pl),
|
|
3010
|
+
ro: () => import("./ro-BXFZ_xIX.js").then((e) => e.ro),
|
|
3011
|
+
ru: () => import("./ru-BPQkNRRV.js").then((e) => e.ru),
|
|
3012
|
+
sv: () => import("./sv-Do_gs6ir.js").then((e) => e.sv),
|
|
3013
|
+
el: () => import("./el-Dr1pjuDq.js").then((e) => e.el),
|
|
3014
|
+
ja: () => import("./ja-C1mEYy35.js").then((e) => e.ja),
|
|
3015
|
+
zh: () => import("./zh-CN-C9qi5oak.js").then((e) => e.zhCN),
|
|
3016
|
+
hi: () => import("./hi-3uy8KpsH.js").then((e) => e.hi),
|
|
3017
|
+
ar: () => import("./ar-D1RwVZFj.js").then((e) => e.ar),
|
|
3018
|
+
tr: () => import("./tr-da_UnkYH.js").then((e) => e.tr),
|
|
3019
|
+
sq: () => import("./sq-ChTlGFcJ.js").then((e) => e.sq)
|
|
3020
3020
|
};
|
|
3021
3021
|
async function To(e) {
|
|
3022
3022
|
const t = e.toLowerCase().split("-")[0];
|
|
@@ -3147,12 +3147,12 @@ export {
|
|
|
3147
3147
|
Ct as a,
|
|
3148
3148
|
Gn as b,
|
|
3149
3149
|
Go as c,
|
|
3150
|
-
|
|
3150
|
+
Ke as d,
|
|
3151
3151
|
_t as e,
|
|
3152
|
-
|
|
3152
|
+
Qn as f,
|
|
3153
3153
|
zo as g,
|
|
3154
|
-
|
|
3155
|
-
|
|
3154
|
+
Kn as h,
|
|
3155
|
+
Me as i,
|
|
3156
3156
|
Vo as j,
|
|
3157
3157
|
$o as k,
|
|
3158
3158
|
Uo as l,
|
|
@@ -3171,4 +3171,4 @@ export {
|
|
|
3171
3171
|
ke as y,
|
|
3172
3172
|
Ft as z
|
|
3173
3173
|
};
|
|
3174
|
-
//# sourceMappingURL=react-day-picker-
|
|
3174
|
+
//# sourceMappingURL=react-day-picker-DYDdR8Vv.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as m, q as t, r as n, v as s } from "./react-day-picker-
|
|
1
|
+
import { o as m, q as t, r as n, v as s } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "mai puțin de o secundă",
|
|
@@ -358,4 +358,4 @@ const d = {
|
|
|
358
358
|
export {
|
|
359
359
|
N as ro
|
|
360
360
|
};
|
|
361
|
-
//# sourceMappingURL=ro-
|
|
361
|
+
//# sourceMappingURL=ro-BXFZ_xIX.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as s, q as u, r as o, v as g } from "./react-day-picker-
|
|
2
|
-
import { i as d } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as u, r as o, v as g } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
|
+
import { i as d } from "./isSameWeek-DRpMibi9.js";
|
|
3
3
|
function l(e, t) {
|
|
4
4
|
if (e.one !== void 0 && t === 1)
|
|
5
5
|
return e.one;
|
|
@@ -558,4 +558,4 @@ const P = {
|
|
|
558
558
|
export {
|
|
559
559
|
B as ru
|
|
560
560
|
};
|
|
561
|
-
//# sourceMappingURL=ru-
|
|
561
|
+
//# sourceMappingURL=ru-BPQkNRRV.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as s, q as r, r as i, v as m } from "./react-day-picker-
|
|
1
|
+
import { o as s, q as r, r as i, v as m } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "më pak se një sekondë",
|
|
@@ -352,4 +352,4 @@ const d = {
|
|
|
352
352
|
export {
|
|
353
353
|
T as sq
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=sq-
|
|
355
|
+
//# sourceMappingURL=sq-ChTlGFcJ.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as d, q as r, r as i, v as m } from "./react-day-picker-
|
|
1
|
+
import { o as d, q as r, r as i, v as m } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const s = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "mindre än en sekund",
|
|
@@ -373,4 +373,4 @@ const s = {
|
|
|
373
373
|
export {
|
|
374
374
|
q as sv
|
|
375
375
|
};
|
|
376
|
-
//# sourceMappingURL=sv-
|
|
376
|
+
//# sourceMappingURL=sv-Do_gs6ir.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o, q as n, r as i, v as m } from "./react-day-picker-
|
|
1
|
+
import { o, q as n, r as i, v as m } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
2
|
const d = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "bir saniyeden az",
|
|
@@ -375,4 +375,4 @@ const d = {
|
|
|
375
375
|
export {
|
|
376
376
|
O as tr
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=tr-
|
|
378
|
+
//# sourceMappingURL=tr-da_UnkYH.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as s, q as i, r as o, v as m } from "./react-day-picker-
|
|
2
|
-
import { i as u } from "./isSameWeek-
|
|
1
|
+
import { o as s, q as i, r as o, v as m } from "./react-day-picker-DYDdR8Vv.js";
|
|
2
|
+
import { i as u } from "./isSameWeek-DRpMibi9.js";
|
|
3
3
|
const c = {
|
|
4
4
|
lessThanXSeconds: {
|
|
5
5
|
one: "不到 1 秒",
|
|
@@ -385,4 +385,4 @@ const b = {
|
|
|
385
385
|
export {
|
|
386
386
|
Q as zhCN
|
|
387
387
|
};
|
|
388
|
-
//# sourceMappingURL=zh-CN-
|
|
388
|
+
//# sourceMappingURL=zh-CN-C9qi5oak.js.map
|
package/dist/agent-catalog.json
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type UnitSystem, type BmiCategory } from './bmi';
|
|
3
|
+
export interface BmiResult {
|
|
4
|
+
/** BMI in kg/m². */
|
|
5
|
+
bmi: number;
|
|
6
|
+
/** WHO category the BMI falls into. */
|
|
7
|
+
category: BmiCategory;
|
|
8
|
+
}
|
|
9
|
+
declare const rootVariants: (props?: ({
|
|
10
|
+
width?: "auto" | "full" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
+
export interface BmiCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
13
|
+
/** Initial unit system. Defaults to `'metric'`. */
|
|
14
|
+
defaultUnitSystem?: UnitSystem;
|
|
15
|
+
/** Fires whenever a valid BMI can be computed (and with `null` when it can't). */
|
|
16
|
+
onResultChange?: (result: BmiResult | null) => void;
|
|
17
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
18
|
+
id?: string;
|
|
19
|
+
/** Extra class names on the wrapper. */
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const BmiCalculator: import("react").ForwardRefExoticComponent<BmiCalculatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=bmi-calculator.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type UnitSystem = 'metric' | 'imperial';
|
|
2
|
+
/** WHO adult BMI categories (kg/m²). Order = ascending BMI. */
|
|
3
|
+
export type BmiCategory = 'underweight' | 'normal' | 'overweight' | 'obese';
|
|
4
|
+
/** 1 lb = 0.45359237 kg (international avoirdupois pound, exact). */
|
|
5
|
+
export declare const KG_PER_LB = 0.45359237;
|
|
6
|
+
/** 1 inch = 2.54 cm (exact). */
|
|
7
|
+
export declare const CM_PER_IN = 2.54;
|
|
8
|
+
/** Inches per foot. */
|
|
9
|
+
export declare const IN_PER_FT = 12;
|
|
10
|
+
export declare const lbToKg: (lb: number) => number;
|
|
11
|
+
export declare const kgToLb: (kg: number) => number;
|
|
12
|
+
export declare const inToCm: (inches: number) => number;
|
|
13
|
+
export declare const cmToIn: (cm: number) => number;
|
|
14
|
+
/** Split a height in centimetres into whole feet + remaining inches. */
|
|
15
|
+
export declare function cmToFtIn(cm: number): {
|
|
16
|
+
ft: number;
|
|
17
|
+
in: number;
|
|
18
|
+
};
|
|
19
|
+
/** Combine feet + inches into centimetres. */
|
|
20
|
+
export declare const ftInToCm: (ft: number, inches: number) => number;
|
|
21
|
+
/**
|
|
22
|
+
* Body mass index in kg/m². Returns `null` when either input is missing or
|
|
23
|
+
* non-positive (height of 0 would divide by zero).
|
|
24
|
+
*/
|
|
25
|
+
export declare function computeBmi(weightKg: number | null, heightCm: number | null): number | null;
|
|
26
|
+
/** WHO adult cut-offs. Boundaries follow WHO: <18.5, <25, <30, ≥30. */
|
|
27
|
+
export declare function bmiCategory(bmi: number): BmiCategory;
|
|
28
|
+
/**
|
|
29
|
+
* Clinically meaningful display range for the gauge arc. Values below/above
|
|
30
|
+
* are clamped so the ring still reads. 12–40 spans severe-thinness through
|
|
31
|
+
* obesity without wasting the dial on impossible extremes.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BMI_GAUGE_MIN = 12;
|
|
34
|
+
export declare const BMI_GAUGE_MAX = 40;
|
|
35
|
+
/** Map a BMI onto a 0–100 arc-fill percent for the radialBar gauge. */
|
|
36
|
+
export declare function bmiToGaugePercent(bmi: number): number;
|
|
37
|
+
//# sourceMappingURL=bmi.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { BmiCalculator } from './bmi-calculator';
|
|
2
|
+
export type { BmiCalculatorProps, BmiResult } from './bmi-calculator';
|
|
3
|
+
export { computeBmi, bmiCategory, bmiToGaugePercent, lbToKg, kgToLb, inToCm, cmToIn, cmToFtIn, ftInToCm, type UnitSystem, type BmiCategory, } from './bmi';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { B as m, b as s, a as e, c as t, d as T, e as c, f as i, i as b, k as n, l as r } from "../../_chunks/bmi-calculator-DQD5_nE-.js";
|
|
2
|
+
export {
|
|
3
|
+
m as BmiCalculator,
|
|
4
|
+
s as bmiCategory,
|
|
5
|
+
e as bmiToGaugePercent,
|
|
6
|
+
t as cmToFtIn,
|
|
7
|
+
T as cmToIn,
|
|
8
|
+
c as computeBmi,
|
|
9
|
+
i as ftInToCm,
|
|
10
|
+
b as inToCm,
|
|
11
|
+
n as kgToLb,
|
|
12
|
+
r as lbToKg
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -33,6 +33,13 @@ export interface ChartProps extends VariantProps<typeof chartVariants> {
|
|
|
33
33
|
toolbar?: boolean;
|
|
34
34
|
/** Locale override — defaults to the active i18next language. */
|
|
35
35
|
locale?: string;
|
|
36
|
+
/**
|
|
37
|
+
* radialBar only. Formats the value printed in the ring centre. Use when the
|
|
38
|
+
* gauge represents a non-percentage figure: pass the arc fill (0–100) as the
|
|
39
|
+
* single `series` value and return the real figure here (e.g. `(_, ) => '22.4'`).
|
|
40
|
+
* Ignored for every other chart type. Defaults to ApexCharts' `${value}%`.
|
|
41
|
+
*/
|
|
42
|
+
radialValueFormatter?: (value: number) => string;
|
|
36
43
|
/** Extra class names on the wrapper. */
|
|
37
44
|
className?: string;
|
|
38
45
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-
|
|
1
|
+
import { A as l, B as r, C as t, a as s, D as n, b as d, c as i, d as o, E as C, e as R, I as F, L as g, N as T, f as b, S as u, g as c, h as D, T as m, i as p, j as x, k as f, l as y, m as E, n as S, o as h, U as A, p as L, q as N, u as k } from "../../_chunks/editable-currency-cell-renderer-DnjwZNZP.js";
|
|
2
2
|
export {
|
|
3
3
|
l as ActionsCellRenderer,
|
|
4
4
|
r as BalanceCellRenderer,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { type DueDateMethod, type DueDateResult } from './gestation';
|
|
3
|
+
declare const rootVariants: (props?: ({
|
|
4
|
+
width?: "auto" | "full" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface DueDateCalculatorProps extends VariantProps<typeof rootVariants> {
|
|
7
|
+
/** Initial dating method. Defaults to `'lmp'`. */
|
|
8
|
+
defaultMethod?: DueDateMethod;
|
|
9
|
+
/** Fires whenever a due date can be computed (and with `null` when it can't). */
|
|
10
|
+
onResultChange?: (result: DueDateResult | null) => void;
|
|
11
|
+
/** Opaque instance id, emitted as `data-component-id`. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** Extra class names on the wrapper. */
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const DueDateCalculator: import("react").ForwardRefExoticComponent<DueDateCalculatorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=due-date-calculator.d.ts.map
|