@alfadocs/ui-kit 0.42.0 → 0.43.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-Cn_NxqkN.js → ar-DEz65ZJW.js} +2 -2
- package/dist/_chunks/bmi-calculator-DuVSFDuw.js +259 -0
- package/dist/_chunks/{booking-4mCw3Mpl.js → booking-CtLwaxkK.js} +4 -4
- package/dist/_chunks/{calculator-dialog-B74fqpFZ.js → calculator-dialog-DdexHrTP.js} +2 -2
- package/dist/_chunks/{chart-Cbt0_sKv.js → chart-Cg3e9EH9.js} +101 -99
- package/dist/_chunks/{cycle-calculator-DsZbyzX6.js → cycle-calculator-Dln-y1k_.js} +43 -42
- package/dist/_chunks/{date-picker-CvQfs6Xh.js → date-picker-Bq7xhMA-.js} +109 -108
- package/dist/_chunks/date-picker-variants-DLi1Va_e.js +3238 -0
- package/dist/_chunks/{date-range-picker-U9fn1g9d.js → date-range-picker-DcXuI9y7.js} +20 -19
- package/dist/_chunks/{date-time-picker-Cva0ZCWw.js → date-time-picker-RimumeLR.js} +18 -17
- package/dist/_chunks/{de-BMM2H7Bs.js → de-bTBGdjPS.js} +2 -2
- package/dist/_chunks/{dialog-Cee13rHU.js → dialog-DOYgd75U.js} +46 -37
- package/dist/_chunks/{due-date-calculator-s_CBgaFs.js → due-date-calculator-Cc4dRqTI.js} +46 -38
- package/dist/_chunks/{editable-currency-cell-renderer-BhUkRiPZ.js → editable-currency-cell-renderer-9jqwDv5x.js} +2 -2
- package/dist/_chunks/{el-BYPonAaK.js → el-BWG5RXxa.js} +6 -6
- package/dist/_chunks/{es-CMkVCQ4F.js → es-DfO_G435.js} +2 -2
- package/dist/_chunks/{fr-BcuWxqft.js → fr-BTn24bs8.js} +2 -2
- package/dist/_chunks/{gestation-BXEgDGmP.js → gestation-mWF4AXea.js} +3 -3
- package/dist/_chunks/{gestational-age-calculator-CWOG3bkI.js → gestational-age-calculator-ZMSrzkRW.js} +42 -41
- package/dist/_chunks/{header-CTZWX-tm.js → header-Ce1Br27u.js} +70 -75
- package/dist/_chunks/{hi-wkq_rQAh.js → hi-Dj3oYd84.js} +2 -2
- package/dist/_chunks/{insert-result-DtQQeSSf.js → insert-result-DisOY2G-.js} +91 -75
- package/dist/_chunks/{isSameWeek-Bim5ftRd.js → isSameWeek-HfxKk6Lz.js} +2 -2
- package/dist/_chunks/{it-GiQrQ9p4.js → it-Y85ofIQQ.js} +7 -7
- package/dist/_chunks/{ja-qfYg3Rua.js → ja-CQ7J6YoA.js} +2 -2
- package/dist/_chunks/{marketplace-app-shell-kVAVycz_.js → marketplace-app-shell-Dc5cTIt8.js} +186 -149
- package/dist/_chunks/{nl-xOogO4sZ.js → nl-D9kHCmp3.js} +2 -2
- package/dist/_chunks/{patient-shell-lDX3wwu6.js → patient-shell-CnT4L8gn.js} +2 -2
- package/dist/_chunks/{pl-GnOW6eGK.js → pl-B3Smqpkr.js} +3 -3
- package/dist/_chunks/{pregnancy-weight-gain-B7kBK-ZR.js → pregnancy-weight-gain-zZL5Ir2-.js} +49 -48
- package/dist/_chunks/{pt-_bV5b5RW.js → pt-D3J-1c_7.js} +6 -6
- package/dist/_chunks/{ro-BEcyh5Nj.js → ro-BKAbbEA3.js} +2 -2
- package/dist/_chunks/{ru-Bi86hqMf.js → ru-BeG8f0Ep.js} +3 -3
- package/dist/_chunks/{sign-document-QHfcNKFj.js → sign-document-B-3k_0LO.js} +165 -137
- package/dist/_chunks/{sq-BujHSAWu.js → sq-_hRPaeUy.js} +6 -6
- package/dist/_chunks/subDays-Dv7q9S7u.js +8 -0
- package/dist/_chunks/{sv-C8AeDrTA.js → sv-g009fSpe.js} +2 -2
- package/dist/_chunks/{tab-bar-C4II-7ej.js → tab-bar-Xetknddo.js} +53 -34
- package/dist/_chunks/{tr-CMSs_Vgf.js → tr-OKUOuhMW.js} +2 -2
- package/dist/_chunks/{unit-converter-D1UrEUxa.js → unit-converter-CuXCXJhK.js} +2 -2
- package/dist/_chunks/{zh-CN-eXB-PFu4.js → zh-CN-De4zwEhx.js} +3 -3
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/calendar-class-names.d.ts +8 -0
- package/dist/components/_shared/index.d.ts +2 -0
- package/dist/components/_shared/insert-result.d.ts +57 -2
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +10 -0
- package/dist/components/chart/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/date-picker/date-picker.d.ts +0 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/date-time-picker.d.ts +0 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/header/header.d.ts +8 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/public-header/public-header.d.ts +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-document/sign-document.d.ts +12 -0
- package/dist/components/stat/stat.d.ts +1 -1
- package/dist/components/tab-bar/index.d.ts +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +44 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/index.js +495 -494
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +57 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1411 -2
- package/package.json +1 -1
- package/dist/_chunks/bmi-calculator-D4juUcyF.js +0 -219
- package/dist/_chunks/react-day-picker-CdtIiKjx.js +0 -3174
- package/dist/_chunks/subDays-_T9YeKPX.js +0 -8
package/dist/_chunks/{pregnancy-weight-gain-B7kBK-ZR.js → pregnancy-weight-gain-zZL5Ir2-.js}
RENAMED
|
@@ -1,66 +1,67 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { useTranslation as
|
|
2
|
+
import { forwardRef as A, useState as f, useMemo as $, useEffect as F } from "react";
|
|
3
|
+
import { c as _ } from "./index-D2ZczOXr.js";
|
|
4
|
+
import { useTranslation as R } from "react-i18next";
|
|
5
5
|
import { F as y } from "./form-field-BOm9hK35.js";
|
|
6
6
|
import { N as x } from "./number-input-Dj5L3pXK.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
7
|
+
import { C as w } from "./card-DPmk26CL.js";
|
|
8
|
+
import { B as k } from "./badge-zsf5i5bH.js";
|
|
9
|
+
import { I as C } from "./insert-result-DisOY2G-.js";
|
|
10
|
+
import { b as M, e as j } from "./bmi-BxD-tFzU.js";
|
|
11
|
+
const z = {
|
|
11
12
|
underweight: { min: 12.5, max: 18 },
|
|
12
13
|
normal: { min: 11.5, max: 16 },
|
|
13
14
|
overweight: { min: 7, max: 11.5 },
|
|
14
15
|
obese: { min: 5, max: 9 }
|
|
15
|
-
},
|
|
16
|
+
}, H = {
|
|
16
17
|
underweight: { min: 0.44, max: 0.58 },
|
|
17
18
|
normal: { min: 0.35, max: 0.5 },
|
|
18
19
|
overweight: { min: 0.23, max: 0.33 },
|
|
19
20
|
obese: { min: 0.17, max: 0.27 }
|
|
20
21
|
}, G = { min: 0.5, max: 2 }, v = 13;
|
|
21
|
-
function
|
|
22
|
+
function L(t, i) {
|
|
22
23
|
if (i <= 0) return { min: 0, max: 0 };
|
|
23
24
|
if (i <= v) {
|
|
24
|
-
const
|
|
25
|
+
const l = i / v;
|
|
25
26
|
return {
|
|
26
|
-
min: G.min *
|
|
27
|
-
max: G.max *
|
|
27
|
+
min: G.min * l,
|
|
28
|
+
max: G.max * l
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
const
|
|
31
|
+
const c = Math.min(i, 40) - v, r = H[t];
|
|
31
32
|
return {
|
|
32
|
-
min: G.min + r.min *
|
|
33
|
-
max: G.max + r.max *
|
|
33
|
+
min: G.min + r.min * c,
|
|
34
|
+
max: G.max + r.max * c
|
|
34
35
|
};
|
|
35
36
|
}
|
|
36
|
-
function
|
|
37
|
-
const i = M(t.prePregnancyBmi),
|
|
37
|
+
function O(t) {
|
|
38
|
+
const i = M(t.prePregnancyBmi), c = z[i], r = L(
|
|
38
39
|
i,
|
|
39
40
|
t.gestationalWeeks
|
|
40
|
-
),
|
|
41
|
-
return { category: i, totalRange:
|
|
41
|
+
), l = t.currentWeightKg - t.prePregnancyWeightKg, W = l < r.min ? "below" : l > r.max ? "above" : "within";
|
|
42
|
+
return { category: i, totalRange: c, recommendedToDate: r, actualGainKg: l, status: W };
|
|
42
43
|
}
|
|
43
|
-
const
|
|
44
|
+
const U = _("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
44
45
|
variants: {
|
|
45
46
|
width: { full: "ds:w-full", auto: "ds:inline-flex" }
|
|
46
47
|
},
|
|
47
48
|
defaultVariants: { width: "full" }
|
|
48
|
-
}),
|
|
49
|
+
}), V = {
|
|
49
50
|
below: "warning",
|
|
50
51
|
within: "success",
|
|
51
52
|
above: "warning"
|
|
52
|
-
},
|
|
53
|
+
}, q = A(
|
|
53
54
|
({
|
|
54
55
|
onResultChange: t,
|
|
55
56
|
onInsert: i,
|
|
56
|
-
insertVariant:
|
|
57
|
+
insertVariant: c = "insert",
|
|
57
58
|
onCopy: r,
|
|
58
|
-
onError:
|
|
59
|
+
onError: l,
|
|
59
60
|
id: W,
|
|
60
|
-
width:
|
|
61
|
-
className:
|
|
62
|
-
},
|
|
63
|
-
const { t: e, i18n: N } =
|
|
61
|
+
width: K,
|
|
62
|
+
className: P
|
|
63
|
+
}, B) => {
|
|
64
|
+
const { t: e, i18n: N } = R(), [b, D] = f(null), [o, S] = f(null), [g, E] = f(null), [u, I] = f(null), p = j(o, b), n = $(() => p === null || o === null || g === null || u === null ? null : O({
|
|
64
65
|
prePregnancyBmi: p,
|
|
65
66
|
prePregnancyWeightKg: o,
|
|
66
67
|
currentWeightKg: g,
|
|
@@ -72,17 +73,17 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
72
73
|
}),
|
|
73
74
|
[N.language]
|
|
74
75
|
);
|
|
75
|
-
|
|
76
|
+
F(() => {
|
|
76
77
|
t == null || t(n);
|
|
77
78
|
}, [n, t]);
|
|
78
79
|
const m = e("pregnancyWeightGain.units.kg"), h = (T) => `${d.format(T.min)} – ${d.format(T.max)} ${m}`;
|
|
79
80
|
return /* @__PURE__ */ s(
|
|
80
81
|
"div",
|
|
81
82
|
{
|
|
82
|
-
ref:
|
|
83
|
+
ref: B,
|
|
83
84
|
"data-component": "pregnancy-weight-gain",
|
|
84
85
|
"data-component-id": W,
|
|
85
|
-
className:
|
|
86
|
+
className: U({ width: K, className: P }),
|
|
86
87
|
children: [
|
|
87
88
|
/* @__PURE__ */ s("div", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
88
89
|
/* @__PURE__ */ a(
|
|
@@ -112,7 +113,7 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
112
113
|
min: 0,
|
|
113
114
|
step: 0.1,
|
|
114
115
|
value: o,
|
|
115
|
-
onChange:
|
|
116
|
+
onChange: S
|
|
116
117
|
}
|
|
117
118
|
)
|
|
118
119
|
}
|
|
@@ -128,7 +129,7 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
128
129
|
min: 0,
|
|
129
130
|
step: 0.1,
|
|
130
131
|
value: g,
|
|
131
|
-
onChange:
|
|
132
|
+
onChange: E
|
|
132
133
|
}
|
|
133
134
|
)
|
|
134
135
|
}
|
|
@@ -140,14 +141,14 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
140
141
|
min: 0,
|
|
141
142
|
max: 42,
|
|
142
143
|
value: u,
|
|
143
|
-
onChange:
|
|
144
|
+
onChange: I
|
|
144
145
|
}
|
|
145
146
|
) })
|
|
146
147
|
] }),
|
|
147
148
|
/* @__PURE__ */ a("p", { className: "ds:sr-only", role: "status", "aria-live": "polite", children: n ? `${e("pregnancyWeightGain.actualGain")}: ${d.format(
|
|
148
149
|
n.actualGainKg
|
|
149
150
|
)} ${m}. ${e(`pregnancyWeightGain.status.${n.status}`)}.` : "" }),
|
|
150
|
-
n ? /* @__PURE__ */
|
|
151
|
+
n ? /* @__PURE__ */ a(w, { variant: "elevated", children: /* @__PURE__ */ s(w.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
151
152
|
/* @__PURE__ */ s("dl", { className: "ds:grid ds:grid-cols-1 ds:gap-[var(--spacing-md)] ds:sm:grid-cols-2", children: [
|
|
152
153
|
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
153
154
|
/* @__PURE__ */ a("dt", { className: "type-label ds:text-muted-foreground", children: e("pregnancyWeightGain.prePregnancyBmi") }),
|
|
@@ -166,7 +167,7 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
166
167
|
" ",
|
|
167
168
|
m
|
|
168
169
|
] }),
|
|
169
|
-
/* @__PURE__ */ a(
|
|
170
|
+
/* @__PURE__ */ a(k, { variant: V[n.status], size: "lg", children: e(`pregnancyWeightGain.status.${n.status}`) })
|
|
170
171
|
] })
|
|
171
172
|
] }),
|
|
172
173
|
/* @__PURE__ */ s("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)]", children: [
|
|
@@ -179,13 +180,13 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
179
180
|
] })
|
|
180
181
|
] }),
|
|
181
182
|
/* @__PURE__ */ a("p", { className: "type-body-sm ds:text-muted-foreground", children: e("pregnancyWeightGain.disclaimer") }),
|
|
182
|
-
|
|
183
|
-
|
|
183
|
+
c === "copy" || i ? /* @__PURE__ */ a(
|
|
184
|
+
C,
|
|
184
185
|
{
|
|
185
186
|
onInsert: i,
|
|
186
|
-
variant:
|
|
187
|
+
variant: c,
|
|
187
188
|
onCopy: r,
|
|
188
|
-
onError:
|
|
189
|
+
onError: l,
|
|
189
190
|
card: {
|
|
190
191
|
title: e("insert.title.weightGain"),
|
|
191
192
|
highlight: e(`pregnancyWeightGain.status.${n.status}`),
|
|
@@ -206,18 +207,18 @@ const O = F("ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]", {
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
) : null
|
|
209
|
-
] }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
210
|
+
] }) }) : /* @__PURE__ */ a("p", { className: "type-body ds:text-muted-foreground", children: e("pregnancyWeightGain.empty") })
|
|
210
211
|
]
|
|
211
212
|
}
|
|
212
213
|
);
|
|
213
214
|
}
|
|
214
215
|
);
|
|
215
|
-
|
|
216
|
+
q.displayName = "PregnancyWeightGain";
|
|
216
217
|
export {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
218
|
+
q as P,
|
|
219
|
+
H as R,
|
|
220
|
+
z as T,
|
|
221
|
+
O as a,
|
|
222
|
+
L as r
|
|
222
223
|
};
|
|
223
|
-
//# sourceMappingURL=pregnancy-weight-gain-
|
|
224
|
+
//# sourceMappingURL=pregnancy-weight-gain-zZL5Ir2-.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as s, r as i, v as r, w as d } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
2
|
const m = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "menos de um segundo",
|
|
@@ -144,7 +144,7 @@ const m = {
|
|
|
144
144
|
"novembro",
|
|
145
145
|
"dezembro"
|
|
146
146
|
]
|
|
147
|
-
},
|
|
147
|
+
}, w = {
|
|
148
148
|
narrow: ["d", "s", "t", "q", "q", "s", "s"],
|
|
149
149
|
short: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"],
|
|
150
150
|
abbreviated: ["dom", "seg", "ter", "qua", "qui", "sex", "sáb"],
|
|
@@ -157,7 +157,7 @@ const m = {
|
|
|
157
157
|
"sexta-feira",
|
|
158
158
|
"sábado"
|
|
159
159
|
]
|
|
160
|
-
},
|
|
160
|
+
}, v = {
|
|
161
161
|
narrow: {
|
|
162
162
|
am: "AM",
|
|
163
163
|
pm: "PM",
|
|
@@ -235,11 +235,11 @@ const m = {
|
|
|
235
235
|
defaultWidth: "wide"
|
|
236
236
|
}),
|
|
237
237
|
day: i({
|
|
238
|
-
values:
|
|
238
|
+
values: w,
|
|
239
239
|
defaultWidth: "wide"
|
|
240
240
|
}),
|
|
241
241
|
dayPeriod: i({
|
|
242
|
-
values:
|
|
242
|
+
values: v,
|
|
243
243
|
defaultWidth: "wide",
|
|
244
244
|
formattingValues: y,
|
|
245
245
|
defaultFormattingWidth: "wide"
|
|
@@ -367,4 +367,4 @@ const m = {
|
|
|
367
367
|
export {
|
|
368
368
|
N as pt
|
|
369
369
|
};
|
|
370
|
-
//# sourceMappingURL=pt-
|
|
370
|
+
//# sourceMappingURL=pt-D3J-1c_7.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { q as m, r as t, v as n, w as s } from "./date-picker-variants-DLi1Va_e.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-BKAbbEA3.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as d } from "./isSameWeek-
|
|
1
|
+
import { q as s, r as u, v as o, w as g } from "./date-picker-variants-DLi1Va_e.js";
|
|
2
|
+
import { i as d } from "./isSameWeek-HfxKk6Lz.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-BeG8f0Ep.js.map
|